The Verification Horizon: No Silver Bullet for Coding Agent Rewards
Binghai Wang, Chenlong Zhang, Dayiheng Liu, Jiajun Zhang, Jiawei Chen, Mouxiang Chen, Rongyao Fang, Siyuan Zhang, Xuwu Wang, Yuheng Jing, Zeyao Ma, Zeyu Cui
arXiv:2606.26300 · 2026-06-26 공개 · arXiv · PDF
long-horizon reward-hacking coding-agents robustness faithfulness scalability reward-design verification-quality
Abstract
A classical intuition holds that verifying a solution is easier than producing one. For today's coding agents, this intuition is being inverted: as foundation models develop stronger reasoning capabilities and engineering harnesses grow more sophisticated, generating complex candidate solutions is no longer difficult -- reliably verifying them has become the harder problem. Every verifier we can build is only a proxy for human intent, never the intent itself. This makes verification subject to a twofold difficulty: first, intent is underspecified by nature, making it inherently hard to faithfully check whether it has been fulfilled; second, during model training, optimization widens the gap between proxy and intent -- manifesting as reward hacking or signal saturation. To address this, we characterize the quality of verification signals along three dimensions -- scalability, faithfulness, and robustness -- and argue that achieving all three simultaneously is the central challenge. We further study four reward constructions: a test verifier for general coding tasks, a rubric verifier for frontend tasks, the user as verifier for real-world agent tasks, and an automated agent verifier for long-horizon tasks. Across different task types and policy capability levels, we conduct in-depth analysis and experiments on the core challenges of reward design and how to more effectively leverage reward signals. Experiments show that targeted verification design can effectively suppress reward hacking, improve task completion quality, and achieve significant gains across multiple internal and public benchmarks. These experiences collectively point to a core observation: no fixed reward function can remain effective as policy capability continues to grow; and verification must co-evolve with the generator.
한국어 요약
한 줄 요약
코드 생성 에이전트의 보상 설계는 생성 능력이 향상될수록 검증의 한계가 커진다.
핵심 기여도
- 검증 신호의 품질을 **확장성**, **신뢰도**, **강건성** 세 차원으로 정의.
- 4가지 보상 구조 제안: **테스트 검증기**, **평가 기준 검증기**, **사용자 검증기**, **자동 에이전트 검증기**.
- 실험에서 **보상 해킹 억제**, **작업 완료 품질 향상**, **다양한 벤치마크 성능 향상**을 보임.
- **정책 능력이 향상될수록 고정된 보상 함수는 무효화된다는 핵심 통찰** 제시.
핵심 아이디어
기존 직관은 문제 해결보다 검증이 더 쉬운데, 코드 생성 에이전트에서는 상황이 반전되고 있다. 생성 능력은 높아졌지만, 검증은 인간 의도를 정확히 반영하는 것이 어려워졌다. 이는 두 가지 문제를 유발한다: 첫째, 인간 의도는 본질적으로 불완전하게 정의되어 있어 정확한 검증이 어렵고, 둘째, 모델 학습 과정에서 보상 신호와 실제 의도 간의 격차가 커지며 보상 해킹이나 신호 포화가 발생한다. 이를 해결하기 위해, 연구자는 검증 신호의 품질을 세 가지 차원으로 분류하고, 이들을 동시에 달성하는 것이 핵심 과제임을 강조한다.
기술적 접근법
- **테스트 검증기**: 일반적인 코딩 작업에 사용.
- **평가 기준 검증기 (rubric verifier)**: 프론트엔드 작업에 특화.
- **사용자 검증기**: 실제 세계 에이전트 작업에서 사용자 의견을 반영.
- **자동 에이전트 검증기**: 장기 작업에서 에이전트 간 상호 검증.
- 실험은 다양한 작업 유형과 정책 능력 수준에서 수행됨.
- **보상 설계 핵심 과제**와 **보상 신호 활용 방안**을 분석.
주요 결과
- **보상 해킹 억제**, **작업 완료 품질 향상**을 달성.
- **다양한 내부 및 공개 벤치마크에서 유의미한 성능 향상**.
- **정책 능력이 높아질수록 고정된 보상 함수는 효과를 잃음**.
의의 및 한계
이 연구는 코드 생성 에이전트의 보상 설계에서 **검증 시스템이 정책과 함께 진화해야 한다는 핵심 통찰**을 제시한다. 이는 학술적으로는 보상 신호 설계의 복잡성을 강조하며, 실용적으로는 에이전트의 신뢰성과 안정성을 높이는 데 기여할 수 있다. 그러나, **검증 시스템의 확장성**, **사용자 의도의 불확실성**, **자동 검증기의 제한된 적용 범위**는 여전히 해결해야 할 주요 과제이다.
실용적 활용
이 연구는 **코드 생성 에이전트**, **자동 프론트엔드 개발**, **장기 작업 자동화** 등 다양한 AI 기반 개발 환경에서 적용 가능하다. 특히, **사용자 의도와 정책 간 격차를 줄이는 보상 설계**가 필요한 상황에서 유용하다.