Dropout Enhanced Bilevel Training

Peiran Yu, Junyi Li, Heng Huang

TL;DR

Bilevel optimization (BLO) is a powerful mathematical framework for tasks like meta-learning and data cleaning. However, it is notoriously prone to overfitting due to its sensitivity and reliance on limited datasets. This paper introduces a novel framework for incorporating dropout into BLO, providing the first theoretical convergence guarantees for such methods and demonstrating that dropout effectively stabilizes training and improves generalization in complex nested tasks.

What Problem Does This Paper Address?

Bilevel optimization involves two nested optimization problems where the solution to the "upper-level" problem depends on the optimal solution of a "lower-level" problem. Think of it as a teacher (upper level) trying to find the best curriculum (hyperparameters or weights) to help a student (lower level) learn a specific task.

While BLO is essential for modern AI—powering everything from hyperparameter tuning to reinforcement learning—it faces a major hurdle: overfitting. Because BLO models are highly sensitive to small changes and are often trained on limited data, they tend to "memorize" the training set. This leads to high training accuracy but poor performance on new data.

Baseline bilevel optimization models exhibit severe overfitting on standard datasets (MNIST, FMNIST, CIFAR10), where test accuracy plummets as training progresses.

While dropout is a standard "fix" for overfitting in simple, single-level neural networks, its application and theoretical impact on the complex, nested landscape of bilevel optimization have remained largely unexplored until now.

Methods

The authors propose a new statistical bilevel optimization model that explicitly incorporates the distribution of dropout masks.

  1. The Model: They redefine the standard BLO objective so that both the upper-level function (e.g., validation loss) and the lower-level function (e.g., training loss) are composed with random dropout masks.
  2. The Algorithm: They adapt an existing efficient BLO method called the Fully Single Loop Algorithm (FSLA). Their version, "FSLA with dropout," updates the lower-level weights and the upper-level hyperparameters simultaneously in a single loop, using dropout masks at each step.
  3. Theoretical Analysis: The core contribution is a rigorous mathematical analysis of how dropout affects the hypergradient (the gradient of the upper-level objective). They prove that the algorithm converges to an $\epsilon$-stationary point and quantify how the dropout rate influences the complexity and variance of the optimization process.

Datasets

The researchers evaluated their method on several standard benchmarks to test its robustness against overfitting:

  • Data Cleaning: MNIST, Fashion-MNIST (FMNIST), and CIFAR10. In these tests, they intentionally corrupted 60% of the training labels to see if the model could learn to ignore the noise.
  • Meta-Learning: The Omniglot dataset, used for "few-shot learning" (learning to recognize new characters from just one example).

Key Insights and Ideas

  • Dropout as a Trajectory Stabilizer: In BLO, dropout doesn't just regularize the final weights; it changes the entire optimization path. By randomly zeroing out neurons, it prevents the lower-level problem from reaching a "too-perfect" (and thus overfitted) solution that would mislead the upper-level optimizer.
  • The Hypergradient Challenge: Analyzing dropout in BLO is significantly harder than in standard networks because the hypergradient is tied to the solution of the lower-level problem. The authors successfully modeled how the variance of these hypergradients scales with the dropout rate.
  • Layer-Specific Sensitivity: The experiments revealed that applying dropout to different layers has varying effects. For instance, in few-shot learning on Omniglot, applying dropout to the first layer was more effective at improving test accuracy than applying it to later layers.
  • Convergence Trade-off: The theory shows a clear trade-off: while dropout slows down the initial convergence rate (requiring more iterations), it ultimately leads to a more stable and generalizable model.

Key Results

  • Mitigating Overfitting: In data cleaning tasks, standard BLO showed a classic overfitting curve—test accuracy peaked and then plummeted as training continued. The dropout-enhanced version stabilized the test accuracy, maintaining a much higher performance level.
Comparison of training and testing accuracy with and without dropout. The dropout-enhanced method (red) maintains stable testing accuracy, whereas the original method (green) overfits.
  • Higher Accuracy: On the CIFAR10 data cleaning task, the dropout method achieved significantly higher testing accuracy and showed much smoother convergence compared to the baseline.
  • Theoretical Proof: The authors provided a convergence rate of $O(1/\sqrt{T})$, which is standard for stochastic first-order methods, but they are the first to derive this specifically for a dropout-based bilevel framework.

Limitations and Future Work

  • Algorithm Scope: The study focused on a specific type of BLO algorithm (Iterative Differentiation or ITD). The authors note that other popular classes of algorithms, such as Approximate Implicit Differentiation (AID), could also benefit from dropout but require their own separate theoretical treatments.
  • Hyperparameter Tuning: The effectiveness of the method is sensitive to the dropout rate ($p$). While the paper explores different rates, finding the "optimal" $p$ for a new task still requires empirical tuning.
  • Architectural Complexity: While the theory is robust, the experiments primarily used fully connected and simple convolutional networks. Testing these methods on massive transformer-based architectures remains a direction for future research.

Summary updated

BibTeX
@inproceedings{yu2024dropout,
  author = {Peiran Yu and Junyi Li and Heng Huang},
  title = {{Dropout Enhanced Bilevel Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=06lrITXVAx},
}
Figure