Hierarchical search trees stumble when choosing which document to open
Stripping shared context from document outlines saves token space for answering questions, but routing queries from compressed roots leads search algorithms astray.

When automated assistants consult reference libraries to answer complex questions, they typically begin by chopping books, manuals, and technical reports into thousands of uniform slices. This technique allows a search engine to compare a query against small text fragments and retrieve the most promising snippets. Yet cutting prose into arbitrary blocks discards the natural layout of human writing, where individual paragraphs sit inside sections and sections sit inside complete works.
Retrieving reference material accurately matters because language models depend on external context to avoid fabrication and deliver verifiable answers. If an index preserves too little context, the answering model receives fragmented facts. If an index feeds entire documents into the model, computational expenses rise quickly. Slicing archives into uniform chunks offers a practical compromise, but flat indexes force a computer to calculate similarity scores across every stored fragment in an entire collection whenever someone asks a question.
The sequence that produces an answer relies on three separate steps. First, an automated index organizes source documents into searchable representations. Second, when a query arrives, a scoring engine evaluates those representations to select the most relevant passages. Third, a language model reads the selected passages alongside the original query to synthesize a final response. If the initial index distorts or misroutes the search, the model downstream cannot recover the missing evidence.
Why does feeding reference texts into language models break down?
Standard retrieval systems struggle to balance computational efficiency against the preservation of context. In a preprint posted to the arXiv repository, computer scientist, Junaid Farooq, who holds a PhD in artificial intelligence and is Chief Architect and Vice President of AI at Sprouts.ai, introduced Semantic Compression Trees, a hierarchical indexing method designed to represent documents across multiple levels of detail. The preprint reported that conventional retrieval-augmented generation relies primarily on flat, fixed-granularity indexes where documents are chopped into uniform chunks, discarding the hierarchical structure of the original source.1

To avoid repeating information across different levels of an outline, the method introduces semantic residuals. In this design, each node in a tree stores only the new information it adds beyond its parent node.1 In theory, searching such a tree through progressive descent from the root allows the processing cost per query to scale with tree depth rather than total collection size.1
However, tests revealed that while the residual representation successfully compacts text, navigating the tree from the top down introduces severe routing errors. According to the preprint, the research evaluated the architecture against standard dense retrieval on the QASPER question-answering benchmark, which consists of 50 papers and 173 questions, using bootstrap confidence intervals and paired significance tests.1
What happens when an index stores only new information?
Storing only the semantic residual at each node delivered substantial efficiency gains when the target document was already identified. When the correct document was supplied in advance, Semantic Compression Trees paired with a zero-LLM extractive compressor matched dense retrieval on answer quality, scoring 0.274 against 0.277 F1, a difference that was not statistically significant at p = 0.37.1 The preprint noted that this configuration achieved that parity using 30% fewer context tokens and required no large language model calls to construct the index.1
Addressing the baseline used to calculate that reduction, Junaid told Primary that the comparison was run against a dense-retrieval pipeline where documents were chunked at 512 tokens with 64-token overlap, embedded with OpenAI text-embedding-3-small, and retrieved via top-5 cosine similarity. In that run, the dense baseline supplied 3,120 context tokens per question on average under byte-pair encoding, while the tree setup supplied 2,178 tokens. Junaid emphasized that fewer tokens are not automatically superior, observing that a top-1 dense control delivering 646 context tokens dropped performance to 0.232 F1.
Storing residuals also outperformed keeping full summaries at every node in the hierarchy. The paper stated that residual storage achieved an F1 score of 0.274 compared with 0.205 for storing full summaries at each node, with a significance level of p < 0.001.1 Furthermore, Farooq reported that expanding the evaluated collection fifty-fold multiplied flat retrieval's per-query scoring work by 48.9x, while Semantic Compression Trees saw scoring work increase by only 6.4x.1

