AI
Compact Critic Models Boost Coding Agents' Performance While Cutting Inference Costs
Researchers train specialized small models to guide large coding agents through high-level planning, achieving substantial accuracy gains and cost reductions across multiple systems.
A new approach to improving coding agents replaces direct problem-solving with strategic guidance. Rather than training large language models to handle every aspect of code generation—from broad architectural decisions to granular implementation details—researchers have developed smaller critic models that specialize exclusively in high-level planning oversight.
The Core Challenge#
Coding tasks demand diverse, sometimes conflicting capabilities. A system optimized to balance planning, reasoning, and implementation may underperform at any single dimension. High-level planning, in particular, often acts as a critical bottleneck that limits overall effectiveness across coding agents of varying sizes.
Training Critics, Not Solvers#
The key innovation lies in the critic model's design: rather than attempting to solve problems or generate executable code, these models identify where a coding agent has gone astray and provide corrective strategic guidance. Researchers trained 4B and 8B parameter critics using supervised fine-tuning (SFT) and direct preference optimization (DPO), focusing the training data on error recognition and clear, actionable high-level direction.
Measurable Results#
Testing across six larger coding agents revealed substantial gains:
- GLM-4.7-Flash-30B-A3B: 16.0% improvement in resolved task rates on SWE-Bench Verified
- GPT-OSS-120B: 14.4% improvement in resolved rates
- GPT-OSS-20B: Per-example inference cost reduced from $0.07 to $0.03 by completing tasks in fewer steps
The improvements suggest that steering agents through better planning decisions yields compounding benefits: higher accuracy and lower computational overhead.
Why It Matters#
This approach sidesteps the need to train ever-larger monolithic models by distributing capabilities across specialized, lighter-weight systems. Smaller critic models consume fewer resources than the agents they guide, creating a favorable cost-benefit dynamic for deployment. The method is model-agnostic, compatible with different coding agents, and demonstrates that architectural innovation can rival or exceed raw scale as a path to better performance.

