DeepLIFT

Also known as: Deep Learning Important FeaTures

On this page 7

DeepLIFT (Deep Learning Important FeaTures) is a feature attribution method for neural networks that assigns each input a contribution score by comparing the network’s activations on an input with its activations on a chosen reference input. In Explainable AI, it belongs to the family of backpropagation-based explanations and answers a precise question: how much did each input feature push the output away from the reference output?

Introduced in 2017 by Avanti Shrikumar, Peyton Greenside and Anshul Kundaje, DeepLIFT was designed to fix weaknesses of plain gradients, which can be zero or misleading where activations saturate. It needs only one backward pass, so it is far faster than sampling-based methods while still satisfying a useful completeness property.

How DeepLIFT propagates differences from a reference

DeepLIFT works with differences from reference rather than infinitesimal gradients. For every neuron, it computes the change in activation, written as delta, between the actual input and the reference. It then distributes the output difference back through the network using multipliers, which play the role that partial derivatives play in ordinary backpropagation.

The defining guarantee is summation-to-delta: the contribution scores of all inputs add up exactly to the difference between the output for the real input and the output for the reference. A chain rule for multipliers lets the method compose these finite-difference ratios layer by layer, so attributions are computed in a single modified backward pass.

QuantityDefinitionRole in the explanation
Reference inputBaseline input chosen by the analystDefines what absence of signal means
DeltaActivation minus reference activationMeasures how a neuron changed
MultiplierOutput delta divided by input deltaReplaces the local gradient
Contribution scoreInput delta times its multiplierFinal attribution per feature
Core quantities in DeepLIFT

Because multipliers use finite differences, a neuron that is saturated at the real input can still receive credit. A sigmoid near its ceiling has a near-zero gradient, yet its activation may differ substantially from the reference, and DeepLIFT records that difference.

The Linear, Rescale and RevealCancel rules

DeepLIFT assigns multipliers with layer-specific rules. Linear layers use their weights directly, while nonlinear activations use one of two rules that trade simplicity against sensitivity to cancellation.

RuleApplies toHow it assigns creditMain limitation
Linear ruleDense and convolutional layersUses connection weights times input deltasNone beyond linearity
Rescale ruleNonlinear activationsOutput delta divided by input deltaCan miss canceling contributions
RevealCancel ruleNonlinear activationsTreats positive and negative deltas separatelyMore computation and complexity
Propagation rules and their behavior

The Rescale rule is the default in most libraries. The RevealCancel rule handles cases where positive and negative inputs cancel inside a neuron, such as a minimum-like function, and gives a more faithful picture of their separate effects. Max-pooling and multiplicative interactions, such as gates in recurrent networks, require additional handling and are a known source of implementation differences.

Choosing the reference input

The reference input is the most consequential choice in DeepLIFT, because every attribution is relative to it. A poor reference produces explanations that are technically correct but answer a question nobody asked.

  • All-zero input is common for images and standardized tabular data, but black pixels may themselves carry meaning.
  • Blurred or mean input keeps low-frequency structure and highlights fine detail.
  • Shuffled sequences that preserve composition are standard in genomics, where DeepLIFT was first applied.
  • Multiple references averaged together reduce dependence on any single baseline choice.

Practitioners should report the reference alongside every explanation and test whether conclusions change under an alternative baseline. Stable rankings across references are a reasonable sign that an attribution reflects the model rather than the analyst’s choice.

Reference choice also shapes how scores should be read. A positive score means the feature moved the output upward relative to the baseline, not that the feature is important in absolute terms. With a mean reference, a perfectly ordinary value can receive a score near zero even if the model relies on it heavily, because it does not differ from the baseline. Analysts who need absolute importance should combine DeepLIFT with global explanation methods such as permutation feature importance.

DeepLIFT sits between pure gradient methods and game-theoretic methods. It shares the reference concept with Integrated Gradients, while DeepSHAP extends it to approximate Shapley values.

MethodUses a baselineCostKey property
DeepLIFTYes, one referenceOne backward passSummation-to-delta
Gradient × inputImplicit zeroOne backward passFails under saturation
Integrated GradientsYes, with a pathTens to hundreds of passesCompleteness and implementation invariance
DeepSHAPYes, a reference distributionOne pass per referenceApproximates Shapley values
Layer-wise relevance propagationNo explicit baselineOne backward passConservation of relevance
DeepLIFT and neighboring methods

An important theoretical point is that DeepLIFT is not implementation invariant: two networks computing the same function with different internal structure can receive different attributions. Integrated Gradients was proposed partly to address this. For networks containing only ReLU and linear layers with a zero reference, the Rescale rule reduces to a form closely related to gradient × input.

Practical use, limitations and common mistakes

DeepLIFT is valued where speed and many explanations matter, such as scoring millions of genomic sequences or auditing image classifiers across a test set. Implementations are available in Captum, in the original deeplift package and as the DeepExplainer component of the SHAP library.

MistakeConsequenceBetter practice
Using a default zero reference blindlyAttributions ignore meaningful dark regionsChoose and justify a domain baseline
Treating scores as causal effectsOverstated claims about the modelValidate with occlusion or ablation tests
Ignoring unsupported layersSilent fallback to gradientsCheck library support for each layer type
Comparing scores across modelsMisleading conclusionsCompare rankings within one model only
Frequent mistakes and how to avoid them

As with other post hoc methods, explanation faithfulness is not guaranteed. Attribution maps can look plausible while reflecting edges or textures rather than the model’s real reasoning, so sanity checks such as model randomization tests remain essential.

The simple explanation

DeepLIFT explains a neural network decision by comparing two situations. One is the real input. The other is a neutral starting point, such as a blank image.

The method asks how the answer changed between the two. It then splits that change among the input features. Each pixel or value gets a share of the credit. The shares always add up to the total change. Think of a team that scored ten points more than last game. DeepLIFT works out how many of those extra points each player earned.

How it is used in practice

A genomics research group trains a convolutional network to predict whether a 1,000-base DNA sequence binds a specific transcription factor. The model reaches high accuracy, but the biologists need to know which bases drive each prediction before designing laboratory experiments.

They apply DeepLIFT with the Rescale rule and ten dinucleotide-shuffled references per sequence, averaging the results. Across 50,000 sequences, the highest scores concentrate on short stretches matching a known binding motif, while a second recurring pattern points to a previously unreported cofactor site. Running all explanations takes minutes on one GPU, and the team selects 20 candidate regions for targeted mutation experiments instead of testing sequences at random.