Accelerated Methods with Compression for Horizontal and Vertical Federated Learning

Sergey Stanko, Timur Karimullin, Aleksandr Beznosikov, Alexander V. Gasnikov

Abstract

Distributed optimization algorithms have emerged as superior approaches for solving machine learning problems. To accommodate the diverse ways in which data can be stored across devices, these methods must be adaptable to a wide range of situations. As a result, two orthogonal regimes of distributed algorithms are distinguished: horizontal and vertical. During parallel training, communication between nodes can become a critical bottleneck, particularly for high-dimensional and over-parameterized models. Therefore, it is crucial to enhance current methods with strategies that minimize the amount of data transmitted during training while still achieving a model of similar quality. This paper introduces two accelerated algorithms with various compressors, working in the regime of horizontal and vertical data division. By utilizing a momentum and variance reduction technique from the Katyusha algorithm, we were able to achieve acceleration and demonstrate one of the best asymptotics for the horizontal case. Additionally, we provide one of the first theoretical convergence guarantees for the vertical regime. Our experiments involved several compressor operators, including RandK and PermK, and we were able to demonstrate superior practical performance compared to other popular approaches.

Introduction

In Federated Learning (FL), training a model across many devices is often throttled by a massive bottleneck: communication. Sending high-dimensional gradients over a network is slow and expensive. To fix this, researchers use compression (sending only a fraction of the data), but compression usually introduces "noise" that slows down how many iterations the model needs to converge.

This paper addresses the challenge of maintaining "acceleration"—the mathematical gold standard for fast convergence—while using aggressive compression. Furthermore, while Horizontal FL (where users have different samples but the same features) is well-studied, Vertical FL (where different organizations hold different features for the same samples) lacks solid theoretical foundations for compressed optimization.

Methodology

The authors build upon the L-Katyusha algorithm, known for its "negative momentum" and variance reduction properties. They adapt it into two flavors:

  1. DHPL-Katyusha (Horizontal): Workers compute the difference between gradients at a new point and an old point, compress that difference, and broadcast it. This "difference compression" helps the variance of the stochastic gradient go to zero as the model approaches the optimum.
  2. DVPL-Katyusha (Vertical): Because features are split across devices, workers must coordinate to compute dot products. The authors introduce a version that uses RandK (sending a random subset of coordinates) or Scalar Compression to minimize the data exchanged during these partial computations.

A key theoretical contribution is the definition of the "Efficient Lipschitz Constant" ($\tilde{L}$), a tool that allows them to prove that these compressed algorithms still converge at an accelerated rate proportional to $\sqrt{L/\mu}$.

Theoretical Comparison and Results

The proposed algorithms achieve state-of-the-art iteration complexity in both regimes. As shown in the comparison table below, Algorithm 1 (DHPL-Katyusha) matches the best known theoretical complexity for horizontal FL, while Algorithm 2 (DVPL-Katyusha) provides one of the first concrete iteration complexity bounds for the vertical regime.

Comparison of iteration complexity for horizontal and vertical federated learning algorithms.

Key Results

  • Horizontal Performance: DHPL-Katyusha matches the best known theoretical complexity but demonstrates superior practical performance in experiments, reaching higher accuracy with less data transmitted than vanilla Gradient Descent (GD) or Accelerated Gradient Descent (AGD).
  • Vertical Guarantees: For the vertical regime, the authors proved an iteration complexity of $O\left(\left(\sqrt{\frac{s\bar{L}}{\mu}} + s\right) \log \frac{1}{\epsilon}\right)$, filling a significant gap in the literature where previous VFL methods often lacked concrete convergence rates.
  • Communication Efficiency: In all tests, the proposed methods required significantly fewer "bits on the wire" to reach the same loss level compared to non-accelerated or non-compressed baselines.

Experimental Evaluation

The algorithms were evaluated using standard benchmarks from the LIBSVM library, including mushrooms (binary classification), a5a (income prediction), and w3a (web-page classification). These were used to test both binary classification (Horizontal) and linear regression (Vertical) tasks.

A major insight from the experiments is that the best compressor depends on the regime. PermK (which uses coordinated permutations across workers) performs better in Horizontal FL, while RandK (simple random selection) takes the lead in Vertical FL.

Limitations and Future Work

  • Loss Function Specificity: The analysis for scalar compression in the vertical regime is currently limited to MSE (Mean Squared Error) loss. Generalizing this to more complex loss functions (like cross-entropy) is a necessary next step.
  • Strong Convexity Assumption: The theoretical proofs rely on the problem being strong convex. Extending these accelerated compressed methods to non-convex landscapes (like Deep Neural Networks) remains an open challenge.
  • Decentralized Topologies: The current work assumes a standard hub-and-spoke communication setup; testing how these methods behave in peer-to-peer or highly dynamic network topologies could be a fruitful area for future research.

Summary updated

BibTeX
@inproceedings{stanko2024accelerated,
  author = {Sergey Stanko and Timur Karimullin and Aleksandr Beznosikov and Alexander V. Gasnikov},
  title = {{Accelerated Methods with Compression for Horizontal and Vertical Federated Learning}},
  booktitle = {ICOMP Publication},
  year = {2024},
  url = {https://openreview.net/forum?id=YnLoqawk5L},
}
Figure