cs.LGFeb 20, 2026

Understanding the Generalization of Bilevel Programming in Hyperparameter Optimization: A Tale of Bias-Variance Decomposition

Authors: Yubo Zhou, Jun Shu, Junmin Liu, Deyu Meng

Organizations: School of Mathematics and Statistics and Ministry of Education Key Lab of Intelligent Networks and Network Security, Xi’an Jiaotong University, Xi’an, 100190, Shaan’xi Province, P. R. China. · Pazhou Lab (Huangpu), Street, Guangzhou, Guangdong Province, P. R. China.

Abstract

Gradient-based hyperparameter optimization (HPO) have emerged recently, leveraging bilevel programming techniques to optimize hyperparameter by estimating hypergradient w.r.t. validation loss. Nevertheless, previous theoretical works mainly focus on reducing the gap between the estimation and ground-truth (i.e., the bias), while ignoring the error due to data distribution (i.e., the variance), which degrades performance. To address this issue, we conduct a bias-variance decomposition for hypergradient estimation error and provide a supplemental detailed analysis of the variance term ignored by previous works. We also present a comprehensive analysis of the error bounds for hypergradient estimation. This facilitates an easy explanation of some phenomena commonly observed in practice, like overfitting to the validation set. Inspired by the derived theories, we propose an ensemble hypergradient strategy to reduce the variance in HPO algorithms effectively. Experimental results on tasks including regularization hyperparameter learning, data hyper-cleaning, and few-shot learning demonstrate that our variance reduction strategy improves hypergradient estimation. To explain the improved performance, we establish a connection between excess error and hypergradient estimation, offering some understanding of empirical observations.

Explore similar work

CardsList
  1. On the Stability and Generalization of First-order Bilevel Minimax Optimization

    Apr 22, 2026Xuelin Zhang, Peipei YuanMin-Max OptimizationBilevel Optimization

  2. Semiparametric Efficient Bilevel Gradient Estimation

    May 20, 2026Fares El Khoury, Houssam Zenati, Nathan Kallus +2Semiparametric InferenceHypergradient Optimization

  3. Fine-grained Analysis of Stability and Generalization for Stochastic Bilevel Optimization

    Apr 5, 2026Xuelin Zhang, Hong Chen, Bin Gu +2Stochastic Bilevel OptimizationBilevel Optimization