Skip to main content
QUICK REVIEW

[Paper Review] Quantization Robust Federated Learning for Efficient Inference on Heterogeneous Devices

Kartik Gupta, Marios Fournarakis|arXiv (Cornell University)|Jun 22, 2022
Privacy-Preserving Technologies in DataComputer Science13 citations
TL;DR

This paper proposes quantization-robust federated learning methods to enable efficient on-device inference across heterogeneous devices with varying bit-width constraints. By integrating Kurtosis Regularization, Additive Pseudo-Quantization Noise, and a novel Multi-bit Quantization-Aware Training (mQAT) framework into Federated Averaging, the approach achieves high accuracy across multiple quantization bit-widths without significant performance drop, even after full-precision training.

ABSTRACT

Federated Learning (FL) is a machine learning paradigm to distributively learn machine learning models from decentralized data that remains on-device. Despite the success of standard Federated optimization methods, such as Federated Averaging (FedAvg) in FL, the energy demands and hardware induced constraints for on-device learning have not been considered sufficiently in the literature. Specifically, an essential demand for on-device learning is to enable trained models to be quantized to various bit-widths based on the energy needs and heterogeneous hardware designs across the federation. In this work, we introduce multiple variants of federated averaging algorithm that train neural networks robust to quantization. Such networks can be quantized to various bit-widths with only limited reduction in full precision model accuracy. We perform extensive experiments on standard FL benchmarks to evaluate our proposed FedAvg variants for quantization robustness and provide a convergence analysis for our Quantization-Aware variants in FL. Our results demonstrate that integrating quantization robustness results in FL models that are significantly more robust to different bit-widths during quantized on-device inference.

Motivation & Objective

  • Address the lack of quantization robustness in federated learning despite growing hardware heterogeneity in edge devices.
  • Enable trained models to maintain high accuracy when quantized to various bit-widths (e.g., 2-, 4-, 8-bit) for energy-efficient inference.
  • Overcome the limitation of standard Quantization-Aware Training (QAT) in FL, which degrades performance when deployed on bit-widths other than the one it was trained for.
  • Design a federated training framework that generalizes across multiple quantization bit-widths without retraining.
  • Theoretical analysis of convergence behavior for QAT variants in the non-convex federated setting is included.

Proposed method

  • Introduces Kurtosis Regularization (KURE) by adding a regularization term to the local client loss function to encourage robustness to weight quantization.
  • Proposes Additive Pseudo-Quantization Noise (APQN), where random noise is injected during training to simulate quantization effects, inspired by randomized smoothing.
  • Develops Multi-bit Quantization-Aware Training (mQAT), where a random bit-width is sampled per client during each local update to train a single model robust to multiple bit-widths.
  • Adapts standard QAT with Straight-Through Estimator (STE) approximations but modifies the training process to improve generalization across bit-widths.
  • Theoretical convergence analysis is provided for QAT variants in federated learning, showing convergence rates similar to FedAvg with a QAT-specific error floor.
  • Employs standard FedAvg as the base optimization framework, with modifications applied at the client-level training phase to incorporate quantization robustness.

Experimental results

Research questions

  • RQ1Can quantization robustness be effectively integrated into federated learning to maintain model accuracy across diverse bit-widths on heterogeneous devices?
  • RQ2How do regularization-based methods (e.g., KURE, APQN) compare to QAT-based approaches in terms of robustness to out-of-distribution quantization?
  • RQ3Can a single model trained via federated learning generalize across multiple quantization bit-widths without retraining, using mQAT?
  • RQ4What is the theoretical convergence behavior of QAT-based federated training in non-convex settings?
  • RQ5Does integrating quantization robustness mechanisms degrade full-precision model accuracy in federated settings?

Key findings

  • The mQAT method achieves global validation accuracy of 76.42% on CIFAR-10 with ResNet-20 after 8-bit activation quantization, outperforming baseline QAT (73.72%) and other variants.
  • On CIFAR-100 with ResNet-20, mQAT achieves 76.8% accuracy after 6-bit activation quantization, significantly outperforming QAT (71.38%) and baseline (64.08%) models.
  • For TinyImageNet with ResNet-18, mQAT maintains 66.02% accuracy after 4-bit weight quantization, while QAT drops to 66.74% and baseline to 68.24%.
  • The APQN method achieves 76.38% accuracy on CIFAR-10 with 8-bit activation quantization, outperforming baseline (70.06%) and QAT (73.98%) in the same setting.
  • In the 2-bit regime, mQAT achieves 67.78% accuracy on CIFAR-10 with LeNet-5, compared to 58.2% for QAT and 26.2% for KURE, demonstrating strong robustness.
  • Theoretical analysis confirms that convergence rates for mQAT are comparable to FedAvg, with a small error floor attributable to QAT-specific training heuristics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.