Distributed Optimization over Block-Cyclic Data

Yucheng Ding, Chaoyue Niu, Yikai Yan, Zhenzhe Zheng, Fan Wu, Guihai Chen, Shaojie Tang, Rongfei Jia

In the world of Federated Learning (FL), we often assume that data is a static, albeit messy, pile distributed across millions of devices. But in reality, data is alive—it changes with the sun. Mobile users behave differently at noon than at midnight, and strict privacy regulations like GDPR often force apps to delete user data after a short period.

This paper, "Distributed Optimization over Block-Cyclic Data," tackles the challenge of training models when data isn't just non-i.i.d. (independent and identically distributed), but also follows a repeating temporal pattern, which the authors call block-cyclic.

TL;DR

Standard Federated Learning algorithms struggle when data changes cyclically over time (e.g., day vs. night patterns), often leading to models that are biased toward the most recent data. This paper introduces two new algorithms, MM-PSGD and MC-PSGD, which create specialized predictors for different time blocks, achieving significantly higher accuracy and more stable convergence than traditional Federated Averaging.

What Problem Does This Paper Address?

Most FL research assumes that while data varies between clients, the distribution at each client remains constant. The authors point out two major real-world biases that break this assumption:

  1. Client Bias: A model trained on one client's data is skewed toward that specific user.
  2. Block Bias: In a cyclic environment, a model trained during "Block A" (say, daytime) will be skewed toward daytime data and perform poorly at night.

Existing algorithms like Federated Averaging (FedAvg) tend to fluctuate wildly in these scenarios because the global model is constantly trying to "catch up" to the current data block, effectively forgetting what it learned in previous cycles.

Methods

The authors propose moving away from a single "one-size-fits-all" global model. Instead, they propose two strategies to build block-specific predictors:

  • MM-PSGD (Multi-Model Parallel SGD): This uses a "block-mixed" strategy. The training continues across all blocks, but the server maintains a separate predictor for each block by averaging the global models generated during that specific block across multiple cycles.
  • MC-PSGD (Multi-Chain Parallel SGD): This goes a step further by adding a "block-separate" training chain. It maintains two versions of the model: one trained on all data (mixed) and one trained only on data from that specific block. At each communication round, it compares the two and picks the one with the lower loss to update the block's predictor.
The workflows for MM-PSGD and MC-PSGD. MM-PSGD averages models within a block, while MC-PSGD selects the best model from mixed and separate training chains.

Both algorithms achieve a convergence rate of $O(1/\sqrt{NT})$, meaning they provide a linear speedup as you add more clients ($N$), matching the theoretical efficiency of standard parallel SGD.

Datasets

The researchers evaluated their approach using the CIFAR-10 dataset. To simulate the block-cyclic nature of real-world FL:

  • They partitioned the 50,000 training images into $M$ heterogeneous blocks based on their labels.
  • These blocks were distributed among $N=100$ clients in a non-i.i.d. and unbalanced way.
  • The training process was divided into $C=10$ cycles, with each cycle containing the $M$ blocks in sequence.

Key Insights and Ideas

  • Temporal Specialization: Instead of fighting the cyclic nature of data, the authors embrace it. By creating block-specific predictors, the system "remembers" the optimal parameters for daytime even while it's currently training on nighttime data.
  • The "Better Model" Selection: The core innovation of MC-PSGD is the selection principle. By evaluating both a "mixed" model (which benefits from all data) and a "separate" model (which avoids interference from other blocks), the algorithm can dynamically choose the best path for convergence.
  • Robustness to Heterogeneity: Standard FedAvg performance degrades as the number of blocks ($M$) increases because the "shock" of switching distributions happens more often. MM-PSGD and MC-PSGD actually perform better or remain stable as $M$ increases, as they can more finely specialize their predictors.

Key Results

The empirical results on CIFAR-10 were striking:

  • Accuracy Boost: MM-PSGD and MC-PSGD achieved a test accuracy of 65%.
  • FedAvg Failure: Standard FedAvg on the same cyclic data failed to converge, with accuracy fluctuating erratically between 56% and 59%.
  • Outperforming the "Ideal": Surprisingly, the proposed algorithms even beat FedAvg trained on "ideal" shuffled (i.i.d.) data, which only reached 62% accuracy. This suggests that specialized predictors can be more powerful than a single generalized model.
Figure 4. Impact of the number of blocks M. The ideal FedAvg with shuffle data is introduced as a baseline.

Limitations and Future Work

  • Communication Overhead: MC-PSGD requires exchanging extra model parameters and loss values to perform its selection step. The authors note this is roughly $2M^{1/4}$ times the overhead of MM-PSGD, which might be a concern for very large numbers of blocks.
  • Convexity Assumptions: The theoretical convergence proofs assume strongly convex and smooth objectives. While the CIFAR-10 experiments show the algorithms work for non-convex neural networks, a formal theoretical bridge for the non-convex case remains for future work.
  • Fixed Cycles: The current model assumes the cyclic pattern (the number and sequence of blocks) is known and fixed. Future research could explore how to handle drifting or unpredictable cycles.

Summary updated

BibTeX
@misc{ding2020distributed,
  author = {Yucheng Ding and Chaoyue Niu and Yikai Yan and Zhenzhe Zheng and Fan Wu and Guihai Chen and Shaojie Tang and Rongfei Jia},
  title = {{Distributed Optimization over Block-Cyclic Data}},
  year = {2020},
  eprint = {2002.07454},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.07454},
}
Figure