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

评估基于大语言模型的WebAgent的长上下文推理能力

Evaluating Long-Context Reasoning in LLM-Based WebAgents

University of Michigan(密歇根大学);Amazon(亚马逊)

Andy Chung, Yichi Zhang, Kaixiang Lin, Aditya Rawal, Qiaozi Gao, Joyce Chai

AI总结:

本文评估了基于大语言模型的WebAgent在长上下文场景中的推理能力,发现随着上下文长度增加,性能显著下降,提出隐式RAG方法以改进任务执行。

摘要:

随着基于大语言模型(LLM)的代理越来越多地融入日常数字互动,它们在长交互历史中进行推理的能力对于提供个性化和情境感知的帮助至关重要。然而,这些代理在长上下文场景中的表现,特别是对于在现实网络环境中操作的行动型WebAgent,仍鲜有研究。本文通过一系列依赖性子任务引入了一个基准,这些子任务需要从扩展的交互历史中检索和应用信息,以评估WebAgent的长上下文推理能力。我们开发了一种新的评估框架,通过在依赖子任务之间注入无关的任务轨迹来模拟多会话用户交互,从而创建从25,000到150,000个标记的上下文。通过对四个流行模型的广泛评估,Claude-3.7、GPT-4.1、Llama 4和o4-mini,我们发现随着上下文长度的增加,性能显著下降,成功率从基线条件下的40-50%下降到长上下文场景中的不足10%。我们详细的错误分析表明,代理主要因陷入循环和失去原始任务目标而失败。我们进一步提出了一种隐式RAG方法,通过生成任务相关摘要提供适度的改进,尽管长上下文推理的根本限制仍然存在。这些发现突显了在现实的长期内用户交互场景中部署WebAgent的关键挑战,并为开发能够维持在扩展上下文中一致任务执行的更健壮代理架构提供了见解。

英文摘要:

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.

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

↑