测试大模型在长上下文中的网页操作推理能力,发现性能随上下文变长大幅下降。
Evaluating Long-Context Reasoning in LLM-Based WebAgents
- 设计多轮任务基准,模拟用户长时间交互的长上下文场景。
- 四款主流模型在超长上下文(15万词元)下成功率降至10%以下。
- 适用于评估智能体长期任务执行能力,关注系统鲁棒性研究者必读。
随着基于大语言模型(LLM)的智能体日益融入日常数字交互,其在长交互历史中进行推理的能力对提供个性化、情境感知的协助至关重要。然而,这些智能体在真实网络环境中执行动作的长上下文场景下的表现仍缺乏深入探索。本文提出一个基准,通过一系列依赖前后关系的子任务来评估WebAgent的长上下文推理能力,要求从扩展的交互历史中检索并应用信息。我们构建了一个新颖的评估框架,通过在相关子任务间注入无关任务轨迹,模拟多会话用户交互,生成长度为25,000至150,000词元的上下文。对四种主流模型(Claude-3.7、GPT-4.1、Llama 4、o4-mini)的广泛评估显示,随着上下文长度增加,性能显著下降:基础条件下成功率在40%-50%,而长上下文场景下低于10%。详细错误分析表明,智能体主要因陷入循环和丢失原始任务目标而失败。我们进一步提出一种隐式RAG方法,通过生成任务相关摘要实现小幅改进,但长上下文推理的根本局限依然存在。这些发现揭示了在真实长期用户交互场景中部署WebAgent的关键挑战,并为构建更具鲁棒性的智能体架构提供了洞见。
原文摘要 · Abstract (English)
As large language model (LLM)-based agents become increasingly integrated into daily digital interactions, their ability to reason across long interaction histories becomes crucial for providing personalized and contextually aware assistance. However, the performance of these agents in long context scenarios, particularly for action-taking WebAgents operating in realistic web environments, remains largely unexplored. This paper introduces a benchmark for evaluating long context reasoning capabilities of WebAgents through sequentially dependent subtasks that require retrieval and application of information from extended interaction histories. We develop a novel evaluation framework that simulates multi-session user interactions by injecting irrelevant task trajectories between dependent subtasks, creating contexts ranging from 25,000 to 150,000 tokens. Through extensive evaluation of four popular models, Claude-3.7, GPT-4.1, Llama 4, and o4-mini, we observe a dramatic performance degradation as context length increases, with success rates dropping from 40-50\% in baseline conditions to less than 10\% in long context scenarios. Our detailed error analysis reveals that agents primarily fail due to getting stuck in loops and losing track of original task objectives. We further propose an implicit RAG approach that provides modest improvements by generating task-relevant summaries, though fundamental limitations in long context reasoning persist. These findings highlight critical challenges for deploying WebAgents in realistic, long-term user interaction scenarios and provide insights for developing more robust agent architectures capable of maintaining coherent task execution across extended contexts.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。