AI
Continuous embeddings unlock efficient memory for computer-use AI agents
Researchers propose a scalable approach to equip AI agents with external memory that preserves visual information while reducing computational overhead.
As AI agents tackle increasingly complex computer-use tasks, researchers have identified external memory as crucial for generalizing to unfamiliar scenarios. A new study explores how to build memory systems that remain efficient while capturing the visual details essential to screen-based interaction.
The memory bottleneck#
Previous approaches to agent memory converted task execution histories into plain text sequences stored in a memory bank. While straightforward, this method creates two problems: it balloons the context length needed during inference, and it discards critical visual information like widget positions and sizes that text alone cannot capture. The added computational cost and lost visual nuance limit how well agents can apply past experience to new situations.
A continuous embedding approach#
Rather than encoding trajectories as text, researchers propose leveraging the agent's vision-language model (VLM) itself as an encoder. Each trajectory is compressed into a fixed-length continuous embedding—a dense numerical representation that retains visual cues. This technique cuts the memory footprint while preserving the spatial and visual context that text-based memory loses.
Scaling laws and empirical results#
The team systematically investigated four design dimensions: how many in-context examples to include, the size of the memory bank, the backbone model's capacity, and the number of embeddings per trajectory. Across the evaluated ranges, they found consistent improvements when scaling up each factor. To validate these trends, they built a data synthesis pipeline that generated 188,451 trajectories of agent behavior.
A key practical result: fine-tuning just 1.2% of the memory encoder's parameters on only 1,500 samples significantly boosted agent success rates, especially on longer tasks and when facing distribution shifts. The researchers tested open-source Qwen-VL models from 2B to 32B parameters and found they achieved performance comparable to state-of-the-art proprietary systems like GPT-4o and Gemini-2.5-Pro.
Implications#
This work demonstrates that continuous memory and efficient parameter updates can rival closed-source capabilities while reducing computational demands. The approach opens a path for smaller, more practical AI agents that retain nuanced visual understanding without massive context window requirements.

