Introduction
Traditional Automated Machine Learning (AutoML) systems often rely on a "fixed-recipe" approach, assuming that machine learning pipelines follow a strictly linear sequence: data cleaning, followed by feature transformation, and ending with a single classifier. While effective for many tasks, this linear constraint ignores the potential of complex architectures used by human experts, such as model stacking or feature concatenation. These sophisticated structures are best represented as Directed Acyclic Graphs (DAGs).
The primary challenge in exploring DAG-based pipelines is the sheer size of the search space. For a pipeline with a maximum length of six and width of four, there are over $10^{23}$ possible configurations—a scale that renders standard optimization techniques impractical. To address this, researchers from IBM and Eaton developed PIPER, an AutoML system that utilizes a Context-Free Grammar (CFG) to navigate this vast architectural landscape.
Methodology
A Context-Free Grammar for Pipelines
PIPER tames the complexity of DAG search by defining a formal "language" for machine learning pipelines. Using a CFG, the system can generate valid, executable pipeline shapes using symbols like > for sequential piping and & for parallel execution. This grammar ensures that the search only explores structurally sound pipelines, avoiding the "invalid individual" issues common in genetic programming approaches.
PIPeline grEedy seaRch (PIPER)
PIPER employs a greedy best-first search algorithm to explore the grammar-defined space. Rather than evaluating every possible combination, it uses a heuristic function to estimate the potential of partial pipeline structures. This heuristic is powered by a surrogate Random Forest regressor, pre-trained on meta-features from various datasets and pipeline shapes to predict accuracy without requiring full training and evaluation at every step.
Optimization
Once a promising DAG structure is identified, PIPER handles the Combined Algorithm Selection and Hyperparameter optimization (CASH) problem using a modified Alternating Direction Method of Multipliers (ADMM) optimizer. This two-stage approach—first finding the right structure, then tuning the specific components—allows the system to focus on "feature engineering through architecture."
Experimental Results
The authors evaluated PIPER against 50 binary and multi-class classification datasets from the OpenML repository. The benchmarks included established AutoML systems such as TPOT, MOSAIC, and a standard linear ADMM implementation.
Key findings from the evaluation include:
- Superior Performance: Within a 4-hour computation window, PIPER and its variant PIPERx achieved better average ranks across the 50 datasets than TPOT and MOSAIC.
- Convergence Trends: While systems like MOSAIC (using Monte-Carlo Tree Search) often show faster initial gains, PIPER tends to overtake them after approximately 1.5 to 2 hours as it discovers more sophisticated, high-performing non-linear structures.
- Architectural Complexity: The winning pipelines identified by PIPER were frequently highly non-linear, utilizing parallel branches of transformers that would be impossible to represent in linear frameworks.
Conclusion
PIPER demonstrates that the structural shape of a machine learning pipeline is a critical factor in performance. By leveraging a Context-Free Grammar and a surrogate-guided greedy search, PIPER efficiently discovers complex DAG architectures that outperform traditional linear AutoML approaches. Future work will focus on refining the heuristic surrogate models and exploring simultaneous optimization of both pipeline structure and hyperparameters.
Summary updated