arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.07024cs.AI
收藏

通过分层记忆树增强网络代理

Enhancing Web Agents with a Hierarchical Memory Tree

Beijing Institute of Technology(北京理工大学)

Yunteng Tan, Zhi Gao, Xinxiao Wu

AI总结:

本文提出分层记忆树HMT,通过结构化框架分离逻辑规划与操作执行,提升网络代理在跨网站和跨领域任务中的泛化能力。

摘要:

基于大语言模型的网络代理在通过高级推理和指令遵循自动化网络交互方面展现了强大的潜力。虽然基于检索的记忆来源于历史轨迹,使这些代理能够处理复杂、长周期的任务,但当前方法在处理未见过的网站时难以泛化。我们发现,这一挑战源于扁平的记忆结构将高层任务逻辑与特定网站的操作细节纠缠在一起。这种纠缠导致在新环境中出现工作流程不匹配的问题,其中检索到的内容与当前网页混淆,导致逻辑不一致的执行。为了解决这一问题,我们提出了分层记忆树(HMT),一种结构化的框架,旨在显式地将逻辑规划与操作执行分开。HMT通过自动化抽象管道从原始轨迹构建三级层次结构:意图层面将多样化的用户指令映射到标准化的任务目标;阶段层面定义可重用的语义子目标,其特征由可观察的先决条件和后置条件表征;动作层面存储动作模式并配以可转移的语义元素描述。利用这一结构,我们开发了一个阶段意识的推理机制,包括一个规划器和一个执行器。通过显式验证先决条件,规划器将当前状态与正确的逻辑子目标对齐,以防止工作流程不匹配,而执行器通过匹配存储的语义描述与目标页面来使动作具体化。在Mind2Web和WebArena的实验结果表明,HMT显著优于扁平记忆方法,特别是在跨网站和跨领域场景中,突显了结构化记忆对于网络代理稳健泛化的重要性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