The DOI matches its Crossref record.
xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token
Open accessAbstract
This paper introduces xRAG, an innovative context compression method tailored for retrieval-augmented generation. xRAG reinterprets document embeddings in dense retrieval--traditionally used solely for retrieval--as features from the retrieval modality. By employing a modality fusion methodology, xRAG seamlessly integrates these embeddings into the language model representation space, effectively eliminating the need for their textual counterparts and achieving an extreme compression rate. In xRAG, the only trainable component is the modality bridge, while both the retriever and the language model remain frozen. This design choice allows for the reuse of offline-constructed document embeddings and preserves the plug-and-play nature of retrieval augmentation. Experimental results demonstrate that xRAG achieves an average improvement of over 10% across six knowledge-intensive tasks, adaptable to various language model backbones, ranging from a dense 7B model to an 8x7B Mixture of Experts configuration. xRAG not only significantly outperforms previous context compression methods but also matches the performance of uncompressed models on several datasets, while reducing overall FLOPs by a factor of 3.53. Our work pioneers new directions in retrieval-augmented generation from the perspective of multimodality fusion, and we hope it lays the foundation for future efficient and scalable retrieval-augmented systems
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
RAG reduces context length by selecting relevant code snippets from the repository context, but merely relies on text similarities and may overlook implicit dependencies within the context.
“Retrieval-augmented generation (RAG) [25] reduce context length by selecting relevant code snippets from the repository context, but it merely rely on text similarities, and may overlook implicit dependencies within the context.”
From LongCodeZip: Compress Long Context for Code Language Models (2025) · cites this paper as [25]
The Introduction (page unavailable) describes RAG as retrieving relevant documents and says dense retrievers use embeddings learned from question–document pairs. It does not describe selecting code snippets from a repository, establish that RAG reduces the length of repository context, or say that reliance on text similarity causes it to overlook implicit dependencies. The paper instead presents xRAG as the context-compression method. (LLM, conf=0.82)
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
The publisher hasn’t deposited this paper’s reference list.
Research works printed but not linked: 18
- Zeyuan Allen-Zhu and Yuanzhi Li. Towards understanding ensemble, knowledge distillation and self-distillation in deep learning. arXiv preprint arXiv:2012.09816, 2020. · arXiv
- Akari Asai, Sewon Min, Zexuan Zhong, and Danqi Chen. Retrieval-based language models and applications. In Yun-Nung (Vivian) Chen, Margot Margot, and Siva Reddy, editors, Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 6: Tutorial Abstracts), pages 41-46, Toronto, Canada, July 2023. Association for Computational Linguistics.
- David Beauchemin, Zachary Gagnon, and Ricahrd Khoury. Quebec automobile insurance question-answering with retrieval-augmented generation. arXiv preprint arXiv:2410.09623, 2024. · arXiv
- Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. Semantic parsing on freebase from question-answer pairs. In Proceedings of the 2013 conference on empirical methods in natural language processing, pages 1533-1544, 2013.
- Bogdan Gliwa, Iwona Mochol, Maciej Biesek, and Aleksander Wawer. Samsum corpus: A human-annotated dialogue dataset for abstractive summarization. In Proceedings of the 2nd Workshop on New Frontiers in Summarization. Association for Computational Linguistics, 2019.
- Ahmed Hussein, Mohamed Medhat Gaber, Eyad Elyan, and Chrisina Jayne. Imitation learning: A survey of learning methods. ACM Computing Surveys (CSUR), 50(2):1-35, 2017.
- Kelvin Jiang, Dekun Wu, and Hui Jiang. FreebaseQA: A new factoid QA data set matching trivia- style question-answer pairs with Freebase. In Jill Burstein, Christy Doran, and Thamar Solorio, editors, Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 318-323, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics.
- Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. PubMedQA: A dataset for biomedical research question answering. In Kentaro Inui, Jing Jiang, Vincent Ng, and Xiaojun Wan, editors, Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Lan- guage Processing (EMNLP-IJCNLP), pages 2567-2577, Hong Kong, China, November 2019. Association for Computational Linguistics.
- Jiho Kim, Sungjin Park, Yeonsu Kwon, Yohan Jo, James Thorne, and Edward Choi. Factkg: Fact verification via reasoning on knowledge graphs. arXiv preprint arXiv:2305.06590, 2023. · arXiv
- Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7, 2019.
- Yucheng Li, Bo Dong, Frank Guerin, and Chenghua Lin. Compressing context to enhance inference efficiency of large language models. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 6342-6353, Singapore, December 2023. Association for Computational Linguistics.
- Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. Advances in neural information processing systems, 36, 2024.
- Xuan-Phi Nguyen, Shrey Pandit, Senthil Purushwalkam, Austin Xu, Hailin Chen, Yifei Ming, Zixuan Ke, Silvio Savarese, Caiming Xong, and Shafiq Joty. Sfr-rag: Towards contextually faithful llms. arXiv preprint arXiv:2409.09916, 2024. · arXiv
- Junhyuk Oh, Yijie Guo, Satinder Singh, and Honglak Lee. Self-imitation learning. In Interna- tional conference on machine learning, pages 3878-3887. PMLR, 2018.
- Anna Rogers, Olga Kovaleva, Matthew Downey, and Anna Rumshisky. Getting closer to ai complete question answering: A set of prerequisite real tasks. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 8722-8731, 2020.
- Yi Yang, Wen-tau Yih, and Christopher Meek. WikiQA: A challenge dataset for open-domain question answering. In Lluís Màrquez, Chris Callison-Burch, and Jian Su, editors, Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 2013- 2018, Lisbon, Portugal, September 2015. Association for Computational Linguistics.
- Jungmin Yun, Mihyeon Kim, and Youngbin Kim. Focus on the core: Efficient attention via pruned token compression for document classification. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Findings of the Association for Computational Linguistics: EMNLP 2023, pages 13617-13628, Singapore, December 2023. Association for Computational Linguistics.
- Xinping Zhao, Yan Zhong, Zetian Sun, Xinshuo Hu, Zhenyu Liu, Dongfang Li, Baotian Hu, and Min Zhang. Funnelrag: A coarse-to-fine progressive retrieval paradigm for rag. arXiv preprint arXiv:2410.10293, 2024. · arXiv
Cited by
Sorted by citations
Large Language Models for Information Retrieval: A Survey
Zhu, Y., Yuan, H., Wang, S., Liu, J., Liu, W., Deng, C., Chen, H., Liu, Z., Dou, Z., & Wen, J.-R. (2026) · ACM Transactions on Information Systems · doi:10.1145/3748304 · Cited by 225
Prompt Compression for Large Language Models: A Survey
Li, Z., Liu, Y., Su, Y., & Collier, N. (2025) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/2025.naacl-long.368 · Cited by 19
LongCodeZip: Compress Long Context for Code Language Models
Shi, Y., Qian, Y., Zhang, H., Shen, B., & Gu, X. (2025) · 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00020 · Cited by 7
Self-citationThe Compaction Cliff in Long-Running AI Agent Memory
Zerhoudi, S., Mitrović, J., & Granitzer, M. (2026) · ACM · doi:10.1145/3799682.3840567 · Cited by 4
Incorporating Q&A Nuggets Into Retrieval-Augmented Generation
Dietz, L., Li, B., Liu, G. K.-M., Ju, J.-H., Yang, E., Lawrie, D., Gantt, W. H., & Mayfield, J. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-21300-6_20 · Cited by 3
Hippocampo-neocortical interaction as compressive retrieval-augmented generation
Spens, E., & Burgess, N. (2026) · Nature Communications · doi:10.1038/s41467-026-74357-6 · Cited by 5
SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents
Wang, Y., Shi, Y., Yang, M., Zhang, R., He, S., Lian, H., Chen, Y., Ye, S., Cai, K., & Gu, X. (2026) · arXiv · doi:10.48550/arxiv.2601.16746 · Cited by 2
The Virtuous Cycle: AI-Powered Vector Search and Vector Search-Augmented AI
Wei, J., Xu, Q., & Yang, C. (2026) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde65706.2026.00309 · Cited by 2
RoutIR: Fast Serving of Retrieval Pipelines for Retrieval-Augmented Generation
Yang, E., Yates, A., Lawrie, D., Mayfield, J., & Adriaanse, T. V. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-21321-1_60 · Cited by 1
XProvence: Zero-Cost Multilingual Context Pruning for Retrieval-Augmented Generation
Mohamed, Y. H., Elhoseiny, M., Formal, T., & Chirkova, N. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-21300-6_38 · Cited by 2
Context-Efficient Retrieval with Factual Decomposition
Li, Y., Yunis, D., McAllester, D., & Zhou, J. (2025) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/2025.naacl-short.16 · Cited by 1
Li, Y., Li, Z., Hung, K., Wang, W., Xie, H., & Li, Y. (2025) · Natural Language Processing Journal · doi:10.1016/j.nlp.2025.100173 · Cited by 3
RetractedCompressing Sequences in the Latent Embedding Space: K-Token Merging for Large Language Models
Xu, Z., Harvill, J., Fan, Z., Sun, Y., Ding, H., & Wang, H. (2026) · arXiv · doi:10.48550/arxiv.2604.15153
Gopal, A. M., Pirbadian, A., Carlson, K. D., Lewis, M. A., & Tapson, J. (2026) · arXiv
The Attribution-Compression Frontier in Retrieval-Augmented Generation
Mody, D. (2026) · arXiv · doi:10.48550/arxiv.2609.14245
Kummer, C., Jurkschat, L., Färber, M., & Vahdati, S. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-21289-4_17 · Cited by 1
TCC: Using Topic Chains to Compress Prompts for Long Document Question Answering
Chen, S. F., Liang, B., Yan, J., Liu, L., Wang, H., Yu, Y., Wong, K., & Xu, R. (2026) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp55912.2026.11463253
Self-citationLeveraging large and small model collaboration for advanced automation in smart manufacturing
Chen, Q., Zhang, Y., Qin, W., Yao, S., Wang, P., Xu, P., & Wang, S. (2026) · Robotics and Computer-Integrated Manufacturing · doi:10.1016/j.rcim.2026.103313
HaS: Accelerating RAG Through Homology-Aware Speculative Retrieval
Peng, P., Lin, W., Wu, W., Wang, X., & Liu, Y. (2026) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde65706.2026.00143
Self-citationPriRAG: Privacy-Preserving Inference for Retrieval-Augmented Large Language Models
Wang, H., Huang, Y., Zheng, W., Fan, P., Nan, G., Wang, S., Xu, M., & Qi, T. (2026) · IEEE Transactions on Dependable and Secure Computing · doi:10.1109/tdsc.2026.3698487
ConCise: Training-Free Conclusion-Chain State Compression for Cost-Efficient Multi-Step RAG Services
Yan, K., Tang, Z., Wang, T., & Weijia Jia, B. (2026) · IEEE International Conference on Web Services (ICWS) · doi:10.1109/icws72778.2026.00092
Sui, Y., Li, C., Zhang, L., Song, D., & Liu, H. (2026) · ACM Transactions on Information Systems · doi:10.1145/3827609
Beyond Relevance: On the Relationship Between Retrieval and RAG Information Coverage
Samuel, S., Martin, A., Yang, E., Yates, A., Lawrie, D., Soboroff, I. M., Dietz, L., & Durme, B. V. (2026) · ACM SIGIR International Conference on Theory of Information Retrieval (ICTIR) · doi:10.1145/3805713.3820424 · Cited by 4
Incentivizing Retrieval-Augmented Generation via Inner Adaptive Context Selection
Cui, C., Shen, L., Fan, H., Zhu, S., Dai, F., & Li, B. (2026) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3805712.3809671
Latent Retrieval Augmented Generation
Zhou, S., Chen, J., Ling, R., Fan, T., & Wang, H. (2026) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3805712.3809870
LLM-Oriented Information Retrieval: A Denoising-First Perspective
Dai, L., Sun, L., Cao, F., Rao, Z., Yang, C., Liu, H., & Xiong, H. (2026) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3805712.3808544 · Cited by 2
Salomão, P. E. A., & Amador, L. A. (2026) · Nexus Science Review · doi:10.66104/5vd2bb95
Semantic-Driven Context Pruning for Arabic RAG: Quality-Preserving Compression Under Token Inflation
Taresh, A. A. R., & Zghair, N. A. K. (2026) · Information · doi:10.3390/info17100990
ABSP: Attention-Based Semantic Preservation for Faithful Context Compression
Shujaa, S., Dorleon, G., & Dang, T. T. (2026) · ACM/IEEE Joint Conference on Digital Libraries · doi:10.1145/3805696.3846019
Token Overflow: Detecting and Mitigating Failures in Soft Context Compression
Belikova, J., Rozhevskii, D., Svirin, D., Makarenko, M., & Panchenko, A. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-41546-2_1
A Conceptual Framework for Characterising and Analysing Retrieval–Augmented Generation Techniques
Igbekele Emmanuel, O., & Daramola, O. J. (2026) · Communications in computer and information science · doi:10.1007/978-3-032-42763-2_20
Zhu, C., Zhang, R., & Tian, F. (2026) · Electronics · doi:10.3390/electronics15204826
HyCo 2 : Hybrid Context Compression with Global Semantics and Local Evidence
Liao, H., Xu, Y., He, S., Zhao, J., & Liu, K. (2026) · ACM Transactions on Information Systems · doi:10.1145/3859881
Metadata
- Authors
- Cheng, X., Wang, X., Zhang, X., Ge, T., Chen, S.-Q., Wei, F., Zhang, H., & Zhao, D.
- Venue
- Advances in Neural Information Processing Systems 37
- Published
- 2024
- Pages
- 109487-109516
- ISSN
- 1049-5258 (ISSN-L)
- OpenAlex
- W4415795887
- Cited by
- 27
- References
- 0
- Citations by year
- 2026: 23 · 2025: 4
- FWCI
- 7.98
- Type
- conference paper
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- cc-by
- Locations
- neural information processing systems (publishedVersion)
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Information Systems › Information Retrieval and Search Behavior
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Multimodal Machine Learning Applications
- Keywords
- retrieval-augmented generation, context compression, token efficiency, large language models
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review