Code review findings cannot be verified by running tests. This approach uses PR discussions and follow-up revisions as the verification signal to build training data for automated reviewers at scale.
Key takeaways · AI-distilled
LegoReview treats merged GitHub PR histories as an implicit check on review findings, since discussions and later revisions show which findings were fixed and which were withdrawn, turning 556k PRs into 168k review tasks and 60k verified trajectories.
fine-tuningTaking a trained model and training it a bit more on your own examples so it gets better at one specific job.Full definition → Qwen3.5-35B-A3B-Base on just 1k verified trajectories raised F1 on LegoReview-Bench from 5.7 to 43.1, and scaling to 60k trajectories raised it to 56.1.
Joint TrainingThe process that adjusts a model using examples and a measure of how well it performs.Full definition → with review trajectories lifted DeepSWE from 26.5 to 31.9 and SWE-benchThe standard benchmark for AI coding agents: real GitHub issues from real repositories, scored by whether the agent's patch passes the project's own tests.Full definition → Pro V2 Hard from 62.8 to 70.6 versus coding-only training; the authors' behavioral analysis suggests review training makes models check code more often while implementing.
Terms in this piece · Glossary
Training — The process that adjusts a model using examples and a measure of how well it performs.
fine-tuning — Taking a trained model and training it a bit more on your own examples so it gets better at one specific job.
SWE-bench — The standard benchmark for AI coding agents: real GitHub issues from real repositories, scored by whether the agent's patch passes the project's own tests.