TL;DR
Autostacker is an automated machine learning (AutoML) framework that uses evolutionary algorithms to design complex, multi-layered "stacked" architectures. By combining raw data with synthetic features generated by intermediate models, it consistently outperforms established tools like TPOT and AutoSklearn while running up to six times faster.
What Problem Does This Paper Address?
In the world of machine learning, the "No Free Lunch" theorem looms large: no single model works best for every dataset. This leaves practitioners with two grueling tasks: model selection (should I use an SVM or a Random Forest?) and hyperparameter optimization (what should the learning rate be?).
While AutoML tools exist to automate this, many follow a rigid, linear pipeline: preprocess data, engineer features, and then pick one "best" model. The authors of Autostacker argue that this approach misses out on the power of ensembling—combining multiple models so they can learn from each other's mistakes. They set out to create a system that doesn't just pick a model, but evolves an entire hierarchical structure of models.
Methods
Autostacker relies on two primary pillars: Hierarchical Stacking and Evolutionary Search.
- The Architecture (Cascading Stacking): Unlike traditional stacking, where only the predictions of one layer are passed to the next, Autostacker uses a "cascading" approach. Every layer receives the original raw dataset plus the prediction results (synthetic features) from all previous layers. This prevents the system from losing information and helps mitigate the bias that might be introduced by a single poorly performing model in an early layer.
- The Search (Evolutionary Algorithm): To find the best pipeline, Autostacker uses a "bare-bones" Evolutionary Algorithm (EA).
- Population: It starts with a pool of 200 random pipelines.
- Mutation: It randomly tweaks a pipeline—for example, changing an SVM to a Logistic Regression or adjusting the number of trees in a Random Forest.
- Crossover: It takes two successful pipelines and swaps their layers to create a new "offspring."
- Selection: It evaluates pipelines using cross-validation and keeps only the top performers to seed the next generation.
Crucially, the system is highly parallelizable. Since each pipeline in a generation is independent, they can be trained and evaluated simultaneously across multiple CPU cores.
Datasets
The researchers evaluated Autostacker using 15 datasets from the PMLB (Penn Machine Learning Benchmark), which aggregates data from OpenML and the UCI repository. These datasets cover a range of challenges, including binary and multi-class classification, and varying levels of difficulty where traditional models like Random Forests often struggle.
Key Insights and Ideas
- Raw Data is King: One of the most important "aha" moments in the paper is the decision to keep the raw dataset present in every layer. In many stacking architectures, if the first layer makes a mistake, that error propagates. By always including the raw data, Autostacker allows later layers to "re-examine" the original facts alongside the suggestions of earlier models.
- Search Over Optimization: Instead of using complex Bayesian optimization to fine-tune a single model, the authors treated AutoML as a massive search problem. They found that a simple evolutionary search through the space of combinations of models was more effective than deep tuning of a single model.
- Synergy via Diversity: Because the EA can pick from a "dictionary" of primitives (MLPs, XGBoost, Neighbors, etc.), it discovers innovative combinations that a human expert might not consider, such as using a Perceptron to refine the output of a Gradient Boosting machine.
Key Results
Autostacker demonstrated impressive performance across the board:
- Accuracy: It achieved better test accuracy than Random Forest baselines on 100% of the datasets. It outperformed TPOT on 12 out of 15 datasets and AutoSklearn on 9 out of 15.
- Speed: On several datasets, Autostacker was significantly more efficient, reducing time usage by up to 6x compared to TPOT.
- Robustness: On specific "hard" datasets (like the parity5 problem), where Random Forests and TPOT failed to provide meaningful results, Autostacker remained robust and found high-accuracy solutions.
Limitations and Future Work
While Autostacker excels on standard tabular benchmarks, the authors acknowledge several hurdles:
- High-Dimensional Data: The current architecture doesn't yet scale well to the massive, high-dimensional datasets found in Computer Vision or Natural Language Processing, where Deep Learning dominates.
- Primitive Library: The system currently relies on a specific set of primitives from scikit-learn and XGBoost. Expanding this library to include more diverse or custom models is a logical next step.
- Interpretability: As pipelines become more complex (multiple layers with dozens of nodes), understanding why a specific architecture was chosen becomes difficult. The authors suggest that future work should include a more rigorous statistical analysis of the evolved pipelines.
Summary updated