Abstract
Bilevel optimization has recently attracted considerable attention due to its abundant applications in machine learning problems. However, existing methods rely on prior knowledge of problem parameters to determine stepsizes, resulting in significant effort in tuning stepsizes when these parameters are unknown. In this paper, we propose two novel tuning-free algorithms, D-TFBO and S-TFBO. D-TFBO employs a double-loop structure with stepsizes adaptively adjusted by the "inverse of cumulative gradient norms" strategy. S-TFBO features a simpler fully single-loop structure that updates three variables simultaneously with a theory-motivated joint design of adaptive stepsizes for all variables. We provide a comprehensive convergence analysis for both algorithms and show that D-TFBO and S-TFBO respectively require $O(\frac{1}{\epsilon})$ and $O(\frac{1}{\epsilon}\log^4(\frac{1}{\epsilon}))$ iterations to find an $\epsilon$-accurate stationary point, (nearly) matching their well-tuned counterparts using the information of problem parameters. Experiments on various problems show that our methods achieve performance comparable to existing well-tuned approaches, while being more robust to the selection of initial stepsizes. To the best of our knowledge, our methods are the first to completely eliminate the need for stepsize tuning, while achieving theoretical guarantees.
Introduction
Bilevel optimization (BLO) is a hierarchical framework where an upper-level objective function depends on the optimal solution of a lower-level objective. This structure is foundational to modern machine learning tasks, including meta-learning, hyperparameter optimization, and reinforcement learning. Despite its utility, BLO is notoriously difficult to solve because standard algorithms require precise "hyper-hyperparameters."
Currently, researchers must possess prior knowledge of specific problem constants—such as Lipschitz or strong convexity parameters—to set the stepsizes (learning rates) for the upper-level, lower-level, and linear system solvers. In practice, this necessitates exhaustive and computationally expensive grid searches. This paper introduces a "plug-and-play" approach to bilevel optimization, automating stepsize selection without sacrificing theoretical performance or empirical accuracy.
Proposed Algorithms: D-TFBO and S-TFBO
The core innovation of this work is the application of an adaptive "inverse of cumulative gradient norms" strategy (reminiscent of AdaGrad-Norm) to the bilevel setting. The authors propose two distinct architectures:
1. D-TFBO (Double-loop Tuning-Free Bilevel Optimizer)
D-TFBO utilizes a nested structure where the inner problem and a linear system (used to approximate the hypergradient) are solved in separate sub-loops. To ensure these sub-loops reach the required accuracy without manual tuning, the algorithm introduces a "cold-start" adaptive stepsize. This mechanism resets the stepsize accumulation at each outer iteration, allowing the solver to adapt to the local geometry of the optimization landscape dynamically.
2. S-TFBO (Single-loop Tuning-Free Bilevel Optimizer)
S-TFBO offers a more streamlined, fully single-loop approach. Here, the upper-level variable ($x$), the lower-level variable ($y$), and the linear system variable ($v$) are updated simultaneously.
The primary challenge in a single-loop tuning-free setting is that independent adaptive stepsizes for each variable often lead to instability. To address this, the authors designed a joint adaptive stepsize mechanism. In this scheme, the stepsize for $v$ is coupled with $y$, and the stepsize for $x$ is coupled with both $y$ and $v$. This coupling ensures that the upper-level update "waits" for the lower-level approximations to stabilize, preventing approximation errors from exploding.
Theoretical Insights: The Complexity Paradox
One of the most surprising findings of this research is the "Complexity Paradox." In traditional bilevel optimization where stepsizes are perfectly tuned, double-loop methods typically exhibit better gradient complexity than single-loop ones. However, in the tuning-free regime, the authors found that S-TFBO (single-loop) achieves a superior gradient complexity ($O(1/\epsilon)$) compared to D-TFBO ($O(1/\epsilon^2)$).
This shift occurs because a tuning-free inner solver requires significantly more iterations to reach high-precision accuracy than a manually tuned one. By updating all variables simultaneously, S-TFBO avoids the heavy computational burden of reaching high-precision inner solutions at every outer step, leading to better overall efficiency.
Empirical Evaluation
The algorithms were benchmarked against state-of-the-art bilevel methods across three distinct tasks:
- Regularization Selection (Covtype): D-TFBO demonstrated the fastest convergence rate among all compared methods.
- Data Hyper-cleaning (MNIST): The methods proved effective at training models on datasets with corrupted labels.
- Coreset Selection (Split CIFAR100): In a continual learning setting, D-TFBO achieved the best "Forgetting Measure" (FGTT) in balanced settings, proving that automated tuning does not come at the cost of model quality.
Across all experiments, the most significant advantage was robustness. While existing methods showed a Relative Average Change in accuracy of approximately 5.8% when initial learning rates were varied, D-TFBO and S-TFBO maintained a change of only 0.3%–0.4%.
Conclusion and Future Work
D-TFBO and S-TFBO represent the first bilevel optimization algorithms to completely eliminate the need for manual stepsize tuning while maintaining rigorous theoretical guarantees. While the current work focuses on deterministic settings and assumes a strongly convex lower-level problem, it provides a robust foundation for future extensions. Moving forward, extending these tuning-free guarantees to stochastic settings and non-convex lower-level objectives remains a primary objective for the field.
Summary updated