SemPipes -- Optimizable Semantic Data Operators for Tabular Machine Learning Pipelines
Olga Ovcharenko, Matthias Boehm, Sebastian Schelter
TL;DR
SemPipes tackles the complexity of preparing tabular data for machine learning by introducing declarative semantic data operators that are powered by LLMs during training to synthesize optimized operator implementations. The approach separates high-level pipeline structure from data-centric transformations, enabling automatic optimization of data operations via evolutionary search while ensuring efficient inference without LLM usage. Empirical results across diverse tasks show that semantic operators improve predictive performance and simplify pipelines for both expert-designed and agent-generated code, often matching or surpassing specialized feature engineering and data processing baselines. The work provides a practical, open-source framework for integrating LLM-driven data operations into real-world tabular ML workflows, with clear avenues for extending operator coverage and cost-aware optimization.
Abstract
Real-world machine learning on tabular data relies on complex data preparation pipelines for prediction, data integration, augmentation, and debugging. Designing these pipelines requires substantial domain expertise and engineering effort, motivating the question of how large language models (LLMs) can support tabular ML through code synthesis. We introduce SemPipes, a novel declarative programming model that integrates LLM-powered semantic data operators into tabular ML pipelines. Semantic operators specify data transformations in natural language while delegating execution to a runtime system. During training, SemPipes synthesizes custom operator implementations based on data characteristics, operator instructions, and pipeline context. This design enables the automatic optimization of data operations in a pipeline via LLM-based code synthesis guided by evolutionary search. We evaluate SemPipes across diverse tabular ML tasks and show that semantic operators substantially improve end-to-end predictive performance for both expert-designed and agent-generated pipelines, while reducing pipeline complexity. We implement SemPipes in Python and release it at https://github.com/deem-data/sempipes/tree/v1.
