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.
| Quantity | Definition | Role in the explanation |
|---|---|---|
| Reference input | Baseline input chosen by the analyst | Defines what absence of signal means |
| Delta | Activation minus reference activation | Measures how a neuron changed |
| Multiplier | Output delta divided by input delta | Replaces the local gradient |
| Contribution score | Input delta times its multiplier | Final attribution per feature |
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.
| Rule | Applies to | How it assigns credit | Main limitation |
|---|---|---|---|
| Linear rule | Dense and convolutional layers | Uses connection weights times input deltas | None beyond linearity |
| Rescale rule | Nonlinear activations | Output delta divided by input delta | Can miss canceling contributions |
| RevealCancel rule | Nonlinear activations | Treats positive and negative deltas separately | More computation and complexity |
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 compared with related attribution methods
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.
| Method | Uses a baseline | Cost | Key property |
|---|---|---|---|
| DeepLIFT | Yes, one reference | One backward pass | Summation-to-delta |
| Gradient × input | Implicit zero | One backward pass | Fails under saturation |
| Integrated Gradients | Yes, with a path | Tens to hundreds of passes | Completeness and implementation invariance |
| DeepSHAP | Yes, a reference distribution | One pass per reference | Approximates Shapley values |
| Layer-wise relevance propagation | No explicit baseline | One backward pass | Conservation of relevance |
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.
| Mistake | Consequence | Better practice |
|---|---|---|
| Using a default zero reference blindly | Attributions ignore meaningful dark regions | Choose and justify a domain baseline |
| Treating scores as causal effects | Overstated claims about the model | Validate with occlusion or ablation tests |
| Ignoring unsupported layers | Silent fallback to gradients | Check library support for each layer type |
| Comparing scores across models | Misleading conclusions | Compare rankings within one model only |
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.