SoftPipe: A Soft-Guided Reinforcement Learning Framework for Automated Data Preparation

Jing Chang, Chang Liu, Jinbin Huang, Shuyuan Zheng, Rui Mao, Jianbin QinarXiv 2025

Abstract

Data preparation is a foundational yet notoriously challenging component of the machine learning lifecycle, characterized by a vast combinatorial search space. While reinforcement learning (RL) offers a promising direction, state-of-the-art methods suffer from a critical limitation: to manage the search space, they rely on rigid "hard constraints" that prematurely prune the search space and often preclude optimal solutions. To address this, we introduce SoftPipe, a novel RL framework that replaces these constraints with a flexible "soft guidance" paradigm. SoftPipe formulates action selection as a Bayesian inference problem. A high-level strategic prior, generated by a Large Language Model (LLM), probabilistically guides exploration. This prior is combined with empirical estimators from two sources through a collaborative process: a fine-grained quality score from a supervised Learning-to-Rank (LTR) model and a long-term value estimate from the agent's Q-function. Through extensive experiments on 18 diverse datasets, we demonstrate that SoftPipe achieves up to a 13.9% improvement in pipeline quality and 2.8× faster convergence compared to existing methods.

Introduction

Data preparation is often described as the most time-consuming phase of machine learning, involving a complex sequence of cleaning, transformation, and feature engineering steps. The search space for these operations is astronomical, frequently exceeding $10^{11}$ possible configurations. To navigate this complexity, current automated tools employ Reinforcement Learning (RL) but often rely on "hard constraints"—deterministic rules that forbid specific operator sequences (e.g., preventing the use of multiple scaling operators).

While these constraints simplify the search, they frequently exclude optimal solutions. For instance, in the wall-robot-nav dataset, the highest performing pipeline requires a combination of preprocessing operators that standard tools strictly forbid. SoftPipe addresses this by transitioning from deterministic constraints to a probabilistic "soft guidance" system, allowing the agent to explore unconventional but high-performing paths.

The SoftPipe Framework

SoftPipe reimagines action selection as a Bayesian inference problem, integrating high-level strategic knowledge with empirical performance data. The architecture consists of three primary components:

  1. Strategic Planner (The Prior): Utilizing a Large Language Model (LLM), this component analyzes dataset meta-features (such as size, missing values, and column semantics) to generate a probabilistic distribution over operator types. This acts as a strategic guide, suggesting likely successful paths without strictly enforcing them.
  2. Model Estimators (The Likelihood): This layer fuses two distinct empirical signals. A Learning-to-Rank (LTR) model provides immediate quality scores based on historical data preparation experiences, while the RL Q-function estimates the long-term value of actions through iterative training.
  3. Collaborative Policy (The Posterior): The final policy mathematically combines the LLM's strategic prior with the empirical estimators. This allows the system to follow expert-like heuristics initially while retaining the flexibility to override them if empirical evidence suggests a superior, unconventional sequence.
The SoftPipe framework architecture, illustrating the integration of LLM-based strategic planning with RL and LTR estimators.

Experimental Evaluation and Results

The framework was evaluated against 18 diverse real-world datasets from the OpenML repository, including benchmarks like abalone and house-prices. SoftPipe demonstrated significant improvements over existing state-of-the-art methods in both quality and efficiency.

Comparison of accuracy and pipeline sequences across different automated data preparation approaches.

Key findings from the experimental results include:

  • Superior Pipeline Quality: SoftPipe achieved the highest average performance rank (1.78) across all datasets, outperforming Auto-Sklearn (2.72) and CtxPipe (3.72). It successfully discovered optimal pipelines that were previously unreachable due to hard constraints.
  • Accelerated Convergence: By utilizing the LTR "warm start" and LLM guidance, SoftPipe reached near-optimal solutions 2.8× faster than standard RL approaches, significantly reducing the computational overhead of automated data preparation.
  • Interpretability through Brevity: SoftPipe tended to produce more concise pipelines, averaging 2.72 operators compared to the 6.0 operators typically found by baselines like CtxPipe. Shorter pipelines enhance both execution speed and human interpretability.

Conclusion

SoftPipe demonstrates that probabilistic "soft guidance" is a more robust and efficient paradigm for automated data preparation than rigid rule-based systems. By treating constraints as priors rather than laws, SoftPipe enables deeper exploration of the search space while maintaining strategic focus. Future work will explore more sophisticated prompt engineering for the LLM component and the application of this soft-guided approach to other AutoML domains, such as neural architecture search.

Summary updated

BibTeX
@misc{chang2025softpipe,
  author = {Jing Chang and Chang Liu and Jinbin Huang and Shuyuan Zheng and Rui Mao and Jianbin Qin},
  title = {{SoftPipe: A Soft-Guided Reinforcement Learning Framework for Automated Data Preparation}},
  year = {2025},
  eprint = {2507.13710},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.13710},
}
Figure