Skip to main content
QUICK REVIEW

[Paper Review] Additive Noise Annealing and Approximation Properties of Quantized Neural Networks

Matteo Spallanzani, Lukas Cavigelli|arXiv (Cornell University)|May 24, 2019
Neural Networks and ApplicationsComputer Science33 references15 citations
TL;DR

This paper proposes Additive Noise Annealing (ANA), a novel gradient-based training method for quantized neural networks (QNNs) that leverages noise-induced regularization to improve training of non-differentiable quantized layers. By applying expectation over additive noise to quantized parameters, ANA enables backpropagation through discrete activations, achieving state-of-the-art performance on CIFAR-10 (90.74% top-1 accuracy) and ImageNet (45.80% on AlexNet, 64.79% on MobileNetV2) with ternary weights.

ABSTRACT

We present a theoretical and experimental investigation of the quantization problem for artificial neural networks. We provide a mathematical definition of quantized neural networks and analyze their approximation capabilities, showing in particular that any Lipschitz-continuous map defined on a hypercube can be uniformly approximated by a quantized neural network. We then focus on the regularization effect of additive noise on the arguments of multi-step functions inherent to the quantization of continuous variables. In particular, when the expectation operator is applied to a non-differentiable multi-step random function, and if the underlying probability density is differentiable (in either classical or weak sense), then a differentiable function is retrieved, with explicit bounds on its Lipschitz constant. Based on these results, we propose a novel gradient-based training algorithm for quantized neural networks that generalizes the straight-through estimator, acting on noise applied to the network's parameters. We evaluate our algorithm on the CIFAR-10 and ImageNet image classification benchmarks, showing state-of-the-art performance on AlexNet and MobileNetV2 for ternary networks.

Motivation & Objective

  • To formally define quantized neural networks (QNNs) and establish their universal approximation capability for Lipschitz-continuous functions on hypercubes.
  • To theoretically analyze the regularization effect of additive noise on non-differentiable multi-step functions in QNNs, showing that noise application yields differentiable surrogate functions.
  • To develop a new gradient-based training algorithm, Additive Noise Annealing (ANA), that generalizes the straight-through estimator by operating on noise injected into network parameters.
  • To empirically validate ANA on standard benchmarks, demonstrating superior performance on ternary networks compared to existing methods like STE and XNOR-Net.
  • To enable efficient, hardware-friendly inference by quantizing weights and activations to ternary values while preserving high model accuracy.

Proposed method

  • Formalizes QNNs as deep neural networks with weights and/or activations constrained to a finite quantization set $Q$, such as $\{-1, 0, +1\}$, and proves their density in the space of continuous functions on a hypercube.
  • Theoretically demonstrates that applying the expectation operator to a non-differentiable multi-step function with a differentiable probability density yields a differentiable function, with explicit bounds on the Lipschitz constant.
  • Proposes Additive Noise Annealing (ANA), a training algorithm that injects uniform noise into network parameters during the forward pass and uses the expected gradient in backpropagation, enabling end-to-end training of QNNs.
  • Employs a linearly decaying noise schedule in the forward pass and constant non-zero noise in the backward pass to gradually anneal the noise and stabilize training.
  • Applies ANA to both full-network quantization (e.g., VGG-like on CIFAR-10) and partial quantization (residual branches in MobileNetV2), reducing computational cost by ~70% of MACs.
  • Implements ANA efficiently on deep learning frameworks using uniform noise, enabling practical deployment and reproducibility via open-source code.

Experimental results

Research questions

  • RQ1Can quantized neural networks with finite-valued weights and activations approximate any Lipschitz-continuous function on a hypercube?
  • RQ2What is the mathematical mechanism by which additive noise regularizes non-differentiable quantization functions, and can it yield differentiable surrogate gradients?
  • RQ3How can the expectation of a noisy, piecewise-constant function be used to construct a differentiable approximation suitable for backpropagation in QNNs?
  • RQ4Can a noise-based regularization method outperform existing gradient estimation techniques like the straight-through estimator in training ternary neural networks?
  • RQ5What is the performance of ANA on standard image classification benchmarks when applied to both full and partial quantization of modern architectures like AlexNet and MobileNetV2?

Key findings

  • QNNs with weights and activations in a finite set $Q$ are dense in the space of continuous functions on a hypercube, proving their universal approximation capability.
  • Applying the expectation operator to a non-differentiable multi-step function with a differentiable probability density results in a differentiable function, with a Lipschitz constant bounded by the noise density's variation.
  • ANA achieves a top-1 validation accuracy of 90.74% on CIFAR-10 using a VGG-like architecture with ternary weights, outperforming prior methods like STE (89.85%) and GXNOR-Net (92.50%) in direct comparison.
  • On ImageNet, ANA achieves 45.80% top-1 accuracy with ternary AlexNet, representing a 31% reduction in the accuracy gap to the full-precision baseline (54.71%) compared to the standard STE (41.80%).
  • For MobileNetV2, quantizing only the residual branches (70% of MACs) with ANA results in a 6.46% accuracy drop (from 71.25% to 64.79%), demonstrating high efficiency and scalability.
  • ANA outperforms XNOR-Net (44.20% on ImageNet) and matches or exceeds other state-of-the-art ternary training methods, with better generalization and scalability to deeper 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.