arXiv:2610.34146cs.CLOct 2026

Manuscript Offprint

arXiv:2610.34146

Rethinking Retrieval in the Long-Context Era: Training-Free Semantic Trees for Adaptive Context Construction

Zhe Xu, Tianhao Liao, Zhenqing Ling, Ying Shen, Yaliang Li, Daoyuan Chen

ABSTRACT

Long-context language models can increasingly process entire documents, making full-context prompting a practical alternative to passage retrieval. However, greater capacity determines how much information a model can receive, but not which information best supports a query. This distinction motivates rethinking retrieval: when the full document already fits, can selecting and organizing its evidence improve answering? The challenge is to retain supporting facts and relations while keeping the context focused on the question. To reconcile these goals, we introduce TREEFUSE, a training-free framework that uses semantic abstraction to guide selection while retaining original text for answering. TREEFUSE constructs a reusable semantic hierarchy from the full document in a single generation, linking node descriptions to source spans. Given a query, structural–semantic scoring and fine-grained lexical attribution nominate shared source nodes; their union with ancestor context preserves structural relations and complete local text. Across four frontier answer models, TREEFUSE improves average QA-F1 by 1.72 points over full-context prompting on three LongBench tasks, surpassing the evaluated baselines on the four-model average while reducing answer-context length by 58.55%. Our code is available at the code repository.

1 INTRODUCTION

Frontier language models can increasingly accommodate entire documents within their context windows, making full-context prompting a practical option for long-document question answering. Yet input capacity and context selection address different questions: how much information a model can receive, and which information it should receive for a particular query. Prior work shows that performance can depend strongly on where relevant information appears within a long context, even when that information remains available to the model (Liu et al., 2024). Prior compression methods show that selecting context can improve answering as well as shorten the input (Jiang et al., 2024a; Chirkova et al., 2025), while LaRA (Li et al., 2025) finds no universally preferable choice between retrieval-based and full-context approaches. These findings motivate rethinking retrieval beyond accommodating input-length constraints: When the full document already fits within the context window, can retrieval improve answering, and how should it select the supporting context?

A relevant passage is not always sufficient to support an answer. A question may require a directly mentioned fact together with background or a relation established elsewhere in the document. Sufficient Context (Joren et al., 2025) explicitly distinguishes contextual support from answer correctness. Context construction must therefore consider both the support it retains and how selectively it presents that support. Narrow extraction can omit a necessary fact or separate a detail from its interpretation, whereas broad expansion may introduce unrelated material. Controlled studies of arithmetic reasoning show that such irrelevant information can interfere with model predictions (Shi et al., 2023), motivating attention to context concentration as well as support retention. Hierarchical methods such as HiChunk (Lu et al., 2026) and LongRefiner (Jin et al., 2025) make document organization available to retrieval and refinement. The remaining design question is how to use that organization while remaining sensitive to precise source-level details.

∗^{*}These authors contributed equally.

To reconcile support retention with context concentration, we separate the information used to select evidence from the text supplied for answering. Figure 1 illustrates the goal: retaining supporting facts and their relation while excluding unrelated material. We instantiate this principle with TREEFUSE, a training-free framework that uses semantic abstraction to guide selection while preserving original evidence. Step 1: Source-grounded Semantic Tree Construction. A pretrained model jointly proposes semantic boundaries and hierarchical relations from the full document in a single generation, linking node descriptions to original source spans. The resulting hierarchy is query-independent and reusable. Step 2: Query-adaptive Context Construction. Structural-semantic scoring and fine-grained lexical attribution nominate nodes from this shared representation. A localized lexical match can retain a complete source node, supplementing semantic judgments with precise details. The selected nodes and their ancestors form a pruned

Figure

Figure 1: A schematic example contrasts full context with distractors, incomplete retrieval with missing support, and TREEFUSE's focused context retaining both supporting statements.

hierarchy that preserves the original parent–child relations and complete local text. The same constructed context can be supplied to different answer models without model-specific fine-tuning.

We evaluate TREEFUSE with four frontier answer models that offer strong long-context processing capabilities: Qwen3.8-Max (Qwen Team, 2026b), DeepSeek-V4-Pro (DeepSeek AI, 2026), Kimi-K2.6 (Kimi, 2026), and GLM-5.3 (GLM-5-Team et al., 2026). Full-context prompting provides a direct reference for testing whether retrieval remains beneficial when the complete document is already available to the answer model. Across three LongBench QA tasks, TREEFUSE reduces the answer-context length by 58.55% on average while improving the four-model average by 1.72 QA-F1 points over full-context prompting. The gains are more pronounced on the multi-hop HotpotQA and 2WikiMQA tasks, where the four-model averages improve by 1.72 and 2.46 points, respectively. On 2WikiMQA with Kimi-K2.6, TREEFUSE achieves a 7.00-point improvement, corresponding to a 14.76% relative gain. Evaluation on LaRA further tests transfer across heterogeneous long-document tasks, where TREEFUSE achieves the highest four-model average accuracy among the evaluated methods with 43.87% less answer context. Beyond answer scores, source-evidence analyses examine completeness and concentration, while component comparisons characterize semantic and lexical selection, hierarchical organization, and single-pass construction. These evaluations address both parts of our research question, establishing average gains over full-context prompting and examining how the selected contexts retain and organize supporting evidence.

To summarize, our contributions are:

• We empirically demonstrate that query-adaptive context construction can improve average answering performance even when full-document input is feasible, positioning retrieval as a complement to long-context capacity.

• We introduce reusable semantic trees and dual-granularity selection to coordinate structural support with precise source details, retaining complete local text without method-specific training.

• We provide a broad evaluation across four frontier answer-model families and diverse long-document tasks, obtaining a 1.72-point average QA-F1 improvement on the three LongBench tasks with 58.55% less context. We release our code to support research on adaptive context construction: https://anonymous.4open.science/r/treefuse-ECFE.

References (30)