Recursive Harness Self-Improvement

Hyunin Lee, Jinglue Xu, Jeffrey Seely, Donghyun Lee, Matei Zaharia, Yujin Tang

arXiv:2607.15524 · 2026-07-20 공개 · arXiv · PDF

continual-learning self-improvement agent-loop recursive-harness model-harness-coevolution prompt-level-specification task-specific-context information-theoretic

Abstract

Under model--harness co-evolution, harnesses are not merely inference-time scaffolds but data-generating components whose execution traces can shape future foundation models. This motivates harness-in-the-loop learning: optimizing harnesses for both immediate agent performance and the quality of traces used for future model training. However, continually updating provider-built scaffolds is costly and labor-intensive. We therefore investigate whether optimizing user-constructed harnesses in a task-specific manner can improve execution-trace quality while remaining computationally lightweight and requiring only a few update iterations. To this end, we introduce Recursive Harness Self-Improvement (RHI), which represents the harness as a prompt-level specification of the agent loop and iteratively refines it using pairwise feedback over its own revision history. Across 30 synthetic machine-learning research tasks spanning quantitative finance, robotics, and pharmacy, a few RHI iterations suffice to substantially raise the performance ceiling of low-reasoning-effort agents, exceeding the corresponding maximum-reasoning-effort setting while reducing inference cost by up to 60%. We show that these gains arise primarily from improved task-specific context management through more effective inter-agent information flow rather than longer reasoning traces. Finally, we formalize this behavior as an information-theoretic hypothesis for RHI's implicit optimization objective, suggesting RHI as a practical algorithm for continual learning within the paradigm of model--harness co-evolution.

한국어 요약

한 줄 요약

RHI는 사용자 정의 헤이브스를 반복적으로 개선하여 추론 비용을 줄이고 성능을 향상시키는 알고리즘이다.

핵심 기여도

핵심 아이디어

기존 헤이브스는 단순히 추론 시 사용되는 구조물이 아니라, 향후 모델 학습에 사용되는 데이터를 생성하는 구성요소로 작용한다. 이에 따라, 헤이브스는 단순한 성능 향상뿐만 아니라 추론 트레이스의 질 향상에도 기여해야 한다. RHI는 이 문제를 해결하기 위해, 헤이브스를 프롬프트 수준에서 표현하고, 이전 버전 간의 비교를 통해 반복적으로 개선하는 방식을 제안한다. 이는 사용자 정의 헤이브스를 최소한의 반복으로도 효과적으로 최적화할 수 있게 한다.

기술적 접근법

주요 결과

의의 및 한계

RHI는 모델-헤이브스 공동 진화 패러다임 내에서 지속 학습을 실현할 수 있는 실용적 알고리즘으로, 사용자 정의 헤이브스의 반복적 개선을 통해 추론 비용을 줄이고 성능을 향상시킨다. 그러나 RHI는 특정 태스크에 맞춘 사용자 정의 헤이브스를 전제로 하므로, 일반적인 헤이브스 구조에 적용하는 데에는 한계가 있을 수 있다.

실용적 활용

RHI는 정량 금융, 로봇, 약학 등 복잡한 머신러닝 연구 태스크에서 사용자 정의 헤이브스를 최적화할 수 있는 도구로 활용될 수 있다. 특히, 반복적 개선이 필요한 실시간 시스템에서 유용할 수 있다.