Skip to main content
QUICK REVIEW

[Paper Review] Relaxed Quantization for Discretized Neural Networks

Christos Louizos, Matthias Reisser|UvA-DARE (University of Amsterdam)|Oct 3, 2018
Advanced Neural Network ApplicationsComputer Science36 references16 citations
TL;DR

This paper proposes Relaxed Quantization (RQ), a differentiable quantization method that enables end-to-end training of low-bit neural networks by relaxing discrete quantization into continuous surrogate distributions. By modeling weights and activations as categorical distributions over a learnable quantization grid and using concrete relaxation, RQ allows gradient-based optimization, achieving state-of-the-art accuracy-efficiency trade-offs on ImageNet, CIFAR-10, and MNIST with minimal accuracy drop after quantization.

ABSTRACT

Neural network quantization has become an important research area due to its great impact on deployment of large models on resource constrained devices. In order to train networks that can be effectively discretized without loss of performance, we introduce a differentiable quantization procedure. Differentiability can be achieved by transforming continuous distributions over the weights and activations of the network to categorical distributions over the quantization grid. These are subsequently relaxed to continuous surrogates that can allow for efficient gradient-based optimization. We further show that stochastic rounding can be seen as a special case of the proposed approach and that under this formulation the quantization grid itself can also be optimized with gradient descent. We experimentally validate the performance of our method on MNIST, CIFAR 10 and Imagenet classification.

Motivation & Objective

  • To address the non-differentiability of quantization in neural network training, which hinders gradient-based optimization.
  • To enable joint optimization of quantization grid parameters (scale and offset) alongside network weights using gradient descent.
  • To provide a unified framework where stochastic rounding and standard quantization can be seen as special cases.
  • To improve the accuracy of quantized models by training with relaxed, differentiable quantization that simulates real quantization effects.
  • To enable efficient deployment of low-precision models on resource-constrained devices through end-to-end trainable quantization.

Proposed method

  • The method transforms continuous distributions over weights and activations into categorical distributions over a discrete quantization grid.
  • It introduces a concrete relaxation of the categorical distribution to create a continuous, differentiable surrogate for backpropagation.
  • The quantization grid is parameterized by learnable scale and offset, allowing gradient-based optimization of the grid itself.
  • The approach generalizes stochastic rounding as a special case when the relaxation temperature is set to 1.
  • The framework supports end-to-end training by enabling gradients to flow through the quantization operation via the relaxed surrogate.
  • Batch normalization is emulated during training to reflect real deployment conditions on low-precision hardware.

Experimental results

Research questions

  • RQ1Can we make the quantization grid itself learnable through gradient descent, rather than fixing it a priori?
  • RQ2How can we make the quantization operation differentiable to allow for end-to-end training of low-bit networks?
  • RQ3Is stochastic rounding a special case of a more general differentiable quantization framework?
  • RQ4Can we achieve better accuracy-efficiency trade-offs in quantized models by training with relaxed quantization?
  • RQ5How does the proposed method compare to existing quantization techniques in terms of accuracy and computational efficiency?

Key findings

  • RQ achieves state-of-the-art accuracy-efficiency trade-offs on ResNet-18 and MobileNet, forming the Pareto frontier in the accuracy vs. BOPs (bit operations per second) trade-off.
  • On ImageNet, RQ outperforms baseline methods such as SR+DR, BWN, XNOR-Net, and even simple rounding, especially in low-bit regimes (4–5 bits).
  • For 8-bit quantization, RQ matches or exceeds the performance of Jacob et al. (2017), while also improving upon the pre-trained model, unlike Jacob et al. which slightly degrades.
  • Stochastic rounding is shown to be a special case of RQ when the relaxation temperature is set to 1, unifying it under a single differentiable framework.
  • Simple rounding without RQ leads to near-random performance on MobileNet across all bit configurations, highlighting the necessity of differentiable training.
  • The method enables joint optimization of the quantization grid and network weights, resulting in more robust and accurate quantized models.

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.