Lune

NeurIPS2024Top-tier venue

Memory-Efficient Gradient Unrolling for Large-Scale Bi-level Optimization

Qianli Shen, Yezhen Wang, Zhouhao Yang, Xiang Li, Haonan Wang, Yang Zhang, Jonathan Scarlett, Zhanxing Zhu, Kenji Kawaguchi

Abstract

Bi-level optimization (BO) has become a fundamental mathematical framework for addressing hierarchical machine learning problems. As deep learning models continue to grow in size, the demand for scalable bi-level optimization solutions has become increasingly critical. Traditional gradient-based bi-level optimization algorithms, due to their inherent characteristics, are ill-suited to meet the demands of large-scale applications. In this paper, we introduce F\textbf{F}orward G\textbf{G}radient U\textbf{U}nrolling with F\textbf{F}orward F\textbf{F}radient, abbreviated as (FG)2U(\textbf{FG})^2\textbf{U}, which achieves an unbiased stochastic approximation of the meta gradient for bi-level optimization. (FG)2U(\text{FG})^2\text{U} circumvents the memory and approximation issues associated with classical bi-level optimization approaches, and delivers significantly more accurate gradient estimates than existing large-scale bi-level optimization approaches. Additionally, (FG)2U(\text{FG})^2\text{U} is inherently designed to support parallel computing, enabling it to effectively leverage large-scale distributed computing systems to achieve significant computational efficiency. In practice, (FG)2U(\text{FG})^2\text{U} and other methods can be strategically placed at different stages of the training process to achieve a more cost-effective two-phase paradigm. Further, (FG)2U(\text{FG})^2\text{U} is easy to implement within popular deep learning frameworks, and can be conveniently adapted to address more challenging zeroth-order bi-level optimization scenarios. We provide a thorough convergence analysis and a comprehensive practical discussion for (FG)2U(\text{FG})^2\text{U}, complemented by extensive empirical evaluations, showcasing its superior performance in diverse large-scale bi-level optimization tasks. Code is available at https://github.com/ShenQianli/FG2U.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Revisiting Zeroth-Order Optimization: Minimum-Variance Two-Point Estimators and Directionally Aligned Perturbations cites Fine-Tuning Language Models with Just Forward Passes
  • Fine-Tuning Language Models with Just Forward Passes cites Language Models are Few-Shot Learners
  • EraseAnything: Enabling Concept Erasure in Rectified Flow Transformers cites Zero-Shot Text-to-Image Generation
  • On the Optimal Construction of Unbiased Gradient Estimators for Zeroth-Order Optimization cites Revisiting Zeroth-Order Optimization: Minimum-Variance Two-Point Estimators and Directionally Aligned Perturbations
  • On the Optimal Construction of Unbiased Gradient Estimators for Zeroth-Order Optimization cites Fine-Tuning Language Models with Just Forward Passes
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. VisMem: Latent Vision Memory Unlocks Potential of Vision-Language ModelsXinlei Yu, Chengming Xu, Guibin Zhang, Zhangquan Chen et al.CVPR 2026 · 30 citations
  2. On the Optimal Construction of Unbiased Gradient Estimators for Zeroth-Order OptimizationShaocong Ma, Heng HuangNeurIPS 2025 · 4 citations
  3. Revisiting Zeroth-Order Optimization: Minimum-Variance Two-Point Estimators and Directionally Aligned PerturbationsShaocong Ma, Heng HuangICLR 2025
  4. EraseAnything: Enabling Concept Erasure in Rectified Flow TransformersDaiheng Gao, Shilin Lu, Wenbo Zhou, Jiaming Chu et al.ICML 2025
  5. ScaleBiO: Scalable Bilevel Optimization for LLM Data ReweightingRui Pan, Dylan Zhang, Hanning Zhang, Xingyuan Pan et al.ACL 2025

Builds on31

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations
  3. PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph CompilationJason Ansel, Edward Z. Yang, Horace He, Natalia Gimelshein et al.ASPLOS 2024 · 693 citations
  4. Dataset Condensation with Gradient MatchingBo Zhao, Konda Reddy Mopuri, Hakan BilenICLR 2021 · 684 citations
  5. Fine-Tuning Language Models with Just Forward PassesSadhika Malladi, Tianyu Gao, Eshaan Nichani, Alex Damian et al.NeurIPS 2023 · 495 citations

Related papers

  1. qNBO: quasi-Newton Meets Bilevel OptimizationSheng Fang, Yongjin Liu, Wei Yao, Chengming Yu et al.ICLR 2025
  2. BOME! Bilevel Optimization Made Easy: A Simple First-Order ApproachBo Liu, Mao Ye, Stephen Wright, Peter Stone et al.NeurIPS 2022 · 170 citations
  3. Moreau Envelope for Nonconvex Bi-Level Optimization: A Single-Loop and Hessian-Free Solution StrategyRisheng Liu, Zhu Liu, Wei Yao, Shangzhi Zeng et al.ICML 2024 · 24 citations
  4. Debiasing a First-order Heuristic for Approximate Bi-level OptimizationValerii Likhosherstov, Xingyou Song, Krzysztof Choromanski, Jared Quincy Davis et al.ICML 2021 · 5 citations
  5. Provably Faster Algorithms for Bilevel OptimizationJunjie Yang, Kaiyi Ji, Yingbin LiangNeurIPS 2021 · 175 citations
Dusk over the sea between two cliffs drawn in fine vertical lines