NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

In-Context Decision Making for Optimizing Complex AutoML Pipelines

Amir Rezaei Balef, Katharina EggenspergerFrontiers in Artificial Intelligence and Applications 2025 · OpenAlexGitHub resource

Introduction

Automated Machine Learning (AutoML) has traditionally focused on the CASH problem: Combined Algorithm Selection and Hyperparameter optimization. This typically involves selecting a model (e.g., Random Forest vs. SVM) and tuning its hyperparameters. However, modern machine learning workflows have evolved significantly. Today's practitioners often choose between diverse strategies like fine-tuning pre-trained neural networks, running sophisticated AutoML systems like FLAML, or applying post-hoc ensembling. These heterogeneous workflows present a new challenge: they have vastly different search spaces, optimization behaviors, and computational costs.

The CASH+ Framework

To address this complexity, this paper introduces CASH+, a generalized framework that treats modern ML workflows as a two-level optimization problem. The lower level optimizes a specific pipeline, while the upper level acts as a decision-maker, allocating computational resources across these diverse "arms."

The CASH+ framework manages diverse pipelines with varying optimization behaviors and performance trajectories.

Unlike standard multi-armed bandit (MAB) problems that aim to maximize average reward, AutoML requires a Max K-armed Bandit (MKB) approach. In this setting, the goal is to identify the single maximum performance achieved by any pipeline before the total compute budget is exhausted.

PS-PFN: In-Context Learning for Max-Bandits

The authors propose PS-PFN (Posterior Sampling using Prior-Data Fitted Networks) to solve the upper-level selection problem. PS-PFN leverages the power of Transformers to perform in-context learning on performance trajectories.

Standard statistical models often struggle with AutoML trajectories because they are highly skewed, non-stationary, and shift over time. As shown in the empirical cumulative distribution functions (ECDFs) of HPO trajectories, the distribution of performance changes significantly as more iterations are completed.

HPO trajectories for CatBoost and MLP demonstrate how performance distributions shift and evolve over time, necessitating flexible modeling.

PS-PFN addresses this by using Prior-Data Fitted Networks (PFNs)—Transformers pre-trained on synthetic data to approximate Bayesian inference. By treating the observed performance history of a pipeline as "context," the PFN can instantly predict the posterior distribution of its future maximum performance. This allows for:

  • Posterior Sampling for Max Values: Sampling from the predicted distribution of the maximum expected reward rather than the mean.
  • Tailored Priors: Using PFNs trained on different synthetic priors (flat, semi-flat, or curved) to match the expected behavior of specific algorithms.
  • Cost-Awareness: Predicting the maximum reward at a specific future time step based on the remaining budget and the estimated cost per iteration for each pipeline.

Key Results and Insights

The evaluation across three major benchmarks—a novel "Complex" benchmark, YaHPOGym, and TabRepoRaw—demonstrates the superiority of PS-PFN.

  1. Superior Efficiency: PS-PFN significantly outperformed classical strategies like Thompson Sampling and MaxUCB. The performance gain is largely attributed to the PFN's ability to model complex, non-Gaussian reward distributions.
  2. The Importance of the Objective: Shifting the focus from average reward to maximum potential performance is crucial for AutoML. Standard bandits penalize sub-optimal "arm pulls," whereas in AutoML, exploration is only "wasted" if it fails to find a new global maximum.
  3. Cost-Aware Horizon Shifting: By asking the PFN to predict performance at a specific future horizon (based on remaining time), the system naturally balances exploration of expensive, high-potential pipelines against exploitation of cheaper, faster ones.

Conclusion

PS-PFN represents a significant step forward in managing the complexity of modern AutoML pipelines. By framing the problem as a Max K-armed Bandit and utilizing the in-context learning capabilities of Transformers, the framework provides a robust and efficient way to allocate resources across highly diverse machine learning workflows. Future work will focus on automatically deriving priors from data and scaling the approach to even more complex scenarios, such as LLM-based feature engineering.

Summary updated

BibTeX
@inproceedings{balef2025context,
  author = {Amir Rezaei Balef and Katharina Eggensperger},
  title = {{In-Context Decision Making for Optimizing Complex AutoML Pipelines}},
  booktitle = {Frontiers in Artificial Intelligence and Applications},
  year = {2025},
  doi = {10.3233/faia251383},
}

Loading related content...

Figure