This repository contains PyTorch codes for the experiments on deep learning in the paper:
Bilevel Optimization under Unbounded Smoothness: A New Algorithm and Convergence Analysis. Jie Hao, Xiaochuan Gong, Mingrui Liu. 12th International Conference on Learning Representations (ICLR 2024). Spotlight.
Bilevel optimization is an important formulation for many machine learning problems, such as meta-learning and hyperparameter optimization. Current bilevel optimization algorithms assume that the gradient of the upper-level function is Lipschitz (i.e., the upper-level function has a bounded smoothness parameter). However, recent studies reveal that certain neural networks such as recurrent neural networks (RNNs) and long-short-term memory networks (LSTMs) exhibit potential unbounded smoothness, rendering conventional bilevel optimization algorithms unsuitable for these neural networks. In this paper, we design a new bilevel optimization algorithm, namely BO-REP, to address this challenge. This algorithm updates the upper-level variable using normalized momentum and incorporates two novel techniques for updating the lower-level variable: \textit{initialization refinement} and \textit{periodic updates}. Specifically, once the upper-level variable is initialized, a subroutine is invoked to obtain a refined estimate of the corresponding optimal lower-level variable, and the lower-level variable is updated only after every specific period instead of each iteration. When the upper-level problem is nonconvex and unbounded smooth, and the lower-level problem is strongly convex, we prove that our algorithm requires
cd meta_learning && python main.py --inner_update_lr 1e-3 --outer_update_lr 1e-2
cd data_cleaning && python main.py --inner_update_lr 5e-2 --outer_update_lr 5e-2
cd hyperparam_opt && python main.py --inner_update_lr 2e-3 --outer_update_lr 1e-4
If you found this repository helpful, please cite our paper:
@inproceedings{hao2024bilevel,
title={Bilevel Optimization under Unbounded Smoothness: A New Algorithm and Convergence Analysis},
author={Jie Hao, Xiaochuan Gong, Mingrui Liu},
booktitle={Twelfth International Conference on Learning Representations},
year={2024}
}