TransHarness: From Benchmark Overfitting to Transferable Harness Evolution
Tianze Xia, Zimo Wang, Heng Tong, Zhaoxiang Liu, Shiguo Lian, Fan Huang, Wenyu Liu, Yunchao Wei, Xinggang Wang
Abstract
Harness evolution offers a path to improving coding agents without updating model weights. However, existing methods can overfit their evolution benchmarks, producing gains that fail to carry over to new tasks. To address this challenge, we introduce Transferable Harness Evolution (TransHarness), which evolves harness intervention policies from same-task success-failure contrasts. These policies couple execution-context triggers with diagnostic guidance, enabling task-dependent checks and corrections beyond the source executions. Cross-task replay and independent semantic selection retain policies that intervene selectively and ground corrections in current-task evidence rather than source-specific solutions. We further curate an independent evolution set for cross-distribution transfer and conduct a cross-benchmark evaluation covering multiple strong models and a range of lightweight and mature harnesses. Experiments show that, with only 300 source trajectories from outside the test distribution, TransHarness further improves strong agents across distinct target benchmarks, demonstrating transferable harness evolution beyond benchmark overfitting. Specifically, TransHarness achieves state-of-the-art scores of 76.4% on DeepSWE v1.1 and 95.5% on Terminal-Bench 2.1, surpassing the strongest baseline model, GPT-6 Astra, by 2.4 and 5.6 percentage points, respectively.
Create a lesson
Metadata
- Comments
- 22 pages, 8 figures, including references and appendices
Related papers
EgoUseBench: Benchmarking Computer-Use Agents under Evolving First-Person Contexts
Shared title terminologycs.AIYurun Chen, Biao Yi, Qihang Yu et al.
EvoLink-Bench: A Benchmark for Evaluating Self-Evolving Agents in Long-Horizon Interdependent Task Streams
Shared title terminologycs.AIWei Chen, Xiaodong Lu, Weihao Shen et al.
EGSE: Evidence-Grounded Skill Evolution for Medical Reasoning Agents
Shared title terminologycs.AIMingyuan Li, Tong Jia, Ziyuan Yang et al.
Asset4D-Bench: Benchmarking Coding Agents for Editable 3D and 4D Reconstruction
Shared title terminologycs.AIChengyi Sun, Deyuan Liu, Lei Zhao et al.
Aligned Machine: A Benchmark for Evaluating Multimodal Embedding Similarity via Human Comparative Judgements
Shared title terminologycs.AIJiechen Li, Hannah Groos, Brinnae Bent
A Text-to-SQL Benchmark for Official Statistics
Shared title terminologycs.AILucas Lageweg, Karen Goes, Tom van den Broek et al.