arXiv:2603.07024cs.AI2026-03被引 4

用分层记忆树提升网页智能体跨网站泛化能力

Enhancing Web Agents with a Hierarchical Memory Tree

  • 构建三层记忆结构:意图、阶段、动作,分离任务逻辑与操作细节
  • 在跨网站任务上准确率提升37%,显著优于传统扁平记忆方法
  • 适合需要稳定跨场景执行的自动化网页交互系统研发者

基于大语言模型的网页智能体在复杂长周期任务中展现出强大潜力。然而,现有方法依赖历史轨迹的检索式记忆,在未见网站上泛化能力差。原因在于扁平记忆结构将高层任务逻辑与站点特定操作混杂,导致新环境中执行逻辑不一致。为此,我们提出分层记忆树(HMT),通过自动化抽象流程从原始轨迹构建三级结构:意图层将用户指令映射为标准化任务目标;阶段层定义可复用的语义子目标,具备可观测的先决条件与后置条件;动作层存储与可迁移语义元素描述关联的操作模式。基于该结构,设计阶段感知推理机制,包含规划器与执行器。规划器通过验证先决条件,确保当前状态与正确逻辑子目标对齐,防止工作流错配;执行器则通过匹配语义描述定位目标页面动作。在Mind2Web和WebArena上的实验表明,HMT显著优于扁平记忆方法,尤其在跨网站与跨领域场景下表现突出,证明结构化记忆对网页智能体鲁棒泛化的必要性。

原文摘要 · Abstract (English)

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.

网页智能体分层记忆任务规划泛化能力

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。