Skip to main content
QUICK REVIEW

[Paper Review] Computationally Efficient Measures of Internal Neuron Importance

Avanti Shrikumar, Jocelin Su|arXiv (Cornell University)|Jul 26, 2018
Explainable Artificial Intelligence (XAI)Computer Science5 references6 citations
TL;DR

This paper introduces Neuron Integrated Gradients, a computationally efficient and theoretically sound method for attributing importance to internal neurons in deep neural networks. It proves mathematically that Total Conductance is equivalent to Path Integrated Gradients on hidden layers, enabling scalable implementation using standard TensorFlow operations, and demonstrates through experiments that it outperforms DeepLIFT in theoretical robustness while maintaining competitive empirical performance.

ABSTRACT

The challenge of assigning importance to individual neurons in a network is of interest when interpreting deep learning models. In recent work, Dhamdhere et al. proposed Total Conductance, a "natural refinement of Integrated Gradients" for attributing importance to internal neurons. Unfortunately, the authors found that calculating conductance in tensorflow required the addition of several custom gradient operators and did not scale well. In this work, we show that the formula for Total Conductance is mathematically equivalent to Path Integrated Gradients computed on a hidden layer in the network. We provide a scalable implementation of Total Conductance using standard tensorflow gradient operators that we call Neuron Integrated Gradients. We compare Neuron Integrated Gradients to DeepLIFT, a pre-existing computationally efficient approach that is applicable to calculating internal neuron importance. We find that DeepLIFT produces strong empirical results and is faster to compute, but because it lacks the theoretical properties of Neuron Integrated Gradients, it may not always be preferred in practice. Colab notebook reproducing results: http://bit.ly/neuronintegratedgradients

Motivation & Objective

  • To address the lack of scalable and theoretically sound methods for attributing importance to internal neurons in deep networks.
  • To resolve the computational inefficiency and implementation complexity of Total Conductance as originally implemented in TensorFlow.
  • To provide a practical, efficient, and theoretically justified alternative to existing methods like DeepLIFT for internal neuron attribution.
  • To empirically compare Neuron Integrated Gradients with DeepLIFT and gradient-based baselines in terms of accuracy and runtime.

Proposed method

  • Prove mathematical equivalence between Total Conductance and Path Integrated Gradients on hidden layer neurons, showing that the former is a special case of the latter.
  • Reformulate Total Conductance using standard TensorFlow gradient operators to enable efficient, scalable computation without custom gradient layers.
  • Implement the method as Neuron Integrated Gradients, which computes attribution scores by integrating gradients along a straight-line path from a reference input to the actual input.
  • Use a baseline of all-zero (black) images for reference inputs to compute differences in neuron activations.
  • Apply normalization by subtracting mean contribution across classes to account for interdependence in softmax outputs.
  • Evaluate attribution quality via ablation: measure change in top-softmax class output after setting high-contribution neurons to reference values.

Experimental results

Research questions

  • RQ1Is Total Conductance mathematically equivalent to a known gradient-based attribution method, and if so, which one?
  • RQ2Can Total Conductance be implemented efficiently using standard deep learning frameworks like TensorFlow without custom operators?
  • RQ3How does Neuron Integrated Gradients compare to DeepLIFT in terms of attribution accuracy and computational efficiency?
  • RQ4Does the proposed method preserve theoretical properties such as implementation invariance, and how does this affect reliability?

Key findings

  • Neuron Integrated Gradients achieved a mean absolute error (MAE) of 255.53603 at n=10 and 255.7105 at n=100, indicating high consistency in predicting ablation effects.
  • DeepLIFT with default settings achieved a significantly lower MAE of 145.73521 (p < e-19), demonstrating superior empirical performance in predicting ablation outcomes.
  • DeepLIFT ran in 15.29601 seconds, while Neuron Integrated Gradients required 564.12058 seconds at n=10, showing a substantial runtime advantage for DeepLIFT.
  • The gradient × difference-from-reference baseline performed poorly, with MAE values near 255, indicating it is unreliable due to saturation effects.
  • Neuron Integrated Gradients inherits the theoretical property of implementation invariance, which DeepLIFT lacks, making it more reliable in theory-driven applications.
  • The Colab notebook reproducing results is publicly available at http://bit.ly/neuronintegratedgradients, enabling full 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.