Long documents such as novels, scientific papers and reports have to be cut into pieces before a language model can search them, and the cuts break things. A pronoun loses its antecedent, a claim loses the section that qualifies it, and a fact ends up in a different piece from the question it answers. A recent and promising fix is to index the document as a discourse tree, meaning a nested map of how clauses, sentences and paragraphs support, elaborate or contrast with one another. A language model writes a summary for each internal node of the tree, and retrieval walks the tree instead of a flat list of chunks. These trees are built over raw text, so the two steps that decide what the index "knows" are exposed to entity names: attaching paragraphs to each other, and summarizing subtrees. We expect the summarizer to bring in what it already believes about famous names, and we expect paragraphs to be grouped because they mention the same people rather than because one argues for the other.
We propose to build and summarize the discourse tree over a delexicalized copy of the document. In that copy every entity mention is replaced by a placeholder that is consistent within the document and assigned by coreference, in the style of the anonymized ent193 tokens of Teaching Machines to Read and Comprehend. The finished summaries are then mapped back to canonical names by deterministic substitution before retrieval. This gives the index a property that raw-text trees lack. A node summary can only mention entities whose placeholders occur in its subtree, so any other entity it mentions is a hallucination that can be detected mechanically. The central question is which kind of entity information the tree builder should see. The candidates are full names, chain-preserving placeholders, or type-only tags. A second question is whether the answer changes long-document question answering, beyond what simply resolving pronouns would achieve.
Core Claim
For hierarchical discourse indexes, entity identity and entity surface form should be separated. The tree builder needs to know that two mentions refer to the same thing, because that is what keeps an argument connected across a cut. It does not need to know that the thing is called "Princeton" or "Captain Ahab". Knowing the name invites shortcuts learned in pretraining and invented attributes. We predict that chain-preserving placeholders will beat both raw names and type-only tags on retrieval quality and summary faithfulness. We also predict that the advantage will be largest when documents are renamed so that the model's prior knowledge is useless or misleading.
Prior work motivates this claim from three sides. On the masking side, Knowledge Enhanced Event Causality Identification with Mention Masking Generalizations replaced event mentions with mask tokens to make a classifier learn the connecting language rather than memorized word pairs. On unseen event pairs it kept 55.6% F1 while the unmasked prior model fell to 11.3%. That evidence is sentence-level classification, not long documents, and we test whether the effect carries over to tree construction. On the discourse side, the tension recorded in The Impact of Deep Hierarchical Discourse Structures in the Evaluation of Text Coherence is directly relevant. Adding entity-transition features to deep rhetorical trees helped sentence ordering (99.1% to 99.3%) but hurt essay organization scoring (88.3% to 87.7%), which the authors read as entity repetition being mistaken for organization. Corruption Is Not All Bad observed the same failure in pretraining: a model asked to detect swapped paragraphs cheated by noticing topic and vocabulary shifts, and the authors had to restrict replacements to same-prompt essays. Both results say that raw entity overlap can stand in for structure, and our type-only versus chain-preserving comparison is designed to separate the two.
Relation to the Closest Systems
The method we extend is Beyond Chunking / DISRetrieval (companion version). It builds sentence-level trees in Rhetorical Structure Theory (a scheme that labels how each text unit relates to its neighbours, for example as elaboration, contrast or cause) inside paragraphs, links the paragraph roots into a document tree, and has Llama-3-8B summarize large subtrees. It reports gains over flat sentence baselines on QuALITY, QASPER and NarrativeQA, and it beats a naive recursive-bisection tree, which shows that the rhetorical structure matters and not just the tree depth. It keeps all text lexicalized. We keep its parser, its retrieval procedure and its summarizer, and change only what the paragraph-linking and summarization stages see.
Disco-RAG builds rhetorical graphs within and across already-retrieved chunks to plan generation. It operates after retrieval, whereas we change how the index is built. EnSI-RAG takes the opposite stance on entities: it organizes the index around entity-centered passages and records, keeps names in full, and has no discourse hierarchy. RADIANT supplies a measurement tool we reuse. It scores how generated text diverges from source text using entities as anchors, including a penalty for added entities, and we apply that idea to node summaries rather than final answers. Finally, Discourse Relation-Enhanced Neural Coherence Modeling explicitly leaves entity tracking for future work. That paper works on short texts with adjacent-sentence relations; our setting is long documents with deep trees.
Research Program
The pipeline has four stages. First, we run a coreference resolver and named-entity tagger over the full document. Each chain receives a placeholder that combines its type with a document-local index, such as PERSON_3 or ORG_1. A reversible table maps each placeholder to the chain's most frequent full name. Second, the sentence-level rhetorical parser runs on raw text, exactly as in DISRetrieval. We do this because parsers are trained on lexicalized news text and would be out of distribution on placeholders. We run a secondary arm that parses delexicalized text to measure that cost directly. Third, paragraph-root attachment and all internal-node summarization run on the delexicalized text. The summarizer is told that placeholders are the only legal entity references. Fourth, summaries are re-lexicalized through the table, and node embeddings are computed on the re-lexicalized text. Leaves stay raw, so retrieval can still match the entity names that appear in queries.
The comparison varies one factor, the entity view given to stages three and four. The settings are raw names (DISRetrieval as published), coreference-resolved names (pronouns replaced by their antecedents' names), chain-preserving placeholders (the proposal), type-only tags with no chain index, and random-string replacement in the spirit of mention randomization. Comparing coreference-resolved names with chain-preserving placeholders is the critical contrast, because it separates "resolving who is who" from "hiding what they are called."
Two analyses come with the systems. The first measures entity fidelity of node summaries. It counts the rate of entities in a summary that do not occur in its subtree; under placeholders this count is exact, and under raw names we use an entity linker. It also counts attribute misattribution, judged by a separate model with human spot checks. The second measures how much tree attachment depends on entity overlap. For each attachment decision we regress the chosen parent on the entity overlap and the relation-signal features between the candidate nodes. We report how much overlap explains under each setting, and expect that share to shrink under type-only tags and stay moderate under chain-preserving placeholders.
Baselines
The naive reference point is flat fixed-size chunking with overlap, embedded by the same encoder and retrieved under the same context budget. On NarrativeQA's full-story task, The NarrativeQA Reading Comprehension Challenge reported that the best models barely beat a sequence-to-sequence model that never read the book. That shows how low this floor can be.
A stronger flat competitor is Late Chunking. It encodes the whole document with a long-context encoder before pooling token vectors into chunks, so each chunk vector carries context from outside its boundaries. It reports about a 3.6% relative nDCG@10 gain over naive chunking on BeIR. We run it with macro-chunks at the encoder's limit and the same retrieval budget. It matters because it fixes fragmentation without any tree, and if it matches our method then the discourse structure is not earning its cost.
The strongest existing method is DISRetrieval run as published. We reproduce it with the same parser, the same Llama-3-8B summarizer and threshold, the same embedding model, the same 400-word retrieval window on QuALITY, and the same reader. Our variants differ only in the entity view. Lacuna reports only relative gains for it: +3.60% accuracy over sentence flattening on QuALITY, +2.66% F1-Match on QASPER, and +1.15% BLEU and +1.89% ROUGE over flat chunks on NarrativeQA. No reported absolute result was found on Lacuna for DISRetrieval on any of these benchmarks, so our reproduction sets the absolute bar. We will treat the method as beaten if it does three things on the original documents. It must improve QuALITY accuracy and QASPER evidence recall over the reproduced DISRetrieval, with paired bootstrap confidence intervals that exclude zero. It must lose no ground on NarrativeQA. It must also cut the added-entity rate in summaries by at least half.
The key-ingredient ablation is the coreference-resolved-names setting. It receives exactly the same coreference output and the same compute as the placeholder setting, so any gap between them is due to hiding surface forms. Type-only tags and random strings bound the result from the other side by removing chain identity. All variants share one tuning budget for the summarizer prompt and the threshold, chosen on a held-out QuALITY split.
Why not just…?
Why not just feed the whole document to a long-context model? Landmark Embedding (Landmark Embedding) reports that full-attention models degrade when the relevant passage sits deep inside a 30k-token context, and that retrieval reaches +8.8 LongBench points over no retrieval using about 2,190 input tokens rather than 15,500. NarrativeQA books run to hundreds of thousands of words, far beyond a single pass. We include a long-context reader on the subset of QuALITY documents that fit in its window, as a ceiling under equal reader size.
Why not just resolve coreference and keep the names? This is the real threat. Most of the fragmentation damage comes from orphaned pronouns, and resolution alone may recover most of the gain. The coreference-resolved-names ablation tests this directly. If it matches the placeholder setting on the original documents and on the renamed ones, then surface hiding adds nothing for retrieval. In that case we would narrow the claim to summary faithfulness, which placeholders make checkable regardless of the outcome.
Why not just index by entity, as EnSI-RAG does? Entity-centered records localize facts well. Lacuna gives 78.24 average accuracy on Loong and Oolong for EnSI-RAG. However, those records do not encode whether a fact is a claim, a concession or background. We expect that difference to matter most on QuALITY questions that require synthesis across paragraphs. We run an entity-passage index under our budget as a further baseline on QuALITY. If it wins there, the case for a discourse hierarchy weakens.
Why not just tell the summarizer not to hallucinate, or use a bigger one? Instructions cannot be verified. Placeholders turn faithfulness into a closed-vocabulary check. We run a raw-name arm with a prompt that explicitly forbids adding entities, and a raw-name arm with a larger summarizer. If either matches the placeholder arm's added-entity rate, the masking is unnecessary for faithfulness.
Proposed Experiments
The main study runs all settings on QuALITY (accuracy), QASPER (answer F1 and gold-evidence recall, using its evidence annotations) and NarrativeQA full stories (ROUGE-L and BLEU). The reader and the token budget are held fixed throughout.
The decisive check is a renamed-document test. We build consistent renamings of QuALITY and NarrativeQA documents, replacing every person, place and organization chain with an invented name and applying the same renaming to questions and answers. NarrativeQA's Gutenberg books are very likely memorized by pretrained models. The gap between performance on original and renamed documents therefore measures how much the raw-name index relies on prior knowledge rather than the text, which is the confound that motivated the anonymized evaluation of Teaching Machines to Read and Comprehend. We expect the placeholder index to show a clearly smaller gap than both raw-name and coreference-resolved-name indexes.
A second check uses paragraph insertions in the style of same-prompt replacement. We insert a paragraph from elsewhere in the same document, so it shares entities but has no rhetorical role at the insertion point. We then measure how often each builder attaches it as an elaboration of its neighbours. Entity-overlap shortcuts predict frequent attachment under raw names and chain placeholders, and rarer attachment under type-only tags. This would tell us whether the essay-scoring degradation reported by Feng et al. has a counterpart in retrieval trees.
The result would be negative for the proposal if coreference-resolved names match the placeholder setting on both the renamed and original documents. It would also be negative if parsing delexicalized text costs more than masking gains. Either outcome would still settle which entity view discourse indexes should use.
References
- Teaching Machines to Read and Comprehend
- Knowledge Enhanced Event Causality Identification with Mention Masking Generalizations
- The Impact of Deep Hierarchical Discourse Structures in the Evaluation of Text Coherence
- Corruption Is Not All Bad: Incorporating Discourse Structure Into Pre-Training via Corruption for Essay Scoring
- Beyond Chunking: Discourse-Aware Hierarchical Retrieval for Long Document Question Answering
- DISRetrieval: Harnessing Discourse Structure for Long Document Retrieval
- Disco-RAG: Discourse-Aware Retrieval-Augmented Generation
- EnSI-RAG: Entity-Structure-Indexed Retrieval-Augmented Generation for Long-Document Question Answering
- RADIANT: Retrieval AugmenteD entIty-context AligNmenT - Introducing RAG-ability and Entity-Context Divergence
- Discourse Relation-Enhanced Neural Coherence Modeling
- The NarrativeQA Reading Comprehension Challenge
- Late Chunking: Contextual Chunk Embeddings Using Long-Context Embedding Models
- Landmark Embedding: A Chunking-Free Embedding Method For Retrieval Augmented Long-Context Large Language Models