TL;DR
Proactive AI assistants typically waste massive compute by running large language models (LLMs) continuously to decide when to help a user. This paper introduces a unified architecture that replaces the always-on LLM path with a tiny, ultra-fast Temporal Graph Learning (TGL) model that processes user activity as a native graph. The downstream LLM is only woken up when needed, resulting in massive speedups, lower costs, and better-grounded suggestions.
What Problem Does This Paper Address?
Proactive agents need to make two critical decisions before executing a task: when to intervene (triggering) and what context to focus on (routing). Currently, state-of-the-art systems use LLMs to continuously process text-serialized user logs (e.g., "The user opened file X").
This approach suffers from two major flaws:
- High Cost and Latency: Running an LLM on every single user event (clicks, app switches, keystrokes) is incredibly expensive and introduces critical latency bottlenecks.
- Ungrounded Suggestions: Because the trigger and context modules are often decoupled, the agent frequently defaults to generic session topics rather than the specific artifact the user is actively focusing on.
Furthermore, user activity is natively a structured stream of events, not text. Converting graph-like OS logs into text just for an LLM to parse it back into context is an inefficient round-trip.
Methods
The authors propose a "graph-first, grounded" architecture that shifts the heavy lifting away from the LLM during the always-on phase.
Instead of text strings, they model user activity as a heterogeneous temporal graph, where nodes represent events, entities (files, URLs, apps), and type schemas.
The core components include:
- TGL Backbone: A lightweight Temporal Graph Learning model consisting of three relation-aware GATv2 layers and a Jumping Knowledge head.
- Dual Heads: Two distinct prediction heads share the same backbone hidden state. The trigger head outputs a wake-up probability per event, and the routing head provides relevance scores for entities.
- Gated LLM Invocation: The downstream LLM remains completely asleep until the trigger head clears a specific threshold. Once activated, it receives the top-ranked entities from the routing head as structured context to generate a fluent user suggestion.
Datasets
The approach was evaluated on two primary proactive agent benchmarks:
- ProactiveAgent: A desktop assistant benchmark used to test the dual trigger-and-routing setup across 14 different LLM backbones.
- FingerTip-20K: A mobile proactive task suggestion dataset used to demonstrate the transferability of the TGL encoder to mobile environments.
Key Insights and Ideas
- Structure over Serialization: User logs are natively graphs. Forcing an LLM to read text serializations of graph updates is an anti-pattern; graph neural networks (GNNs) are inherently better suited for this data structure.
- Shared Hidden State Prevents Drift: By training the trigger and routing heads jointly on a shared backbone, the system ensures that the decision to wake up is perfectly aligned with the supporting evidence (context).
- Smooth Edge Scaling: GNN sparse matrix multiplications degrade gracefully when moving from server GPUs to consumer laptops (only a ~25% latency increase), whereas LLM prefill latencies skyrocket (4–14× slower) because they are compute-bound by dense matrix multiplications.
Key Results
- Performance Boost: TGL improved the F1 score across all 14 evaluated LLM backbones by an average of +16.7 points (and up to +46.0 points for Qwen3-8B). It even outperformed full end-to-end proactive LLM fine-tuning.
- Efficiency & Speed: TGL runs in just 11.13 ms per event on a server GPU and 13.99 ms on a consumer laptop—making it 4–7× faster on servers and 12–83× faster on laptops than LLM-as-trigger alternatives.
- Tiny Footprint: The model requires only ~220 MiB of memory, compared to the ~16 GB required by an 8B LLM trigger, making it perfectly viable for local, privacy-preserving on-device deployment.
Limitations and Future Work
The evaluation relies on the offline reward-model judge protocol from the original benchmarks; subjective real-world user experience under live deployment was not tested. Additionally, because the public datasets provide text-serialized logs, the authors had to use a deterministic regex-based extractor to reconstruct the graph, though a production system would hook directly into native OS APIs.
Summary updated