← Latest papers
🤖 AI

Steer, Don't Solve: Training Small Critic Models for Large Code Agents

This paper proposes training small, supervised fine-tuned critic models to provide intra-trajectory steering for large code agents, demonstrating that this approach significantly improves performance on benchmarks like SWE-bench Verified while reducing both computational costs and trajectory lengths compared to end-to-end training or post-hoc scoring.

Original authors: Shubham Gandhi, Yiqing Xie, Atharva Naik, Ruichen Zhu, Carolyn Rose

Published 2026-06-23
📖 5 min read🧠 Deep dive

Original authors: Shubham Gandhi, Yiqing Xie, Atharva Naik, Ruichen Zhu, Carolyn Rose

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Idea: The GPS vs. The Driver

Imagine you are trying to drive a car from New York to Los Angeles. You have a very skilled driver (the Code Agent) who knows how to turn the wheel, press the gas, and change gears perfectly. However, this driver sometimes gets confused about the big picture. They might drive in circles, take a wrong turn because they misread a sign, or keep trying to drive through a wall because they think it's a door.

Usually, to fix this, people try to retrain the driver from scratch. But that's expensive, takes a long time, and the driver might still get stuck on the same confusing roads.

This paper proposes a different solution: Instead of retraining the driver, we hire a small, smart GPS navigator (the Critic Model).

  • The Driver (Agent): Does all the actual work (writing code, running commands). They stay exactly the same; we don't change their brain.
  • The GPS (Critic): Doesn't touch the steering wheel. Instead, it watches the driver every few minutes. If the driver starts going in circles or heading toward a cliff, the GPS says, "Hey, you're looping! You're trying to fix the wrong file. Stop and rethink your strategy."

The paper shows that this small GPS is much cheaper to hire than a super-smart human navigator, and it helps the driver get to the destination much faster and more often.


The Problem: Why Just "Training" Isn't Enough

The authors noticed that when you train big AI coding agents to solve software bugs, they get really good at the mechanics (typing code, running tools). But they often fail at the strategy (figuring out the right plan).

It's like teaching a student to write essays. You can teach them perfect grammar and spelling (the mechanics), but if they don't know how to organize their thoughts or stay on topic (the strategy), the essay will still be a mess.

When you try to train the AI to do both at once, it hits a "ceiling." It gets stuck. The authors found that about 65% of failures weren't because the AI wrote bad code, but because it had flawed reasoning.

The Solution: A "Small Critic"

The team built a system where a small AI model (the Critic) sits next to the big coding agent.

  1. The Setup: The big agent tries to solve a problem. Every 5 or 10 steps, it pauses.
  2. The Check-in: The small Critic looks at what the agent has done so far.
  3. The Advice: The Critic gives a short, high-level tip.
    • Bad advice: "Delete line 42 and write a loop here." (This is "backseat driving" and the paper says this is bad because the small model isn't smart enough to know the code better than the big one).
    • Good advice: "You are repeating the same command three times. You are stuck in a loop. Try a different approach." (This is "steering").
  4. The Resume: The big agent reads the advice and continues working.

How They Trained the GPS

To teach the small Critic how to give good advice, they didn't just guess. They used a "Teacher" (a massive, very expensive AI called Claude-Opus-4.6) to generate the advice first.

  • The Teacher: The expensive AI watched the agent work and wrote down perfect, high-level advice.
  • The Student: The small, cheap AI (Qwen3-8B) studied these notes. It learned to mimic the style of the advice (focusing on strategy, not specific code lines) without needing to be as smart as the Teacher.

Crucial Discovery: The paper found that the type of advice matters most.

  • If the Teacher gave specific code instructions, the small student couldn't learn it well.
  • If the Teacher gave high-level strategy (e.g., "You're stuck," "Check your assumptions"), the small student learned it perfectly.

The Results: Faster, Cheaper, and Smarter

The team tested this on a famous benchmark called SWE-bench, which is like a test of 500 real-world software bugs.

  1. It Works on Different Drivers: They trained the Critic using one type of coding agent (CWM-32B). Then, they used that same Critic to help two different coding agents (Qwen models) that it had never seen before.
    • Result: The new agents got significantly better at solving bugs just by listening to the Critic.
  2. It Saves Money: The "Teacher" (Claude-Opus) is very expensive to run. The "Student" (Qwen3-8B) is tiny and cheap.
    • Result: The system using the small Critic was 30 to 92 times cheaper than using the expensive Teacher.
  3. It Actually Saves Time: On one of the big agents, the Critic didn't just make the agent smarter; it made the agent stop wasting time. The agent finished tasks faster, which saved even more money. In fact, the whole system (Agent + Critic) was cheaper than the Agent working alone.

The "Secret Sauce"

The paper highlights two main reasons why this worked:

  1. Separation of Concerns: The Agent focuses on doing (coding), and the Critic focuses on thinking (strategy). They don't fight over who is in charge.
  2. No Backseat Driving: The Critic is strictly forbidden from saying "Write this specific line of code." It only says "You are going the wrong way." This prevents the small model from giving bad, specific instructions that confuse the big model.

Summary

Think of this paper as a blueprint for building a team rather than a super-hero. Instead of trying to make one giant, perfect AI that does everything (which is hard and expensive), they built a system where a small, specialized coach guides a powerful worker.

The coach doesn't do the work, but by giving the right high-level nudges, the worker solves problems they couldn't solve alone, and the whole team finishes the job faster and for less money.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →