ML2B: Benchmarking LLMs on Cross-Lingual ML Pipeline Generation
This paper introduces ML2B, the first benchmark for evaluating cross-lingual machine learning pipeline generation by large language models, which utilizes 490 task-language pairs across 14 languages to reveal that performance degradation is highly task-dependent rather than following traditional resource hierarchies.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a world where you can ask a super-smart robot to build a machine learning model for you, just by typing a simple request like, "Predict which customers will buy our new shoes." For a long time, these robots—called Large Language Models (LLMs)—have been incredibly talented at this, but only if you speak to them in English. It's like having a brilliant chef who can cook a five-star meal if you give the recipe in English, but if you hand them a recipe in French, Spanish, or Japanese, they might just stare at the ingredients and burn the kitchen down.
This is the problem researchers are tackling: as AI spreads across the globe, we need to know if these digital chefs can actually follow instructions in any language, not just the one they were mostly trained on. But there's a catch. If we just ask them to solve puzzles that are already on the internet, the robots might have memorized the answers from their training data, making them look smarter than they really are. It's like giving a student a math test they've already seen the answers to; they get an A, but we don't know if they actually understand algebra. To get a true picture, we need a test that is fresh, fair, and spoken in many different tongues.
Enter ML2B, a new "exam" created by a team of researchers to test how well these AI robots can build complete machine learning pipelines when the instructions are in 14 different languages. Think of ML2B as a massive, multilingual cooking competition. Instead of just asking the robots to write a single line of code, the researchers gave them 35 real-world challenges—like predicting house prices, identifying dog breeds, or spotting toxic comments—and translated the instructions into languages ranging from Arabic and Chinese to Kazakh and Ukrainian.
To make sure the robots couldn't cheat by memorizing answers, the team included 10 "secret" competitions where the solutions were never made public. They also built a special, isolated digital kitchen (a network-isolated container) where the robots had to cook their code. If the robot tried to sneak in a pre-made dish from the internet or used a recipe that mixed up the ingredients before cooking (a problem called "data leakage"), the system would catch them. The robots had to follow strict rules, like separating the "training" phase from the "prediction" phase, just like a real chef wouldn't taste the final dish before it's fully cooked.
When the researchers ran the tests with top-tier AI models, they found something surprising that challenges what many people assumed. They expected that robots would struggle the most with "low-resource" languages (languages with less digital data available) and do best with "high-resource" ones like English or French. But the results showed that the language itself wasn't the main boss. Instead, the difficulty depended entirely on what the robot was being asked to do. Sometimes, a robot did better in a "low-resource" language than in English, and other times it crashed and burned in a "high-resource" one.
The study suggests that the real bottleneck isn't just knowing the words; it's about following the complex, step-by-step instructions of building a machine learning model. The researchers found that the robots often failed not because they didn't understand the language, but because they messed up the structure of the code—like forgetting to close a parenthesis or using a tool that didn't exist in the version of the software they were using. One model, GPT-4.1-mini, was great at coming up with high-quality ideas but often failed to finish the job correctly, while another, GPT-OSS-120b, was more reliable at following the rules but sometimes produced simpler results.
Ultimately, ML2B reveals that we can't just assume an AI is good at everything just because it speaks many languages. The ability to build complex tools depends heavily on the specific task at hand, not just the language used to ask for it. By opening up this new benchmark to the public, the authors hope to help developers build robots that are not only multilingual but also truly robust and reliable, no matter what language they are asked to speak or what problem they are asked to solve.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.