Before the Rollout Ends: Early Terminal Reward Prediction for Long-horizon Coding Agents
Jihan Yao, Sihan Zeng, Shangbin Feng, Zhiyuan Fan, Banghua Zhu, Yulia Tsvetkov
Abstract
Long-horizon coding agents receive verifiable rewards only after completing expensive sequences of tool calls. This increases inference cost, amplifies early wrong hypotheses, and can lead to sparse terminal reward and unstable training. We introduce Contextual Early Reward (CER), which predicts terminal reward through behavioral evidence in a trajectory prefix. CER synthesizes adaptive rubrics specific to the current task and stage through experiences summarized from related historical tasks. In test-time scaling on SWE-bench Verified, CER improves RM@8 over the strongest baseline by 4.2 percentage points (pp) on Nemotron 3 Ultra and 2.0 pp on Qwen 3.6 27B; on Nemotron, it takes only 15.3% tokens to match the best baseline performance. In RL training experiments, CER exceeds full-rollout TMax by 1.9 pp while using 52.7% fewer online policy-and-judge tokens. Together, CER provides an interpretable, efficient, and dense evaluation method for long-horizon coding agents.
Create a lesson
Related papers
Opera: A Verbal Critic Framework for Long-horizon Coding Agents
Shared title terminologycs.CLKai Mei, Zhiyuan Hu, Yutong Dai et al.
CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon Policies
Shared title terminologycs.CLDawid J. Kopiczko, Tijmen Blankevoort, Yuki M. Asano
Dense Is Not Enough: Hierarchical Supervision Allocation for Long-Horizon On-Policy Distillation
Shared title terminologycs.CLYuhao Sun, Binrui Wu, Zhuoer Xu et al.
IRTIQA: Evolving in English, Evaluated in Urdu -- Does Agent Self-Evolution Transfer from English to Urdu and Code-Switched Input?
Shared title terminologycs.CLAbdullah Hashmat, Danish Javed, Usman Naseem et al.
Does Learning to Predict the World Help Agents Act? Auditing World-Model Post-Training
Shared title terminologycs.CLXinyu Che, Hang Yan, Yanchen Liu et al.
Groupwise Agentic Grading and Advantage Redistribution for Code Agent RL
Shared title terminologycs.CLJinhao Dong, Liang Zhao, Zihao Yue et al.