Skip to main content
QUICK REVIEW

[Paper Review] Utilizing Explainable AI for Quantization and Pruning of Deep Neural Networks

Muhammad Sabih, Frank Hannig|arXiv (Cornell University)|Aug 20, 2020
Adversarial Robustness in Machine LearningComputer Science16 citations
TL;DR

This paper proposes a unified framework for deep neural network (DNN) compression using Explainable AI, specifically DeepLIFT, to guide structured and unstructured pruning, non-uniform quantization via weighted k-means clustering, and mixed-precision integer quantization. By leveraging DeepLIFT to assign importance scores to neurons and weights, the method achieves state-of-the-art or competitive accuracy with reduced model size and computational cost across CIFAR-10, CIFAR-100, and ImageNet benchmarks, outperforming prior methods especially without fine-tuning.

ABSTRACT

For many applications, utilizing DNNs (Deep Neural Networks) requires their implementation on a target architecture in an optimized manner concerning energy consumption, memory requirement, throughput, etc. DNN compression is used to reduce the memory footprint and complexity of a DNN before its deployment on hardware. Recent efforts to understand and explain AI (Artificial Intelligence) methods have led to a new research area, termed as explainable AI. Explainable AI methods allow us to understand better the inner working of DNNs, such as the importance of different neurons and features. The concepts from explainable AI provide an opportunity to improve DNN compression methods such as quantization and pruning in several ways that have not been sufficiently explored so far. In this paper, we utilize explainable AI methods: mainly DeepLIFT method. We use these methods for (1) pruning of DNNs; this includes structured and unstructured pruning of \\ac{CNN} filters pruning as well as pruning weights of fully connected layers, (2) non-uniform quantization of DNN weights using clustering algorithm; this is also referred to as Weight Sharing, and (3) integer-based mixed-precision quantization; this is where each layer of a DNN may use a different number of integer bits. We use typical image classification datasets with common deep learning image classification models for evaluation. In all these three cases, we demonstrate significant improvements as well as new insights and opportunities from the use of explainable AI in DNN compression.

Motivation & Objective

  • To address the lack of standardized, explainable, and unified approaches for DNN compression across diverse hardware deployment scenarios.
  • To improve pruning and quantization techniques by leveraging explainable AI to identify critical neurons and weights based on their contribution to model predictions.
  • To develop a unified framework that optimizes for both MAC operations and number of parameters (NPs) in DNN compression.
  • To enable non-uniform and mixed-precision quantization with better clustering efficiency using DeepLIFT-based weighting.
  • To demonstrate competitive performance without fine-tuning, reducing reliance on retraining.

Proposed method

  • Using DeepLIFT to compute contribution scores for each neuron and weight, reflecting their importance in model output prediction.
  • Applying iterative pruning based on DeepLIFT scores to remove low-importance neurons, filters, and weights in both structured and unstructured settings.
  • Introducing DeepLIFT Weighted MSE (DWMSE) criteria to guide k-means clustering for non-uniform quantization, improving clustering efficiency by weighting centroids based on layer sensitivity and parameter count.
  • Proposing a coarse-to-fine search strategy for mixed-precision integer quantization, where layer bit-widths are assigned based on DeepLIFT sensitivity scores to minimize accuracy drop.
  • Calibrating batch normalization after quantization to preserve accuracy, without additional fine-tuning.
  • Using a unified pipeline that supports optimization for MACs, NPs, or both, via sensitivity-driven pruning and quantization.

Experimental results

Research questions

  • RQ1Can DeepLIFT-based importance scores improve the performance of structured and unstructured pruning in DNNs?
  • RQ2Can DeepLIFT-guided weighted clustering outperform standard MSE or Hessian-based weighting in non-uniform quantization?
  • RQ3Can a sensitivity-driven, coarse-to-fine search for bit-width assignment achieve better accuracy in mixed-precision integer quantization than existing methods?
  • RQ4Does the proposed method maintain high accuracy without fine-tuning, especially in low-precision regimes?
  • RQ5Can a single explainable AI-driven framework unify multiple DNN compression techniques (pruning, quantization) with consistent performance?

Key findings

  • The proposed DeepLIFT Weighted MSE (DWMSE) approach achieved better quantization accuracy than Hessian-weighted MSE and standard MSE, particularly without fine-tuning, on ResNet20 with CIFAR-10.
  • For mixed-precision integer quantization, the method achieved 91.2% top-1 accuracy on CIFAR-10 with 79 cumulative bits for weights and 79 for activations, outperforming a prior Hessian-based method (92.22% accuracy with 81 and 88 CB respectively).
  • The framework enabled effective pruning of both filters and fully connected layer weights using DeepLIFT-based sensitivity scores, improving compression efficiency.
  • The method demonstrated competitive performance across multiple datasets (CIFAR-10, CIFAR-100, ImageNet) and models, showing broad applicability.
  • Significant improvements were observed in non-uniform quantization and mixed-precision settings, especially when fine-tuning was not applied.
  • The unified approach optimized for both MAC operations and number of parameters, offering flexibility for diverse hardware deployment constraints.

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.