Not Just a Black Box: Learning Important Features Through Propagating Activation Differences

Avanti Shrikumar, Peyton Greenside, Anna Shcherbina, Anshul KundajearXiv 2016

Abstract

DeepLIFT (Learning Important FeaTures) is a novel framework for decomposing the output of a neural network into the specific contributions of its input features. By comparing a model's actual activations to a "reference" baseline, DeepLIFT overcomes the "vanishing gradient" problem that causes traditional interpretability methods to miss important features in saturated or inactive neurons.

The Problem: The Gradient "Black Box"

Deep learning models are often criticized as "black boxes"—while their performance is high, the underlying logic driving their predictions remains opaque. To build trust and discover new scientific insights, we need to understand which input features (like specific pixels in an image or motifs in a DNA sequence) are most influential.

Existing methods, such as saliency maps, typically rely on gradients. However, gradients only measure local sensitivity. If a neuron is "saturated" (e.g., a Sigmoid function at its maximum) or "inactive" (e.g., a ReLU at zero), the local gradient is zero. Even if an input feature is the primary reason the neuron reached that state, a gradient-based method will report that the feature has zero importance. This leads to misleading interpretations and missed discoveries.

The DeepLIFT Method

DeepLIFT moves away from local gradients and instead focuses on the difference from a reference state. The method follows a structured approach to assign importance:

  1. Reference Activations: For every neuron, the user defines a "reference input" (a neutral baseline, like an all-black image). The "reference activation" is what the neuron produces when given this baseline.
  2. The $\Delta$ (Delta) Concept: DeepLIFT calculates the difference ($\Delta$) between the actual activation and the reference activation.
  3. Contribution Scores ($C_{xy}$): The core goal is to assign a portion of the output's $\Delta$ to each input. DeepLIFT ensures that the sum of all input contributions equals the total change in the output (the "Summation to $\Delta$" property).
  4. Multipliers ($m_{xy}$): Similar to the chain rule in backpropagation, DeepLIFT defines "multipliers" that allow the contribution scores to be efficiently calculated by passing them backward through the network.
DeepLIFT calculates contributions by comparing actual activations to reference values, allowing it to capture importance even when local gradients are zero.

Experimental Evaluation

The authors evaluated DeepLIFT on two distinct domains:

  • Genomics: Using a synthetic dataset of DNA sequences, the authors tested if the model could identify ground-truth biological motifs ('GATA' and 'CAGATG'). Gradient-based methods often failed to identify the 'GATA' motif, whereas DeepLIFT successfully identified both.
  • Tiny ImageNet: Using a VGG16 architecture on 64x64 images, the authors compared the qualitative clarity of saliency maps generated by various methods.

Key Results and Insights

  • Robustness to Saturation: By measuring the "jump" from a baseline rather than the local slope, DeepLIFT can "see" importance even when the gradient is flat. This makes it much more robust for networks using ReLUs, Sigmoids, or Tanh functions.
  • Qualitative Clarity: When applied to Tiny ImageNet, DeepLIFT produced saliency maps that were significantly cleaner and more focused on the actual object of interest compared to standard gradient methods.
Comparison of saliency maps on Tiny ImageNet: DeepLIFT produces cleaner, more focused interpretations than absolute gradients or gradient*input methods.
  • Computational Efficiency: Because DeepLIFT uses a backpropagation-like pass, it is computationally efficient and can be implemented to run on GPUs, making it practical for large-scale models.
  • Handling Redundancy: The authors introduced a weight-normalization technique for Softmax layers to ensure that if a feature contributes equally to all classes, its importance score correctly nets out to zero.

Limitations and Future Work

The effectiveness of DeepLIFT depends on choosing a "meaningful" reference input. While an all-zeros input works for many tasks, the reference should be appropriate for the specific domain, which may require expertise. Additionally, while DeepLIFT explains individual predictions (local interpretability), it doesn't directly provide a global summary of what the entire model has learned across a whole dataset. The authors also note that this version of the method has since been updated with refined mathematical rules for non-linearities.

Summary updated

BibTeX
@misc{shrikumar2016not,
  author = {Avanti Shrikumar and Peyton Greenside and Anna Shcherbina and Anshul Kundaje},
  title = {{Not Just a Black Box: Learning Important Features Through Propagating Activation Differences}},
  year = {2016},
  eprint = {1605.01713},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.01713},
}
Figure