Evolving Executable Pipeline Programs for AutoML with Language Models
LACE is a novel AutoML framework that employs an evolutionary loop guided by a large language model to generate and evolve executable Python pipeline programs, achieving competitive accuracy on 68 OpenML tasks while offering superior transparency, editability, and search space flexibility compared to traditional systems.
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
In the world of modern data science, machines are increasingly asked to make sense of messy, real-world information: predicting whether a loan applicant will repay, diagnosing a disease from a spreadsheet of symptoms, or forecasting sales based on past trends. To do this, researchers build "pipelines," which are step-by-step instructions that clean the data, choose a mathematical model, and tune that model until it performs well. For years, the most powerful tools for this job have been automated systems that act like a master chef with a fixed set of ingredients. These systems can mix and match known pre-processing steps and learning algorithms, adjusting the quantities to find the best flavor. However, they are strictly limited to the pantry they were given; they cannot invent a new ingredient or a new cooking technique that falls outside their pre-defined list. This limitation means that if the best solution requires a structure the system has never seen before, it will remain undiscovered.
A team of researchers at Leiden University has now introduced a different approach, one that treats the creation of these data pipelines not as a selection from a menu, but as the writing of a new recipe from scratch. They developed a system called LACE, which uses a large language model—an artificial intelligence trained on vast amounts of text and code—to act as an evolutionary engine. Instead of choosing from a fixed list of tools, LACE asks the AI to write complete, executable computer programs that define how to process data and make predictions. The system then tests these programs, learns from their mistakes, and asks the AI to write improved versions, repeating this cycle until it finds a highly effective solution. The result is a system that does not just tweak existing tools but can compose entirely new structures, producing code that human experts can read, understand, and modify directly.
The researchers tested this method on 68 different data classification tasks, ranging from small datasets with a few hundred entries to massive collections with nearly five million rows. They compared LACE against several established automated systems and a set of fixed, pre-trained models. The results showed that LACE, when powered by a specific language model, performed as well as the strongest existing automated systems and significantly better than older methods. Crucially, while some of the newer pre-trained models were slightly more accurate on the specific tasks they could handle, they failed to work on many of the larger or more complex datasets in the test set. LACE, by contrast, successfully generated a working solution for every single task it was given.
What makes this achievement particularly notable is the nature of the output. Traditional automated systems often return a "black box"—a complex, fitted object that works well but is difficult for a human to inspect or change without deep technical knowledge of the software framework. LACE returns ordinary Python code. This means a data scientist can look at the final program, see exactly how the data was cleaned, which models were chosen, and how they were combined, and then edit the code to improve it further or adapt it for a new purpose. The researchers found that the AI did not just copy existing patterns; it evolved diverse solutions, often combining different types of models in novel ways and writing custom logic to blend their predictions. In many cases, the AI wrote its own code to mix the outputs of multiple models, a level of flexibility that fixed systems cannot easily replicate.
The study also addressed a common concern in artificial intelligence research: that the AI might simply be memorizing the answers to the test questions because it has seen them before during its training. To prevent this, the researchers hid the names and specific details of the datasets from the AI, giving it only a general description of the data's size and type. Despite this lack of specific knowledge, the system still found high-performing solutions, suggesting it was genuinely learning how to construct effective pipelines rather than recalling answers. The researchers further verified that the AI followed strict rules, such as not using hidden internal searches to tune its own settings, ensuring that the improvements came from the evolutionary search process itself.
One of the most striking findings was how quickly the system improved. The first program generated by the AI was often flawed or incomplete, but as the system iterated, it learned to fix these errors and refine the logic. By the time the process finished, the final programs were not only valid but significantly more accurate than the initial attempts. The researchers observed that the system tended to favor certain types of models, such as tree-based ensembles, but it did not get stuck in a single pattern; it explored a wide variety of structural combinations. This diversity suggests that the system is capable of discovering solutions that a human might not think to try, or that a rigid system would never consider.
The work demonstrates that treating automated machine learning as a process of writing and evolving code opens up a new frontier. It moves beyond the constraint of a fixed library of tools, allowing the system to adapt its structure to the specific problem at hand. While the computational cost of running these experiments was high, requiring significant time to generate and test thousands of candidate programs, the results suggest that the ability to produce transparent, editable, and highly effective code is a valuable trade-off. The researchers conclude that this approach offers a promising path forward, where the search for the best data pipeline is defined by the creativity of the code itself, rather than by the limitations of a pre-selected set of components.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.