Skip to main content
QUICK REVIEW

[Paper Review] Compressibility Loss for Neural Network Weights

Çağlar Aytekin, Francesco Cricri|arXiv (Cornell University)|May 3, 2019
Neural Networks and ApplicationsComputer Science7 references7 citations
TL;DR

This paper introduces a compressibility loss based on the ratio of L1 to L2 norms to train neural networks with highly compressible weights. By minimizing this loss, the method induces both sparsity and low-entropy non-zero weights, achieving state-of-the-art compression ratios—up to 102.76 at 98% sparsity—while maintaining competitive accuracy.

ABSTRACT

In this paper we apply a compressibility loss that enables learning highly compressible neural network weights. The loss was previously proposed as a measure of negated sparsity of a signal, yet in this paper we show that minimizing this loss also enforces the non-zero parts of the signal to have very low entropy, thus making the entire signal more compressible. For an optimization problem where the goal is to minimize the compressibility loss (the objective), we prove that at any critical point of the objective, the weight vector is a ternary signal and the corresponding value of the objective is the squared root of the number of non-zero elements in the signal, thus directly related to sparsity. In the experiments, we train neural networks with the compressibility loss and we show that the proposed method achieves weight sparsity and compression ratios comparable with the state-of-the-art.

Motivation & Objective

  • To develop a training objective that enhances the compressibility of neural network weights beyond mere sparsity.
  • To theoretically and empirically demonstrate that minimizing the compressibility loss simultaneously promotes sparsity and low-entropy non-zero weight distributions.
  • To achieve compression ratios comparable or superior to state-of-the-art methods while preserving model accuracy.
  • To explore the impact of curriculum learning (gradually increasing the loss weight) on model performance and compressibility.
  • To validate the method against existing approaches in terms of sparsity, quantization, and overall compression efficiency.

Proposed method

  • The compressibility loss is defined as $ L(\mathbf{x}) = \frac{||\mathbf{x}||_1}{||\mathbf{x}||_2} $, originally proposed as a measure of negated sparsity.
  • Theoretical analysis proves that at any critical point of this loss, the weight vector becomes ternary, with values in $\{-c, 0, c\}$, where $ c = \frac{||\mathbf{x}||_2^2}{||\mathbf{x}||_1} $.
  • The loss function encourages both sparsity and low entropy in non-zero weights, enhancing overall compressibility.
  • Post-training quantization is applied to the non-zero weights using k-means clustering (256 clusters for convolutions, 32 for fully-connected layers).
  • A mask compression strategy is employed, which stores only the non-zero weight locations and their values, improving compression efficiency.
  • A curriculum learning approach is used, gradually increasing the loss weight $ \lambda $ from 0 to 0.007 per epoch to stabilize training and improve performance at high sparsity levels.

Experimental results

Research questions

  • RQ1Can minimizing the compressibility loss $ \frac{||\mathbf{x}||_1}{||\mathbf{x}||_2} $ lead to both sparse and low-entropy weight distributions?
  • RQ2Does the compressibility loss induce a ternary weight structure at critical points, and what is the theoretical justification?
  • RQ3How does the proposed method compare to state-of-the-art methods in terms of compression ratio and accuracy at high sparsity levels?
  • RQ4Does gradually increasing the loss weight during training improve model robustness and compression performance?
  • RQ5Can the method achieve better compression efficiency than methods focused solely on sparsity or quantization?

Key findings

  • The compressibility loss induces a ternary weight structure at critical points, with non-zero weights taking only two symmetric values around zero.
  • At 98% sparsity, the method achieves a compression ratio of 102.76, significantly outperforming baseline methods at extreme sparsity levels.
  • With curriculum learning (ramp setting), the method maintains accuracy above 85% at 97% sparsity and 76.57% at 98% sparsity, demonstrating robustness.
  • The method outperforms UDNN in accuracy-compression ratio trade-off, achieving higher accuracy at comparable or higher compression ratios.
  • While Smallify and TDrop achieve higher accuracy at moderate sparsity, CNET with ramp training maintains better performance at extreme sparsity, indicating superior compressibility.
  • Mask compression improves compression efficiency, achieving a 15.05 ratio compared to 13.32 with standard compression, validating its use in the pipeline.

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.