Improved Bilevel Model: Fast and Optimal Algorithm with Theoretical Guarantee

Junyi Li, Bin Gu, Heng HuangarXiv 2020

Abstract

Bilevel optimization is a cornerstone of modern machine learning, underpinning tasks such as hyperparameter tuning, data cleaning, and meta-learning. However, traditional bilevel models often converge to sub-optimal solutions because the inner optimization loop is typically agnostic to the outer objective. This paper introduces an improved bilevel formulation that regularizes the inner problem with the outer objective, ensuring the selection of the most beneficial inner minimizer. We leverage the Bilevel Gradient Sequential Averaging Method (BiG-SAM) to facilitate constant information flow between loops. Our approach is supported by rigorous theoretical convergence proofs and demonstrates significant empirical gains in both accuracy and convergence speed across multiple benchmarks.

Introduction

Many machine learning challenges are structured as bilevel optimization problems, where an "outer" objective (e.g., minimizing validation error) depends on the solution to an "inner" problem (e.g., minimizing training loss). A major flaw in standard approaches is that the inner problem may possess multiple local minimizers. If the optimization process selects a minimizer that is sub-optimal for the outer objective, the overall system may stall or reach a mediocre equilibrium. This paper addresses this "blindness" by explicitly seeking the inner minimizer that best serves the outer goal.

Methodology: The BiG-SAM Algorithm

The core innovation lies in the Improved Bilevel Model. Instead of treating the inner problem in isolation, the proposed framework regularizes it using the outer objective's signal. To solve this, the researchers utilize BiG-SAM (Bilevel Gradient Sequential Averaging Method).

Unlike standard methods where the inner loop only considers the inner loss gradient ($\nabla h$), BiG-SAM updates the inner variables using a weighted combination of gradients from both the inner loss ($h$) and the outer loss ($g$). This ensures that the "signal" from the outer objective is injected directly into the inner training process at every step, filtering out parameter values that do not contribute to the global goal.

Algorithm 1 and 2 detailing the inner problem optimization and the overall BiG-SAM framework.

Experimental Setup

The model was evaluated on two primary tasks:

  1. Data Hyper-Cleaning: Training models on datasets with corrupted labels (MNIST, Fashion-MNIST, QMNIST, SVHN, and CIFAR10).
  2. Hyper-Representation Learning: A few-shot learning task requiring the model to recognize new classes from minimal examples (Omniglot and MiniImageNet).

Key Results and Insights

The empirical results demonstrate that the improved model consistently outperforms traditional bilevel methods in both final performance and efficiency.

  • Superior Accuracy: In hyper-cleaning tasks on MNIST with 90% noise, the improved model achieved an F1-score of 0.618, significantly higher than the 0.527 achieved by the basic model.
  • Rapid Convergence: The model reaches higher accuracy levels in far fewer iterations. As shown in the performance curves, the improved model "takes off" much faster than the baseline, illustrating the efficiency of the integrated gradient signal.
  • Few-Shot Performance: On the MiniImageNet (20-way 1-shot) benchmark, the improved model reached approximately 30% accuracy, while standard approaches plateaued around 26%.
F1 score vs. Hyper-iteration for MNIST and SVHN datasets, showing faster convergence and higher final scores for the improved model.

Conclusion

By regularizing the inner problem with the outer objective, this research provides a mathematically sound and empirically superior framework for bilevel optimization. While calculating gradients for both objectives increases the computational cost per step, the massive reduction in total iterations and the higher quality of the final solution offer a compelling trade-off. Future work may extend this framework to more complex domains like Neural Architecture Search (NAS) and Generative Adversarial Networks (GANs).

Summary updated

BibTeX
@misc{li2020improved,
  author = {Junyi Li and Bin Gu and Heng Huang},
  title = {{Improved Bilevel Model: Fast and Optimal Algorithm with Theoretical Guarantee}},
  year = {2020},
  eprint = {2009.00690},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.00690},
}
Figure