When the Judge Reads the Attack
In a local code cascade, a small model writes a draft, a judge model reviews it, and a larger model is called when the judge rejects it. That means the judge reads text an attacker may control. My first study found injected text could raise one judge’s false-accept rate by up to 60 points. This follow-up asks what injection does to the gate itself, and what it costs.
Read the paper and replication package on Zenodo (DOI 10.5281/zenodo.24117786).
The setup
Qwen2.5-Coder 3B wrote drafts for held-out BigCodeBench tasks, and Qwen2.5-Coder 14B was the escalation model. Nine local judges from 1.5B to 14B parameters reviewed them. Payloads were benign canaries, planted as comments, authority claims, fake role tags, string literals and identifiers, and each attack was compared with a matched neutral comment. The design was pre-registered, and all 15,120 labels came from models running on one MacBook Air.
What I found
| Question | Answer |
|---|---|
| Does planted repository context reach the drafter’s code? | No: 0 of 150 drafts, upper bound 2.5% |
| Does text in a draft change the verdict? | Reject-leaning text raised false rejection of correct drafts for 8 of 9 judges, by 10 to 43 points |
| Does it work in the other direction? | Approve-leaning text raised false acceptance of wrong drafts by over 10 points for 4 judges |
| Does a thinking judge spend more tokens? | No measurable increase: +104 per draft [-429, +615] on a base of 2,066 |
| What does it cost the cascade? | Reject-leaning text raised compute by 3% to 37%, with accuracy nearly unchanged |
- The cost is in decisions, not reasoning. The thinking judge mentioned the canary in its reasoning in 53 of 120 responses and never in its answer, without spending extra tokens. The attack’s cost came from forced escalations to the larger model.
- Cost can fall too. Approve-leaning text lowered compute, because wrong drafts were waved through.
- Bigger was not safer. Within one model family, susceptibility did not shrink with size. After the fact, how far plain neutral text moved a judge predicted its susceptibility better than its parameter count did.
What to do with it
If you build a judge-gated cascade: calibrate the judge on drafts that contain added text, choose judges by measured robustness rather than size, and watch for cost that falls as well as cost that rises.
Limits
The thinking-judge test used one model and 40 drafts, the wrong-draft sample was small, payloads were placed by hand, and every model was a local, quantized build on one machine.
Claude Code helped build the pipeline, run the experiments and draft the manuscript, as the paper declares. I made the design and approval decisions, and I take responsibility for the content.