QuPeD: Quantized Personalization via Distillation with Applications to Federated Learning

Kaan Ozkara, Navjot Singh, Deepesh Data, Suhas N. Diggavi

Introduction

Traditionally, Federated Learning (FL) aims to train a single global model by collaboratively aggregating updates from multiple clients. However, real-world deployments face significant hurdles due to the diverse nature of edge devices. QuPeD (Quantized Personalization via Distillation) is a novel federated learning framework designed to allow heterogeneous edge devices to train personalized, compressed models tailored to their specific hardware constraints. By combining a differentiable quantization strategy with knowledge distillation, QuPeD enables high-performance collaboration between clients using entirely different model architectures and bit-precisions.

The Challenge of Heterogeneity

Standard FL typically strives for a "one-size-fits-all" global model, which struggles against two primary forms of heterogeneity:

  1. Data Heterogeneity: A single global model often fails to perform optimally across all users because local data distributions (e.g., different languages, handwriting styles, or photo habits) vary wildly.
  2. Resource Heterogeneity: Edge devices range from high-end smartphones to low-power IoT sensors. They cannot all support the same model size, memory footprint, or numerical precision (bit-width).

While "Personalized FL" addresses data variance, most existing methods still assume every client uses the exact same model architecture. QuPeD tackles both challenges simultaneously, allowing a diverse ecosystem of devices to collaborate even if they require different levels of model compression for efficient inference.

The QuPeD Framework

To bridge personalization and compression, the authors introduce a two-pronged approach:

1. Learnable Quantization

Unlike standard quantization that snaps weights to fixed, predefined values, QuPeD treats the quantization "centers" (the levels to which weights are mapped) as variables in a relaxed optimization problem. They utilize a "soft" sigmoid-based quantization function to keep the objective differentiable. This allows the model to learn the optimal bit-representations dynamically during training.

2. Collaboration via Knowledge Distillation (KD)

Because clients might have different model dimensions or structures, their weights cannot be simply averaged (the standard "FedAvg" approach). Instead, QuPeD leverages Knowledge Distillation. A global model acts as a shared knowledge base, and clients use it to regularize their local training. This exchange of "soft labels" allows a robust 32-bit global model to effectively teach a highly compressed, 2-bit personalized local model.

To solve this, the authors developed an alternating proximal gradient update method. In each step, the algorithm updates the model weights, then the quantization centers, and finally the local copy of the global model, ensuring convergence even in non-convex settings.

Experimental Highlights

The researchers evaluated QuPeD on standard image classification benchmarks (CIFAR-10, FEMNIST, and MNIST), modified to simulate federated environments with extreme data label distribution skews.

Validating the Quantization Strategy

Before deploying the full federated framework, the authors validated their core learnable quantization method (Algorithm 1) in a standard centralized setting.

Test accuracy of the proposed quantization algorithm on CIFAR-10

As shown in the table above, the proposed quantization approach remains highly competitive with full-precision (FP) models on CIFAR-10. Notably, the 1-bit and 2-bit variants of Algorithm 1 outperform existing quantization baselines like ProxQuant and BinaryRelax, proving that optimizing quantization levels alongside weights preserves critical model accuracy.

Federated Performance and Compression

When scaled to the federated setting, QuPeD demonstrated remarkable efficacy:

  • Superior Accuracy: In full precision, QuPeD consistently outperformed state-of-the-art personalized FL methods like Per-FedAvg and pFedMe. On FEMNIST, QuPeD achieved 97.31% accuracy compared to Per-FedAvg's 97.16%.
  • Effective Compression: A 2-bit quantized QuPeD model often outperformed other full-precision methods. For example, on federated CIFAR-10, 2-bit QuPeD reached 74.58% accuracy, surpassing the full-precision pFedMe baseline (73.66%).
  • Architecture Agnostic: The framework successfully facilitated collaborative learning in settings where half the clients used one CNN architecture and the other half used a different one—a scenario where standard FedAvg would simply fail.

Key Insights and Future Directions

QuPeD reveals several fascinating dynamics in federated learning. First, moving centers matter: optimizing the quantization levels themselves significantly improves accuracy, allowing the compressed model to better fit the specific data distribution of the client. Second, KD acts as a universal translator, ignoring architecture constraints and future-proofing the framework against new, diverse hardware. Finally, theoretical analysis highlights a smoothness-diversity link: clients with highly unusual data need to choose models with smaller "smoothness parameters" (less aggressive quantization) to maintain stable convergence.

Limitations: While QuPeD excels at inference efficiency, the use of Knowledge Distillation can sometimes increase the communication overhead during the training phase compared to simple weight averaging. Furthermore, scaling these alternating proximal updates from hundreds of clients to massive-scale production environments (millions of devices) remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{ozkara2021quped,
  author = {Kaan Ozkara and Navjot Singh and Deepesh Data and Suhas N. Diggavi},
  title = {{QuPeD: Quantized Personalization via Distillation with Applications to Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=XycKmCk0PXe},
}
Figure