测试语言代理在不断增长上下文中的表现,发现高级管理策略能显著提升成功率。
LOCA-bench: Benchmarking Language Agents Under Controllable and Extreme Context Growth
- 通过可控环境状态生成动态增长的上下文,模拟真实任务场景。
- 上下文越长,代理性能普遍下降,但优化策略可提升成功率至68%以上。
- 适合研究长上下文处理、智能体系统与上下文管理的开发者和研究人员。
大语言模型(LLMs)在执行长期、现实世界任务方面能力日益增强。然而,随着上下文长度增加,其可靠性常出现下降,这种现象称为“上下文衰减”。现有长上下文基准多聚焦于单步信息检索任务,而现实中,语言模型往往需作为智能体,在动态增长的上下文中探索环境、遵循指令与规划、提取有用信息并预测正确动作。为此,我们提出 LOCA-bench(长上下文智能体基准)。给定任务提示后,该基准利用自动化且可扩展的环境状态控制,调节智能体的上下文长度,实现理论上无限增长的上下文,同时保持任务语义不变。LOCA-bench 评估包含多种上下文管理策略的语言智能体组合。尽管随着环境状态复杂度上升,代理性能普遍下降,但先进上下文管理技术可显著提升整体成功率。我们开源了 LOCA-bench,为长上下文、代理式场景下的模型与架构评估提供平台:https://github.com/hkust-nlp/LOCA-bench
原文摘要 · Abstract (English)
Large language models (LLMs) are increasingly capable of carrying out long-running, real-world tasks. However, as the amount of context grows, their reliability often deteriorates, a phenomenon known as "context rot". Existing long-context benchmarks primarily focus on single-step settings that evaluate a model's ability to retrieve information from a long snippet. In realistic scenarios, however, LLMs often need to act as agents that explore environments, follow instructions and plans, extract useful information, and predict correct actions under a dynamically growing context. To assess language agents in such settings, we introduce LOCA-bench (a benchmark for LOng-Context Agents). Given a task prompt, LOCA-bench leverages automated and scalable control of environment states to regulate the agent's context length. This design enables LOCA-bench to extend the context length potentially to infinity in a controlled way while keeping the underlying task semantics fixed. LOCA-bench evaluates language agents as a combination of models and scaffolds, including various context management strategies. While agent performance generally degrades as the environment states grow more complex, advanced context management techniques can substantially improve the overall success rate. We open-source LOCA-bench to provide a platform for evaluating models and scaffolds in long-context, agentic scenarios: https://github.com/hkust-nlp/LOCA-bench
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。