论文概要
领域: NLP 作者: Miaobo Hu, Shuhao Hu, Xiaobo Guo, Xin Wang, Bokun Wang, Yina Sa, Daren Zha, Jun Xiao 发布时间: 2026-10-05 arXiv: 2610.00328
Introduction
Structured tool calls often fail when only a small number of fields violate a schema or an execution contract. Regenerating the complete object enlarges the action surface and makes repeated repair difficult to audit. ContractRL addresses this by modeling verifier-guided JSON repair as a bounded decision process.
Method
- At each step, the policy observes: the candidate object, typed verifier feedback, JSON Pointer, an immutable repair history, and the remaining budget.
- A contract-derived action mask filters malformed or prohibited RFC-6902 operations before a deterministic validator performs the transition.
- A contract-constrained group-relative objective specifies patch, retry, and abstention decisions, while canonical targets and semantic labels are kept outside the online state until trajectory freeze (shielded group-relative policy optimization).
- Policy optimization lifts the supervised variant from 0.9186 to 0.9375.
- Independent three-seed paired evaluation vs Patch-SFT: +0.0396 semantic difference (95% CI [+0.0137, +0.0662], p=0.0039).
- Feedback, action-mask, budget, and schema-drift analyses attribute gains to localized corrections; adversarial and multi-turn evaluations characterize remaining failure modes.
- Paper: https://arxiv.org/abs/2610.00328
Results
Under identical verifier information (192 cases per seed, five seeds):
| Method | Semantic success | Generated tokens | |---|---|---| | ContractRL | 0.9362 | 34.4 | | Patch-SFT | 0.9076 | 44.9 | | Full regeneration | 0.9148 | 137.2 |