Distributed Stochastic Compositional Optimization Problems over Directed Networks

Shengchao Zhao, Yongchao LiuarXiv 2022 · DOI

In the world of large-scale machine learning, we often face two simultaneous challenges: data is spread across a network of computers (distributed), and the objective functions we want to minimize are "nested" or "compositional" (e.g., $f(g(x))$). While we have good tools for either problem individually, combining them—especially over directed networks where communication isn't necessarily reciprocal—is a mathematical minefield.

A new paper by Shengchao Zhao and Yongchao Liu, titled "Distributed Stochastic Compositional Optimization Problems over Directed Networks," introduces a novel algorithm called AB-DSCSC that solves this exact puzzle with optimal efficiency.

TL;DR

The authors propose the first distributed algorithm for stochastic compositional optimization specifically designed for directed communication networks. By combining "gradient tracking" with a "stochastic correction" technique, their method achieves state-of-the-art convergence rates without requiring the massive, increasing batch sizes typically needed by previous approaches.

What Problem Does This Paper Address?

Most distributed optimization research assumes an undirected network, where if Agent A can talk to Agent B, Agent B can talk back with the same "weight." In reality, many networks (like the web or certain sensor arrays) are directed. This creates a "weight imbalance" that causes standard gradient descent to converge to the wrong solution.

Furthermore, the authors tackle Stochastic Compositional Optimization (SCO). In SCO, your objective looks like $f(g(x))$. To calculate the gradient, you need the chain rule: $\nabla g(x) \times \nabla f(g(x))$. Because both $f$ and $g$ are stochastic (based on random data samples), estimating this product is notoriously difficult and usually requires two different "timescales" or very large batches of data to keep the error from exploding.

Methods

The authors introduce the AB-DSCSC method (AB/push-pull based Distributed Stochastically Corrected Stochastic Compositional Gradient). It relies on three clever pillars:

  1. AB/Push-Pull Scheme: To handle directed graphs, the algorithm uses two different weight matrices. Matrix A (row-stochastic) helps agents reach a consensus on the model parameters, while Matrix B (column-stochastic) "pushes" gradient information across the network to track the global average gradient.
  2. Stochastic Correction (SCSC): Instead of a simple moving average to estimate the inner function $g(x)$, they use a "corrected" version that incorporates the difference between consecutive estimates. This allows the algorithm to run on a single timescale, making it much faster in practice.
  3. Gradient Tracking: Each agent maintains a "tracker" variable that estimates the average gradient of the entire network, ensuring that local updates don't drift too far from the global goal.

Datasets

The authors evaluated their method on two primary benchmarks:

  • Model-Agnostic Meta-Learning (MAML): A popular "learning to learn" framework. They used a sinusoidal regression task where a neural network must quickly adapt to new sine waves with different amplitudes and phases.
  • Conditional Stochastic Optimization: A modified logistic regression problem where the inner and outer randomness are independent, tested on a synthetic dataset with 50 agents.

Key Insights and Ideas

  • No More "Batch Bloat": Previous distributed SCO methods required the batch size to grow over time (specifically $O(\sqrt{k})$) to guarantee convergence. AB-DSCSC achieves the same accuracy with a constant batch size, which is much more memory-efficient for real-world hardware.
  • Optimal Convergence: The method hits the theoretical "speed limit" for these types of problems: $O(k^{-1/2})$ for smooth functions and $O(k^{-1})$ for strongly convex functions.
  • Asymptotic Normality: This is a significant theoretical contribution. The authors prove that if you average the iterates (Polyak-Ruppert averaging), the error eventually follows a normal distribution. This provides a mathematical foundation for building confidence intervals around the distributed solution.

Key Results

  • MAML Performance: In meta-learning tests, AB-DSCSC performed as well as (and sometimes more stably than) existing methods like GP-DSCGD, despite the added difficulty of operating on a directed graph.
  • Sample Complexity: For non-convex problems, the method finds an $\epsilon$-stationary point with a sample complexity of $O(1/\epsilon^2)$, matching the best-known rates for non-compositional (simpler) problems.
  • Robustness to Topology: The experiments confirmed that the algorithm successfully overcomes the "weight imbalance" of directed links, converging to the true global optimum where simpler methods would fail.

Limitations and Future Work

While the paper provides a rigorous proof for directed networks, it assumes the network is static (the links don't change over time). In many real-world scenarios, like mobile ad-hoc networks, links appear and disappear. Extending this "stochastic correction" to time-varying directed graphs remains an open challenge. Additionally, while the method is efficient, the communication overhead of maintaining both state and gradient trackers (the "AB" part) is higher than simple gossip-based methods.

Check out the full paper on arXiv: arXiv:2203.11074

Summary updated

BibTeX
@misc{zhao2022distributed,
  author = {Shengchao Zhao and Yongchao Liu},
  title = {{Distributed Stochastic Compositional Optimization Problems over Directed Networks}},
  year = {2022},
  eprint = {2203.11074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.11074},
}
Figure