MobileRAG: A Fast, Memory-Efficient, and Energy-Efficient Method for On-Device RAG

Taehwan Park, Geonho Lee, Min-Soo KimarXiv 2025 · OpenReview

TL;DR

This paper introduces MobileRAG, a novel on-device RAG system designed for smartphones. It achieves significant improvements in speed, memory efficiency, and power consumption by introducing EcoVector for efficient vector search and Selective Content Reduction (SCR) to optimize language model input, enabling private and offline RAG capabilities.

What Problem Does This Paper Address?

Modern smartphones are increasingly powerful and store vast amounts of personal data. Users expect intelligent retrieval and analysis of this data, but traditional keyword search struggles with natural language queries. Retrieval-Augmented Generation (RAG) offers a solution by combining information retrieval with large language models (LLMs), but its application on mobile devices is severely hampered by limited memory, processing power, and battery life. Existing RAG and vector search methods, often designed for server environments with abundant resources, are too resource-intensive for mobile deployment. This prevents users from leveraging powerful AI capabilities on their personal data without compromising privacy by uploading it to the cloud.

Methods

MobileRAG tackles these challenges with two core innovations:

  • EcoVector: This is a mobile-friendly vector search algorithm designed to drastically reduce memory footprint and CPU usage. It achieves this by partitioning large datasets into smaller clusters and only loading necessary parts of the index into memory at a time. It uses a hierarchical approach, first searching a graph of cluster centroids (stored in RAM) to quickly identify relevant clusters, and then loading and searching the inverted lists (stored on disk) for those specific clusters. This selective loading and unloading of data from disk to RAM is key to its efficiency.
  • Selective Content Reduction (SCR): Even after retrieving relevant documents, passing their full content to a mobile-friendly language model (sLM) can still be too slow and power-hungry. SCR addresses this by processing retrieved documents in a more intelligent way. It first splits documents into sentences and then uses sliding windows to create overlapping segments. It then recalculates the similarity of these segments to the query and selects the most relevant ones, merging them with a small context extension. This significantly reduces the input token count for the sLM without sacrificing accuracy. Finally, it reorders these condensed documents based on their relevance, acting as a lightweight re-ranker.

Datasets

The paper evaluates its methods using the following datasets:

  • ANNS Datasets:
    • SIFT (1,000,000 vectors, 128 dimensions)
    • NYTimes (290,000 vectors, 256 dimensions)
  • QA Benchmarks:
    • SQUAD (87,599 queries, 1,000 dimensions)
    • HotpotQA (90,447 queries, 384 dimensions)
    • TriviaQA (96,000 queries, 384 dimensions)

Key Insights and Ideas

  • On-device RAG is feasible and valuable: The paper demonstrates that a full RAG pipeline can be effectively implemented on a smartphone, unlocking private and offline access to personal data.
  • Partitioning is key for mobile vector search: EcoVector's success hinges on breaking down the problem of large index management into smaller, manageable parts that can be loaded and unloaded from disk as needed, a crucial strategy for memory-constrained devices.
  • Intelligent content reduction beats naive compression: SCR's approach of selecting and merging relevant segments, rather than simply truncating or compressing entire documents, preserves accuracy while drastically reducing input size for the sLM.
  • Reordering as a lightweight re-ranker: The final step of SCR, reordering condensed documents by relevance, provides a significant accuracy boost without the computational overhead of a dedicated re-ranking model.
  • Trade-offs are manageable: While EcoVector involves disk I/O and SCR involves some re-computation, these are shown to be far more efficient than the CPU-intensive operations of traditional methods on mobile devices.

Key Results

MobileRAG significantly outperforms existing methods on mobile devices:

  • Search Latency: Achieves 1.72–8.89 times speedup compared to baselines.
  • TTFT (Time to First Token): Improves by 1.18–1.41 times.
  • Memory Consumption: Reduced by 10.7–54.5%.
  • Power Consumption: Decreased by 24.4–40.2%.
  • Accuracy: Maintains comparable accuracy to advanced RAG methods, even outperforming some baselines, especially on QA tasks.
  • SCR Effectiveness: Reduces token count by up to 42% (SQUAD), 7% (HotpotQA), and 31% (TriviaQA) without significant accuracy loss.
  • Battery Impact: Real-world tests show prompt evaluation speeds of up to 90 tokens/s and generation speeds of up to 14.5 tokens/s, with minimal battery drain per 1k tokens.

Limitations and Future Work

  • Limitations:
    • While EcoVector's update mechanism is efficient, insertion latency is higher than pure IVF methods due to graph updates.
  • The paper acknowledges that the SCR method involves some re-computation for sentence-level embeddings, which adds a small overhead.
  • Future Work:
    • Explore advanced NPU/GPU co-processing for further acceleration.
  • Investigate various embedding strategies to enhance MobileRAG's viability.
  • The authors suggest that further optimizing the SCR parameters and exploring different LLM architectures could lead to even greater efficiency.

Summary updated

Abstract

Retrieval-Augmented Generation (RAG) has proven effective on server infrastructures, but its application on mobile devices is still underexplored due to limited memory and power resources. Existing vector search and RAG solutions largely assume abundant computation resources, making them impractical for on-device scenarios. In this paper, we propose MobileRAG, a fully on-device pipeline that overcomes these limitations by combining a mobile-friendly vector search algorithm, \textit{EcoVector}, with a lightweight \textit{Selective Content Reduction} (SCR) method. By partitioning and partially loading index data, EcoVector drastically reduces both memory footprint and CPU usage, while the SCR method filters out irrelevant text to diminish Language Model (LM) input size without degrading accuracy. Extensive experiments demonstrated that MobileRAG significantly outperforms conventional vector search and RAG methods in terms of latency, memory usage, and power consumption, while maintaining accuracy and enabling offline operation to safeguard privacy in resource-constrained environments.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SQuAD 1.1 · SQuADMobileRAGTTFT5.01 s-2.16 vs baselinedevice=Galaxy S24 · params=0.5B · backbone=Qwen-2.5 0.5B
Source quote
L552: 56.5 │ 5.01 │ 24.71
HotpotQAMobileRAGTTFT11.79 s-1.75 vs baselinedevice=Galaxy S24 · params=0.5B · backbone=Qwen-2.5 0.5B
Source quote
L553: 27.7 │ 11.79 │ 55.21
TriviaQAMobileRAGTTFT10.59 s-3.51 vs baselinedevice=Galaxy S24 · params=0.5B · backbone=Qwen-2.5 0.5B
Source quote
L554: 48.8 │ 10.59 │ 51.30
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
SQuAD 1.1 · SQuADAdvanced RAG baselineTTFT7.17 sdevice=Galaxy S24 · params=0.5B · backbone=Qwen-2.5 0.5B
Source quote
L548: 56.6 │ 7.17 │ 34.43
HotpotQAAdvanced RAG baselineTTFT13.54 sdevice=Galaxy S24 · params=0.5B · backbone=Qwen-2.5 0.5B
Source quote
L549: 27.9 │ 13.54 │ 63.11
TriviaQAAdvanced RAG baselineTTFT14.10 sdevice=Galaxy S24 · params=0.5B · backbone=Qwen-2.5 0.5B
Source quote
L550: 48.8 │ 14.10 │ 67.09
BibTeX
@misc{park2025mobilerag,
  author = {Taehwan Park and Geonho Lee and Min-Soo Kim},
  title = {{MobileRAG: A Fast, Memory-Efficient, and Energy-Efficient Method for On-Device RAG}},
  year = {2025},
  eprint = {2507.01079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.01079},
}
Figure