# Scaling MLE difficulty with BuggyMLE: Injecting bugs into ML repositories

Digest AI · Research · published 2026-11-20T05:00:00Z

Canonical: https://digestai.news/story/scaling-mle-difficulty-with-buggymle-injecting-bugs-into-ml-repositori

## Summary

This tool aims to simulate real-world machine learning engineering (MLE) challenges by injecting controlled mutations into existing ML repository codebases.

The team introduced a metric called the **Code Complexity Index (CCI)** which measures the difficulty level of modifying multi-file repositories for MLE tasks. CCI is based on ten structural features such as repository scale, dependency depth, and patch size. It has shown strong correlation with actual solve rates across various coding benchmarks.

Using BuggyMLE, the researchers created a **difficulty-graded** version of the MLE-Bench Lite framework. They injected controlled bugs into 222 source repositories to generate over 6,600 bug-injected repository variants and nearly 260K lines of code. This synthetic data allowed them to evaluate how different levels of difficulty affect solve rates.

The study found that as the difficulty level increased from easy to hard tiers, the top solve rate for MLE tasks dropped significantly—from 95% on the easiest tier to just 9% on the hardest tier. This indicates a substantial increase in complexity and challenge faced by ML engineers when dealing with real-world repository-level issues.

The researchers also fine-tuned a Qwen3.5-9B model across three difficulty levels using this synthetic training curriculum, resulting in improved performance on benchmark tests like SWE-bench Lite and LiveCodeBench v6.

Overall, the work highlights the importance of simulating real-world conditions to better prepare ML engineers for the complexities they will encounter when working with actual codebases. The findings suggest that MLE tasks become increasingly difficult as repository complexity increases, which could have implications for both training models and understanding human performance in these contexts.

## Key points

- Developed BuggyMLE framework for simulating MLE challenges
- Introduced Code Complexity Index (CCI) to measure difficulty
- Generated over 6,600 bug-injected repository variants

## Why it matters

This research provides valuable insights into the real-world complexities of machine learning engineering and can help prepare ML engineers for more challenging tasks in actual codebases.

## Sources

1. [BuggyMLE: Scaling Machine Learning Engineering Difficulty with Bug Injection](https://arxiv.org/abs/2611.25088) (arXiv cs.AI, 2026-11-20, primary source)

## Cite

Digest AI, "Scaling MLE difficulty with BuggyMLE: Injecting bugs into ML repositories", 20 November 2026, https://digestai.news/story/scaling-mle-difficulty-with-buggymle-injecting-bugs-into-ml-repositori

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/scaling-mle-difficulty-with-buggymle-injecting-bugs-into-ml-repositori.json
