AI Models are Still Not Perfect with Debugging Code According to Microsoft

📖 3 min read

Source: Tech Crunch

AI models from OpenAI, Anthropic, and other top AI labs are increasingly being used to assist with programming tasks. Google CEO Sundar Pichai said in October that 25% of new code at the company is generated by AI, and Meta CEO Mark Zuckerberg has expressed ambitions to widely deploy AI coding models within the social media giant.

Yet even some of the best models today struggle to resolve software bugs that wouldn’t trip up experienced devs.

new study from Microsoft Research, Microsoft’s R&D division, reveals that models, including Anthropic’s Claude 3.7 Sonnet and OpenAI’s o3-mini, fail to debug many issues in a software development benchmark called SWE-bench Lite. The results are a sobering reminder that, despite bold pronouncements from companies like OpenAI, AI is still no match for human experts in domains such as coding.

The study’s co-authors tested nine different models as the backbone for a “single prompt-based agent” that had access to a number of debugging tools, including a Python debugger. They tasked this agent with solving a curated set of 300 software debugging tasks from SWE-bench Lite.

According to the co-authors, even when equipped with stronger and more recent models, their agent rarely completed more than half of the debugging tasks successfully. Claude 3.7 Sonnet had the highest average success rate (48.4%), followed by OpenAI’s o1 (30.2%), and o3-mini (22.1%).

A chart from the study. The “relative increase” refers to the boost models got from being equipped with debugging tooling.Image Credits:Microsoft

Why the underwhelming performance? Some models struggled to use the debugging tools available to them and understand how different tools might help with different issues. The bigger problem, though, was data scarcity, according to the co-authors. They speculate that there’s not enough data representing “sequential decision-making processes” — that is, human debugging traces — in current models’ training data.

“We strongly believe that training or fine-tuning [models] can make them better interactive debuggers,” wrote the co-authors in their study. “However, this will require specialized data to fulfill such model training, for example, trajectory data that records agents interacting with a debugger to collect necessary information before suggesting a bug fix.”

The findings aren’t exactly shocking. Many studies have shown that code-generating AI tends to introduce security vulnerabilities and errors, owing to weaknesses in areas like the ability to understand programming logic. One recent evaluation of Devin, a popular AI coding tool, found that it could only complete three out of 20 programming tests.

But the Microsoft work is one of the more detailed looks yet at a persistent problem area for models. It likely won’t dampen investor enthusiasm for AI-powered assistive coding tools, but with any luck, it’ll make developers — and their higher-ups — think twice about letting AI run the coding show.

For what it’s worth, a growing number of tech leaders have disputed the notion that AI will automate away coding jobs. Microsoft co-founder Bill Gates has said he thinks programming as a profession is here to stay. So has Replit CEO Amjad MasadOkta CEO Todd McKinnon, and IBM CEO Arvind Krishna.

Last updated:
Word count: 492Reading time: 3 min

You Might Also Like

openai

Google’s newest AI model is designed to help study dolphin ‘speech’

Source: Tech Crunch Google’s AI research lab, Google DeepMind, says that it has created an AI model that can help decipher dolphin vocalizations, supporting research efforts to better understand how dolphins communicate. The model, called DolphinGemma, was trained using data from the Wild Dolphin Project (WDP), a nonprofit that studies Atlantic spotted dolphins and their behaviors. Built […]

Read more →
AI’s Role In Propelling Township Economies Forward

AI’s Role In Propelling Township Economies Forward

Access to the internet remains a significant barrier for many informal sectors in South Africa. As artificial intelligence (AI) becomes more prevalent, township economies cannot afford to fall behind. Jo Griffiths, founder of Global Innovation Initiative Group that specializes in funding and fostering innovation across Africa, emphasizes that AI could be a game-changer to revolutionize […]

Read more →
Crypto News Summary

Crypto News Summary for the first Week of February 2025

Bitcoin’s Volatility: This week, Bitcoin (BTC) experienced significant volatility, dropping to $96,000 after reaching an all-time high of $109,000 in January. The decline has been attributed to several factors including U.S. President Donald Trump’s tariff policies affecting trade with China, Canada, and Mexico. Analysts from Coinpedia suggest that despite the dip, Bitcoin might see a […]

Read more →
fixed income

Core Types of Fixed Income Instruments: An In-Depth Exploration

Navigating the investment landscape can feel like walking a tightrope, especially when market volatility is high. Fixed income investments, like bonds and CDs, offer a steady hand, balancing risk with reliable returns. They provide a solid foundation for any portfolio, ensuring you’re not swayed by market turbulence. Let’s dive into how these investments can bring […]

Read more →