Key points

  • BuggyMLE planted bugs in 222 working ML repositories, creating more than 6,600 variants and nearly 260K lines of injected code.
  • Across 14 models, the top solve rate fell from 95% on the easiest tier to 9% on the hardest.
  • A Code Complexity Index predicted average solve rates on eight public coding benchmarks with an R² of 0.951.
  • A fine-tuned Qwen3.5-9B model raised its SWE-bench Lite resolve rate from 24% to 33%.

A research team has found a way to make tests for AI coding agents harder on demand: deliberately break working machine learning software, then ask the agents to fix it. Their framework, called BuggyMLE, generated more than 6,600 bug-injected versions of 222 source repositories. The team describes the work in a preprint posted on arXiv, which means it has not yet been peer-reviewed.

The researchers argue that AI systems meant to improve other AI models will need to handle machine learning engineering. That is the messy job of changing code spread across many files to reproduce results, debug training runs and move projects between frameworks. According to the team, current ML engineering benchmarks let agents edit only a single file, while popular repository-wide software benchmarks have saturated quickly, meaning top models now solve almost all of their tasks.

To set difficulty levels, the team created a Code Complexity Index. It combines ten structural features, including repository size, dependency depth and the size of the fix required. Across eight public coding benchmarks, the index predicted average solve rates with an R² of 0.951. The researchers then tested 14 models on a graded benchmark called BuggyMLE-Bench-Lite. The best solve rate dropped from 95% on the easiest tier to 9% on the hardest.

The team also built a three-level training curriculum from 200 additional repositories and used it to fine-tune a Qwen3.5-9B model. They say the model rivals frontier models on their benchmark. The gains also carried over to coding tasks outside machine learning: its SWE-bench Lite resolve rate climbed from 24% to 33%, and its pass@1 score on LiveCodeBench v6 went from 69% to 71%.

Why it matters

The authors say AI systems that improve AI models on their own will need agents capable of real machine learning engineering. A benchmark whose difficulty can be scaled up offers a way to measure that skill now that existing tests are saturating.

What we don't know yet

The study is a preprint and has not been peer-reviewed. The bugs were planted on purpose, and the source does not say how closely they resemble errors that occur naturally in real projects.

Terms in this story

Benchmark saturation
When the best AI models solve nearly every task in a test, so the test can no longer tell strong systems apart.
Repository
A project's complete collection of code files, settings and history, usually stored together in one place.
pass@1
The share of problems a model solves correctly on its first attempt.

Sources and verification

  1. BuggyMLE: Scaling Machine Learning Engineering Difficulty with Bug Injection arXiv · Nov 20, 2026 · preprint, not peer-reviewed
Fact-checked against the source on November 22, 2026: 21 factual claims verified.
Written in our own words: longest phrase shared with the source is 10 words.
Illustration created by DexScience; no third-party image was used.

DexScience articles are produced with AI assistance and an automated fact-check against the linked sources. Spotted an error? Tell us and we will correct it openly.