BOXBOX: Recursive Harness Self-Improvement for Long-Running Performance Optimization
Yuhao Tan, Hanyun Jiang, Fangkai Yang, Yuan Yao, Taolue Chen, Bo Qiao, Yu Kang, Lu Wang, Pu Zhao, Xiaoxing Ma, Qingwei Lin, Saravan Rajmohan, Qi Zhang
Abstract
Automated harness optimization improves agents by learning from trajectories and task feedback. Existing offline methods use reference answers to optimize harnesses for reuse on held-out tasks. However, many real-world tasks are open-ended, while long runs expose new difficulties that offline-optimized harnesses may not address. To study harness optimization in these settings, we introduce PerfRace, a benchmark for long-running performance optimization of software projects, and investigate whether agents can use task-specific experience to recursively improve their harnesses during an ongoing task. To this end, we introduce BOXBOX, which enables agent-triggered harness revision and kernel-managed hot reloading while preserving execution context. We evaluate BOXBOX on PerfRace under matched test-time budgets, comparing it with Frozen Harness, offline Harness Evolution, and Harness Scaling. BOXBOX achieves higher speedup with more efficient use of task time and model cost, reaching a Speedup@4h of 1.70x, compared with 1.54x for the strongest baseline.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
- Comments
- 47 pages, 22 figures, 12 tables, including appendices. Project page: http://aka.ms/boxbox
Related papers
AskALCF: A Self-Improving Agentic System for Intelligent HPC User Support
Shared title terminologycs.SEJingyan Jiang, Akhilesh Bondapalli, Krishna Rauniyar et al.
Below the Stopwatch: Checking the Performance Claims of Coding Agents in the Kernel
Shared title terminologycs.SEYuvraj Sehgal, Sneh Patel, Mahsa Panahandeh et al.
Improving Repair Agents with Cause-Chain Diagnoses
Shared title terminologycs.SEMarius Smytzek, Martin Eberlein, Lars Grunske et al.
Context-Aware Proactive Self-Adaptation: A Two-Layer Model Predictive Control Approach
Shared title terminologycs.SEZhengyin Chen, Jialong Li, Nianyu Li et al.
SWE-growth: Teacher-Guided Adaptive Self-Play for Software Engineering Agents
Shared title terminologycs.SESongshi Liang, Zixuan Huang, Mingxuan Song et al.
Adaptive Budget Allocation for Smart-Contract Fuzzing: Why Online Feedback Fails to Improve Vulnerability Triage
Shared title terminologycs.SEYanzi Liu, Jiachi Tong