OpenAI’s CriticGPT beat experienced human code reviewers in 62.8% of comparisons on code with naturally occurring model errors (63% rounded) and in 85% of comparisons on code with subtle human-inserted bugs. In LLM Critics Help Catch LLM Bugs (June 2024), Nat McAleese, Rai (Michael Pokorny), Juan Felipe Cerón Uribe, Evgenia Nitishinskaya, Maja Trębacz, and Jan Leike tackled a core bottleneck in reinforcement learning from human feedback (RLHF): contractors cannot reward correctness if they miss the bug in the first place.

Trained with RLHF on adversarially tampered Python completions and paired with a constrained search method called Force Sampling Beam Search (FSBS), CriticGPT acts as a scalable oversight assistant rather than an autonomous judge.

  • Preferred over contractors and ChatGPT on real bugs: On Human Detected Bugs (previously caught in ChatGPT labeling), annotators preferred CriticGPT over unassisted contractors 62.8% of the time (69% CI: 60.5% to 65.1%), CriticGPT over ChatGPT 62.7% of the time, and Human+CriticGPT teams over humans alone 60.4% of the time.
  • 30x effective pretraining compute jump: Across GPT-4 model scales, matching RL-trained CriticGPT’s inserted-bug catch rate solely by pretraining a larger ChatGPT model would require roughly 30x more pretraining compute.
  • Finds missed errors outside code: When sampling CriticGPT critiques across ChatGPT training answers previously rated “flawless” (mostly non-code tasks), human reviewers confirmed substantial flaws lowering the score in 24% of flagged cases, versus 6% baseline disagreement without a critic.
  • Human-machine teams beat the model-only Pareto frontier: Unassisted contractors averaged 50 minutes per review and missed bugs due to shorter critiques and missing library knowledge, while LLMs hallucinated more bugs; Human+CriticGPT teams kept critic recall while filtering out false alarms.
Critique preference win rates across real and tampered LLM code
Human + CriticGPT vs. Human alone (Detected Bugs)60.4% (69% CI: 58.0–62.8%)
CriticGPT vs. ChatGPT baseline (Detected Bugs)62.7% (69% CI: 59.6–65.8%)
CriticGPT vs. Human contractor (Detected Bugs)62.8% (69% CI: 60.5–65.1%)
ChatGPT vs. Human contractor (Inserted Bugs)76% preference
CriticGPT vs. Human contractor (Inserted Bugs)85% preference

50% marks parity; higher favors the first listed reviewer. Source: McAleese et al. (2024), Figure 1a and Table 3.

How It Works

Training a code critic strictly on unmodified RLHF responses failed in practice: annotators disagreed heavily on open-ended flaws, and models trained without reference bugs performed poorly under the paper’s compute budget. To create crisp ground truth on real LLM-style code, the authors built a three-part pipeline around adversarial tampering:

CriticGPT training and test-time search pipeline
1. Adversarial tampering
Contractors edit ChatGPT Python answers to insert subtle bugs that evade an existing LLM critic in at least 1 of 3 samples, then write a gold bug note.
2. Critique RLHF (PPO)
Raters score 4 blind critiques on bug inclusion, comprehensiveness, nitpicks, and hallucinations; PPO optimizes a GPT-4 checkpoint against that reward model.
3. Force Sampling Beam Search
Appends ``` to force quoted highlights over 4 rounds (28 candidates) and maximizes rm_score + lambda * num_highlights.

Default CriticGPT uses RL+FSBS at the 50th percentile length setting (averaging 4 highlighted issues per critique). Source: McAleese et al. (2024), Sections 2.2, 2.3, and 7.1.

Because contractors were shown the tamper description during critique comparisons, inter-annotator agreement rose sharply on whether a candidate critique caught the reference bug (Krippendorff’s alpha well above subjective attributes like nitpicking or comprehensiveness). CriticGPT and ChatGPT shared the exact same pre-trained GPT-4 starting checkpoint, with CriticGPT receiving less total fine-tuning compute and a reward model blending critique comparisons with standard ChatGPT preference data.

Key Findings

Writing longer critiques boosts bug recall (comprehensiveness and critique-bug inclusion) at the cost of inventing fake bugs and nitpicks. RL-only CriticGPT swung toward precision, hallucinating far less than ChatGPT but occasionally appearing less comprehensive on natural Detected Bugs. FSBS gives operators a deployment-time dial: sweeping LENGTH_MODIFIER traces a tunable Pareto curve across 2 to 5 average highlights without retraining.

To evaluate real trusted monitoring workflows, the authors pre-seeded contractors’ review forms with CriticGPT comments. Contractors frequently deleted weak or hallucinated comments and kept valid ones intact (adding or editing comments less often), yielding critiques roughly as comprehensive as CriticGPT alone while cutting hallucination and nitpick rates below both CriticGPT and ChatGPT.

Separately, trained binary “tamper-or-not” discriminators did not explain critic performance: even on the 10% of tampered snippets where the largest discriminator was most confidently wrong, CriticGPT still caught the inserted bug roughly 54% of the time, echoing questions raised by AI safety via debate about how best to elicit latent model knowledge.

Caveats and Builder Takeaway

  • Failed on hard competition code without execution: In a controlled test on paired passing vs. failing solutions similar to DeepMind Code Contests (20-minute limit, no code execution), an early GPT-4 critic without FSBS did not significantly raise human accuracy in distinguishing correct solutions. Generating subtle failures took heavy sampling compute, outmatching single-sample critique compute.
  • Short single-file snippets only: Training and evaluation extracted the largest Python block from ChatGPT replies (95th percentile ~405 to 660 tokens), with no multi-file repositories, tool execution, or multi-step bug localization.
  • Hallucinations remain non-trivial, and downstream RLHF impact is unmeasured: CriticGPT still hallucinates more issues than unassisted humans, and the authors did not run the costly end-to-end test of retraining a coding model with CriticGPT-assisted labels to verify that new shared critic biases do not degrade the final policy.

Builder takeaway: Do not treat an LLM code critic as an autonomous pass/fail gate; use constrained highlight-and-comment generation to pre-seed human reviewers so people spend their attention verifying pointed claims and pruning false positives rather than hunting cold across long outputs.