Skip to main content
QUICK REVIEW

[Paper Review] Loss-aware Weight Quantization of Deep Networks

Lu Hou, James T. Kwok|arXiv (Cornell University)|Feb 23, 2018
Sparse and Compressive Sensing TechniquesEngineering29 references57 citations
TL;DR

The paper introduces Loss-Aware Ternarization (LAT) and extensions to multi-bit quantization that directly optimize the loss during weight quantization, improving accuracy for quantized networks compared with state-of-the-art methods. It uses a proximal Newton approach with diagonal Hessian preconditioning and supports one or two scaling parameters across layers and various bit-widths.

ABSTRACT

The huge size of deep networks hinders their use in small computing devices. In this paper, we consider compressing the network by weight quantization. We extend a recently proposed loss-aware weight binarization scheme to ternarization, with possibly different scaling parameters for the positive and negative weights, and m-bit (where m > 2) quantization. Experiments on feedforward and recurrent neural networks show that the proposed scheme outperforms state-of-the-art weight quantization algorithms, and is as accurate (or even more accurate) than the full-precision network.

Motivation & Objective

  • Motivate reducing deep network size for deployment on resource-constrained devices.
  • Develop a loss-aware quantization framework that directly minimizes the loss when quantizing weights.
  • Extend loss-aware quantization to ternary with per-layer scaling and to m-bit quantization.
  • Demonstrate superior accuracy and convergence compared with existing quantization methods on feedforward and recurrent networks.

Proposed method

  • Formulate weight ternarization as a constrained optimization problem targeting the loss with hat{w} = alpha b, where alpha > 0 and b in {-1,0,1}^n.
  • Solve the subproblem via proximal Newton with a diagonal Hessian D to obtain w^t and hat{w}^t by a two-step process: (i) preconditioned gradient step to compute w^t, and (ii) a projection/quantization step to hat{w}^t.
  • Derive exact and approximate solvers for alpha^t in the ternarization, using a closed-form (Algorithm 1) and a fast alternating procedure (Algorithm 2).
  • Extend the framework to: (a) two scaling parameters for positive/negative weights, (b) m-bit quantization via a projection onto a quantized set Q, and (c) applicability to recurrent networks.

Experimental results

Research questions

  • RQ1Can loss-aware optimization improve the quality of weight quantization beyond heuristic thresholds?
  • RQ2Does LAT with diagonal Hessian preconditioning yield better accuracy and convergence than existing binarization/ternarization methods across feedforward and recurrent models?
  • RQ3How do multi-bit and two-scaling-parameter extensions compare to single-scale, ternary methods in terms of accuracy and training dynamics?
  • RQ4Is the proposed method practical for training quantized networks with modest additional computational cost?

Key findings

  • LAT and its variants outperform several state-of-the-art weight quantization methods on feedforward networks across MNIST, CIFAR-10, CIFAR-100, and SVHN datasets.
  • On CIFAR-10, LATa achieves similar performance to full-precision networks, and LATe/LAT2 variants show strong results across datasets.
  • In LSTM language modeling tasks (War and Peace, Linux Kernel, Penn Treebank), LATe and LATa outperform competing ternarization schemes and often exceed full-precision baselines.
  • Logarithmic 3-bit quantization (LAQ3(log)) generally yields the best results among 3-bit quantizations, while two-scaling variants (LAT2e, LAT2a) improve over one-scaling TTQ in several cases.
  • Quantized networks frequently rival or surpass full-precision models, suggesting quantization acts as a beneficial regularizer and can retain or improve performance.

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.