Manuscript Offprint

arXiv:2609.38137

LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning

Quang Hieu Pham, Thuy Duong Nguyen, Jocelyn Qiaochu Chen, Xi Ye

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Language-model (LM) harnesses enable LMs to operate effectively over long contexts using additional compute. However, existing long-context evaluations are insufficient for distinguishing modern harnesses, reflected by saturated accuracy across harnesses and largely similar evaluation costs. In this paper, we introduce a benchmark for evaluating both the effectiveness and efficiency of long-context harnesses. Our tasks require diverse retrieval strategies, including lexical search and semantic matching, together with strategic and adaptive reasoning over global and local context. Much of the context is semantically relevant but only a small subset is useful at each step, creating both a challenging search problem and different accuracy-cost tradeoffs across processing strategies. For example, one task requires identifying every person satisfying several conditions using evidence scattered across documents; strategically checking the most selective condition first can narrow the search before verifying the remaining conditions. We evaluate multiple families of frontier language models with four state-of-the-art harnesses. Our benchmarks remain challenging even for strong model-harness combinations: the best reaches 68% macro-average accuracy across four evaluation suites. More importantly, we find that the same underlying model can exhibit markedly different efficiency under different harnesses. Our results establish efficiency as an important axis for long-context evaluation and provide a testbed for developing harnesses that process context strategically rather than exhaustively.

1 INTRODUCTION

Language-model (LM) harnesses extend a model's ability to reason over long contexts through search, context slicing, tool use, and additional model calls (Yang et al., 2024; Zhang et al., 2025). These techniques can substantially improve performance on long-context tasks while spending additional computation. The rapid progress in harness development exposes two gaps in existing long-context evaluations. First, tasks that can be solved through simple retrieval or by processing context segments independently reveal little about a harness's ability to adapt its strategy as reasoning unfolds. The increasingly saturated accuracy of strong model-harness combinations on these benchmarks further limits their ability to distinguish harness capabilities (Cao et al., 2026). Second, accuracy alone does not capture the computational cost of harness performance: systems built around the same model may achieve similar accuracy while consuming substantially different amounts of computation (Figure 1; bottom). Evaluating long-context harnesses therefore requires tasks that challenge adaptive reasoning, together with measures of the computation needed to solve them.

Figure

(b) Accuracy-cost trade-off

Figure 1: LONGHARNESS (ours) reveals harness differences in both accuracy and cost.

∗^{*}Equal contribution. †\dagger Equal advising.

Figure

Figure 2: Examples from our benchmark. Top left: Constraint Solving Search combines evidence from documents. Top right: Equivalent Program Pair Search distinguishes equivalent programs from near matches. Bottom left: Program Execution Tracing requires reading prior outputs and matching code semantics. Bottom right: Outlier Memo Detection identifies a conflict using supporting memos.

We introduce LONGHARNESS, a benchmark comprising four diverse long-context tasks that require challenging retrieval and adaptive reasoning while admitting multiple solution strategies with different computational costs. Specifically, retrieval requires locating useful evidence among many semantically relevant candidates, where lexical overlap or semantic similarity alone cannot reliably identify the correct evidence. Reasoning requires combining information across the context over multiple steps, with intermediate findings often determining what to inspect next. These demands also create opportunities for efficiency: harnesses can strategically narrow their searches, prioritize informative evidence, and reuse intermediate results to avoid unnecessary processing.

For example, our Constraint Solving Search task (Figure 2, top left) asks agents to identify every person satisfying several conditions using evidence scattered across a large collection of documents. The task calls for both lexical and semantic search: entity names help locate passages about a candidate, while conditions such as “enjoying fruit” require recognizing evidence expressed in different terms, such as a “fondness for watermelon”. Since many people satisfy most but not all conditions, agents must combine evidence across documents and check each candidate against the full query. An exhaustive strategy could check every condition for every person, whereas a more selective strategy could first identify the condition satisfied by the fewest people, then verify the remaining conditions only for those candidates. Both approaches can reach the correct answer, but they require different amounts of processing, allowing the task to distinguish accuracy and efficiency across model–harness combinations.

We evaluate direct inference and four agentic harnesses—OpenCode, mini-swe-agent, RLM, and ReAct (Anomaly, 2026; Yang et al., 2024; Zhang et al., 2025; Yao et al., 2023)—on all four LONGHARNESS tasks. Our evaluation covers five models: GPT-5.6-sol, Gemini 3.8 Flash, GLM-5.3, Qwen3.8-27B, and Kimi-K2.6 (OpenAI, 2026; Zeng et al., 2026; Qwen Team, 2026; Moonshot AI, 2026). For comparison, we also evaluate GPT-5.6-sol configurations on OOLONG-Synth and LongBench-v2 (Bertsch et al., 2025; Bai et al., 2025). Figure 1 shows that, with GPT-5.6-sol as a backbone, harness accuracy varies more widely on LONGHARNESS than on LongBench-v2 or OOLONG-Synth (Figure 1a). On our Outlier Memo Detection task, RLM achieves accuracy comparable to mini-swe-agent but costs 12.4×12.4\times as much per instance, revealing an efficiency difference hidden by accuracy alone (Figure 1b). The best configuration on our suite reaches 68% macro-average accuracy, and no harness leads across all four tasks. For GPT-5.6-sol, every harness helps on some tasks and hurts on others, while additional inference can sharply increase cost without improving accuracy. Compared with the two existing benchmarks, our suite more clearly reveals how harness choice affects both accuracy and computational cost. Further analysis reveals harness failures to reuse evidence, verify candidates, and reach an answer within budget. These findings highlight substantial room to improve the reliability and efficiency of long-context reasoning, and establish LONGHARNESS as a testbed for this research.

References (84)