TL;DR
Ever notice how your phone seems to lag right when you're rushing to open a transit or payment app? If mobile systems could truly understand your daily routines rather than just memorizing button clicks, they could preload the exact app you need before you even tap it. LLMApp achieves this by teaching Large Language Models (LLMs) to compress noisy usage logs and reason through time, location, and human habits to predict both which app you'll open next and how much data it will consume.
What Problem Does This Paper Address?
Predicting mobile app usage allows operating systems to preload apps into memory (eliminating launch delays) and helps network operators anticipate data traffic spikes. Historically, prediction models relied on Markov chains, recurrent networks, or dynamic graphs to spot statistical co-occurrences—essentially betting that if you opened App A, App B usually follows.
However, human behavior isn't just a math sequence; it’s driven by real-world semantics. Traditional numerical models struggle to connect the dots that "finishing an office calendar event + 1:00 PM + standing in a canteen" means "lunchtime," making a payment app the obvious next move. While LLMs possess this exact kind of common-sense reasoning, applying them directly to app logs hits three walls:
- Fragmented, noisy logs: App histories are filled with rapid, meaningless app switches that bloat token counts and drown out actual habits.
- Modality mismatch: Raw coordinates, timestamps, and megabytes of traffic aren't natural language.
- Complex behavioral logic: Directly mapping a user's trajectory to hundreds of specific apps in one leap is tough even for an LLM.
Methods
To bridge raw mobile telemetry and linguistic reasoning, the authors propose LLMApp, a framework built on an LLM backbone (like LLaMA-2-7B fine-tuned via LoRA and prefix-tuning) divided into three novel modules:
- Prompt Compressor: Instead of feeding an entire 128-record history into the LLM, a self-supervised Transformer "selector" scores and filters the long-term log down to just the 12 most informative records. It is trained using a BERT-style masked reconstruction loss—forcing it to keep only the records that best summarize a user's stable, long-term habits—while leaving a short-term window (recent 12 records) intact.
- Context Interpreter: To make heterogeneous data readable to an LLM, this module translates raw numbers into rich semantic embeddings. Locations are represented by nearby Point-of-Interest (POI) distributions (e.g., 32% Transportation, 18% Shopping), traffic volumes are bucketed into ten logarithmic levels, and an LLM textual encoder projects these alongside app categories and IDs into a unified embedding space.
- Hierarchical Predictor: Rather than guessing the exact app immediately, LLMApp reasons coarse-to-fine. Phase 1 looks at the user's spatiotemporal trajectory to predict the next app category (e.g., Music) and traffic level (e.g., low). Phase 2 combines that high-level intent with the user's compressed long-term habits and immediate short-term actions to pinpoint the exact App ID and continuous traffic volume (in MB).
Datasets
The authors evaluate LLMApp on two large-scale, anonymized real-world datasets collected via network operators/ISPs (no new public benchmarks were introduced):
- Shanghai Dataset: Collected over one week in April 2016, featuring ~2.52 million records across 870 users, 305 apps (20 categories), and 12,576 coarse-grained regions.
- Nanchang Dataset: Collected over one week in May 2022, containing ~20.56 million records across 9,466 users, 640 apps (22 categories), and 63,200 regions.
Key Insights and Ideas
- Less history is more (and cheaper): Visualizing the prompt compressor reveals that raw mobile logs are full of erratic, 2-second app switches. Filtering 90% of the long-term sequence not only cuts latency and energy costs, but actually improves accuracy by exposing clean behavioral segments (like consolidating scattered social media checks into clear routines).
- Two-step thinking prevents drift: Ablation studies show that ripping out the hierarchical setup causes the steepest drop in accuracy. Forcing the LLM to commit to a broader app category based on time and place dramatically narrows the search space before personal habits kick in.
- Human routines generalize across cities: When trained on Shanghai users and tested directly on Nanchang users (zero-shot cross-city transfer—six years and hundreds of miles apart!), LLMApp barely loses a step. Because it reasons over functional semantics (like "commuting" or "dining areas") rather than memorized grid IDs, the learned habits transfer naturally.
- Pocket-sized LLMs hold their own: Testing backbones from 600M up to 13B parameters showed that while bigger models win on accuracy, lightweight models like MobileLLM-600M still perform competitively, hinting that on-device deployment isn't far-fetched.
Key Results
- Next-App Prediction: LLMApp beats all nine baselines—including graph/hypergraph networks (CADHG) and prior LLM predictors (MAPLE). On Shanghai, it hits 63.82% Acc@1 and 93.06% Acc@5 (a +9.09% jump in Acc@1 over second-best MAPLE). On Nanchang, it reaches 50.40% Acc@1 (+6.58% improvement).
- Traffic Forecasting: It achieves the lowest error and highest rank correlation across both cities, dropping MAE on Shanghai to 7.253 MB (compared to 8.101 for MAPLE and 10.96 for LSTM).
- Efficiency: Using Gemma-2-2B on an A100 GPU, LLMApp runs faster (7.1 ms vs. 9.6 ms per sample), uses fewer tokens (942 vs. 1080), and consumes ~26% less energy (1.065 J vs. 1.440 J) than MAPLE, while still beating its accuracy.
Limitations and Future Work
Because fine-grained app logs are deeply tied to personal privacy, publicly available datasets are scarce. Consequently, the experiments are restricted to two Chinese cities, which may not capture cultural differences in app ecosystems elsewhere. Future work aims to explore privacy-preserving paradigms like federated learning and synthetic data generation, alongside extending the framework to multi-agent mobility modeling and real-time edge-assisted service optimization.
Summary updated