TL;DR
This paper introduces HYMEM (Hybrid Self-evolving Structured Memory), a brain-inspired memory system that equips graphical user interface (GUI) agents with a structured, evolving graph of past experiences. By combining high-level discrete symbolic strategies with fine-grained continuous trajectory embeddings, HYMEM allows compact 7B/8B open-source models to match or even outperform closed-source giants like GPT-4o and Gemini 2.5 Pro Vision on complex, long-horizon web tasks.
What Problem Does This Paper Address?
Large Vision-Language Models (VLMs) have made massive strides in automating computer tasks via GUI interactions (like clicking and typing). However, executing long-horizon workflows across diverse web interfaces remains highly error-prone.
To prevent agents from getting lost or repeating mistakes, researchers often equip them with external memory banks of past interaction trajectories. Unfortunately, existing memory designs are flat and rigid:
- Discrete/Textual memories distill experiences into text summaries, which completely miss the fine-grained visual nuances of web elements.
- Continuous memories compress trajectories into dense vector embeddings, preserving sensory details but creating an information bottleneck that hinders explicit, high-level reasoning.
Furthermore, these systems lack the human ability to dynamically organize, update, and prune knowledge over time. HYMEM bridges this gap by mimicking the human brain's dual-memory system (the hippocampus for multimodal details and the neocortex for statistical regularities).
Methods
HYMEM organizes an agent's memory as an evolving graph where each node represents a successful interaction sequence containing a hybrid tuple:
- High-level Strategy: A discrete text heuristic summarizing the core approach (e.g., "price filter low-to-high").
- Middle-level Attributes: Semantic tags (e.g.,
#search,#filter) that form undirected edges between related nodes to enable multi-hop structured search. - Low-level Trajectory Embeddings: Continuous multimodal representations that preserve precise visual and action nuances.
The framework operates via two core mechanisms:
- Global Self-Evolution (Memory Construction): As new successful trajectories arrive, a VLM judge performs a redundancy check against existing nodes. It dynamically decides whether to ADD a new node, MERGE complementary insights into an existing node, or REPLACE an outdated node with a strictly superior execution path.
- Local Working-Memory Refresh (Inference): Instead of relying on a static set of retrieved memories throughout a task, HYMEM continuously monitors the environment. When the VLM judge detects a "phase shift" (e.g., transitioning from "searching" to "checkout"), it discards irrelevant context, preserves long-term constraints, and triggers a fresh multi-hop retrieval on the fly.
Datasets
The authors populated the memory bank using 2,883 successful trajectories sourced from:
- GUIAct: A curated dataset of successful agent behaviors.
- Mind2Web Training Set: Human-annotated web demonstrations.
- Agent Rollouts: High-confidence trajectories generated autonomously by the agent during training.
The system was evaluated across three challenging multimodal web-agent benchmarks:
- WebVoyager: Testing real-world tasks on websites like Amazon, Coursera, AllRecipes, and Google Maps.
- Multimodal-Mind2Web: Evaluating out-of-distribution generalizability across unseen websites.
- MMInA: A multi-step multimodal internet routing benchmark (evaluated on the Wikipedia domain).
Key Insights and Ideas
- The Power of Hybridization: Neither text summaries nor dense embeddings are enough on their own. Combining them allows the agent to maintain strategic abstraction (knowing what to do) alongside precise perceptual grounding (knowing where to click).
- Sublinear Graph Growth: Thanks to the
MERGEandREPLACEoperations, the memory graph compresses redundant information. As the number of raw trajectories scales up, the actual number of nodes grows sublinearly, preventing memory overhead from bogging down the system. - Context Drift Mitigation: Static retrieval strategies fail when web states change drastically. Local refreshing ensures the agent's working memory stays tightly synchronized with the current phase of execution.
Key Results
HYMEM consistently supercharges open-source GUI agents, allowing lightweight backbones to surpass proprietary models:
- Massive Accuracy Boosts: HYMEM boosted the overall success rate of Qwen2.5-VL-7B from 12.5% to 35.0% (+22.5% absolute gain).
- Outperforming Closed-Source Giants: At 35.0% overall accuracy, Qwen2.5-VL-7B + HYMEM outperformed Gemini 2.5 Pro Vision (29.6%) and GPT-4o (19.7%).
- Ablation Impact: Isolating the components showed that Global Evolution provided a ~25% relative gain on Amazon, while Local Evolution (working-memory refresh) provided an additional ~15% gain by successfully navigating workflow phase shifts.
Limitations and Future Work
- Heuristic-Based Updates: The memory management system currently relies on VLM-guided heuristics to decide when to add, merge, or replace nodes. The authors note that integrating reinforcement learning could help the agent learn more optimal, principled memory-update policies.
- Backbone Scaling: Due to computational constraints, the framework was only evaluated on 7B and 8B parameter models. Validating the scalability of HYMEM on larger open-source backbones (such as 32B or 70B models) remains an open direction for future research.
Summary updated