# RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval

**Authors:** Parth Sarthi, Salman Abdullah, Aditi Tuli, Shubh Khanna, Anna Goldie, Christopher D. Manning  
**arXiv:** [2401.18059](https://arxiv.org/abs/2401.18059)  
**Date:** 2024-01-31  
**Summary page:** https://www.summarizepaper.com/en/paper/2401.18059v1/

## Key points

- Retrieval-augmented language models (LMs) have limitations in understanding overall document context holistically.
- RAPTOR (Recursive And Progressive Tree Of Retrievals) is a novel approach that addresses this limitation.
- RAPTOR utilizes text summarization techniques to construct a tree with different levels of summarization from the bottom up.
- RAPTOR retrieves from this tree at inference time, enabling a more comprehensive understanding of the document context.
- Controlled experiments show that RAPTOR significantly outperforms existing methods on various tasks, especially when coupled with GPT-4 for complex multi-step reasoning.
- RAPTOR also outperforms current retrieval augmentation methods when applied to collections of long documents.
- RAPTOR enhances the relevance and effectiveness of retrieved information by leveraging text summarization techniques at different scales.
- The code for RAPTOR will be released publicly to facilitate further research and development in this area.

## Summary

, , , , 


Retrieval-augmented language models (LMs) have shown promise in adapting to changes in the world state and incorporating long-tail knowledge. However, existing methods often retrieve only short contiguous chunks from a retrieval corpus, which limits their ability to understand the overall document context holistically. In this paper, we propose a novel approach called RAPTOR (Recursive And Progressive Tree Of Retrievals) that addresses this limitation. RAPTOR utilizes text summarization techniques to recursively embed, cluster, and summarize chunks of text, constructing a tree with different levels of summarization from the bottom up. This allows for information integration across lengthy documents at different levels of abstraction. At inference time, our RAPTOR model retrieves from this tree, enabling a more comprehensive understanding of the document context. We conducted controlled experiments comparing RAPTOR with traditional retrieval-augmented LMs using three language models: UnifiedQA, GPT-3, and GPT-4. The results demonstrate that retrieval with recursive summaries significantly outperforms existing methods on various tasks. In particular, when coupled with GPT-4, RAPTOR achieves state-of-the-art performance on question-answering tasks involving complex multi-step reasoning. For example, on the QuALITY benchmark, RAPTOR improves the best performance by 20% in absolute accuracy. In addition to its superior performance on QA tasks, RAPTOR also outperforms current retrieval augmentation methods when applied to collections of long documents. By leveraging text summarization techniques to provide context at different scales, RAPTOR enhances the relevance and effectiveness of retrieved information. Our work contributes to the field by demonstrating the effectiveness of using text summarization for retrieval augmentation and showcasing its potential in handling long documents. We will release the code for RAPTOR publicly to facilitate further research and development in this area. Related work has explored the need for retrieval systems despite advances in hardware and algorithms that enable models to handle longer contexts. Models often struggle to utilize long-range context effectively and experience diminishing performance as context length increases. Retrieval systems play a crucial role in selecting the most relevant information for knowledge-intensive tasks, especially when important information is embedded within lengthy contexts. Existing retrieval methods primarily rely on standard approaches such as chunking corpora and encoding with BERT-based retrievers. However, this approach may not capture the complete semantic depth of the text. Reading extracted snippets from technical or scientific documents can lack important context, making them challenging to interpret accurately. To address these limitations, our RAPTOR model incorporates recursive summarization techniques that provide a condensed view of documents while preserving granular details. This approach enables more focused engagement with the content and facilitates capturing distant interdependencies within the text that may be overlooked by other methods. In summary, our work introduces RAPTOR, a retrieval-augmented language model that leverages recursive summarization to enhance contextual understanding and improve performance on various tasks. The experiments demonstrate its superiority over existing methods and highlight its potential for handling long documents effectively. We will make the code for RAPTOR publicly available to facilitate further research in this area.
