Efficient Hyperparameter Search for Non-Stationary Model Training

Berivan Isik, Matthew Fahrbach, Dima Kuzmin, Nicolas Mayoraz, Emil Praun, Steffen Rendle, Raghavendra VasudevaarXiv 2025 · DOI

TL;DR

Training machine learning models for online systems (like recommendation engines) is expensive, especially when tuning hyperparameters. This paper introduces a two-stage approach: first, quickly identify promising configurations, then fully train only those. This method significantly reduces hyperparameter search costs, achieving up to a 10x speedup on a large benchmark dataset and demonstrating practical efficiency gains in a real-world advertising system.

What Problem Does This Paper Address?

Many modern applications, such as recommendation systems and online advertising platforms, rely on "online learning." This means models continuously update themselves with new data as it arrives, allowing them to adapt to changing user preferences and trends. However, training these models is computationally intensive, and this cost explodes during hyperparameter optimization (HPO), where researchers try to find the best settings for the model. A key challenge in online learning is "non-stationarity" – the data distribution itself changes over time. Traditional HPO methods, which often assume stable data distributions, struggle with this. This paper tackles the problem of making hyperparameter search efficient and effective in these non-stationary online learning environments.

Methods

The authors propose a two-stage hyperparameter search paradigm:

  1. Efficient Identification: The first stage focuses on quickly identifying the most promising hyperparameter configurations. The key insight here is that this stage doesn't need to find the absolute best performance, but rather accurately identify the top contenders. This allows for aggressive cost-saving measures.
  2. Focused Training: Only the configurations identified as promising in the first stage are then trained to their full potential.

To achieve this, they introduce novel techniques:

  • Data Reduction Strategies:
    • One-Shot Early Stopping: Instead of training all configurations to completion, training is stopped early at a certain point, and rankings are made based on this partial performance.
  • Performance-Based Stopping: This is a more sophisticated early stopping method. It observes the performance trajectory of configurations and iteratively prunes the worst-performing ones, reallocating resources to the promising candidates. This is a generalization of Successive Halving (SHA).
  • Data Sub-Sampling: This involves selectively sampling training examples, either uniformly or based on label characteristics (e.g., sub-sampling negative examples).
  • Prediction Strategies: These are crucial for estimating the final performance from partial training data, especially in non-stationary settings.
  • Constant Prediction: Assumes the performance observed at an early stopping point is indicative of the final performance.
  • Trajectory Prediction: Fits a parameterized law (like an inverse power law) to the observed performance trajectory and extrapolates to predict final performance.
  • Stratified Prediction: This is a novel approach that accounts for distribution shifts by breaking down the data into "slices" (based on cluster assignments derived from a VAE model) and making predictions for each slice independently before aggregating them. This is designed to handle the varying distribution shifts across different data segments.

Datasets

  • Criteo 1TB Dataset: This is the primary public benchmark used. The authors highlight its suitability due to its massive scale (billions of examples) and fine-grained, sequential, time-ordered data, which is crucial for simulating non-stationary dynamics. They use a 24-day portion of this dataset.
  • Industrial Advertising System: The framework's practical impact and scalability were validated on a real-world, large-scale advertising system, operating at a scale two orders of magnitude larger than the Criteo benchmark.

Key Insights and Ideas

  • Prioritizing Identification over Peak Performance in Stage 1: The core idea that accurately identifying top candidates is more important than achieving their absolute best performance in the initial stage is key to enabling aggressive cost savings.
  • Non-Stationarity is a Fundamental Challenge: The paper emphasizes that standard HPO techniques are ill-suited for non-stationary data, elevating the problem from an engineering challenge to a research question.
  • Stratified Prediction for Robustness: Breaking down the problem into "slices" based on data clusters and predicting performance per slice is a powerful way to mitigate the impact of varying distribution shifts, leading to more accurate rankings.
  • Relative Performance is Key: The authors found that focusing on the difference in performance between configurations, rather than absolute metrics, significantly reduces the impact of time-varying "problem hardness" in the data.

Key Results

  • Up to 10x Cost Reduction: On the Criteo 1TB dataset, their proposed methods (performance-based stopping with stratified prediction and negative sub-sampling) achieved up to a 10x reduction in hyperparameter search cost while maintaining a low "regret @3" (a metric measuring performance loss from misranking top configurations).
  • Industrial Validation: On a large-scale industrial advertising system, their performance-based stopping with constant prediction strategy reduced computational costs by up to 2x with negligible regret, demonstrating significant practical efficiency gains.
  • Stratified Prediction Outperforms: Trajectory and stratified predictions consistently outperformed constant prediction, with stratified prediction offering an additional 10% data reduction gain.
  • Performance-Based Stopping Superiority: Performance-based stopping consistently outperformed one-shot early stopping, requiring significantly less data to achieve similar or better performance.

Limitations and Future Work

  • Limitations:
    • The paper notes that while they explored various laws for trajectory prediction, they didn't observe significant improvements beyond the inverse power law.
  • The "n vs. r" trade-off in Successive Halving (SHA) and its generalizations is mentioned as a challenge, where a small initial budget allows exploration but risks premature elimination of "late bloomers."
    • The paper focuses on "regret @k" as the primary metric, which is more relevant for identifying top configurations, but other metrics like Pairwise Error Rate (PER) are also discussed.
  • Future Work:
    • The authors suggest that deploying their more advanced strategies (trajectory and stratified prediction) in industrial systems could potentially amplify the observed savings, bridging the gap between academic research and industrial practice.
  • Further research could explore optimizing hyperparameter search directly for live data, which could fundamentally transform how these systems are developed.
  • Investigating other choices of laws for trajectory prediction and exploring different "late starting" strategies for configurations are also mentioned as avenues for future exploration.

Summary updated

Abstract

Online learning is the cornerstone of applications like recommendation and advertising systems, where models continuously adapt to shifting data distributions. Model training for such systems is remarkably expensive, a cost that multiplies during hyperparameter search. We introduce a two-stage paradigm to reduce this cost: (1) efficiently identifying the most promising configurations, and then (2) training only these selected candidates to their full potential. Our core insight is that focusing on accurate identification in the first stage, rather than achieving peak performance, allows for aggressive cost-saving measures. We develop novel data reduction and prediction strategies that specifically overcome the challenges of sequential, non-stationary data not addressed by conventional hyperparameter optimization. We validate our framework's effectiveness through a dual evaluation: first on the Criteo 1TB dataset, the largest suitable public benchmark, and second on an industrial advertising system operating at a scale two orders of magnitude larger. Our methods reduce the total hyperparameter search cost by up to 10$\times$ on the public benchmark and deliver significant, validated efficiency gains in the industrial setting.
BibTeX
@misc{isik2025efficient,
  author = {Berivan Isik and Matthew Fahrbach and Dima Kuzmin and Nicolas Mayoraz and Emil Praun and Steffen Rendle and Raghavendra Vasudeva},
  title = {{Efficient Hyperparameter Search for Non-Stationary Model Training}},
  year = {2025},
  eprint = {2512.01258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01258},
}
Figure