mlsanityData to 14 Oct 2026

Evaluating Long-Context Reasoning in LLM-Based WebAgents

arXiv 2512.04307 ↗First posted 3 Dec 2025cs.LG cs.AIcited by 15

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

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.

Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 16 of its 18 references that are in the map. First posted on arXiv 3 Dec 2025.

Builds on

16 of 18 references.

References · 16

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  3. 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,242
  4. 2024GPT-4V(ision) is a Generalist Web Agent, if Groundedcited by 563
  5. 2024WebVoyager: Building an End-to-End Web Agent with Large Multimodal Modelscited by 438
  6. 2023A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesiscited by 353
  7. 2023Set-of-Mark Prompting Unleashes Extraordinary Visual Grounding in GPT-4Vcited by 299
  8. 2023Multimodal Web Navigation with Instruction-Finetuned Foundation Modelscited by 160
  9. 2025Do LLMs Recognize Your Preferences? Evaluating Personalized Preference Following in LLMscited by 148
  10. 2024Autonomous Evaluation and Refinement of Digital Agentscited by 137
  11. 2024WebCanvas: Benchmarking Web Agents in Online Environmentscited by 121
  12. 2024Personalization of Large Language Models: A Surveycited by 104
4 more
  1. 2024Non-Determinism of "Deterministic" LLM Settingscited by 92
  2. 2023LLM-Rec: Personalized Recommendation via Prompting Large Language Modelscited by 77
  3. 2024Proposer-Agent-Evaluator(PAE): Autonomous Skill Discovery For Foundation Model Internet Agentscited by 50
  4. 2024Personalized LLM Response Generation with Parameterized Memory Injectioncited by 33

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 15.

15 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents
  2. 2026Improving LLM-based Autonomous Web Agents with Filtering
  3. 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning
  4. 2024AgentQuest: A Modular Benchmark Framework to Measure Progress and Improve LLM Agents
  5. 2025VeriWeb: Verifiable Long-Chain Web Benchmark for Agentic Information-Seeking
  6. 2024Mobile-Bench: An Evaluation Benchmark for LLM-based Mobile Agents
  7. 2025Modeling Response Consistency in Multi-Agent LLM Systems: A Comparative Analysis of Shared and Separate Context Approaches
  8. 2026Why Do LLM-based Web Agents Fail? A Hierarchical Planning Perspective