Intrinisic Gradient Compression for Federated Learning

Luke Melas-Kyriazi, Franklyn WangarXiv 2021

Abstract

Federated Learning (FL) enables collaborative model training across distributed edge devices without centralizing private data. However, the communication overhead of transmitting high-dimensional gradient updates remains a primary bottleneck. We introduce Intrinsic Gradient Compression (IGC), a novel framework that leverages the low intrinsic dimensionality of deep learning tasks to compress updates by up to 1000x. By restricting updates to small, randomly generated subspaces, IGC significantly reduces bandwidth requirements while maintaining competitive performance on large-scale NLP and vision tasks.

Introduction

The scalability of Federated Learning is often hampered by the limited bandwidth of edge devices. Modern architectures, such as BERT and GPT-2, contain millions to billions of parameters, making the exchange of full gradient updates prohibitively expensive. Existing compression techniques, such as sparsification and sketching, often struggle to maintain accuracy at high compression ratios or fail to scale efficiently with model size.

This work addresses these challenges by bridging deep learning theory with practical communication efficiency. We utilize the observation that many learning tasks reside in a low-dimensional "intrinsic" subspace. By focusing communication on these critical dimensions, we can achieve massive reductions in data transfer without sacrificing model quality.

Intrinsic Gradient Compression Methods

The proposed IGC framework consists of three primary algorithmic variants designed to balance communication efficiency and exploration of the parameter space.

  1. Static IGC: Gradients are projected into a fixed, low-dimensional random subspace. Clients only transmit coordinates within this subspace, drastically reducing the upload payload.
  2. K-subspace IGC: To further optimize bandwidth, clients are partitioned into $K$ groups, each assigned a different random subspace. The server aggregates these diverse updates, allowing the global model to benefit from a broader range of gradient directions.
  3. Time-varying IGC: The random subspace is rotated every epoch. This temporal variation allows the optimization process to explore different regions of the full parameter space over time, which is theoretically shown to accelerate convergence.

To ensure computational efficiency, IGC employs the Fastfood transform. This technique utilizes Hadamard matrices to perform pseudo-random projections in $O(D \log D)$ time with minimal memory overhead, avoiding the need to store large, dense projection matrices.

Comparison of communication costs and dimensions explored for various IGC methods.

Experimental Evaluation

We evaluated IGC across three distinct benchmarks to demonstrate its versatility and scalability:

  • Computer Vision: ResNet-9 (6.5M parameters) on CIFAR-10.
  • Text Classification: BERT (109M parameters) on the SST-2 dataset.
  • Language Modeling: GPT-2 (124M parameters) on PersonaChat.

These experiments compare IGC against state-of-the-art baselines, including FetchSGD and Top-K sparsification, across varying compression regimes.

Results and Key Insights

Our empirical results highlight several advantages of the IGC approach:

  • Extreme Compression: On the GPT-2 PersonaChat task, IGC achieved a perplexity of approximately 20 while maintaining an 1898x compression rate.
  • High-Dimensional Efficiency: For BERT-based text classification, IGC reached near-baseline performance by compressing 109 million parameters into a subspace of only 16,384 dimensions.
  • Superiority over Baselines: In CIFAR-10 experiments, IGC consistently outperformed FetchSGD at high compression ratios (e.g., 100x), demonstrating better robustness to aggressive bandwidth constraints.
  • Asymmetric Optimization: The K-subspace method proved particularly effective for typical internet connections where upload bandwidth is more restricted than download bandwidth.

Beyond communication efficiency, IGC provides a natural layer of privacy. By transmitting only low-dimensional projections, the framework makes it significantly more difficult for malicious actors to reconstruct sensitive client data from gradient updates.

Discussion and Future Work

While IGC demonstrates strong empirical performance on non-convex neural networks, current theoretical guarantees are primarily established for convex objectives. Future research will focus on extending these proofs to the non-convex regime. Additionally, exploring the synergy between IGC and other compression techniques, such as quantization, could potentially push communication efficiency even further. Finally, automated methods for tuning the intrinsic dimension $d$ and the number of subspaces $K$ would enhance the practical deployability of the framework.

Summary updated

BibTeX
@misc{melaskyriazi2021intrinisic,
  author = {Luke Melas-Kyriazi and Franklyn Wang},
  title = {{Intrinisic Gradient Compression for Federated Learning}},
  year = {2021},
  eprint = {2112.02656},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.02656},
}
Figure