A Doubly Recursive Stochastic Compositional Gradient Descent Method for Federated Multi-Level Compositional Optimization

Hongchang GaoICML 2024

In the world of machine learning, we often deal with "compositional" problems—think of them like a set of Russian nesting dolls, where the output of one function becomes the input for the next. This structure appears everywhere, from training Graph Neural Networks to risk-averse portfolio management and meta-learning.

However, things get messy when you try to solve these problems across a distributed network of devices, a paradigm known as Federated Learning. A recent paper introduces a novel algorithm called Fed-DR-SCGD that finally cracks the code on making these complex, multi-level models scale efficiently.

The Challenge: Bias and Heterogeneity

The authors tackle Federated Stochastic Multi-Level Compositional Optimization (FedSMCO). Imagine multiple banks trying to optimize a shared investment strategy. Each bank has its own local data, and the objective function is a chain of nested stochastic functions.

Two major "monsters" haunt this field:

  1. The Bias Monster: Because we use random samples to estimate inner functions, the resulting gradient estimates are biased. As you add more levels of nesting, this bias can explode, leading to agonizingly slow convergence.
  2. The Heterogeneity Monster: In federated learning, every worker’s data is different. Previous algorithms failed to achieve "linear speedup" in these settings; adding more workers didn't necessarily make the training faster, and sometimes the algorithm would just get stuck near the optimal solution rather than reaching it.

To fix this, you'd normally need to share "Jacobian matrices" (which describe how every output of a function changes with every input). But for large models, these matrices are massive, making communication a total bottleneck.

The Solution: Fed-DR-SCGD

The authors introduce Fed-DR-SCGD (Federated Doubly-Recursive Stochastic Compositional Gradient Descent). The "Doubly Recursive" part is the secret sauce.

Instead of workers sharing entire Jacobian matrices, they share Jacobian-vector products (JVPs).

  • Dimensionality Win: A Jacobian matrix for a function mapping $d$ dimensions to $d$ dimensions has $d^2$ elements. A JVP is just a vector of size $d$. This drastically reduces the amount of data sent over the network.
  • Recursive Estimation: The algorithm tracks two things recursively across the "nesting dolls": the estimates of the inner functions and the estimates of the JVPs.
  • Variance Reduction: The method uses a momentum-based variance reduction technique. This ensures that even with small batches of data, the estimates of the functions and their gradients remain accurate over time.

Experimental Setup

The researchers evaluated their algorithm on a Risk-Averse Portfolio Optimization task. They used three real-world financial datasets: Book-to-Market, Operating Profitability, and Investment. Each dataset contains over 13,000 time steps and 100 different assets. The goal was to maximize returns while minimizing risk, a classic three-level compositional problem.

Key Results

The theoretical guarantees of Fed-DR-SCGD translate impressively to empirical performance, demonstrating both rapid convergence and massive communication savings.

Convergence speed of Fed-DR-SCGD compared to baselines over training epochs.
  • Linear Speedup: The paper theoretically proves and empirically demonstrates a convergence rate of $O(1/(N^{2/3}T^{2/3}))$. Crucially, the $N$ (number of workers) is in the denominator, confirming that more workers lead to faster results. Experiments showed that moving from 8 to 16 workers consistently reduced the time required to reach target accuracy.
  • Level Independence: Most multi-level algorithms see their performance drop exponentially as the number of levels ($K$) increases. Fed-DR-SCGD’s convergence rate has a polynomial relationship with $K$, making it "level-independent."
Communication efficiency across three financial datasets (Operating Profitability, Investment, Book-to-Market).
  • Communication Efficiency: In head-to-head tests against state-of-the-art methods like SMVR, NLASG, and SCSC, Fed-DR-SCGD reached lower loss levels with significantly less communication (measured in Megabytes). The "aha" moment was realizing that sharing the JVP is enough to achieve consensus without breaking the bandwidth budget.

Limitations and Future Work

While a major step forward, the paper notes a few areas for further exploration:

  • Hyperparameter Sensitivity: The algorithm relies on several hyperparameters (like learning rates and momentum parameters) that require careful tuning to hit the theoretical convergence rates.
  • Communication Frequency: The performance is tied to the communication period. Finding the optimal balance between local computation and global averaging remains a practical challenge.
  • Decentralized Extensions: The current work assumes a central server for averaging. Extending this "linear speedup" to fully decentralized (peer-to-peer) networks is a logical next step for the research community.

Paper Citation: Gao, H. (2024). A Doubly Recursive Stochastic Compositional Gradient Descent Method for Federated Multi-Level Compositional Optimization. Proceedings of the 41st International Conference on Machine Learning (ICML), Vienna, Austria.

Summary updated

BibTeX
@inproceedings{gao2024doubly,
  author = {Hongchang Gao},
  title = {{A Doubly Recursive Stochastic Compositional Gradient Descent Method for Federated Multi-Level Compositional Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=GentO2E4ID},
}
Figure