Explaining this divergence, Junaid told Primary that summarising and differencing optimise for opposing goals. A summary discards fine specifics such as figures and hyperparameters because they appear as minor details relative to a section thesis, whereas a residual preserves precisely what a section adds beyond its parent. Evidence recall metrics in the study confirmed this split: full summaries retained only 0.152 of gold evidence paragraphs verbatim and 0.584 at the token level, whereas residuals retained 0.720 verbatim and 0.895 at the token level, although full summaries also yielded far less text overall at 437 tokens.
Where does top-down document routing fail?
Top-down navigation broke down completely when the search system had to locate the correct document on its own. The paper found that progressive descent itself is not supported by the experimental evidence.1 When the benchmark required the system to discover the relevant document across the archive, top-down tree descent produced an F1 score of 0.122 compared with 0.165 for flat dense retrieval, a decline that was statistically significant at p < 0.001.1 Moreover, retrieving the exact same residuals without using the tree hierarchy performed identically to tree descent when the document was given in advance, with p = 0.27.1
Farooq reported that routing accuracy identified the direct cause of this failure: top-down descent chose the correct paper only 20.2% of the time, compared with 39.3% for flat retrieval.1 Because the top-down system made its initial routing decision at the root residual, the most heavily compressed node in the tree lacked the specific detail needed to recognize relevant documents.1 Junaid told Primary that this diagnosis emerged directly from splitting the evaluation into two protocols, noting that what had been overlooked was that the theoretical scaling advantage was bought by making the initial, least reversible choice from the most compressed representation.
These findings come with clear experimental boundaries. The results describe an automated retrieval benchmark evaluated on 50 academic papers and 173 questions within a single domain, rather than an active production deployment across heterogeneous web archives. Additionally, the preprint has been posted to arXiv and has not yet undergone formal peer review. In response to questions, Junaid acknowledged that 28 of the 50 evaluated papers possessed no subsections at all and the deepest tree reached only four levels, meaning the structural mechanism had limited opportunity to operate. The author also cautioned that cross-referential documents, such as legal contracts where clauses qualify terms defined elsewhere, directly violate the hierarchical assumption that containment implies relevance.
The takeaway for information retrieval is clear: compacting text by isolating residual meaning can save significant token space, but forcing search algorithms to make early filtering decisions from compressed root nodes discards the fine details that guide queries to the right source. Junaid noted that tree descent could potentially be rehabilitated if systems route across section-level descriptions rather than compressed roots, or when applied to corpora like database schemas where top-level nodes are distinct identifiers rather than lossy summaries.
The record
20 sentences trace to 1 source and 1 contributor.
- 1 Semantic Compression Trees: Multi-Resolution Knowledge Retrieval via Hierarchical Semantic Residuals Preprint · may not have been peer reviewed See the source
- 2 Contribution — Junaid Farooq 13 statements added to this article
Other consulted pages3 pages
Article history
-
Published 1 Dec 2026, 15:21Assembled by the Primary desk from 1 source · 1 contributor · 20 cited sentences
-
Junaid Farooq, holds a PhD in artificial intelligence and is Chief Architect and Vice President of AI at Sprouts.ai
- Go to the sentence: When the correct document was supplied in advance, Semantic Compression Trees paired with a zero-LLM extractive compressor matched dense retrieval on answer quality, scoring 0.274 against 0.277 F1, a difference that was not statistically significant at p = 0.37.
- Go to the sentence: The preprint noted that this configuration achieved that parity using 30% fewer context tokens and required no large language model calls to construct the index.
- Go to the sentence: Addressing the baseline used to calculate that reduction, Junaid told Primary that the comparison was run against a dense-retrieval pipeline where documents were chunked at 512 tokens with 64-token overlap, embedded with OpenAI text-embedding-3-small, and retrieved via top-5 cosine similarity.
- Go to the sentence: In that run, the dense baseline supplied 3,120 context tokens per question on average under byte-pair encoding, while the tree setup supplied 2,178 tokens.
- Go to the sentence: Junaid emphasized that fewer tokens are not automatically superior, observing that a top-1 dense control delivering 646 context tokens dropped performance to 0.232 F1.
- Go to the sentence: Furthermore, Farooq reported that expanding the evaluated collection fifty-fold multiplied flat retrieval's per-query scoring work by 48.9x, while Semantic Compression Trees saw scoring work increase by only 6.4x.
- Go to the sentence: Explaining this divergence, Junaid told Primary that summarising and differencing optimise for opposing goals.
- Go to the sentence: A summary discards fine specifics such as figures and hyperparameters because they appear as minor details relative to a section thesis, whereas a residual preserves precisely what a section adds beyond its parent.
- Go to the sentence: The paper found that progressive descent itself is not supported by the experimental evidence.
- Go to the sentence: Farooq reported that routing accuracy identified the direct cause of this failure: top-down descent chose the correct paper only 20.2% of the time, compared with 39.3% for flat retrieval.
- Go to the sentence: Because the top-down system made its initial routing decision at the root residual, the most heavily compressed node in the tree lacked the specific detail needed to recognize relevant documents.
- Go to the sentence: In response to questions, Junaid acknowledged that 28 of the 50 evaluated papers possessed no subsections at all and the deepest tree reached only four levels, meaning the structural mechanism had limited opportunity to operate.
- Go to the sentence: The author also cautioned that cross-referential documents, such as legal contracts where clauses qualify terms defined elsewhere, directly violate the hierarchical assumption that containment implies relevance.
