TL;DR
Researchers have developed a way to train "critic" models for coding agents using sparse, noisy real-world data rather than just unit tests. By introducing Critic Rubrics—a set of 24 behavioral features—they created a semi-supervised framework that significantly improves agent performance on benchmarks like SWE-bench and enables efficient early stopping, saving 83% of computation.
What Problem Does This Paper Address?
Most coding agent research relies on academic benchmarks like SWE-bench, where success is a binary "pass/fail" determined by unit tests. However, in the real world, coding agents work alongside humans. Success isn't just about passing a test; it’s about whether the code is maintainable, whether the user is frustrated, and whether the agent actually reduced the developer's workload.
Supervising agents in this real-world setting is incredibly difficult because:
- Feedback is sparse: Users rarely click "thumbs up" or "thumbs down."
- Feedback is delayed: A Pull Request (PR) might be merged days after the agent finished its work.
- Credit assignment is hard: If a PR is merged, which specific turn in a long conversation was the "winning" move? If it was rejected, was it because of a bug or just a change in project requirements?
Methods
The authors propose a multi-step process to turn messy interaction logs into a high-quality critic model:
- Interaction Segmentation: They break down long, multi-turn human-agent conversations into "segments"—minimal units of work starting with a user request and ending with an agent's "finish" action.
- Critic Rubrics: Instead of just predicting success, they define 24 behavioral features (rubrics) grouped into three categories: Agent Behavioral Issues (e.g., "misunderstood intent"), User Follow-up Patterns (e.g., "frustration"), and Infrastructure Issues.
- Outcome Proxies: They introduce Code Survival, a fine-grained metric that measures what fraction of an agent's code actually persists in the final merged PR. This is much more precise than a simple "PR merged" binary label.
- Semi-Supervised Multi-Task Learning: They train a 4B-parameter model (based on Qwen) to jointly predict these 24 rubrics and the success probability. Because rubrics can be labeled for all segments using a frontier LLM (like GPT-4o or o3), the model learns from the 96% of data that lacks a final success label.
Datasets
- Real-World Corpus: 151,837 segments derived from 38,241 real-world conversations on the OpenHands platform. Only about 4-6% of these have ground-truth outcome labels (PR merge or code survival).
- SWE-bench & SWE-Gym: Used for evaluation and to provide a baseline of "verified" autonomous trajectories.
- Combined Set: A mix of trajectories from different LLM backbones (Claude Sonnet 4.5 and Opus 4.5) to test how well the critic generalizes across different models.
Key Insights and Ideas
- Benchmarks vs. Reality: Rubric effects are much stronger and more consistent in benchmarks than in the real world. In SWE-bench, "incomplete implementation" is a death sentence for a trajectory; in the real world, a human might just fix the missing piece and merge the rest, leading to a "success" label despite the agent's failure.
- Code Survival > PR Merge: Training on code survival yields much better critics than training on PR merge status. PR merge is too noisy—sometimes good code isn't merged for reasons unrelated to the agent (e.g., the project maintainer went on vacation).
- Rubrics as a Regularizer: Success-only critics tend to overfit to the specific "style" of the LLM they were trained on. Adding rubric supervision makes the critic more robust and "backbone-invariant," allowing a critic trained on one model's traces to accurately judge another's.
- Efficiency: The trained 4B critic is 16x faster than using a frontier LLM-as-a-judge, making it practical for real-time applications like early stopping.
Key Results
- Inference-Time Scaling: Using the critic for "Best-of-8" reranking on SWE-bench improved the solve rate by 15.9 points over random selection.
- Early Stopping: The critic can identify failing trajectories early. By stopping when the score drops below a threshold, they achieved a +17.7 point gain over random while using 83% fewer attempts (1.35 attempts vs. 8).
- Data Curation: Using the critic to select high-quality real-world data for Supervised Fine-Tuning (SFT) improved an agent's performance on SWE-bench by 1.6 points compared to random data selection.
Limitations and Future Work
- Fixed Taxonomy: The 24 rubrics are currently fixed. Future work could involve "evolving rubrics" that adapt as agents become more sophisticated and develop new types of failure modes.
- Privacy Constraints: Because the raw interaction logs contain private code and credentials, the authors could only release the rubric definitions, labeling code, and the final trained critic model, not the raw training data itself.
- Causality: The paper identifies associations between behaviors (rubrics) and outcomes, but it doesn't strictly prove that fixing a specific behavior will cause a success.
For more details, you can find the critic model on Hugging Face and the rubric framework on GitHub.
Summary updated