Enhancing Web Agents with a Hierarchical Memory Tree
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
Large language model-based web agents have shown strong potential in automating web interactions through advanced reasoning and instruction following. While retrieval-based memory derived from historical trajectories enables these agents to handle complex, long-horizon tasks, current methods struggle to generalize across unseen websites. We identify that this challenge arises from the flat memory structures that entangle high-level task logic with site-specific action details. This entanglement induces a workflow mismatch in new environments, where retrieved contents are conflated with current web, leading to logically inconsistent execution. To address this, we propose Hierarchical Memory Tree (HMT), a structured framework designed to explicitly decouple logical planning from action execution. HMT constructs a three-level hierarchy from raw trajectories via an automated abstraction pipeline: the Intent level maps diverse user instructions to standardized task goals; the Stage level defines reusable semantic subgoals characterized by observable pre-conditions and post-conditions; and the Action level stores action patterns paired with transferable semantic element descriptions. Leveraging this structure, we develop a stage-aware inference mechanism comprising a Planner and an Actor. By explicitly validating pre-conditions, the Planner aligns the current state with the correct logical subgoal to prevent workflow mismatch, while the Actor grounds actions by matching the stored semantic descriptions to the target page. Experimental results on Mind2Web and WebArena show that HMT significantly outperforms flat-memory methods, particularly in cross-website and cross-domain scenarios, highlighting the necessity of structured memory for robust generalization of web agents.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 41 of its 53 references that are in the map. First posted on arXiv 7 Mar 2026.
Builds on
41 of 53 references.
Closest ancestors · 7
Same direction, newest first
- 2025WebOperator: Action-Aware Tree Search for Autonomous Agents in Web Environment14 Dec
- 2025Prune4Web: DOM Tree Pruning Programming for Web Agent26 Nov
- 2024Agent Workflow Memory11 Sep
- 2024GPT-4V(ision) is a Generalist Web Agent, if Grounded3 Jan
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agents25 Jul
- 2023Mind2Web: Towards a Generalist Agent for the Web9 Jun
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents4 Jul
Other references · 34
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
22 more
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
- 2023CogAgent: A Visual Language Model for GUI Agentscited by 704
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 574
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 560
- 2023AppAgent: Multimodal Agents as Smartphone Userscited by 415
- 2023Android in the Wild: A Large-Scale Dataset for Android Device Controlcited by 319
- 2018Reinforcement Learning on Web Interfaces Using Workflow-Guided Explorationcited by 284
- 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Modelcited by 106
- 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agentscited by 102
- 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMscited by 79
- 2024The Dawn of GUI Agent: A Preliminary Case Study with Claude 3.5 Computer Usecited by 63
- 2025TongUI: Internet-Scale Trajectories from Multimodal Web Tutorials for Generalized GUI Agentscited by 42
- 2024HtmlRAG: HTML is Better Than Plain Text for Modeling Retrieved Knowledge in RAG Systemscited by 37
- 2025Efficient Multi-turn RL for GUI Agents via Decoupled Training and Adaptive Data Curationcited by 26
- 2025EchoTrail-GUI: Building Actionable Memory for GUI Agents via Critic-Guided Self-Explorationcited by 15
- 2025Option Discovery Using LLM-guided Semantic Hierarchical Reinforcement Learningcited by 4
- 2024Explainable Session-based Recommendation via Path Reasoningcited by 2
- 2025ENCODE: Breaking the Trade-Off Between Performance and Efficiency in Long-Term User Behavior Modelingcited by 2
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026ContractSkill: Repairable Contract-Based Skills for Multimodal Web Agentscited by 13
- 2026Planner Matters! An Efficient and Unbalanced Multi-agent Collaboration Framework for Long-horizon Planningcited by 3
- 2026Signal-Driven Observation for Long-Horizon Web Agentscited by 0
- 2026Falsifiable Commitment Planning for Self-Correcting Web Agentscited by 0
- 2026From Memory to Guide: Spatio-Temporal Composer for Procedural Coding Memorycited by 0
- 2026DeltaReplay: Task-Relative Memory Reuse for Mobile GUI Agentscited by 0
- 2026DeltaReplay: Task-Relative Memory Reuse for Mobile GUI Agents8 Oct 2026
- 2026From Memory to Guide: Spatio-Temporal Composer for Procedural Coding Memory4 Oct 2026
- 2026Falsifiable Commitment Planning for Self-Correcting Web Agents27 Jul 2026
- 2026Signal-Driven Observation for Long-Horizon Web Agents4 Jun 2026
- 2026Planner Matters! An Efficient and Unbalanced Multi-agent Collaboration Framework for Long-horizon Planning4 May 2026
- 2026ContractSkill: Repairable Contract-Based Skills for Multimodal Web Agents20 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025Branch-and-Browse: Efficient and Controllable Web Exploration with Tree-Structured Reasoning and Action Memory
- 2026AMBER: Training Long-Horizon Web Agents through Append-Only Memory
- 2026WebChallenger: A Reliable and Efficient Generalist Web Agent
- 2026DRIVE: Modeling Skills at the Reasoning and Interaction Levels for Web Agents under Continual Learning
- 2025ReAcTree: Hierarchical LLM Agent Trees with Control Flow for Long-Horizon Task Planning
- 2026M2: Dual-Memory Augmentation for Long-Horizon Web Agents via Trajectory Summarization and Insight Retrieval
- 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents
- 2026STRUCTUREDAGENT: Planning with AND/OR Trees for Long-Horizon Web Tasks