HCFL: A High Compression Approach for Communication-Efficient Federated Learning in Very Large Scale IoT Networks

Minh-Duong Nguyen, Sang-Min Lee, Quoc-Viet Pham, Dinh Thai Hoang, Diep N. Nguyen, Won-Joo Hwang

Federated Learning (FL) is a breakthrough for privacy-preserving AI, but it has a major "weight" problem. In a world of billions of IoT devices, the constant back-and-forth of massive neural network parameters can choke even the most robust 5G networks. This paper introduces HCFL (High Compression Federated Learning), a novel approach that uses deep learning to compress the very process of deep learning.

TL;DR

HCFL leverages an under-complete autoencoder structure to compress model updates in Federated Learning by up to 32x. By treating model weights as data to be compressed and reconstructed, it drastically reduces communication overhead in massive IoT networks with minimal impact on final model accuracy.

What Problem Does This Paper Address?

In standard Federated Learning, a central server sends a global model to many clients (like smartphones or IoT sensors). These clients train the model on local data and send the updated "weights" back. While this keeps raw data private, the communication cost is staggering.

For a massive IoT network with thousands of devices, transmitting these high-dimensional weight matrices creates a bottleneck. Existing solutions like quantization (reducing bit-precision) or sparsification (dropping small weights) often hit a performance ceiling or require thousands of extra communication rounds to converge. The authors aim to find a way to achieve much higher compression ratios without breaking the learning process or requiring specialized hardware.

Methods

The core innovation is the HCFL framework, which treats the model weight update as a signal to be compressed via an Autoencoder.

  1. Autoencoder-based Compression: Instead of simple bit-reduction, HCFL uses a deep neural network (the encoder) on the IoT device to map high-dimensional weights into a low-dimensional "feature vector." The server then uses a corresponding decoder to reconstruct the weights.
  2. Joint Optimization: The authors don't just minimize reconstruction error (MSE). They formulate a joint optimization problem that also maximizes Mutual Information between the original and encoded data. This ensures that the most "valuable" features for learning are preserved during the squeeze.
  3. Data Segmentation: To fight the "curse of dimensionality," HCFL breaks down large weight matrices into smaller sub-datasets. This makes the compression task manageable for the autoencoder and improves reconstruction quality.
  4. Transfer Learning for the Compressor: The autoencoder itself is pre-trained using transfer learning and data augmentation on the server. This allows the compressor to understand the general distribution of model weights before the actual FL process begins.

Datasets

The researchers evaluated HCFL using two standard benchmarks for image classification in FL:

  • MNIST: 60,000 images of handwritten digits (0-9).
  • EMNIST: A more complex version of MNIST including 47 balanced classes of letters and digits.
  • Models: They tested these datasets on LeNet-5 and a more advanced 5-CNN architecture to demonstrate scalability.

Key Insights and Ideas

  • The "Massive Network" Advantage: One of the most surprising theoretical insights (Theorem 1) is that the distortion caused by lossy compression is inversely proportional to the number of clients ($K$). In other words, HCFL actually works better as the network grows larger, because the reconstruction errors from thousands of different devices tend to average out at the server.
  • Beneficial Noise: The authors argue that the slight errors introduced by lossy compression act as a form of "gradient noise." Much like the noise in Stochastic Gradient Descent, this can actually help the global model escape local minima and improve exploration during training.
  • OSI Layer Compatibility: HCFL is designed to sit at the Presentation Layer of the OSI model. This means it can be combined with other communication-efficient methods (like quantization) at lower layers for even greater savings.

Key Results

  • Massive Data Savings: HCFL achieved a 1:32 compression ratio. For the 5-CNN model on EMNIST, this reduced the total data transferred over 100 rounds from 27.2 GB down to just 910 MB.
  • High Accuracy: Despite the aggressive compression, the accuracy loss was negligible. On the MNIST dataset, the HCFL-integrated model reached 98% accuracy, only about 1-2% lower than the uncompressed baseline.
  • Low Latency: The computational overhead for encoding/decoding is in the range of milliseconds, which is insignificant compared to the time required for local training on the IoT devices.
  • Outperforming Benchmarks: HCFL at a 1:32 ratio outperformed other state-of-the-art methods like T-FedAvg, which typically caps out at a 1:16 ratio.

Limitations and Future Work

While HCFL shows great promise, the authors acknowledge a few areas for growth:

  • Synchronous vs. Asynchronous: The current study focuses on synchronous FL (where the server waits for a set of clients). Adapting HCFL for asynchronous FL, where "straggler" devices might report back late, is a key next step.
  • Deterministic Encoders: The authors suggest moving toward deterministic algorithms for the encoder phase to reduce the need for supervised training of the compressor itself.
  • Complex Architectures: Future work will involve testing HCFL on even deeper models like ResNet or VGG-16 to see if the segmentation strategy holds up against millions of parameters.

Summary updated

BibTeX
@article{nguyen2023hcfl,
  author = {Minh-Duong Nguyen and Sang-Min Lee and Quoc-Viet Pham and Dinh Thai Hoang and Diep N. Nguyen and Won-Joo Hwang},
  title = {{HCFL: A High Compression Approach for Communication-Efficient Federated Learning in Very Large Scale IoT Networks}},
  journal = {IEEE Trans. Mobile Computing},
  year = {2023},
  url = {https://openreview.net/forum?id=hdiTdnXaSX},
}
Figure