A Unified Model and Document Representation for On-Device Retrieval-Augmented Generation
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
Traditional Retrieval-Augmented Generation (RAG) approaches generally assume that retrieval and generation occur on powerful servers removed from the end user. While this reduces local hardware constraints, it introduces significant drawbacks: privacy concerns regarding data access, recurring maintenance and storage costs, increased latency, and the necessity of an internet connection. On-device RAG addresses these challenges by executing the entire pipeline locally, making it ideal for querying sensitive personal information such as financial documents, contact details, and medical history. However, on-device deployment necessitates a delicate balance between limited memory and disk space. Specifically, the context size provided to the generative model must be restricted to manage KV cache and attention memory usage, while the size of stored embeddings must be minimized to preserve disk space. In this work, we propose a unified model that compresses the RAG context and utilizes the same representations for retrieval. This approach minimizes disk utilization compared to using separate representations, while significantly reducing the context size required for generation. With an average of 1/10 of the context, our model matches the performance of a traditional RAG reader without increasing storage requirements compared to a multi-vector retrieval model. This approach represents the first model to unify retrieval and context compression using a shared model and representation. We believe this work will inspire further consolidation of distinct models to optimize on-device performance.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 39 of its 55 references that are in the map. First posted on arXiv 15 Apr 2026.
Builds on
39 of 55 references.
Closest ancestors · 3
Same direction, newest first
- 2025DIRC-RAG: Accelerating Edge RAG with Robust High-Density and High-Loading-Bandwidth Digital In-ReRAM Computation29 Oct
- 2025MobileRAG: A Fast, Memory-Efficient, and Energy-Efficient Method for On-Device RAG1 Jul
- 2024FlashRAG: A Modular Toolkit for Efficient Retrieval-Augmented Generation Research22 May
Other references · 36
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
24 more
- 2024Generative Representational Instruction Tuningcited by 227
- 2023PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPUcited by 210
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
- 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memorycited by 170
- 2020Improving Efficient Neural Ranking Models with Cross-Architecture Knowledge Distillationcited by 143
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Tokencited by 123
- 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Modelscited by 96
- 2024Learning to Compress Prompt in Natural Language Formatscited by 54
- 2022Retrieval-Enhanced Machine Learningcited by 46
- 2023LLMCad: Fast and Scalable On-device Large Language Model Inferencecited by 45
- 2024500xCompressor: Generalized Prompt Compression for Large Language Modelscited by 45
- 2023Discrete Prompt Compression with Reinforcement Learningcited by 42
- 2024Context Embeddings for Efficient Answer Generation in RAGcited by 26
- 2024TACO-RL: Task Aware Prompt Compression Optimization with Reinforcement Learningcited by 22
- 2025PISCO: Pretty Simple Compression for Retrieval-Augmented Generationcited by 20
- 2025Hard Negatives, Hard Lessons: Revisiting Training Data Quality for Robust Information Retrieval with LLMscited by 17
- 2025PyLate: Flexible Training and Retrieval for Late Interaction Modelscited by 17
- 2024OneGen: Efficient One-Pass Unified Generation and Retrieval for LLMscited by 14
- 2025GenAI at the Edge: Comprehensive Survey on Empowering Edge Devicescited by 14
- 2025GEM: Empowering LLM for both Embedding Generation and Language Understandingcited by 8
- 2025MNN-LLM: A Generic Inference Engine for Fast Large Language Model Deployment on Mobile Devicescited by 7
- 2025Enhancing RAG Efficiency with Adaptive Context Compressioncited by 7
- 2026Pocket RAG: On-Device RAG for First Aid Guidance in Offline Mobile Environmentcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Engineering the RAG Stack: A Comprehensive Review of the Architecture and Trust Frameworks for Retrieval-Augmented Generation Systems
- 2025Towards Trustworthy Retrieval Augmented Generation for Large Language Models: A Survey
- 2026RAGe: A Retrieval-Augmented Generation Evaluation Framework
- 2025Efficient Distributed Retrieval-Augmented Generation for Enhancing Language Model Performance
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systems
- 2026Towards Secure Retrieval-Augmented Generation: A Comprehensive Review of Threats, Defenses and Benchmarks
- 2026As We May Search
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers