BuggyMLE uses bug injection to build a graded ML engineering benchmark
How hard is it really for an agent to change code in a real ML repository? Existing benchmarks either allow edits to only a single file without giving the full repository and shell access, or are already saturated and cannot show differences between models. The paper first proposes a difficulty metric called CCI, which scores 10 structural features including repository size, dependency depth and patch size, and explains changes in average solve rates across 8 public coding benchmarks (R²=0.951), with patch size and complexity the strongest predictors. On this basis they built BuggyMLE: agents inject controlled bugs into ML repositories that run correctly, generating more than 6,600 variants and about 260,000 lines of injected code from 222 source repositories, and from these they selected the difficulty-tiered BuggyMLE-Bench-Lite. Across 14 models, the highest solve rate falls from 95% in the easiest tier to 9% in the hardest. They also used more than 200 other repositories to synthesise a three-level difficulty curriculum and fine-tuned Qwen3.5-9B, bringing it close to frontier models on this benchmark and raising its SWE-bench Lite solve rate from 24% to 33%. The paper does not say whether the distribution of these injected bugs matches bugs that appear in real development, which is the main uncertainty when extrapolating from a synthetic benchmark to real engineering.
Scores on repository-level coding benchmarks are already high, and using them to tell models apart is getting harder. MLE scenarios require changing code across files, running training and adjusting data, but existing MLE benchmarks restrict agents to single-file edits and cannot measure this ability. Uneven difficulty also makes it hard to compare how much different models solve.
People doing agent evaluation can tier tasks by CCI instead of reporting a single average solve rate. People doing training gain a ready-made path: synthesising curriculum data by difficulty lets small models improve noticeably on repository-level tasks, and this improvement carries over to non-ML coding tasks.