Skip to main content
QUICK REVIEW

[Paper Review] Online Model Compression for Federated Learning with Large Models

Tien-Ju Yang, Yonghui Xiao|arXiv (Cornell University)|May 6, 2022
Speech Recognition and SynthesisComputer Science4 citations
TL;DR

This paper proposes Online Model Compression (OMC), a lightweight framework for federated learning that stores and transmits large neural network parameters in compressed quantized formats, decompressing them only during on-the-fly computation. OMC reduces memory usage and communication costs by up to 59% while maintaining full-precision accuracy and training speed through per-variable transformation, weight-matrix-only quantization, and partial parameter quantization.

ABSTRACT

This paper addresses the challenges of training large neural network models under federated learning settings: high on-device memory usage and communication cost. The proposed Online Model Compression (OMC) provides a framework that stores model parameters in a compressed format and decompresses them only when needed. We use quantization as the compression method in this paper and propose three methods, (1) using per-variable transformation, (2) weight matrices only quantization, and (3) partial parameter quantization, to minimize the impact on model accuracy. According to our experiments on two recent neural networks for speech recognition and two different datasets, OMC can reduce memory usage and communication cost of model parameters by up to 59% while attaining comparable accuracy and training speed when compared with full-precision training.

Motivation & Objective

  • Address high on-device memory usage and communication costs in federated learning with large-scale models.
  • Reduce memory footprint of model parameters during training on edge devices without compromising model accuracy.
  • Minimize training slowdown caused by frequent compression/decompression operations in federated settings.
  • Enable deployment of state-of-the-art automatic speech recognition (ASR) models on resource-constrained edge devices.
  • Achieve efficient parameter transport and storage in federated learning via online, on-demand decompression of compressed parameters.

Proposed method

  • Store model parameters in compressed floating-point formats (e.g., S1E5M10) instead of full-precision FP32 to reduce memory and communication overhead.
  • Decompress parameters on-the-fly only when needed for forward or backward pass, and immediately deallocate them after use.
  • Apply per-variable transformation (PVT) to stabilize training by normalizing parameter distributions before quantization.
  • Use weight-matrix-only quantization to limit compression to the most memory-intensive components (i.e., linear layers).
  • Implement partial parameter quantization (PPQ) by quantizing only 90% of parameters with a low bitwidth (e.g., 11-bit), while keeping 10% in higher precision.
  • Employ floating-point quantization with adjustable exponent and mantissa bit allocations (e.g., S1E3M7, S1E5M7) to balance compression efficiency and error control.
Figure 1: The illustration of the framework of the proposed online model compression. The cubes with dashed borderlines are transient variables.
Figure 1: The illustration of the framework of the proposed online model compression. The cubes with dashed borderlines are transient variables.

Experimental results

Research questions

  • RQ1Can online compression of model parameters during federated training significantly reduce on-device memory usage without degrading model accuracy?
  • RQ2How does per-variable transformation affect the stability and convergence of quantized federated training?
  • RQ3What is the trade-off between bitwidth reduction and model performance when quantizing only weight matrices or a subset of parameters?
  • RQ4Can partial parameter quantization with lower bitwidths outperform full-parameter quantization with higher bitwidths in terms of both accuracy and efficiency?
  • RQ5To what extent can OMC reduce communication costs in federated learning while maintaining training speed comparable to full-precision training?

Key findings

  • OMC reduces memory usage and communication cost of model parameters by up to 59% compared to full-precision training.
  • With per-variable transformation, OMC achieves stable training convergence on Non-Streaming Conformer models, avoiding the accuracy degradation seen without it.
  • Partial parameter quantization with 11-bit format (S1E3M7) achieves lower WER than full-parameter quantization with 13-bit formats (e.g., S1E5M7, S1E4M8).
  • The 11-bit partial quantization setup converges faster and reaches lower word error rates (WER) than any 13-bit full-quantization configuration tested.
  • OMC maintains training speed comparable to full-precision training despite frequent on-the-fly compression and decompression operations.
  • OMC enables training of large ASR models (e.g., Non-Streaming Conformer) on edge devices by effectively managing memory and communication overhead.
Figure 2: The illustration of per-variable transformation. The cubes with dashed borderlines are transient variables.
Figure 2: The illustration of per-variable transformation. The cubes with dashed borderlines are transient variables.

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.