First-Order Federated Bilevel Learning

Yifan Yang, Peiyao Xiao, Shiqian Ma, Kaiyi JiAAAI 2025

Abstract

Bilevel optimization is a cornerstone of modern machine learning, powering meta-learning, hyperparameter tuning, and neural architecture search. However, implementing these techniques in Federated Learning (FL) environments is challenging due to the high computational and memory costs associated with second-order derivatives. This paper introduces MemFBO, a first-order, single-loop algorithm designed for federated bilevel optimization (FBO). By reformulating the nested bilevel problem into a minimax Lagrangian structure, MemFBO eliminates the need for expensive Hessian-vector products. Experimental results demonstrate that MemFBO achieves superior memory efficiency and faster convergence than existing methods while remaining highly robust to noisy data on edge devices.

Introduction

Federated Learning (FL) involves training models across decentralized edge devices while keeping data localized. Bringing bilevel optimization to this setting is notoriously difficult. Standard approaches require calculating hypergradients, which involve second-order derivatives (Hessians or Jacobians). This creates three primary bottlenecks:

  1. Memory Constraints: Edge devices often lack the RAM to compute and store large second-order products.
  2. Computational Complexity: Traditional methods use "sub-loops" that are slow and communication-heavy.
  3. Client Drift: Non-IID data across clients causes local updates to diverge, hindering global convergence.

MemFBO addresses these issues by stripping away second-order complexity, offering a lean, fast alternative for resource-constrained environments.

Methods: The Lagrangian Pivot

The core innovation of MemFBO is a mathematical reformulation. Instead of solving the nested bilevel problem directly using the implicit function theorem, the authors employ a Lagrangian approximation to transform it into a single-level minimax problem:

$$\min_{x,y} \max_{z} L(x, y, z) = F(x, y) + \lambda [G(x, y) - G(x, z)]$$

This shift allows for several key algorithmic improvements:

  • First-Order Updates: All variables ($x, y, z$) are updated using simple Stochastic Gradient Descent (SGD), removing the need for Hessians or Jacobians.
  • Fully Single-Loop Structure: Unlike Iterative Differentiation (ITD) methods, MemFBO updates upper-level, lower-level, and auxiliary variables simultaneously in every step.
  • Mitigating Client Drift: The algorithm utilizes flexible stepsizes for local updates and global aggregation to handle heterogeneous data.
Comparison of FBO workflows: MemFBO simplifies the process into a first-order, single-loop structure compared to traditional AID-based and SimFBO methods.

Experimental Evaluation

The authors evaluated MemFBO on two primary tasks: Robust Federated Data Cleaning using CIFAR-10 (with CNNs) and Federated Hyper-Representation Learning using MNIST (with MLPs). To test robustness, they simulated noisy environments with label corruption rates ranging from 0% to 70%.

Key Results

  • Superior Robustness: In high-noise scenarios (70% noise), MemFBO achieved 73.60% accuracy, significantly outperforming standard FedAvg (10.34%) and the previous state-of-the-art SimFBO (60.44%).
  • Memory Efficiency: A critical advantage of MemFBO is its constant memory footprint. While SimFBO's memory usage scales linearly with the number of local steps, MemFBO remains consistently low, making it suitable for IoT and mobile hardware.
Memory cost comparison: MemFBO maintains a low, constant memory footprint regardless of the number of local updates, whereas SimFBO's memory requirements grow linearly.

Conclusion

MemFBO represents a significant step forward in making federated bilevel optimization practical. By bypassing the need for second-order derivatives, it provides a memory-efficient and robust framework for edge computing. Future work may involve relaxing the strong convexity assumptions for the lower-level objective and exploring decentralized, peer-to-peer optimization scenarios.

Summary updated

BibTeX
@inproceedings{yang2025first,
  author = {Yifan Yang and Peiyao Xiao and Shiqian Ma and Kaiyi Ji},
  title = {{First-Order Federated Bilevel Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=lypf32NMsJ},
}
Figure