Abstract
Bilevel optimization is a fundamental tool for modern machine learning, powering applications from hyperparameter tuning to federated learning. However, existing algorithms often struggle with equality constraints at both the upper and lower levels of the optimization hierarchy. We introduce AiPOD (Alternating Implicit Projected SGD) and its variants, E-AiPOD and E2-AiPOD, which are the first to achieve state-of-the-art convergence rates for these constrained problems. By integrating projection-skipping techniques and efficient Hessian estimation, our methods significantly reduce computational and communication overhead, particularly in distributed environments.
Introduction
Bilevel optimization involves an upper-level (UL) problem that depends on the optimal solution of a nested lower-level (LL) problem. While unconstrained bilevel optimization is well-studied, real-world engineering systems and distributed networks often impose strict rules, such as consensus requirements in federated learning, which manifest as equality constraints.
Existing methods for constrained bilevel optimization frequently suffer from high computational costs due to frequent projections or require impractical batch sizes. This paper bridges the gap by providing a family of algorithms that handle equality constraints at both levels without sacrificing the efficiency typically reserved for unconstrained settings.
Methodology: The AiPOD Family
The researchers propose three distinct algorithms tailored for different computational constraints and problem structures:
- AiPOD (Alternating Implicit Projected SGD): The core algorithm alternates between stochastic gradient steps for the LL and UL problems. It utilizes a Neumann series to estimate the implicit gradient—the sensitivity of the LL solution to changes in UL variables. Projections are applied at each step to ensure feasibility within the constraint set.
- E-AiPOD (Projection-Efficient): Recognizing that projections are computationally expensive, E-AiPOD incorporates a Proxskip mechanism. The algorithm projects only with a small probability $p$, using a residual term to track and correct the bias introduced by skipped projections. This drastically reduces the total number of projections required for convergence.
- E2-AiPOD: Optimized for scenarios where LL constraints are independent of UL variables, this variant introduces a "medium-level" sequence to estimate the Hessian-inverse. This allows the algorithm to operate with a constant batch size of 1, making it highly memory-efficient.
Theoretical Contributions and Comparison
A primary theoretical hurdle in constrained bilevel optimization is ensuring the "implicit solution mapping" (the path of optimal LL solutions) remains smooth under constraints. The authors successfully proved this smoothness, enabling the application of standard convergence analysis to this complex problem class.
As shown in the comparison below, AiPOD matches the sample complexity of the best-known unconstrained algorithms while being the only method to handle constraints at both levels with optimal efficiency.
Experimental Evaluation
The algorithms were evaluated across synthetic benchmarks and real-world computer vision tasks:
- Federated Hyper-representation Learning: Using the MNIST dataset across 50 simulated clients, the researchers demonstrated that E-AiPOD could learn a global data representation more efficiently than existing baselines.
- Fairness in Federated Learning: On an imbalanced MNIST dataset, the UL problem was used to tune loss parameters to ensure model fairness. E-AiPOD outperformed FedNest, reaching higher test accuracy with significantly fewer communication rounds between the server and clients.
Key Insights and Results
- Optimal Complexity: AiPOD achieves a sample complexity of $\tilde{O}(\epsilon^{-2})$, matching the gold standard for unconstrained bilevel optimization.
- Efficiency Gains: E-AiPOD reduces the required lower-level projections from $\tilde{O}(\epsilon^{-2})$ to $\tilde{O}(\epsilon^{-1.5})$, representing a significant reduction in computational overhead.
- Scalability: The ability to work with small batch sizes and infrequent projections makes these algorithms uniquely suited for resource-constrained federated learning environments.
Conclusion and Future Work
This work provides a robust framework for solving equality-constrained bilevel optimization problems. While the current analysis focuses on linear equality constraints and strongly convex lower-level problems, it sets the stage for future expansions into inequality constraints and non-convex lower-level landscapes. The introduction of momentum-based acceleration remains a promising avenue for further improving the convergence speed of the AiPOD family.
Summary updated