Abstract
Retrieval-Augmented Generation (RAG) is an effective solution to overcome the limitations of Large Language Models (LLMs) in terms of specific-domain knowledge and timely information updates. However, current RAG methods typically respond to queries based on isolated segments, lacking the ability to integrate information within the same document. This undermines performance in real-world tasks requiring coherent understanding across an entire document. Notably, the human brain naturally integrates and summarizes prior knowledge upon reading a given text, progressively formulating a comprehensive understanding. Motivated by this cognitive process, we propose the Hierarchical Two-Stage Summarization-based Information Retrieval (HTSIR) method, which preprocesses the corpus prior to retrieval, summarizes continuous texts to obtain integrated information, and constructs a retrieval tree with varying summary granularities. The retrieved information is then processed by a Reranker based on the current question to serve as a context for LLMs. Additionally, as single-step summarization is often imprecise in query-based summarization tasks, we further apply a Refinement module, allowing LLMs to reflect and revise their output to achieve the final result. By combining HTSIR with GPT-4o mini, we achieve state-of-the-art results on complex question tasks across four long-text datasets (NarrativeQA, QASPER, QuALITY, and QMSum), achieving an improvement of about 6 points on the Question Answering (QA) task in QuALITY-HRAD.
Introduction
Standard Retrieval-Augmented Generation (RAG) systems often suffer from a "tunnel vision" problem. By splitting long documents into isolated, fixed-length chunks, these systems excel at locating specific facts but fail to grasp the holistic context required for complex queries, such as analyzing character development in a novel or summarizing a research paper's methodology. This fragmentation ignores the document's inherent logical structure and often leads to the "lost in the middle" phenomenon, where critical information is overlooked by the LLM when it is buried in the center of a long context window.
Methodology
To address these limitations, we introduce HTSIR (Hierarchical Two-Stage Summarization-based Information Retrieval). This framework mimics the human cognitive process of building a comprehensive understanding through progressive summarization.
HTSIR Tree Construction
The core of the method is a three-layered retrieval tree designed to preserve document structure:
- Root Nodes (S): Summaries of entire sections (e.g., an entire "Results" section).
- Intermediate Nodes (P): Summaries of groups of consecutive text chunks.
- Leaf Nodes (X): The raw, fine-grained text segments.
Retrieval and Refinement
Unlike traditional top-down tree traversals, HTSIR utilizes a Collapsed Tree Search strategy, treating all nodes (roots, intermediates, and leaves) as equal candidates in a single pool. This allows the retriever to dynamically mix broad summaries and specific details based on the query's needs. The process is further enhanced by a two-stage reranking phase and a feedback-driven refinement module, where the LLM reflects on and revises its initial output to ensure precision.
Results and Discussion
HTSIR was evaluated on four diverse long-text benchmarks: NarrativeQA (stories), QASPER (academic papers), QuALITY (long articles), and QMSum (meeting summaries). The results demonstrate significant performance gains over existing state-of-the-art (SOTA) methods:
- QuALITY-HRAD: Achieved 62.50% accuracy, a 6-point boost over standard retrieval methods.
- NarrativeQA: Reached an F1 score of 37.4, substantially outperforming HippoRAG (25.2) and GraphRAG (20.9).
- Structural Awareness: Leveraging the actual document structure proved more effective than semantic-only clustering methods like RAPTOR, as it preserves the author's intended logic.
The system's "Collapsed Tree Strategy" effectively avoids error propagation common in traditional hierarchical structures, while the multi-granularity approach ensures that the LLM receives both high-level context and specific evidence. These benefits were consistent across both closed-source (GPT-4o mini) and open-source (Llama-3-8B) models.
Conclusion
HTSIR provides a robust and efficient framework for long-context RAG by integrating document structure into the retrieval process. While it involves an upfront cost for summary generation, it avoids the high computational overhead of graph-based methods. Future research will explore dynamic layer scaling and extending the hierarchy to multi-document corpora.
Summary updated