Accelerated Methods with Compression for Horizontal and Vertical Federated Learning

Karimullin Timur Rustemovich, Stanko Sergey, Aleksandr Beznosikov, Alexander Gasnikov

TL;DR

This paper tackles the communication bottleneck in distributed machine learning, particularly in federated learning settings. They introduce novel accelerated algorithms for both horizontal and vertical data partitioning, incorporating compression techniques to reduce data transmission. These methods achieve state-of-the-art theoretical performance and demonstrate superior practical results.

What Problem Does This Paper Address?

Training large machine learning models often requires vast amounts of data, making distributed training across multiple devices a necessity. However, communication between these devices can become a significant bottleneck, especially with high-dimensional models. This is particularly true in federated learning, where data is distributed across devices (workers) and can be partitioned in two main ways:

  • Horizontal Federated Learning: Each worker has data samples with the same features but different instances. This is the more common scenario.
  • Vertical Federated Learning: Each worker has data for the same samples but possesses different features. This is useful when different entities (e.g., a bank and an e-commerce company) want to collaborate on a model without sharing raw data due to privacy or legal reasons.

The core challenge is to minimize the amount of data transmitted during training while still achieving high-quality models, thereby accelerating the overall training process.

Methods

The paper proposes two main accelerated algorithms, building upon the Katyusha algorithm and incorporating compression techniques:

  • DHPL-Katyusha (Horizontal Regime): This algorithm is designed for horizontal data partitioning. It adapts variance reduction techniques from non-distributed methods to handle the stochasticity introduced by compression. A key innovation is the compression of the difference between gradients at the current and old points, rather than the full gradient. This, combined with acceleration, leads to improved theoretical convergence rates.
  • DVPL-Katyusha (Vertical Regime): This algorithm addresses vertical data partitioning. It's designed to work with subvectors of features and requires communication of partial results to reconstruct the necessary information for gradient computation. The paper provides some of the first theoretical convergence guarantees for this regime, particularly for scalar compression.

Both algorithms leverage compression operators to reduce the size of transmitted data. They analyze these operators based on two properties:

  1. Unbiasedness: The expected value of the compressed vector is equal to the original vector.
  2. Compression Constant (ω): A measure of how much the variance of the compressed vector increases compared to the original.

The paper also explores different types of compressors, including RandK (randomly selecting coordinates) and PermK (distributing permutations of vector components), and analyzes their impact on performance.

Datasets

The paper uses publicly available LIBSVM datasets for numerical experiments. Specifically, they mention:

  • Mushrooms
  • A5A
  • W3A

These datasets are used to evaluate the performance of their proposed algorithms in both horizontal and vertical settings.

Key Insights and Ideas

  • Compression of Gradient Differences is Key: For horizontal federated learning, compressing the difference between gradients at the current and old points (as done in DHPL-Katyusha) is more effective than compressing the full gradient, especially when combined with acceleration. This reduces the impact of compression noise on the overall convergence.
  • Theoretical Guarantees for Vertical FL: Providing theoretical convergence guarantees for vertical federated learning with compression is a significant contribution, as this area has been less explored compared to horizontal FL.
  • Compressor Choice Matters: While both RandK and PermK compressors are analyzed, the experiments suggest that PermK can offer superior performance in certain scenarios, highlighting the importance of selecting appropriate compression strategies.
  • Effective Lipschitz Constant: The paper introduces and utilizes the concept of an "efficient Lipschitz constant" to analyze the convergence of their algorithms, which proves to be a powerful tool for handling compressed gradients.

Key Results

  • Horizontal FL: DHPL-Katyusha achieves state-of-the-art theoretical convergence rates, outperforming existing accelerated methods like ADIANA in terms of asymptotic performance. Experimental results show it performs competitively or better than other popular approaches on LIBSVM datasets.
  • Vertical FL: DVPL-Katyusha provides theoretical convergence guarantees for vertical federated learning, a novel contribution. Experimental results demonstrate significant acceleration compared to naive implementations of gradient descent and its Nesterov acceleration in a vertically distributed setting.
  • Compressor Performance: In experiments, PermK compressor generally shows better practical performance than RandK in both horizontal and vertical settings.

Limitations and Future Work

  • Theoretical vs. Practical Gap: While theoretical guarantees are provided, the paper acknowledges that the practical performance can depend on the specific choice of hyperparameters and the nature of the data.
  • Generalization to Non-Convex Problems: The current work focuses on strongly convex problems. Extending these accelerated methods with compression to non-convex settings would be a valuable future direction.
  • More Sophisticated Compressors: The paper explores RandK and PermK, but further research into other advanced compression techniques and their theoretical analysis in federated learning could yield further improvements.
  • Real-World Deployment: While experiments are conducted on benchmark datasets, testing these algorithms on larger, more complex, and real-world federated learning scenarios would be beneficial to fully assess their practical utility.

Summary updated

BibTeX
@inproceedings{rustemovich2024accelerated,
  author = {Karimullin Timur Rustemovich and Stanko Sergey and Aleksandr Beznosikov and Alexander 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