[Paper Review] M$^2$: Dual-Memory Augmentation for Long-Horizon Web Agents via Trajectory Summarization and Insight Retrieval
A training-free dual-memory framework (M2) for long-horizon web navigation that uses internal trajectory summarization and external insight retrieval to improve robustness and efficiency without fine-tuning.
Multimodal Large Language Models (MLLMs) based agents have demonstrated remarkable potential in autonomous web navigation. However, handling long-horizon tasks remains a critical bottleneck. Prevailing strategies often rely heavily on extensive data collection and model training, yet still struggle with high computational costs and insufficient reasoning capabilities when facing complex, long-horizon scenarios. To address this, we propose M$^2$, a training-free, memory-augmented framework designed to optimize context efficiency and decision-making robustness. Our approach incorporates a dual-tier memory mechanism that synergizes Dynamic Trajectory Summarization (Internal Memory) to compress verbose interaction history into concise state updates, and Insight Retrieval Augmentation (External Memory) to guide the agent with actionable guidelines retrieved from an offline insight bank. Extensive evaluations across WebVoyager and OnlineMind2Web demonstrate that M$^2$ consistently surpasses baselines, yielding up to a 19.6% success rate increase and 58.7% token reduction for Qwen3-VL-32B, while proprietary models like Claude achieve accuracy gains up to 12.5% alongside significantly lower computational overhead.
Motivation & Objective
- Address the efficiency and robustness gaps in long-horizon web navigation by reducing context explosion without training or fine-tuning.
- Develop a memory architecture that combines internal trajectory summarization with external insight retrieval.
- Demonstrate that memory-augmented agents perform competitively with SFT/RL-based models while saving tokens and computation.
- Show cross-model and cross-domain transferability of insights for diverse web domains.
Proposed method
- Introduce internal memory (Dynamic Trajectory Summarization) that self-summarizes steps into concise state abstractions s_t at each step.
- Introduce external memory (Insight Retrieval Augmentation) that builds an offline Insight Bank from successful trajectories and retrieves top-i insights by semantic similarity.
- Replace full context with a dual-memory context C_t' = {P_sys, Q, M_int_t, M_ext, O_t} to maintain a lean but informative context.
- Use a prompt-driven agent to emit triplets (T_t, A_t, s_t) where s_t summarizes visual feedback and action execution.
- Construct the Insight Bank by distilling high-leverage interaction rules from successful trajectories via an abstractor model and encode queries with a Sentence Transformer for retrieval.
- During inference, retrieve top-i insights by cosine similarity and inject them as defensive hints into the system prompt to guide actions.

Experimental results
Research questions
- RQ1Can a training-free, dual-memory architecture improve long-horizon web navigation performance without SFT/RL?
- RQ2Do internal trajectory summaries and external insights effectively reduce context size while preserving decision quality?
- RQ3Are cross-trajectory insights transferable across different web domains and model backbones?
- RQ4What is the efficiency trade-off (token cost, latency) when using the dual-memory framework compared to full-context baselines?
Key findings
- M2 delivers consistent improvements across WebVoyager and OnlineMind2Web benchmarks across model backbones.
- On Qwen3-VL-32B, M2 achieves up to 19.6% higher success rate and over 57% token reduction in both benchmarks.
- On Claude models, accuracy gains reach up to 12.5% with substantial token reductions (30.3% to 55.0%).
- Internal memory reduces token costs by roughly 57% for Qwen3-VL-32B on WebVoyager (from 215.2k to 92.3k).
- External memory provides robustness gains; in Google Maps domain, accuracy improves from 63.4% to 80.5% with insights.
- The Insight Bank enables cross-task transfer with fast retrieval (~6 ms per query) and supports stable long-horizon planning.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.