Robust Implementation of Retrieval-Augmented Generation on Edge-based Computing-in-Memory Architectures
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
Large Language Models (LLMs) deployed on edge devices learn through fine-tuning and updating a certain portion of their parameters. Although such learning methods can be optimized to reduce resource utilization, the overall required resources remain a heavy burden on edge devices. Instead, Retrieval-Augmented Generation (RAG), a resource-efficient LLM learning method, can improve the quality of the LLM-generated content without updating model parameters. However, the RAG-based LLM may involve repetitive searches on the profile data in every user-LLM interaction. This search can lead to significant latency along with the accumulation of user data. Conventional efforts to decrease latency result in restricting the size of saved user data, thus reducing the scalability of RAG as user data continuously grows. It remains an open question: how to free RAG from the constraints of latency and scalability on edge devices? In this paper, we propose a novel framework to accelerate RAG via Computing-in-Memory (CiM) architectures. It accelerates matrix multiplications by performing in-situ computation inside the memory while avoiding the expensive data transfer between the computing unit and memory. Our framework, Robust CiM-backed RAG (RoCR), utilizing a novel contrastive learning-based training method and noise-aware training, can enable RAG to efficiently search profile data with CiM. To the best of our knowledge, this is the first work utilizing CiM to accelerate RAG.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 20 of its 49 references that are in the map. First posted on arXiv 7 May 2024.
Builds on
20 of 49 references.
References · 20
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Mistral 7Bcited by 3,065
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2023Textbooks Are All You Needcited by 561
- 2017Efficient Processing of Deep Neural Networks: A Tutorial and Surveycited by 427
- 2023LaMP: When Large Language Models Meet Personalizationcited by 425
- 2021Positional Contrastive Learning for Volumetric Medical Image Segmentationcited by 56
- 2022News Category Datasetcited by 42
- 2019Device-Circuit-Architecture Co-Exploration for Computing-in-Memory Neural Acceleratorscited by 32
- 2023PockEngine: Sparse and Efficient Fine-tuning in a Pocketcited by 22
- 2023Enabling On-Device Large Language Model Personalization with Self-Supervised Data Selection and Synthesiscited by 20
8 more
- 2021Uncertainty Modeling of Emerging Device-based Computing-in-Memory Neural Accelerators with Application to Neural Architecture Searchcited by 17
- 2022SWIM: Selective Write-Verify for Computing-in-Memory Neural Acceleratorscited by 16
- 2023When Automated Assessment Meets Automated Content Generation: Examining Text Quality in the Era of GPTscited by 13
- 2024FL-NAS: Towards Fairness of NAS for Resource Constrained Devices via Large Language Modelscited by 9
- 2022CorrectNet: Robustness Enhancement of Analog In-Memory Computing for Neural Networks by Error Suppression and Compensationcited by 8
- 2023Improving Realistic Worst-Case Performance of NVCiM DNN Accelerators through Training with Right-Censored Gaussian Noisecited by 8
- 2022iMARS: An In-Memory-Computing Architecture for Recommendation Systemscited by 2
- 2023Compute-in-Memory based Neural Network Accelerators for Safety-Critical Systems: Worst-Case Scenarios and Protectionscited by 2
Built on by
Citing papers per year: 2024: 4; 2025: 4; 2026: 4.
12 papers.
- 2024Large Language Models have Intrinsic Self-Correction Abilitycited by 45
- 2024Empirical Guidelines for Deploying LLMs onto Resource-constrained Edge Devicescited by 17
- 2025REIS: A High-Performance and Energy-Efficient Retrieval System with In-Storage Processingcited by 4
- 2025TPU-Gen: LLM-Driven Custom Tensor Processing Unit Generatorcited by 2
- 2024NVCiM-PT: An NVCiM-assisted Prompt Tuning Framework for Edge LLMscited by 1
- 2024Tiny-Align: Bridging Automatic Speech Recognition and Large Language Model on the Edgecited by 1
- 2025DIRC-RAG: Accelerating Edge RAG with Robust High-Density and High-Loading-Bandwidth Digital In-ReRAM Computationcited by 1
- 2025CoSense-LLM: Semantics at the Edge with Cost- and Uncertainty-Aware Cloud-Edge Cooperationcited by 0
- 2026CiMRAG: CiM-Aware Domain-Adaptive and Noise-Resilient Retrieval-Augmented Generation for Edge-Based LLMscited by 0
- 2026CQ-CiM: Hardware-Aware Embedding Shaping for Robust CiM-Based Retrievalcited by 0
- 2026From Retrieved Context to Runtime Control: Adaptive Compression for Edge-based RAGcited by 0
- 2026MOMAT: Mixture of Multiple Atlases for Low-Power Jailbreak Defense of Quantized LLMscited by 0
- 2026MOMAT: Mixture of Multiple Atlases for Low-Power Jailbreak Defense of Quantized LLMs1 Oct 2026
- 2026From Retrieved Context to Runtime Control: Adaptive Compression for Edge-based RAG20 Aug 2026
- 2026CQ-CiM: Hardware-Aware Embedding Shaping for Robust CiM-Based Retrieval23 Feb 2026
- 2026CiMRAG: CiM-Aware Domain-Adaptive and Noise-Resilient Retrieval-Augmented Generation for Edge-Based LLMs27 Jan 2026
- 2025DIRC-RAG: Accelerating Edge RAG with Robust High-Density and High-Loading-Bandwidth Digital In-ReRAM Computation29 Oct 2025
- 2025CoSense-LLM: Semantics at the Edge with Cost- and Uncertainty-Aware Cloud-Edge Cooperation22 Oct 2025
- 2025REIS: A High-Performance and Energy-Efficient Retrieval System with In-Storage Processing19 Jun 2025
- 2025TPU-Gen: LLM-Driven Custom Tensor Processing Unit Generator7 Mar 2025
- 2024Tiny-Align: Bridging Automatic Speech Recognition and Large Language Model on the Edge21 Nov 2024
- 2024NVCiM-PT: An NVCiM-assisted Prompt Tuning Framework for Edge LLMs12 Nov 2024
- 2024Large Language Models have Intrinsic Self-Correction Ability21 Jun 2024
- 2024Empirical Guidelines for Deploying LLMs onto Resource-constrained Edge Devices6 Jun 2024
Similar, not cited
Close in wording, no citation either way
- 2025RAGO: Systematic Performance Optimization for Retrieval-Augmented Generation Serving
- 2026RAGe: A Retrieval-Augmented Generation Evaluation Framework
- 2025Tuning LLMs by RAG Principles: Towards LLM-native Memory
- 2024Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inference
- 2025Chain-of-Rank: Enhancing Large Language Models for Domain-Specific RAG in Edge Device
- 2024Accelerating Retrieval-Augmented Generation
- 2024EACO-RAG: Towards Distributed Tiered LLM Deployment using Edge-Assisted and Collaborative RAG with Adaptive Knowledge Update
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning