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

Learning Theory for Kernel Bilevel Optimization

Fares El Khoury, Edouard Pauwels, Samuel Vaiter, Michael Arbel

Abstract

This paper establishes the first learning-theoretic foundation for Kernel Bilevel Optimization (KBO). By extending bilevel optimization to infinite-dimensional Reproducing Kernel Hilbert Spaces (RKHS), the authors derive finite-sample generalization bounds. These bounds characterize the statistical reliability of nested models, proving that empirical solutions converge to population optima at parametric rates.

Introduction

Bilevel optimization, characterized by a "problem within a problem," is fundamental to modern machine learning applications such as hyperparameter tuning and meta-learning. In these scenarios, an "outer" loop (e.g., hyperparameter selection) depends on the solution of an "inner" loop (e.g., model training).

While parametric bilevel optimization—where models have a fixed number of weights—is well-understood, nonparametric settings have lacked rigorous statistical foundations. In nonparametric methods like kernel methods, model complexity grows with the data. This work addresses a critical gap: determining whether a bilevel model learned on finite data generalizes to the true underlying population. Without such generalization bounds, the statistical reliability of these algorithms remains unproven.

Methodology

The authors introduce Kernel Bilevel Optimization (KBO), where the inner objective is optimized over an RKHS. Their approach involves several key technical innovations:

  1. Functional Implicit Differentiation: They derive an explicit expression for the gradient of the bilevel objective within infinite-dimensional spaces.
  2. The Commutativity Result: A major theoretical contribution is proving that "plug-in estimation" and "differentiation" commute. Specifically, the gradient of the empirical (data-driven) objective is exactly equal to the empirical estimate of the true population gradient.
  3. Advanced Statistical Tools: To handle infinite-dimensional kernels, they employ Empirical Process Theory and $U$-processes. These tools allow them to bound the "gap" between the empirical model and the population limit.
Commutativity between plug-in estimation and differentiation in Kernel Bilevel Optimization.

As shown in the figure above, the ability to swap the order of differentiation and estimation is what allows researchers to apply standard gradient-based solvers to empirical problems while maintaining guarantees for the true population problem.

Theoretical Results

The study provides the first uniform convergence rates for both the value function and the gradient in KBO. Key findings include:

  • Generalization Rates: The generalization error decays at a rate of $O(1/\sqrt{m} + 1/\sqrt{n})$, where $m$ and $n$ represent the outer and inner sample sizes, respectively. This highlights that in bilevel tasks, both the training (inner) and validation (outer) phases require sufficient data to ensure performance.
  • Algorithmic Guarantees: The authors provide explicit convergence rates for Bilevel Gradient Descent. For a sufficiently large number of steps, the algorithm is guaranteed to find an approximate critical point of the true population problem, up to a controllable statistical error.

Empirical Validation

As a foundational theory paper, the focus is on mathematical proofs. However, the authors validated their theory using Synthetic Instrumental Variable (IV) Regression, a classic statistical task for estimating causal relationships. Using data generated from Gaussian and Student’s $t$-distributions, they demonstrated that empirical error curves perfectly matched the slopes predicted by their theoretical bounds on a log-log scale, confirming the practical relevance of their mathematical framework.

Discussion and Future Work

While this work provides a robust foundation, several limitations remain to be addressed in future research:

  • Stochastic Settings: The current analysis focuses on full-batch gradients; extending this to mini-batch stochastic optimization is a significant next step.
  • Vanishing Regularization: The bounds currently depend on a fixed regularization parameter ($\lambda$). Future work is needed to handle cases where $\lambda$ vanishes as sample sizes increase without the error bounds exploding.
  • Non-Smooth Losses: The theory currently requires smooth loss functions, meaning it does not yet cover non-smooth objectives like the Hinge loss used in Support Vector Machines (SVMs).

Summary updated

BibTeX
@inproceedings{khoury2025learning,
  author = {Fares El Khoury and Edouard Pauwels and Samuel Vaiter and Michael Arbel},
  title = {{Learning Theory for Kernel Bilevel Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=bMKUD39Vcc},
}
Figure