← Latest papers
🤖 AI

SmartRAG: Native Graph-Based RAG for Mobile Device

SmartRAG is a fully on-device framework that achieves competitive multi-hop reasoning performance on commodity smartphones by decomposing intelligence into coordinated modules centered on a continually learnable entity recognizer and a three-layer knowledge graph, thereby enabling efficient, private, and offline LLM assistance without requiring massive model compression.

Original authors: Zhihan Jiang, Meng Li, Shenghao Liu, Keran Li, Ruiben Zhou, Wei Wang, Xianjun Deng, Shuai Wang, Haipeng Dai

Published 2026-07-21
📖 7 min read🧠 Deep dive

Original authors: Zhihan Jiang, Meng Li, Shenghao Liu, Keran Li, Ruiben Zhou, Wei Wang, Xianjun Deng, Shuai Wang, Haipeng Dai

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a super-smart robot friend living inside your phone. This friend, powered by a "Large Language Model" (LLM), can chat, write stories, and answer almost anything. But there's a catch: to be truly helpful, this robot needs to remember your life—your photos, your notes, your private conversations—without sending that data to a giant cloud server where it might get lost or stolen. This is the world of on-device AI: keeping the brain and the memory right here in your pocket for privacy and speed.

However, building a brain that fits in a phone is like trying to pack a library into a backpack. The biggest challenge is memory. A standard robot brain tries to memorize everything inside its own "parametric memory" (its internal weights), but that's too heavy for a phone and can't be updated easily when you learn something new. To fix this, scientists use RAG (Retrieval-Augmented Generation). Think of RAG as giving the robot a notebook. When asked a question, it doesn't just guess; it flips through its notebook to find the facts, then writes the answer. The problem is, most notebooks are just piles of loose pages. If you ask a complex question that requires connecting three different facts from three different pages, a pile of loose pages is hard to navigate. This paper asks: How do we build a smart, organized notebook for a phone that can handle complex puzzles without needing a supercomputer to run it?


The Problem: The "Big Brain" vs. The "Small Phone"

For a while, the solution to making AI smarter seemed to be simple: just make the brain bigger. But the authors of this paper, SmartRAG, argue that this is the wrong approach for mobile devices. You can't just shrink a giant cloud brain down to fit in a phone; it's too heavy, uses too much battery, and takes too long to think.

They suggest a different idea: instead of one giant brain trying to do everything, let's build a team of specialized, lightweight workers. They call this SmartRAG. It's a system designed to run entirely on your smartphone, organizing your personal data into a structured "knowledge graph" (think of it as a web of connected facts) rather than a messy pile of text.

The Team: Four Specialized Workers

SmartRAG splits the job of being a smart assistant into four distinct roles, each handled by a different module:

  1. Perception (The Detective): This is the team member who reads your texts and notes. It uses a special tool called EvoNER to spot important names and facts. The cool part? EvoNER is "continually learnable." Imagine a detective who learns new types of clues every day without needing to go back to school. If you mention a new type of entity (like a new slang word or a niche hobby), EvoNER can learn to recognize it on the fly, updating its own "label inventory" without needing to retrain the whole massive brain.
  2. Memory (The Librarian): Once the Detective finds a fact, the Librarian puts it away. But instead of just filing it in a drawer, the Librarian builds MRGraph, a three-layer knowledge graph.
    • Layer 1 links facts to the exact paragraph they came from (so you know where the info is from).
    • Layer 2 groups similar facts together into clusters (like a "Topic" folder).
    • Layer 3 keeps the raw text ready for quick reading.
      This structure ensures that when you ask a question, the system knows exactly how facts connect, preserving the "provenance" (the source) of every piece of information.
  3. Focus (The Navigator): When you ask a question, the Navigator doesn't just search for keywords. It uses a hybrid pipeline. It looks at the web of connections (the graph), matches words (lexical search), and understands meaning (semantic search). If you ask a multi-step question like "Who wrote the book that the director of the movie I liked is famous for?", the Navigator can trace the path through the graph, hopping from one fact to the next, rather than just guessing.
  4. Thinking (The Brain): This is the only part that uses the heavy-duty Large Language Model (LLM). But here's the trick: the LLM is only called for the "high-value" jobs. It doesn't read every single page. It only steps in to plan the search, label new types of facts, or write the final answer. By keeping the LLM on a tight leash, the system saves massive amounts of battery and memory.

How It Works in Real Life

The researchers tested this system on real smartphones (specifically OnePlus devices with Snapdragon processors). They used a very small, efficient version of an LLM (only 1.7 billion parameters, which is tiny compared to the massive models used in the cloud).

They compared SmartRAG against other methods:

  • LLM-only: Just a small brain trying to remember everything.
  • Naïve RAG: A small brain with a messy pile of papers to search.
  • Cloud-sized models: Huge brains (up to 32 billion parameters) that can't run on a phone.

The Results:
On complex questions that required connecting multiple pieces of evidence (multi-hop reasoning), SmartRAG with its tiny 1.7B brain performed competitively with, and in some cases better than, the massive cloud models.

  • On the MultiHopQA benchmark, SmartRAG achieved a correctness score of 50.17%, significantly beating the 1.7B "LLM-only" version (which scored 22.00%) and surpassing the 32B model (which scored 31.54%).
  • However, on TriviaQA (a benchmark for direct factoid questions), the 32B model still held the advantage, scoring 51.45% compared to SmartRAG's 50.00%.
  • Overall, SmartRAG matched or exceeded the performance of much larger models on knowledge-intensive tasks like NQ, HotpotQA, and MultiHopQA, while running entirely on the phone to keep data private. The response time was practical, though the authors note that the "Time to First Token" (how long it takes to start speaking) was around 36.9 seconds for the full process on the 1.7B model, mostly because it had to search the memory first.

What They Ruled Out

The paper explicitly argues against a few common ideas:

  • Just compressing the cloud: You can't simply take a giant cloud-based graph system and shrink it down to a phone; the math and energy costs are too high.
  • LLM-native extraction: They found that using the big LLM to do all the work of organizing the memory (extracting facts and building the graph) is too slow and energy-hungry for a phone. The "Perception" module must be a lightweight, trainable component, not the heavy LLM.
  • Naïve Vector Search: Relying only on simple "semantic similarity" (finding words that sound alike) isn't enough for complex questions that need logical connections.

The Verdict

The authors suggest that the future of on-device AI isn't about making the brain bigger, but about making the system smarter. By separating the job of "noticing facts" (Perception), "organizing facts" (Memory), "finding facts" (Focus), and "thinking about facts" (Thinking), SmartRAG shows that a small, efficient phone can handle complex reasoning tasks that usually require a supercomputer.

While the system isn't perfect yet (it still struggles a bit with very specific topics like AI and Politics, and the speed could be faster), the experiment proves that a structured, graph-based approach is a viable path for privacy-focused, offline AI assistants. It suggests that with the right architecture, your phone's personal assistant could soon be as smart as a cloud giant, but with all your secrets staying right in your pocket.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →