All stories
AI

Researchers trained AI to review code using past discussions

Their test contained 75 tasks; another model matched the findings to reference answers.

Two people look at computer screens displaying programming code.

How the AI was tested

The LegoReview team presented a way to train AI on the history of discussions about code changes on GitHub. In a preprint posted on December 1 at 03:48 UTC, the authors described how they collected and checked developer findings.

On the authors’ own test of 64 defective changes and 11 clean ones, the fine-tuned model achieved an F1 of 56.1%, compared with 5.7% for the original Qwen3.5-35B-A3B-Base model. F1 combines the precision of findings with the share of reference problems found; it is not the percentage of changes reviewed correctly. Results pool three runs, and GPT-5.6-Sol matched findings against references.

How team responses became training signals

The researchers collected histories of about 556,000 merged code changes and built about 168,000 tasks from them. A finding was labeled supported when an author or maintainer accepted it or made a fix. An explicit rejection or a reviewer’s withdrawal received the label opposed; missing or conflicting evidence led to an uncertain label.

For example, a finding about a bug could be rejected in a discussion yet judged valid in a separate technical check. In LegoReview, the verifier reduced a report’s score for matching findings labeled opposed. That label records what happened in the discussion; it does not guarantee the finding was technically wrong.

Why a team response does not settle every dispute

In a separate audit of 100 findings labeled opposed, 31% of cases with a decided judgment were considered technically valid: 27% concerned minor improvements and another 4% defects. The authors did not specify how those 100 were selected or the number of decided cases. The result cannot be generalized to all code reviews.

The authors excluded test repositories from training, but the audit of disputed findings was small. We did not reproduce the experiment: a rejected comment and an AI assessment still need to be checked against the code and the circumstances.

Primary sources

Photo by Mushvig Niftaliyev, published on Unsplash on September 13, 2024; Unsplash License. An archival illustration of code inspection; whether the people pictured are connected to the study is not established. Mushvig Niftaliyev · Unsplash · published 13 September 2024 · Unsplash License · Web adaptation, WebP.

Read next

King Charles III speaks with a guest at a Buckingham Palace reception in 2023.
AI

King Charles gathers contributors to new AI principles

The Ditchley Foundation has published ten principles, including an appeal to a human over consequential decisions. They do not establish a regulatory system.

Jensen Huang speaks into a microphone at an NVIDIA GTC panel in Washington on December 2, 2026.
Technology

NVIDIA CEO Huang explains shipping restriction on Megaspeed

At the Senate hearing, NVIDIA’s chief disputed a senator’s timeline. Archive photo: Huang at an NVIDIA GTC panel in Washington on December 2, 2026.

Jeff Dean wears headphones in a file photo.
AI

Jeff Dean’s Discovery Loop raises $1.2 billion

Its founder reports more than 5,000 internal AI-agent loops but does not explain how their results were evaluated.

All stories