Differentiable Model Compression via Pseudo Quantization Noise

By Alexandre D'efossez, Yossi Adi, Gabriel Synnaeve. 2021

64 citations recorded by the source corpus.

We propose DiffQ a differentiable method for model compression for quantizing model parameters without gradient approximations (e.g., Straight Through Estimator). We suggest adding independent pseudo quantization noise to model parameters during training to approximate the effect of a quantization operator. DiffQ is differentiable both with respect to the unquantized weights and the number of bits used. Given a single hyper-parameter balancing between the quantized model size and accuracy, DiffQ optimizes the number of bits used per individual weight or groups of weights, in end-to-end training. We experimentally verify that our method is competitive with STE based quantization techniques on several benchmarks and architectures for image classification, language modeling, and audio source separation. For instance, on the ImageNet dataset, DiffQ compresses a 12 layers transformer-based model by more than a factor of 8, (lower than 4 bits precision per weight on average), with a loss of 0.3% in model accuracy. Code is available at github.com/facebookresearch/diffq.

Subfields: Artificial Intelligence, Efficiency & Compression, Optimization & Training, Signal Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Armand Joulin
  2. Herv'e J'egou
  3. Edouard Grave
  4. Piotr Bojanowski
  5. Matthieu Cord
  6. Gabriel Synnaeve
  7. Luke S. Zettlemoyer
  8. Jianfeng Gao

In Efficiency & Compression

  1. Armand Joulin
  2. Gabriel Synnaeve
  3. Edouard Grave
  4. Herv'e J'egou
  5. Hugo Touvron
  6. Matthieu Cord
  7. Piotr Bojanowski
  8. Alaaeldin El-Nouby

In Optimization & Training

  1. Matthieu Cord
  2. Herv'e J'egou
  3. Hugo Touvron
  4. Alaaeldin El-Nouby
  5. Gautier Izacard
  6. Jakob Verbeek
  7. Mathilde Caron
  8. Sein Park

In Signal Processing

  1. Gabriel Synnaeve
  2. Gautier Izacard
  3. Herv'e J'egou
  4. Jakob Verbeek
  5. Mathilde Caron
  6. Hugo Touvron
  7. Eunhyeok Park
  8. Armand Joulin

Citations in the corpus