SmartRAG: Native Graph-Based RAG for Mobile Device

Zhihan Jiang, Meng Li, Shenghao Liu, Keran Li, Ruiben Zhou, Wei Wang, Xianjun Deng, Shuai Wang, Haipeng DaiarXiv 2026

TL;DR

SmartRAG is a fully on-device, graph-based Retrieval-Augmented Generation (RAG) framework designed to bring complex multi-hop reasoning to resource-constrained mobile devices. By decoupling high-frequency knowledge extraction from the core large language model (LLM) using a continually learnable entity recognizer and a structured three-layer knowledge graph, SmartRAG allows a quantized 1.7B-parameter model running on a commodity smartphone to match the performance of cloud models up to 18$\times$ larger.

What Problem Does This Paper Address?

Deploying LLMs as personal assistants directly on mobile devices is highly desirable for privacy, offline availability, and low latency. However, lightweight, edge-deployable models (typically under 4B parameters) lack the extensive parametric memory required for knowledge-intensive tasks and continuous user personalization.

While standard Retrieval-Augmented Generation (RAG) helps by fetching relevant text snippets, it relies on naive vector similarity, which struggles with complex queries requiring cross-segment evidence aggregation and multi-step reasoning. On-cloud systems solve this using Graph RAG, but these pipelines rely heavily on massive models (tens of billions of parameters) to construct and explore knowledge graphs—an approach that completely breaks down under strict mobile hardware, memory, and thermal budgets.

Methods

SmartRAG shifts the burden of structured knowledge capability from model scale to clever system architecture. It divides the on-device assistant into four coordinated modules:

  1. Perception: Instead of using a heavy LLM to extract information, SmartRAG introduces EvoNER (Evolutionary Named Entity Recognition), a lightweight, span-based component. EvoNER uses a novel reserved-label mechanism and teacher-guided distillation to incrementally learn new, unseen entity types over time without retraining the backbone LLM or forgetting old categories.
  2. Memory: Extracted entity-relation triplets are stored in MRGraph, a three-layer, provenance-preserving knowledge graph. It explicitly links structured facts back to their source text paragraphs, ensuring everything remains traceable.
  3. Focus: At query time, a hybrid retrieval pipeline combines plan-guided multi-hop text retrieval, graph traversal (using Personalized PageRank to find important bridge entities), and a full-document fallback mechanism.
  4. Thinking: The resource-heavy on-device LLM is treated as a sparse semantic engine, invoked only for high-value operations: labeling new entity clusters, planning multi-hop retrieval paths, and synthesizing the final answer.
Figure 1: Overview of the SmartRAG architecture. Incoming text flows through Perception (EvoNER + relation extraction) into Memory (MRGraph), which is queried by Focus (hybrid retrieval) and consumed by Thinking (LLM-driven planning and answer generation). Dashed arrows indicate asynchronous background processes (clustering, incremental training).

Datasets

The authors evaluated SmartRAG across four standard open-domain and multi-hop question-answering benchmarks:

  • TriviaQA and Natural Questions (NQ) (for general knowledge-intensive QA)
  • HotpotQA and MultiHopQA (for complex, multi-step reasoning)

Additionally, they curated a self-constructed dataset derived from MultiHopQA and HotpotQA to train a task-specific LoRA decomposer used by the Focus module for query planning.

Key Insights and Ideas

  • System Architecture > Model Scale: Graph RAG doesn't inherently require a massive model. By offloading high-frequency graph writing to lightweight, trainable components (like EvoNER) and reserving the LLM for sparse, high-level control, structured memory becomes viable on edge devices.
  • The Prefilling Bottleneck: Latency profiling revealed a surprising "aha" moment: the primary bottleneck in mobile RAG isn't the decoding speed or the question decomposition step. Instead, it is the long prefilling stage where the model processes the lengthy, retrieved context before generating the first token.
  • Robustness of Persistent Memory: Unlike other edge RAG methods that rely on one-shot denoising or complex prompt filtering, SmartRAG's persistent structured graph acts as a stabilizing anchor, making it significantly more robust across different small model families.

Key Results

Evaluated on real commodity smartphones (OnePlus 13 and 15), SmartRAG with a quantized Qwen3-1.7B backbone consistently outperformed competitive mobile RAG baselines like InstructRAG, StableRAG, and TruthfulRAG.

Table 1: Correctness (Cr, %) and F1 (%) on four QA benchmarks. SmartRAG uses a quantized Qwen3-1.7B backbone running entirely on-device. Models ≥8B are evaluated on A6000 as capacity references. Within each base-model block, the best result in each column is shown in bold and the second-best in underlined.

Most notably, on the NQ, HotpotQA, and MultiHopQA datasets, SmartRAG matched or exceeded the performance of standalone, unaugmented models like Qwen3-32B and Ministral3-14B, effectively closing the gap with models up to 18$\times$ its size. Ablation studies confirmed that the structured memory module (MRGraph) was the single most critical component; removing it caused the largest drop in answer accuracy (Token-F1 score dropped from 0.5484 to 0.4151).

Limitations and Future Work

Despite its strong performance, the authors note several areas for improvement:

  1. Heuristic Planning: The multi-hop retrieval planner relies on heuristics and does not uniformly benefit every type of question.
  2. Prefilling Latency: On-device QA latency remains high for small models when context windows are full, highlighting a need for advanced context and evidence compression techniques.
  3. Domain Specifics: Typed NER accuracy remains relatively low in specialized domains like AI and Politics.
  4. Language Constraints: The current evaluation and implementation are limited strictly to English-language benchmarks, leaving multilingual adaptation for future work.

Summary updated

BibTeX
@misc{jiang2026smartrag,
  author = {Zhihan Jiang and Meng Li and Shenghao Liu and Keran Li and Ruiben Zhou and Wei Wang and Xianjun Deng and Shuai Wang and Haipeng Dai},
  title = {{SmartRAG: Native Graph-Based RAG for Mobile Device}},
  year = {2026},
  eprint = {2607.14661},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.14661},
}
Figure