arXiv:2510.24699cs.CLcs.AI2025-10被引 73

提出主动管理上下文的网页智能体,提升长时任务表现。

AgentFold: Long-Horizon Web Agents with Proactive Context Management

  • 通过多尺度折叠操作动态管理历史信息,避免上下文过载或细节丢失。
  • 在BrowseComp和BrowseComp-ZH上分别达36.2%和47.3%准确率。
  • 仅需监督微调,性能超越更大规模开源模型与领先闭源模型。

基于大语言模型的网页智能体在信息检索中潜力巨大,但在长时任务中受限于上下文管理的根本矛盾:传统ReAct类方法因积累噪声历史导致上下文饱和,而固定总结历史则可能永久丢失关键细节。为此,我们提出AgentFold,一种受人类记忆回溯整合机制启发的新型智能体范式,将上下文视为可主动塑造的动态认知空间。每一步中,它学习执行‘折叠’操作,在多尺度上管理历史轨迹——既能精细压缩保留关键细节,也能深度整合抽象多步子任务。在主流基准测试中,仅通过简单监督微调(无需持续预训练或强化学习),AgentFold-30B-A3B在BrowseComp上取得36.2%准确率,在BrowseComp-ZH上达47.3%。该性能不仅超越或媲美显著更大规模的开源模型(如DeepSeek-V3.1-671B-A37B),更优于领先的闭源模型OpenAI o4-mini。

原文摘要 · Abstract (English)

LLM-based web agents show immense promise for information seeking, yet their effectiveness on long-horizon tasks is hindered by a fundamental trade-off in context management. Prevailing ReAct-based agents suffer from context saturation as they accumulate noisy, raw histories, while methods that fixedly summarize the full history at each step risk the irreversible loss of critical details. Addressing these, we introduce AgentFold, a novel agent paradigm centered on proactive context management, inspired by the human cognitive process of retrospective consolidation. AgentFold treats its context as a dynamic cognitive workspace to be actively sculpted, rather than a passive log to be filled. At each step, it learns to execute a `folding' operation, which manages its historical trajectory at multiple scales: it can perform granular condensations to preserve vital, fine-grained details, or deep consolidations to abstract away entire multi-step sub-tasks. The results on prominent benchmarks are striking: with simple supervised fine-tuning (without continual pre-training or RL), our AgentFold-30B-A3B agent achieves 36.2% on BrowseComp and 47.3% on BrowseComp-ZH. Notably, this performance not only surpasses or matches open-source models of a dramatically larger scale, such as the DeepSeek-V3.1-671B-A37B, but also surpasses leading proprietary agents like OpenAI's o4-mini.

智能体上下文管理长时任务网页代理

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