ContextAgent: Context-Aware Proactive LLM Agents with Open-world Sensory Perceptions

Bufang Yang, Lilin Xu, Liekang Zeng, Kaiwei Liu, Siyang Jiang, Wenrui Lu, Hongkai Chen, Xiaofan Jiang, Guoliang Xing, Zhenyu Yan

Abstract

While Large Language Model (LLM) agents have demonstrated remarkable capabilities in executing complex tasks, they primarily operate in a reactive mode, waiting for explicit user instructions. Existing proactive agents are largely confined to digital environments or rely on rigid, rule-based triggers. This paper introduces ContextAgent, a framework designed for open-world proactive assistance using real-world sensory data from wearables and user personas. By integrating egocentric video, audio, and historical user context, ContextAgent anticipates user needs and autonomously invokes relevant tools. To evaluate this paradigm, we present ContextAgentBench, the first benchmark specifically designed for context-aware proactive AI assistants in diverse daily life scenarios.

Introduction

The current generation of AI assistants suffers from a "wait-and-see" limitation. Despite their reasoning power, they lack the autonomy to intervene unless prompted. While some progress has been made in proactive agents for software environments (e.g., coding assistants monitoring a desktop), the transition to the physical, open world remains a significant challenge.

An ideal AI companion should perceive the user's environment through wearable sensors—such as smart glasses or earphones—and understand implicit intentions. For instance, if a user is seen rushing toward a bus stop only to see the bus depart, a proactive agent should recognize the missed connection, check the next arrival time, and offer to book an alternative ride without being asked. ContextAgent aims to bridge this gap by combining open-world sensory perception with personalized reasoning.

The ContextAgent Framework

ContextAgent operates through a two-stage pipeline designed to transform raw sensory data into actionable intelligence.

1. Proactive-oriented Context Extraction

Standard Vision Language Models (VLMs) often produce generic descriptions that lack the specificity required for proactive action. ContextAgent utilizes in-context learning to extract actionable cues from egocentric video and audio streams. This sensory context is then merged with "persona context," which includes the user’s historical behaviors, preferences, and identity. This dual-stream approach ensures the agent understands not just what is happening, but what it means for this specific user.

2. Context-aware Reasoning

The core of the system is an LLM fine-tuned with Chain-of-Thought (CoT) reasoning traces. These traces are distilled from advanced models like Claude-3.7-Sonnet, allowing the agent to evaluate the combined context and generate a "proactive score." If this score exceeds a specific threshold, the agent enters a planning phase, executing a chain of external tool calls (e.g., GPS, weather APIs, or scheduling tools) to provide unobtrusive assistance.

ContextAgentBench: A New Evaluation Standard

To measure the effectiveness of proactive agents, the authors developed ContextAgentBench, featuring 1,000 samples across nine daily life scenarios, including work, travel, health, and social interactions. The benchmark integrates 20 external tools to simulate real-world utility. A subset, ContextAgentBench-Lite, provides 300 samples paired with raw egocentric video and audio data to test the full perception-to-action pipeline.

Key Insights and Results

The Power of Personalization and Reasoning

Experimental results highlight that context is as much about the person as it is about the environment. Removing the user persona led to a 12% drop in proactive prediction accuracy. Furthermore, forcing the model to "think" through explicit CoT traces significantly improved judgment, reducing both "over-proactivity" (annoying the user) and missed opportunities.

Modality and Efficiency

Ablation studies confirmed that while audio provides valuable cues, visual context is the primary driver of performance. More importantly, the research demonstrates that smaller models (7B-8B parameters) can be highly effective. Through targeted fine-tuning, a Llama-3.1-8B-based ContextAgent achieved performance comparable to 70B parameter models, which is critical for local deployment on wearable devices where privacy and low latency are paramount.

Performance Metrics

ContextAgent outperformed all baselines, achieving:

  • 8.5% higher accuracy in proactive predictions (Acc-P).
  • 6.0% higher accuracy in generating correct tool arguments (Acc-Args).
  • 7.0% higher F1-score in tool calling compared to the strongest baseline.
  • Robustness: The model maintained high performance (90.9% Acc-P) on out-of-domain (OOD) scenarios, indicating it learns generalized reasoning rather than simple pattern matching.

Limitations and Future Work

While ContextAgent represents a significant step forward, it currently relies on a predefined set of 20 tools. Future iterations could benefit from the Model Context Protocol (MCP) to standardize and expand tool access. Additionally, expanding the diversity of scenarios in ContextAgentBench will help capture the long-tail of human activities. The ultimate goal remains the creation of a truly human-centric, unobtrusive AI companion that seamlessly understands and assists within our physical world.

Conclusion

ContextAgent demonstrates that by combining egocentric sensory data with personalized reasoning, LLM agents can move beyond reactive chat interfaces into the realm of proactive, real-world assistance. The introduction of ContextAgentBench provides the community with the necessary tools to further explore and refine these proactive AI companions.

Summary updated

BibTeX
@inproceedings{yang2025contextagent,
  author = {Bufang Yang and Lilin Xu and Liekang Zeng and Kaiwei Liu and Siyang Jiang and Wenrui Lu and Hongkai Chen and Xiaofan Jiang and Guoliang Xing and Zhenyu Yan},
  title = {{ContextAgent: Context-Aware Proactive LLM Agents with Open-world Sensory Perceptions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=tRXt10xKc5},
}
Figure