Grafy News
Try Grafy free

AI Code Reviewers: Does Higher Reasoning Effort Reduce Errors?

Researchers found that increasing reasoning effort in Claude 5.5 models helps catch more incorrect code patches, though no setting is a perfect gate.

Illustration for the news story: AI Code Reviewers: Does Higher Reasoning Effort Reduce Errors?Source: Grafy Research Lab

As AI coding agents accelerate the volume of code being submitted to repositories, the bottleneck is shifting from writing code to reviewing it. New research suggests that for reasoning-capable models, increasing the level of computational effort can significantly improve the ability to detect flawed code patches.

How does reasoning effort impact code review accuracy?

In a study conducted by Zax Shen, Hanling Zhang, and Zixu Wang, researchers examined how different levels of reasoning effort affect the performance of Claude 5.5 models acting as code reviewers. The team tested three models—Opus 5.5, Sonnet 5.5, and Haiku 5.5—using low, medium, and high effort settings to review 90 Django patches from the SWE-bench Verified dataset.

To ensure the test was rigorous, the researchers used "plausible-but-wrong" patches. These are code changes that pass standard benchmark tests but fail when subjected to more stringent requirements, such as those provided by SWE-ABS. According to the authors, increasing the effort setting consistently improved the models' ability to reject incorrect code. For example, in the Opus model, the rate of "false success" (accepting a wrong patch) dropped from 0.67 at low effort to 0.45 at high effort. Similar trends were observed in Sonnet (0.65 to 0.49) and Haiku (0.78 to 0.51).

Is there a sweet spot for cost and diligence?

For developers and teams implementing AI reviewers, the primary concern is the trade-off between accuracy and the cost of running reasoning models. The researchers investigated whether a "medium" effort setting could provide similar benefits to a "high" effort setting at a lower price point.

For the Claude Opus 5.5 model, the findings suggested a potential efficiency gain. The study found that medium effort was non-inferior to high effort within a 15 percentage point margin of error, while costing 20% less. However, for the smaller Sonnet and Haiku models, the medium effort setting was not shown to be non-inferior to the high effort setting, despite being significantly cheaper (39% and 51% less, respectively).

Can AI reviewers be used as a perfect gate?

While increasing effort improves detection, the research indicates that no current setting serves as an absolute gate for code quality. Even at the highest effort levels, every model tested still accepted at least 45% of the incorrect patches.

The researchers also noted that the effectiveness of these reviewers is closely tied to the quality of the tests being used. They observed that for 32 of the 55 wrong patches, the underlying issue might not have been directly addressed by the specific test being checked. This suggests that an AI reviewer's ability to catch defects is heavily dependent on whether the testing suite is designed to catch the specific type of error present in the patch.

What do AI reviewers say when they reject code?

The study also explored the qualitative aspect of AI-driven reviews. Through exploratory coding, the authors found that when the models rejected a wrong patch, they often correctly identified the specific defect that the failing test was designed to catch. Increasing the reasoning effort appeared to increase the frequency of these detailed, defect-specific rejections, providing more actionable feedback to the original author of the code.

How can developers apply these findings?

For software engineers working with AI-assisted workflows, these results highlight that "more thinking" generally leads to better oversight, but it is not a silver bullet. When setting up automated review pipelines, teams might consider using higher-tier reasoning models like Opus at a medium effort setting to balance cost and accuracy, or utilizing smaller models like Haiku at high effort if budget constraints are extreme.

If you are building or experimenting with AI-driven development workflows, you can explore how different models handle complex tasks within Grafy Code. While the specific "effort settings" mentioned in this research are model-specific, using a multi-model workspace allows you to compare the outputs and reasoning capabilities of various models side-by-side to find the right balance for your specific coding needs.

Frequently asked questions

Does increasing effort help AI models catch more code errors?

Yes, the research shows that in every model tested, higher reasoning effort led to a lower rate of false successes. This means that as the model is given more computational resources to "think," it becomes more successful at identifying and rejecting code patches that appear correct but are actually flawed.

Is medium effort always better than high effort for cost savings?

Not necessarily. For the Claude Opus 5.5 model, medium effort was found to be nearly as effective as high effort while being 20% cheaper. However, for the Sonnet and Haiku models, the study did not find that medium effort was non-inferior to high effort, meaning the higher cost of the high-effort setting may be required for accuracy in those models.

Can an AI reviewer act as a complete replacement for human oversight?

No, the study suggests that AI reviewers are not a perfect gate. Even at the highest effort settings, the models still accepted at least 45% of the incorrect patches. Therefore, they should be viewed as a tool to augment the review process rather than a total replacement for human verification and robust testing suites.

Source: Zax Shen, Hanling Zhang, and Zixu Wang, "How Much Effort Does an AI Code Reviewer Need? Evidence from Claude 5.5 Models on Plausible-but-Wrong Patches."


Source: Grafy Research Lab — How Much Effort Does an AI Code Reviewer Need? Evidence from Claude 5.5 Models on Plausible-but-Wrong Patches