Improved Penalty Method via Doubly Stochastic Gradients for Bilevel Hyperparameter Optimization
Wanli Shi, Bin Gu
Abstract
Hyperparameter optimization (HO) is an important problem in machine learning which is normally formulated as a bilevel optimization problem. Gradient-based methods are dominant in bilevel optimization due to their high scalability to the number of hyperparameters, especially in a deep learning problem. However, traditional gradient-based bilevel optimization methods need intermediate steps to obtain the exact or approximate gradient of hyperparameters, namely hypergradient, for the upper-level objective, whose complexity is high especially for high dimensional datasets. Recently, a penalty method has been proposed to avoid the computation of the hypergradient, which speeds up the gradient-based BHO methods. However, the penalty method may result in a very large number of constraints, which greatly limits the efficiency of this method, especially for high dimensional data problems. To address this limitation, in this paper, we propose a doubly stochastic gradient descent algorithm (DSGPHO) to improve the efficiency of the penalty method. Importantly, we not only prove the proposed method can converge to the KKT condition of the original problem in a convex setting, but also provide the convergence rate of DSGPHO which is the first result in the references of gradient-based bilevel optimization as far as we know. We compare our method with three state-of-the-art gradient-based methods in three tasks, i.e., data denoising, few-shot learning, and training data poisoning, using several large-scale benchmark datasets. All the results demonstrate that our method outperforms or is comparable to the existing methods in terms of accuracy and efficiency.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Gradient-Free Method for Heavily Constrained Nonconvex OptimizationWanli Shi, Hongchang Gao, Bin GuICML 2022 · 5 citations
- Double Momentum Method for Lower-Level Constrained Bilevel OptimizationWanli Shi, Yi Chang, Bin GuICML 2024 · 2 citations
- DTZO: Distributed Trilevel Zeroth Order Learning with Provable Non-Asymptotic ConvergenceYang Jiao, Kai Yang, Chengtao JianICML 2025
Related papers
- A Gradient Method for Multilevel OptimizationRyo Sato, Mirai Tanaka, Akiko TakedaNeurIPS 2021 · 31 citations
- On Penalty-based Bilevel Gradient Descent MethodHan Shen, Tianyi ChenICML 2023 · 105 citations
- Generalized Smooth Bilevel Optimization with Nonconvex Lower-LevelSiqi Zhang, Xing Huang, Feihu HuangICML 2025
- Bilevel Optimization: Convergence Analysis and Enhanced DesignKaiyi Ji, Junjie Yang, Yingbin LiangICML 2021 · 343 citations
- qNBO: quasi-Newton Meets Bilevel OptimizationSheng Fang, Yongjin Liu, Wei Yao, Chengming Yu et al.ICLR 2025
