Refined Convergence and Topology Learning for Decentralized Optimization with Heterogeneous Data

Batiste Le bars, Aurélien Bellet, Marc Tommasi, Erick Lavoie, Anne-marie KermarrecFederated Learning @ NeurIPS 2022

TL;DR

This paper tackles the challenge of training machine learning models across many decentralized devices with diverse data. They introduce a new metric, "neighborhood heterogeneity," to understand how data distribution and network topology interact to affect training speed. Crucially, they develop a method to learn sparse, data-aware network topologies that significantly improve training efficiency and reduce communication costs, especially in heterogeneous settings.

What Problem Does This Paper Address?

In decentralized and federated learning, multiple agents (like devices or servers) train a shared model using their local data without pooling it. A major hurdle is data heterogeneity: each agent's data can have a very different distribution, which can drastically slow down or even prevent the model from converging to a good solution. The communication network (topology) connecting these agents plays a vital role in how information is shared and how quickly the model learns. However, designing an optimal topology that accounts for both the data heterogeneity and the communication constraints (how much data can be exchanged per step) is a complex, open problem. Existing methods often rely on fixed, dense topologies (like fully connected networks) which are communication-intensive, or data-independent sparse topologies that don't adapt to the specific data distributions.

Methods

The authors make two key contributions:

  1. Refined Convergence Analysis: They introduce a new theoretical concept called neighborhood heterogeneity. This metric quantifies how much the aggregated gradients within a node's neighborhood (defined by the communication topology) differ from the global average gradient. This is a more nuanced view than previous analyses, which often focused on local data heterogeneity alone. They show that this neighborhood heterogeneity, combined with the topology, directly impacts the convergence rate of Decentralized Stochastic Gradient Descent (D-SGD). Their analysis requires weaker assumptions than prior work, making it more broadly applicable.
  2. Topology Learning Algorithm (STL-FW): They propose a novel algorithm, Sparse Topology Learning with Frank-Wolfe (STL-FW), to learn a data-dependent, sparse network topology. This algorithm specifically targets the problem of label skew in classification tasks, where data heterogeneity arises from different class distributions across agents. STL-FW formulates the topology learning as an optimization problem that aims to minimize the derived neighborhood heterogeneity. They use a Frank-Wolfe approach to find sparse solutions, allowing explicit control over the communication budget (number of neighbors per node).

Datasets

The paper evaluates its methods on:

  • MNIST: A dataset of handwritten digits, used for a classification task with a logistic regression model.
  • CIFAR10: A dataset of small images across 10 classes, used with a Group-Normalized LeNet model.

Both datasets were partitioned across 100 nodes to simulate a decentralized setting, with a focus on creating label skew (agents having different proportions of classes).

Key Insights and Ideas

  • Neighborhood Heterogeneity is Key: The paper highlights that simply looking at local data heterogeneity isn't enough. How the topology aggregates information from neighbors is crucial, and this "neighborhood heterogeneity" is a more accurate predictor of D-SGD's performance.
  • Topology as a Compensator: A well-chosen topology can actively compensate for data heterogeneity, leading to faster convergence. This is a significant shift from viewing topology as just a constraint.
  • Sparse is Not Always Worse: While dense topologies (like fully connected) offer a theoretical upper bound on performance, the learned sparse topologies from STL-FW can achieve comparable or even better convergence speeds with drastically reduced communication costs.
  • Data-Driven Topologies Outperform: Topologies that learn from the data distribution (like STL-FW and D-Cliques) generally outperform random or fixed sparse topologies, especially in heterogeneous settings.
  • STL-FW Balances Trade-offs: The STL-FW algorithm effectively balances the bias (due to data skew) and variance (due to network structure) components of the convergence rate, allowing for efficient learning.

Key Results

  • Improved Convergence Rates: The theoretical analysis provides refined convergence rates for D-SGD that explicitly depend on the new neighborhood heterogeneity metric and the topology.
  • Faster Training with STL-FW: Experiments show that D-SGD with topologies learned by STL-FW converges significantly faster than with random or fixed sparse topologies (like exponential graphs or D-Cliques) across both MNIST and CIFAR10 datasets.
  • Low Communication Budget Performance: STL-FW demonstrates strong performance even with very small communication budgets (e.g., dmax = 2 or 3), where other sparse topologies struggle. For instance, on MNIST, STL-FW shows good performance at dmax = 2, a budget that other topologies (except random) cannot achieve.
  • Scalability: The learned topologies approach the performance of fully-connected networks as the communication budget increases, while maintaining sparsity.
  • Robustness to Hyperparameter λ: The performance of STL-FW is shown to be relatively insensitive to the hyperparameter λ, which controls the bias-variance trade-off, making it easier to use in practice.

Limitations and Future Work

  • Label Skew Focus: The topology learning algorithm (STL-FW) is primarily developed for the specific case of classification with label skew. While the theoretical analysis is more general, the learning method could be extended to other forms of data heterogeneity.
  • Static Topology: The learned topology is fixed before D-SGD training begins. Future work could explore dynamic topology learning, where the topology adapts during the training process.
  • Knowledge Assumptions: The paper assumes access to class proportions for topology learning. Investigating methods that require less explicit knowledge or can infer it more robustly would be valuable.
  • Other Heterogeneity Types: The authors suggest exploring different types of heterogeneity beyond label skew and incorporating other knowledge assumptions.

Summary updated

BibTeX
@inproceedings{bars2022refined,
  author = {Batiste Le bars and Aurélien Bellet and Marc Tommasi and Erick Lavoie and Anne-marie Kermarrec},
  title = {{Refined Convergence and Topology Learning for Decentralized Optimization with Heterogeneous Data}},
  booktitle = {Federated Learning @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=WBm2z8jrgtP},
}
Figure