Skip to content

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

optionalextendedfrontierpaperrubric 8/122026 · arXiv (Sun Yat-sen University; Alibaba) · ~20 min

Zhe Xu, Tianhao Liao, Zhenqing Ling, … Daoyuan Chen

Read first: Lost in the Middle: How Language Models Use Long Contexts

Status

TL;DR. Long-context models can read whole documents, but feeding everything is expensive and can hurt answers. TreeFuse is a training-free alternative to chunk-and-retrieve:

  1. Build a tree once. One LLM pass (Qwen3.6-35B-A3B) turns each document into a semantic tree. Every node stores a path, title, summary and atomic facts, plus a pointer to its own verbatim span.
  2. Select nodes per question by fusing LLM relevance scores with BM25.
  3. Pass the reader verbatim text from the selected nodes and their ancestors.

Across four strong readers on LongBench QA it averages +1.72 F1 over the full raw document while using 58.55% less context. Published compression baselines fall below Raw.

Retrieval for a long-context reader does not need to find a needle; it needs to remove noise without losing evidence or structure. TreeFuse separates finding from showing. It finds with summaries and BM25 (two complementary signals) and shows the reader the original text with hierarchical context. Selection is a union rather than a top-k, so the context size adapts to the question.

Results (paper-reported). LongBench QA-F1 averaged over four readers, Raw → TreeFuse: Qasper 49.26 → 50.25, HotpotQA 69.51 → 71.23, 2WikiMQA 70.63 → 73.09. The largest single gain is Kimi-K2.6 on 2WikiMQA (47.44 → 54.44). LongLLMLingua, Provence, HiChunk, BRIEF-Pro and LongRefiner all score below Raw; LongLLMLingua loses 22.11 points on Qasper. On LaRA-32K (887 questions), TreeFuse gets 80.59 vs 80.17 for Raw with 43.87% less context, while the baselines drop between 6.21 and 39.27 points. Preprocessing is not free: whether the saving pays off depends on how expensive the reader is relative to the tree builder (see the derive question).

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    The paper compares input work as C_raw = κ·T_raw against C_ours = C_pre + κ·T_sel, where C_pre is the per-question preprocessing input (tree construction amortised over questions, plus per-question selection) and κ is the reader's cost per input token relative to the Qwen3.6 preprocessor. For Qasper, C_pre = 19,183 tokens (construction 4,865 + selection 14,318). With Qwen3.8-Max (κ = 31.502) the proxy totals are 163,591 for Raw and 123,773 for TreeFuse. (a) Recover T_raw, T_sel and the break-even κ*. (b) LaRA has κ* = 1.66 while Qasper has about 10.2. Explain why using its 64 documents shared by 887 questions.

    What a strong answer covers
    • (a) T_raw = 163,591 / 31.502 ≈ 5,193 tokens. T_sel = (123,773 − 19,183) / 31.502 ≈ 3,320 tokens, so context shrinks by about 36% for this reader on Qasper.
    • κ* = C_pre / (T_raw − T_sel) = 19,183 / 1,873 ≈ 10.2, matching the reported 10.24. TreeFuse saves work only if a reader token costs more than about 10 preprocessor tokens; at κ = 31.5 the modelled reduction is 24.3%.
    • (b) LaRA: 887 / 64 ≈ 13.9 questions per document, so construction amortises to 2,209 tokens per question. Its documents are also long, so each question saves many reader tokens (about 29k raw vs 16k selected for Qwen3.8-Max). A big saving divided into a modest C_pre gives a small κ*.
    • In every dataset selection costs more than construction (for Qasper 14,318 vs 4,865), because the LLM scores every node for every question. Cheaper selection would move κ* down most.
  2. Mechanism

    TreeFuse keeps two views of every tree node: a semantic view (path, title, summary, atomic facts) and a source view (the node's own verbatim span). Walk through how a question selects nodes through the semantic and lexical channels, why the final context is built from source spans rather than summaries, and why adding ancestors uses only each ancestor's local span.

    What a strong answer covers
    • Semantic channel: an LLM rates every node's semantic view from 0 to 10 for the question, and nodes above a cutoff τ are kept. This catches paraphrase and multi-step relevance that word overlap misses.
    • Lexical channel: BM25 scores sentence or paragraph subunits inside each node, min–max normalises them, takes the node's best subunit, and keeps nodes above the 90th percentile. This catches exact names, numbers and rare terms that a summary may have dropped.
    • The union of both sets is then completed with ancestors, pruned to an ancestor-closed subtree and serialised with the original parent–child relations and sibling order.
    • Source spans keep the evidence verbatim, so the reader is not exposed to summarisation errors, and answers stay grounded in the document.
    • An ancestor contributes only its own local text (for example a section header and lead paragraph), not its whole subtree. That supplies context such as which section a fact belongs to without bringing the full document back.
  3. What if…

    With Qwen3.8-Max on HotpotQA and 2WikiMQA (Raw full context averages 79.94), the ablations report semantic-only 80.28, lexical-only (budget-matched) 74.96, semantic plus random extra nodes 78.40, and full TreeFuse 81.12. Replacing the tree with fixed 200-token chunks gives 76.12, Chonkie chunks 76.55, and a flat set of nodes 77.50. What does each comparison isolate, and what do they jointly say about where the gain comes from?

    What a strong answer covers
    • Semantic-only already matches Raw (80.28), so LLM scoring of node summaries carries most of the value. Lexical-only falls well below (74.96): BM25 alone misses evidence.
    • Semantic + random nodes (78.40) vs full (81.12): the lexical additions help because they are the right nodes, not just because there is more context.
    • Fixed and Chonkie chunks (76.12, 76.55) and the flat variant (77.50) all fall below the full method, so both the semantic units and the hierarchy (ancestor context) matter.
    • Jointly: the gain over Raw is small (about +1.2 here) but comes from complementary channels plus structure. No single component explains it, and each removal costs 1–6 points.
    • Caveat: these averages are for one strong reader on two multi-hop sets, so the sizes may differ for weaker readers (Kimi-K2.6 gained 7 points on 2Wiki in the main table).

Done with this page?

Status