Bitwidth Heterogeneous Federated Learning with Progressive Weight Dequantization

Jaehong Yoon, Geon Park, Wonyong Jeong, Sung Ju Hwang

Abstract

In practical federated learning (FL) scenarios, the participating devices may have different bitwidths for computation and memory storage by design. However, despite the progress made in device-heterogeneous federated learning scenarios, the heterogeneity in the bitwidth specifications in the hardware has been mostly overlooked. We introduce a pragmatic FL scenario with bitwidth heterogeneity across the participating devices, dubbed as Bitwidth Heterogeneous Federated Learning (BHFL). BHFL brings in a new challenge: the aggregation of model parameters with different bitwidths could result in severe performance degeneration, especially for high-bitwidth models. To tackle this problem, we propose the ProWD framework, which has a trainable weight dequantizer at the central server that progressively reconstructs the low-bitwidth weights into higher bitwidth weights, and finally into full-precision weights. ProWD further selectively aggregates the model parameters to maximize the compatibility across bit-heterogeneous weights. We validate ProWD against relevant FL baselines on benchmark datasets, using clients with varying bitwidths. Our ProWD largely outperforms the baseline FL algorithms as well as naive approaches under the proposed BHFL scenario.

Introduction

Standard Federated Learning (FL) typically assumes a homogeneous environment where all clients utilize the same data precision, usually 32-bit floats. However, the real-world Internet of Things (IoT) landscape is inherently heterogeneous. While high-end smartphones can handle full-precision operations, low-power sensors or wearable devices are often restricted to low-bitwidth integers (e.g., Int4 or Int8) to minimize power and memory consumption.

Challenges of Bitwidth Heterogeneous Federated Learning (BHFL).

This disparity introduces the Bitwidth Heterogeneous Federated Learning (BHFL) challenge. As illustrated in Figure 1, naive aggregation of updates from clients with mixed precision causes a "distributional shift." High-precision models are forced to align with the coarse, discrete levels of low-bitwidth models, which destroys their expressiveness and leads to severe performance degradation. Essentially, the high-precision devices are penalized by the limitations of the low-precision ones.

The ProWD Framework

To mitigate the performance loss in BHFL, we propose ProWD (Progressive Weight Dequantization). This framework operates at the central server and bridges the precision gap through two primary mechanisms: the Progressive Weight Dequantizer and Selective Weight Aggregation.

Overview of the ProWD framework at the central server.

Progressive Weight Dequantizer

Rather than a direct mapping from low to high precision, the server employs a stack of neural network blocks to reconstruct weights hierarchically (e.g., Int4 -> Int8 -> Int16 -> Float32). This process is guided by a Reconstruction Loss to ensure dequantized weights remain faithful to high-bitwidth values, and a Distillation Loss using a small, unlabeled proxy dataset at the server to ensure the reconstructed model's predictions match the high-precision global model.

Score-based Selective Weight Aggregation

ProWD evaluates the "compatibility" of low-bitwidth updates by calculating the cosine similarity between their update directions and the high-precision global model. A binary mask is then used to filter out "outlier" updates that would otherwise induce harmful distributional shifts during averaging.

Key Insights

Our investigation revealed several critical aspects of BHFL:

  • Asymmetric Knowledge Transfer: Knowledge flows easily from high-bitwidth models to low-bitwidth ones. However, the reverse is problematic; low-bitwidth updates often harm high-precision models. ProWD specifically addresses this "upward" flow bottleneck.
  • The "Ternary Peak" Phenomenon: In standard FedAvg, high-precision weight distributions often degenerate into three distinct peaks (corresponding to -1, 0, 1), mirroring the limitations of low-bitwidth clients. This visualization explains why standard aggregation fails in BHFL scenarios.
  • Decoupled Training: The dequantizer can be trained concurrently with the FL process without requiring real-time client weights, thus avoiding communication overhead.

Experimental Results

We evaluated ProWD using CIFAR-10 and VGG-7 across various heterogeneous client mixes. On a CIFAR-10 setup with a 50/50 split of Int8 and Float32 clients, ProWD achieved an average accuracy of 84.43%, significantly outperforming standard FedAvg (76.56%) and specialized methods like FedPAQ (81.47%). ProWD also demonstrated robustness to high variance in client bitwidths (ranging from 6-bit to 16-bit), maintaining stable convergence where baseline methods often fell into suboptimal local minima.

Conclusion

ProWD provides a robust solution for federated learning in hardware-constrained environments. By progressively dequantizing weights and selectively aggregating updates, it enables a diverse ecosystem of devices to collaborate effectively without compromising the performance of high-precision participants. Future work will explore more sophisticated dequantizer architectures for ultra-low bitwidths and non-CNN architectures.

Summary updated

BibTeX
@inproceedings{yoon2022bitwidth,
  author = {Jaehong Yoon and Geon Park and Wonyong Jeong and Sung Ju Hwang},
  title = {{Bitwidth Heterogeneous Federated Learning with Progressive Weight Dequantization}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=1yHKDA4MsJ},
}
Figure