Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Grading
Introduces Long-Horizon-Terminal-Bench with 46 long-horizon tasks, emphasizing dense rewards and partial credit, to evaluate models' sustained performance.
Key Findings
Methodology
This work constructs a containerized terminal environment with a diverse set of 46 multi-domain long-horizon tasks, integrating fine-grained subtask scoring and dense reward signals. Tasks span fields like experiment reproduction, software engineering, scientific computing, and multimodal analysis. Each task is equipped with reference solutions or simulation engines, enabling models to interact via shell commands, code editing, and artifact inspection over hundreds of steps. The scoring system assigns normalized subtask scores, combining them into an overall reward that reflects partial progress. Multiple runs are conducted per model, collecting metrics such as success rate, token usage, and execution time, providing a comprehensive evaluation of long-term planning, debugging, and verification capabilities.
Key Results
- Across 17 state-of-the-art models, the best performer Grok 4.5 achieved only 28.3% success rate at R≥0.95, with an average of 6.4%, indicating significant challenges in long-horizon tasks. The models consumed on average 9.8 million tokens and 88.9 minutes per task, highlighting the computational demands. Many models showed partial progress with R between 0.75 and 0.95, but full task completion remained elusive. Cost analysis revealed Grok 4.5's per-task expense around $11, with room for efficiency improvements.
- Dense reward mechanisms effectively differentiate models' ability to sustain progress over long sequences, exposing failure modes such as premature stopping, weak verification, and debugging difficulties. Results demonstrate that current models struggle with maintaining coherence and verifying completion over extended workflows, underscoring the need for more robust planning and self-assessment strategies.
- The evaluation framework and dataset set a new standard for long-horizon AI assessment, providing detailed insights into models' incremental capabilities and bottlenecks. The findings motivate future research on improving model robustness, planning, and verification in complex, multi-step tasks, with potential applications in scientific research, industrial automation, and software development.
Significance
This benchmark addresses a critical gap in AI evaluation by focusing on long-horizon, multi-step workflows, moving beyond traditional success/failure metrics. It enables researchers to quantify partial progress and identify failure modes, fostering development of models capable of sustained, reliable operation in real-world scenarios. The dense reward approach offers a nuanced understanding of model capabilities, guiding targeted improvements. Ultimately, this work paves the way for deploying AI in complex, long-duration tasks such as scientific research, engineering, and automation, where persistence and verification are essential.
Technical Contribution
The paper introduces a novel subtask-based dense scoring system integrated into a containerized terminal environment, enabling fine-grained assessment of long-horizon workflows. It combines multi-domain task design with multi-round evaluation, providing detailed performance metrics beyond binary success. The approach emphasizes partial credit, near-miss analysis, and cost-efficiency, offering a comprehensive framework for benchmarking AI in complex, extended tasks. This methodology advances the state-of-the-art in long-term planning, debugging, and verification, offering new insights into model limitations and capabilities.
Novelty
This is the first benchmark to systematically evaluate AI models on long-horizon terminal tasks with dense, subtask-level rewards. Unlike prior benchmarks limited to final success metrics, it captures incremental progress, revealing near-misses and partial achievements. The integration of diverse real-world tasks, multi-round evaluation, and cost analysis creates a comprehensive assessment platform, significantly advancing the evaluation paradigm for long-duration AI workflows.
Limitations
- Current tasks rely heavily on simulated environments, which may not fully capture real-world complexities. The models' robustness in unpredictable settings remains untested, and environmental variability could impact performance. Additionally, the high computational cost limits scalability, and the evaluation framework requires further optimization for broader adoption. Future work should focus on real-world deployment, reducing costs, and enhancing model robustness in diverse scenarios.
Future Work
Future directions include developing more efficient models with better long-term coherence, expanding task diversity to cover more real-world applications, and integrating self-verification mechanisms. Improving environment realism and reducing computational costs will be crucial for practical deployment. Additionally, exploring adaptive reward schemes and transfer learning strategies could further enhance model capabilities in complex workflows. The community is encouraged to adopt and extend this benchmark to accelerate progress in long-horizon AI research.
AI Executive Summary
In recent years, large language models (LLMs) have demonstrated remarkable success in short, well-defined tasks such as code fixing or command execution. However, real-world workflows often span hours or days, involving hundreds of steps, iterative debugging, and multi-modal data handling. Traditional benchmarks fall short in evaluating AI's ability to sustain progress over such long horizons, typically focusing only on final outcomes and providing sparse rewards. This gap limits understanding of models' true capabilities in complex, open-ended tasks.
To address this, the authors introduce Long-Horizon-Terminal-Bench (LHTB), a comprehensive benchmark comprising 46 diverse, multi-domain tasks designed to simulate real-world long workflows. Each task is embedded in a containerized terminal environment, with reference solutions and detailed subtask checks. Unlike binary success metrics, LHTB employs a dense, subtask-level scoring system that rewards partial progress, offering a nuanced view of model performance. This approach enables the evaluation of models' ability to plan, debug, verify, and sustain effort over extended periods.
Experimental results across 17 state-of-the-art models reveal that even the best models achieve success rates below 30%, with significant room for improvement. The dense reward mechanism effectively exposes failure modes such as premature stopping and verification weaknesses, highlighting the need for more robust, long-term reasoning capabilities. Cost analysis indicates that achieving higher success rates requires substantial computational resources, emphasizing efficiency challenges.
This benchmark represents a significant step forward in AI evaluation, pushing models toward more realistic, persistent, and reliable long-horizon performance. It provides researchers with a powerful tool to diagnose weaknesses, guide development, and ultimately enable AI systems capable of managing complex, real-world workflows. Despite current limitations, such as environmental simulation reliance and high costs, the framework sets a foundation for future innovations in long-term AI reasoning and automation.
Deep Analysis
Background
The evolution of AI, particularly large language models like GPT and BERT, has led to impressive short-term task performance. Early benchmarks such as Terminal-Bench and SWE-Bench primarily assessed final outcomes, neglecting the importance of intermediate steps in complex workflows. In practical scenarios—such as scientific data analysis, software debugging, or multimodal dataset auditing—success depends on sustained, multi-stage reasoning and iterative correction. Existing evaluation methods lack the granularity to measure ongoing progress, limiting progress tracking and model development. Recent efforts have begun exploring multi-step tasks, but these are often domain-specific or limited in scope. This work builds on prior benchmarks by introducing a unified, multi-domain, long-horizon evaluation framework with dense rewards, aiming to better reflect real-world AI capabilities and challenges.
Core Problem
Current benchmarks inadequately assess models' ability to handle long, complex workflows requiring hundreds of steps, continuous planning, and verification. This gap hampers progress toward deploying AI in real-world applications like scientific research, industrial automation, and software engineering, where sustained effort and error correction are critical. The core challenge lies in designing an evaluation system that captures incremental progress, provides meaningful feedback, and encourages models to maintain long-term coherence. Without such metrics, models may appear successful despite only partial or superficial understanding, impeding targeted improvements. Addressing this problem is essential for advancing AI systems capable of managing real-world, long-duration tasks reliably.
Innovation
The key innovations include: 1) a dense, subtask-based scoring system that assigns partial credit for intermediate progress, 2) a containerized environment ensuring reproducibility and task diversity, 3) multi-domain task design covering scientific, engineering, and multimodal workflows, 4) multi-round evaluation capturing sustained performance over hundreds of steps. These elements collectively enable a comprehensive, fine-grained assessment of long-horizon capabilities, surpassing traditional binary success metrics. The framework emphasizes debugging, verification, and iterative improvement, aligning evaluation with real-world workflow demands. This approach facilitates detailed diagnostics of model strengths and weaknesses, guiding future research.
Methodology
- �� Construct diverse long-horizon tasks based on real-world workflows, ensuring complexity and relevance. • Use containerized environments with reference solutions and simulation engines for consistent execution. • Decompose each task into meaningful subtasks with specific checks, enabling partial scoring. • Implement dense reward signals based on subtask completion levels, encouraging continuous progress. • Conduct multiple runs per model, collecting success rates, token counts, and execution times. • Analyze near-misses and failure modes to identify bottlenecks in planning, debugging, and verification. • Use cost analysis to evaluate efficiency, balancing success and resource expenditure. This systematic approach provides a detailed view of models' long-term reasoning and persistence capabilities.
Experiments
The evaluation involved 17 models, including GPT-5 series, Grok 4.5, and DeepSeek V4 Pro, tested across tasks like experiment reproduction, scientific computing, and multimodal analysis. Each model performed multiple runs per task, with metrics including success rate at different reward thresholds, average normalized reward, token usage, and wall-clock time. The experimental setup emphasized dense subtask scoring, near-miss analysis, and cost efficiency. Hyperparameters such as maximum episode count (~239) and time limits (~90 minutes) were standardized. Ablation studies examined the impact of reward density and subtask granularity, confirming their importance for nuanced performance measurement. Results highlighted persistent challenges in long-horizon reasoning, debugging, and verification.
Results
The top-performing model Grok 4.5 achieved a success rate of 28.3% at R≥0.95, with an average success rate of 6.4% across all models. Most models demonstrated partial progress, with many near-misses reaching R between 0.75 and 0.95, but full task completion remained rare. Cost analysis showed Grok 4.5's per-task expense around $11, with other models ranging from $3.6 to $26. The dense reward system effectively differentiated models' ability to sustain progress, exposing common failure modes such as premature stopping and verification lapses. These findings underscore the significant gap between current model capabilities and the demands of real-world long workflows, emphasizing the need for further advancements in planning, debugging, and self-assessment.
Applications
This benchmark can be applied in scientific research, industrial automation, software debugging, and multimodal data analysis, where long-term, multi-step reasoning is essential. It provides a standardized framework for evaluating and improving AI systems' ability to handle extended workflows, facilitating development of more robust, persistent models. The detailed feedback from dense rewards guides targeted enhancements, accelerating progress toward real-world deployment. Additionally, the dataset and evaluation tools support community-driven benchmarking and model comparison, fostering innovation in long-horizon AI capabilities.
Limitations & Outlook
The current tasks rely heavily on simulated environments, which may not fully capture real-world complexities like environmental noise, unpredictable failures, or resource constraints. The high computational cost limits scalability and practical deployment. Models still struggle with maintaining coherence over extended periods, especially in debugging and verification phases. Future work must address environment realism, reduce resource demands, and develop models with stronger long-term reasoning and self-assessment abilities. Additionally, expanding task diversity and real-world applicability remains an ongoing challenge.
Plain Language Accessible to non-experts
想象你在经营一家非常复杂的工厂,每天需要完成许多不同的任务,比如生产、检验、修理和优化。每个任务都像一个长长的流程,可能需要你反复检查每个环节,确保没有出错。有时候,工厂里会出现问题,你需要不断地调试和修正,才能让整个流程顺利进行。传统的评估就像只看最后的成品是否合格,但实际上,工厂管理者更关心每个环节是否都按步骤完成,是否及时发现和解决问题。这个研究提出的方法就像给每个环节都打分,告诉你在哪些步骤做得好,哪些还需要改进。这样,你就能更好地了解整个工厂的运行状况,而不是只看最终的成品。AI模型在长流程中也一样,不仅要完成最终目标,还要在每个中间步骤都表现良好,才能真正实现智能自动化。
ELI14 Explained like you're 14
想象你在玩一个超级长的冒险游戏,比如一场需要很多小时才能完成的任务。以前的游戏只会告诉你最后是不是赢了,但其实,最厉害的玩家还会关注每一步是不是走对了,是否在正确的时间做了正确的事情。这个研究就像设计了一个特别聪明的游戏评分系统,它会在你玩游戏的过程中不断给你打分,告诉你在哪些地方做得好,哪些地方还可以。这样,你就能知道自己在长时间的冒险中,哪个部分还需要练习。研究的目标是让AI像人一样,能在长时间、复杂的任务中坚持下去,不仅能完成目标,还能在途中不断改进。虽然目前AI还不够强大,但这个方法让我们看到了未来AI能更聪明、更持久的可能性。
Abstract
AI agents have become capable of autonomously completing short, well-specified tasks. However, existing terminal benchmarks largely focus on simple problems that finish within minutes and are evaluated only by their final outcome. This setup overlooks intermediate progress and partial solutions, yielding sparse reward signals and an incomplete picture of agent capability. We introduce Long-Horizon-Terminal-Bench, a terminal benchmark of 46 long-horizon tasks spanning nine categories, including experiment reproduction, software engineering, multimodal analysis, interactive games, and scientific computing. Each task follows a Terminal-Bench-style setup with a reference solution or simulation engine, but is further decomposed into fine-grained graded subtasks. This design enables dense intermediate rewards and partial credit, allowing evaluation to capture not only whether an agent reaches the final goal, but also how far it progresses on open-ended workflows. Tasks in Long-Horizon-Terminal-Bench typically require hundreds of episodes and minutes to hours of execution, stressing long-horizon planning, long-context management, and iterative debugging rather than one-shot problem solving. We evaluate 15 frontier models and find that agents consume on average 9.9M tokens per task, with roughly 231 episodes and 85.3 minutes of execution time per run, making Long-Horizon-Terminal-Bench more demanding than prior terminal-based benchmarks. Even the strongest tested model achieves 15.2% pass@1 at a partial-reward threshold of 0.95 and 10.9% at a perfect-reward threshold of 1.0, while the mean pass rate across models is 4.3% and 1.7% under the two thresholds, respectively. These results reveal headroom for improvement. We further analyze failure modes and error patterns, and release Long-Horizon-Terminal-Bench to support future progress on long-horizon terminal agents.