TL;DR
RecGPT-Mobile is the first framework to deploy a lightweight Large Language Model (LLM) directly on mobile devices to handle real-time e-commerce recommendations. By translating local user behaviors into explicit search intents only when a meaningful shift in user interest is detected, it significantly improves recommendation metrics on Mobile Taobao while operating within strict on-device hardware constraints.
What Problem Does This Paper Address?
Modern e-commerce recommendation systems rely heavily on cloud-based architectures. While powerful, cloud inference introduces unavoidable communication latency and high server costs, making it difficult to capture a user's rapidly evolving intent in real time.
Deploying LLMs directly on-device (edge computing) would solve the latency problem and preserve data privacy. However, mobile devices are highly resource-constrained environments. Standard LLMs are far too massive and computationally expensive to run locally without draining the battery, exhausting memory, or causing severe UI lag. The authors tackle this challenge by figuring out how to compress, prompt, and selectively trigger an LLM on a mobile device without sacrificing recommendation quality.
Methods
The RecGPT-Mobile framework introduces three core components to make on-device LLM recommendation practical:
- Model Compression & Fine-Tuning: The system uses a highly compact base model (Qwen3-0.6B) optimized via Low-Rank Adaptation (LoRA) and quantization to minimize its memory footprint.
- Adaptive Prompt Construction: Instead of using static prompts, an on-device algorithm dynamically selects and prunes prompt templates. It evaluates the "marginal utility" of adding user behavior features against strict hardware budgets (latency, memory, and token limits) before feeding the prompt to the LLM.
- Mobile Inference Optimization (The Trigger Pipeline): To prevent the LLM from running on every single tap—which would destroy device performance—the authors designed an Intent Drift Detection mechanism. It calculates an intent drift score ($\Delta_{intent}$) using three metrics:
- Entropy Change: Measures whether the user's focus is narrowing or broadening.
- Jaccard Similarity: Assesses semantic overlap between consecutive behavior windows.
- Jensen-Shannon (JS) Divergence: Explicitly models distributional drift in user interaction tags.
The LLM is only triggered to generate a new intent query if this combined drift score crosses a predefined threshold ($\tau$).
[User Interactions] ➔ [Compute Drift Score] ➔ Is Drift > Threshold?
├── Yes ➔ Trigger On-Device LLM ➔ Update Retrieval
└── No ➔ Maintain Cache / Do Nothing
Datasets
The authors constructed a hybrid training dataset consisting of four distinct sample types to fine-tune the intent agent:
- Behavior-driven samples (60%): Extracted from historical Taobao purchase and search logs to link items to post-purchase queries.
- Co-purchase relation samples (20%): Generated from item-level co-occurrence matrices to capture complementary item signals.
- LLM-based augmentation (15%): Rule-based samples rewritten by a cloud GPT model to increase linguistic diversity while preserving core semantics.
- Human-annotated data (5%): A small, manually reviewed golden dataset used for quality calibration and evaluation.
For evaluation, the system was deployed in production for live online A/B testing on Mobile Taobao, interacting with millions of real-world users.
Key Insights and Ideas
- Selective Computation is Key: The biggest "aha moment" is that you don't need to run an LLM constantly to have an "LLM-powered" experience. Treating user intent as a state machine that only updates during statistical "drift" balances recommendation accuracy with device battery life.
- Small Models Can Reason Locally: The paper demonstrates that a sub-1-billion parameter model (0.6B), when fine-tuned with LoRA and quantized, retains the vast majority of the semantic and logical reasoning capabilities of its full-precision counterpart.
- Hardware-Aware Prompting: Prompt engineering isn't just about accuracy anymore; it's an optimization problem. Dynamically dropping tokens to fit a hardware budget allows the system to remain stable across low-end and high-end smartphones alike.
Key Results
- Online Production Metrics: In a one-month live A/B test on Mobile Taobao involving millions of users, RecGPT-Mobile achieved significant performance lifts across four major feed scenarios (Payment Success, Shipment Tracking, Shopping Cart, and Order List pages), averaging:
- +1.8% increase in Clicks
- +2.7% increase in Payments (PAY)
- +2.5% increase in Gross Merchandise Volume (GMV)
- Latency Stability: On-device inference latency remained highly stable across P50 to P95 percentiles over different dates, proving the framework is robust against real-world runtime fluctuations and device variance.
Limitations and Future Work
- Heuristic Hyperparameters: The weights for calculating intent drift ($\lambda_1, \lambda_2, \lambda_3$) and the trigger threshold ($\tau$) were determined via heuristic search. Ideally, these thresholds should dynamically adapt to individual user behavior patterns or specific device tiers.
- Narrow Intent Scope: The model currently translates implicit behaviors purely into explicit text search queries. Future work could expand this to generate richer user profiles or multi-modal intent representations (e.g., predicting visual or category-based preferences directly).
Summary updated