Skip to main content
QUICK REVIEW

[Paper Review] Towards Learning of Filter-Level Heterogeneous Compression of Convolutional Neural Networks

Yochai Zur, Chaim Baskin|arXiv (Cornell University)|Apr 22, 2019
Anomaly Detection Techniques and ApplicationsComputer Science42 references5 citations
TL;DR

This paper proposes a differentiable neural architecture search (NAS) framework for filter-level heterogeneous compression of convolutional neural networks, jointly optimizing quantization bitwidth and filter pruning across layers. By modeling per-filter compression operations as learnable probabilities, the method enables end-to-end training under computational complexity constraints, achieving improved accuracy under BOPs (Bit Operations) budgets, though variance in heterogeneous quantization limits practical gains.

ABSTRACT

Recently, deep learning has become a de facto standard in machine learning with convolutional neural networks (CNNs) demonstrating spectacular success on a wide variety of tasks. However, CNNs are typically very demanding computationally at inference time. One of the ways to alleviate this burden on certain hardware platforms is quantization relying on the use of low-precision arithmetic representation for the weights and the activations. Another popular method is the pruning of the number of filters in each layer. While mainstream deep learning methods train the neural networks weights while keeping the network architecture fixed, the emerging neural architecture search (NAS) techniques make the latter also amenable to training. In this paper, we formulate optimal arithmetic bit length allocation and neural network pruning as a NAS problem, searching for the configurations satisfying a computational complexity budget while maximizing the accuracy. We use a differentiable search method based on the continuous relaxation of the search space proposed by Liu et al. (arXiv:1806.09055). We show, by grid search, that heterogeneous quantized networks suffer from a high variance which renders the benefit of the search questionable. For pruning, improvement over homogeneous cases is possible, but it is still challenging to find those configurations with the proposed method. The code is publicly available at https://github.com/yochaiz/Slimmable and https://github.com/yochaiz/darts-UNIQ

Motivation & Objective

  • To address the high computational cost of deep CNNs in low-power systems.
  • To explore heterogeneous compression at the filter level, combining quantization and pruning for better efficiency.
  • To formulate joint bitwidth and filter count optimization as a differentiable NAS problem.
  • To evaluate the effectiveness of heterogeneous configurations compared to homogeneous baselines.

Proposed method

  • Models filter-level compression operations (quantization and pruning) as learnable probabilities using continuous relaxation.
  • Uses a differentiable search method based on Liu et al. (2019a), where operation probabilities are parameterized by α and soft-argmaxed via a Gumbel-Softmax trick.
  • Defines network configuration as a pseudo-matrix a, with layer-wise assignment of operations to filters.
  • Derives gradients of the expected loss J(α; ω) w.r.t. α using the reparameterization trick and expectation over configurations.
  • Employs BOPs (Bit Operations) as a computational complexity metric, accounting for bitwidths of weights, activations, and accumulator widths.
  • Introduces a layer-specific BOPs computation that models filter-wise bitwidths and activation/weight precision effects on MAC operations.

Experimental results

Research questions

  • RQ1Can differentiable NAS effectively learn heterogeneous filter-level compression configurations for CNNs?
  • RQ2How does heterogeneous quantization (varying bitwidth per filter) compare to homogeneous quantization in terms of accuracy and variance?
  • RQ3Does joint optimization of quantization and pruning yield better accuracy under a BOPs budget than homogeneous compression?
  • RQ4What is the impact of filter-wise bitwidth allocation on computational complexity and model performance?

Key findings

  • Heterogeneous quantization leads to high variance in performance, making the search process unreliable and reducing the benefit of optimization.
  • For pruning, the method achieves improvements over homogeneous configurations, though convergence to optimal configurations remains challenging.
  • The BOPs metric accurately captures computational complexity when using custom-precision data types, especially on FPGAs or ASICs.
  • The proposed differentiable NAS framework enables end-to-end training with gradient-based search over filter-level compression operations.
  • The method demonstrates feasibility of joint optimization of bitwidth and filter count, though practical gains are limited by high variance in quantization settings.
  • Code is publicly released at https://github.com/yochaiz/Slimmable and https://github.com/yachaiz/darts-UNIQ for reproducibility.

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.