---
title: "Not Just a Black Box — paper by Shrikumar et al. (2016)"
description: "How DeepLIFT explains neural predictions through reference activations, why gradients can miss important inputs, and what its tests establish."
canonical: "https://research.elamur.ai/free/en/papers/shrikumar-2016-not-just-black-box-learning/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/shrikumar-2016-not-just-black-box-learning/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2016](https://md.research.elamur.ai/free/en/papers/2016/) / Not Just a Black Box: Learning Important Features Through Propagating Activation Differences

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

Paper · 2016 · Avanti Shrikumar, Peyton Greenside, Anna Shcherbina et al.

**Authors:** [Avanti Shrikumar](https://md.research.elamur.ai/free/en/authors/avanti-shrikumar/), [Peyton Greenside](https://md.research.elamur.ai/free/en/authors/peyton-greenside/), Anna Shcherbina and [Anshul Bharat Kundaje](https://md.research.elamur.ai/free/en/authors/anshul-bharat-kundaje/) · **Year:** 2016 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**496** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2346578521) · arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [arXiv 1605.01713](https://arxiv.org/abs/1605.01713)
- [OpenAlex](https://openalex.org/W2346578521)

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

How DeepLIFT explains neural predictions through reference activations, why gradients can miss important inputs, and what its tests establish. · about 34 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A feature can matter to a neural network even when changing it slightly would have no immediate effect on the output. That creates a problem for explanations based on gradients, which measure sensitivity around the current input. A unit may have stopped responding because its activation is saturated or because a rectifier is inactive. Its current gradient can then be zero even though its state helps explain why the network produced this answer. DeepLIFT addresses this problem by comparing the network’s activity with its activity under a reference input. It distributes the resulting output difference among the features that contributed to it.

The central idea is to explain a change from a baseline rather than inspect sensitivity at a single point. Each neuron has an observed activation and a reference activation. DeepLIFT tracks their difference, assigns contributions to that difference, and propagates those contributions backward through the network. The method requires the contributions from a complete set of inputs to add up to the target’s change from its reference. It also gives rules for composing contributions across layers. These rules make it possible to connect an input feature to a distant output without repeatedly modifying the input and running a new prediction.

The paper develops propagation rules for several operations, including affine transformations, maximum operations, maxout units, common nonlinear activations, and element-wise multiplication. It also examines choices that affect what an explanation means: whether to explain a final probability or its preceding score, how to handle features that raise every softmax class equally, and how to normalize weights for inputs constrained by one-hot encoding. These details matter because an explanation can change with the quantity being explained or with an otherwise equivalent parameterization.

The demonstrations use natural images and synthetic genomic sequences. On Tiny ImageNet, the authors compare visual explanations from gradients, gradient multiplied by input, and DeepLIFT. In the genomic task, a convolutional network distinguishes sequences containing both specified DNA patterns from sequences containing only one kind of pattern. Its reported auROC is 0.907. The displayed attribution comparison shows DeepLIFT highlighting both relevant patterns, while gradient multiplied by input misses GATA. These are mainly qualitative explanation results: the paper does not report a numerical attribution benchmark across either dataset.

The contribution is therefore both a method and a warning about measurement. A gradient answers a local sensitivity question; it need not account for a feature’s role relative to a meaningful baseline. DeepLIFT offers an efficient alternative with explicit accounting rules, but its explanations depend on the reference and the chosen target. The paper also identifies itself as an earlier DeepLIFT version and directs readers to a subsequent treatment. Its particular rules and demonstrations should be understood in that scope.

### Ideas worth borrowing

Explain a contrast. An attribution becomes easier to interpret when it states what the observed input is being compared with. DeepLIFT makes that comparison explicit through a reference input and the internal activations it induces. The reusable principle extends beyond neural attribution: whenever a system explains why a result occurred, it should identify the alternative against which the result is being judged. A feature can look important relative to an empty input and ordinary relative to a typical input. Treating the baseline as part of the question makes that dependence visible.

Require an accounting identity. DeepLIFT asks contributions from a sufficient input set to reconstruct the target’s departure from its reference. This does not prove that the allocation is the only reasonable explanation, but it provides a concrete consistency check. An engineering system can use the same principle whenever it decomposes a score, cost, or decision into parts. If the parts are supposed to explain a total, their relationship to that total should be specified and checked. Otherwise, attractive feature rankings can conceal missing or duplicated influence.

Distinguish sensitivity from contribution. A small derivative can mean that an input lies in a flat region, not that the input was irrelevant to reaching that region. The paper’s inactive-rectifier example makes this distinction particularly clear. Researchers can borrow the lesson when designing diagnostics: first decide whether the question concerns the effect of a small change now or the contribution to a larger observed difference. Those questions may require different measurements. Presenting either measurement as generic importance hides the distinction the experiment is supposed to resolve.

Compose local explanations carefully. DeepLIFT builds a connection between distant neurons from rules for neighboring operations. This makes a complex computation more manageable, but only because the local rules are tied to global requirements. The general design pattern is useful for transparent computational systems: give each operation a clear account of how it distributes an output change, then specify how those accounts combine. The important part is the compatibility between local and global behavior. Merely attaching a plausible explanation to every component does not guarantee a coherent explanation of the whole system.

Choose the output quantity deliberately. Explaining a bounded probability can divide a limited output change among redundant signals. Explaining the preceding score can preserve their magnitude more directly. The paper also shows that a common shift to every softmax score should not count as evidence for one class over the others. This is a useful lesson for any scored decision system: an explanation of confidence, an explanation of an unnormalized score, and an explanation of preference between alternatives can tell different stories. The target should match the reader’s actual question.

Normalize freedoms that do not change behavior. With constrained inputs, weights and biases can be adjusted together without changing the network’s computation on those inputs. Yet a weight-based attribution can respond to that adjustment. The paper’s normalization proposal addresses this ambiguity for one-hot inputs. The broader idea is to identify parameter changes that preserve behavior before interpreting parameter-dependent quantities. A diagnostic becomes more defensible when arbitrary choices in representation are removed or made explicit.

Use controlled tasks to expose failure mechanisms. The genomic experiment gives the authors a task whose intended signal is known: the joint appearance of specified patterns. That makes a missing pattern in an explanation easier to interpret than an ambiguous heatmap on a natural image. Researchers can borrow this approach when evaluating explanations for other systems. A controlled task can isolate a particular weakness, such as saturation or redundant evidence, before a method is examined in settings where the relevant features are harder to identify.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the most direct connection is the paper’s insistence that explanations should refer to a defined comparison and an identifiable target. Nothing in the paper establishes that Mova implements DeepLIFT, and no concrete integration is established here. The useful connection is a design proposal: Mova could make score explanations explicit about what changed, what was held as the reference, and which part of the computation is being explained.

Suppose a language decision depends on several visible signals, such as evidence associated with a candidate interpretation or a collection of scoring terms. A transparent implementation can expose those terms, but exposure alone does not explain their combined effect. DeepLIFT suggests asking a more precise question: how much of the chosen score’s change from a reference can be assigned to each signal? Where Mova’s computation is additive, that account might follow directly from its scoring rules. Where it includes nonlinear neural components, a difference-based propagation method could become relevant. These are different implementation situations, and the paper does not justify treating them as interchangeable.

A practical adaptation would begin with an explanation contract. An explanation would identify its target, describe its reference, and state whether its displayed contributions reconstruct the target difference. This could help a reader distinguish an account of the system’s calculation from a list of features that happen to correlate with its answer. The paper’s accounting requirement is particularly suitable for a transparent system because it can be inspected independently of whether the resulting explanation seems intuitively appealing.

Reference selection would need to follow Mova’s actual task. An absent expression, a neutral candidate, and an empty input could represent different comparisons. The paper permits task-dependent references but does not supply a language-specific choice that can simply be transferred. A Mova implementation would therefore need to name the reference in ordinary language and explain what the contrast means. A contribution should not be presented as an unconditional property of a word when it was computed relative to a particular alternative.

The treatment of output scores also offers a concrete design lesson. If Mova compares candidates through a normalization that removes a common shift, an explanation of preference should avoid crediting evidence that raises all candidates equally. Likewise, if a displayed confidence saturates, that confidence may conceal the scale of supporting signals. The paper’s distinction between a final activation and the score preceding it could inform separate views of confidence and supporting evidence. Such views would have to be grounded in Mova’s implemented calculation; the paper does not establish that Mova currently uses the relevant operations.

The constrained-input discussion could matter if a component represents alternatives with one-hot indicators. In that situation, inspecting raw weights without accounting for the input constraint can assign meaning to an arbitrary offset. Mova could check whether equivalent parameterizations produce equivalent explanations and document any normalization used to achieve that. This is a proposed verification principle, not evidence of an existing Rust component.

Finally, Mova could borrow the paper’s style of diagnostic example without adopting its full attribution algorithm. A small, inspectable case can show whether an explanation recognizes inactive evidence, redundant support, or a signal shared by every candidate. For a system whose purpose includes transparency, those cases would connect an explanation claim to observable behavior. The immediate value lies in making the explanation testable; a full DeepLIFT implementation would only be warranted if the underlying computation called for its particular propagation rules.

### The problem and its context

The paper approaches [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) as a practical obstacle to using neural networks in settings where the reasons for a prediction matter. A correct answer can still leave a user uncertain about what the system relied on. In scientific applications, the feature pattern behind an answer can itself be valuable: it may suggest a relationship worth investigating. The authors therefore focus on assigning importance to features involved in a particular output, rather than only measuring predictive performance.

Their immediate point of comparison is gradient-based explanation. A gradient tells us how an output changes under a sufficiently small change to an input. Applied across image pixels, such derivatives can produce a saliency map: a spatial display of where the output is locally sensitive. The paper discusses the saliency method associated with Simonyan and colleagues and its relationship to the deconvolutional approach associated with Zeiler and Fergus. It also describes guided back-propagation as a variant that restricts the backward signal according to its sign.

These methods share an attractive computational property. They reuse a backward calculation through the network, so an explanation can be obtained without separately testing every possible input modification. But the quantity they calculate is local. It describes the behavior near the observed activation, and a neural network’s behavior elsewhere can be very different. The authors’ objection is that local sensitivity is sometimes a poor proxy for the role a feature played in producing the current state.

#### An inactive unit can still be informative

A rectified linear unit, or ReLU, is the paper’s simplest example. In its inactive region, the unit has zero output and zero derivative. A derivative-based explanation can therefore stop at that unit. Yet the fact that the unit is inactive may distinguish the observed input from a reference input under which it would have been active. If that distinction changes the final output, assigning no role to the inputs that caused it loses information about the computation.

The paper illustrates this with inputs whose reference values are 0. Under the reference, an intermediate ReLU has activation 2. With both inputs set to -1, that rectifier becomes inactive. The output is then 0.1, while the reference output used in the contribution calculation is 0.5. The input gradients vanish because the path passes through the inactive rectifier. DeepLIFT nevertheless assigns contributions because the internal and final activations differ from their reference values.

This example is small enough to separate the failure from the appearance of an explanation. There is no need to debate whether an image heatmap looks sensible. The calculation itself contains a change that local gradients cannot communicate. The example establishes a possibility: zero gradient does not imply zero contribution to a reference-relative output change. It does not, by itself, establish how frequently this problem occurs across applications.

The same concern motivates the paper’s discussion of sigmoid and tanh activations. Their derivatives can be close to zero at large positive or negative inputs. The authors connect this issue to gates in recurrent memory architectures, including GRUs and LSTMs. A gate can occupy a consequential state while offering little local derivative signal. DeepLIFT is designed to propagate a difference from a reference through such a state, although the reported experiments do not include a recurrent-network evaluation.

#### Why multiplying by the input helps but does not settle the issue

The paper also considers the gradient multiplied by the input. A raw gradient measures sensitivity without directly accounting for the input’s magnitude. Multiplying the two gives a first-order estimate related to removing the input towards zero. In the image comparison, the authors find this more informative than the raw-gradient display.

That improvement does not remove dependence on the local derivative. If the derivative vanishes at the observed input, multiplication by the input still leaves a vanishing result. The inactive-rectifier example therefore challenges both raw gradients and gradient multiplied by input. DeepLIFT changes the underlying comparison: it uses the activation difference between observed and reference states, instead of relying solely on the slope at the observed state.

This distinction also helps explain why the authors spend time on layer-wise relevance propagation, abbreviated LRP. LRP distributes a relevance quantity backward through the network and does not initially look like ordinary differentiation. The paper argues, however, that a specified set of LRP rules reduces to gradient multiplied by input under stated conditions. Those conditions include piecewise-linear activations and the inclusion of biases in the relevant denominators. The conclusion is conditional, instead of a claim about every conceivable relevance-propagation procedure.

#### The role of a reference

DeepLIFT’s reference is an input that represents the comparison state for the task. Running that input through the same network determines reference activations throughout the computation. The method does not simply declare every hidden activation to be zero. Biases and transformations can produce non-zero internal activity even when the reference input itself consists of zeros.

That distinction is central to the authors’ account of why DeepLIFT can differ from gradient multiplied by input and from the LRP rules they analyze. When all relevant reference activations are zero, the methods can produce similar results. When biases create non-zero internal references, the departure from those references can expose contributions that the other calculations miss. The reference is therefore not a decorative baseline attached after the explanation. It helps define the quantity the method is designed to distribute.

### The method, step by step

DeepLIFT starts with a trained network, an input to explain, a reference input, and a target neuron. Its task is to allocate the target’s activation difference among earlier neurons, eventually reaching the input features. The network’s parameters are not retrained to create the explanation. Instead, the method evaluates activity under the observed and reference inputs and then applies operation-specific backward rules.

From a reference input to feature contributions The steps in order.

The flow separates the definition of the explanatory question from the mechanics of answering it. Choosing the reference says what contrast is being explained. Choosing the target says whether the explanation concerns a probability, an intermediate score, or another activation. The backward calculation only has a clear meaning after those choices have been made.

#### Define the activation difference

For every neuron, DeepLIFT records its observed activity and the activity produced by the reference input:

```
δₙ = Aₙ − Aₙ⁰
```

Here, (n) identifies a neuron, written as n in the formula. Aₙ is its observed activation, Aₙ⁰ is its reference activation, and δₙ is their difference. The superscript on the reference activation labels the reference state; it is not an exponent.

An internal reference is obtained by evaluating the network on the reference input. This matters even for apparently simple choices such as an all-zero reference. A neuron can still receive a bias, and later operations can transform that biased activity. As a consequence, an observed inactive neuron can have a non-zero difference if it was active under the reference.

The contribution from a neuron x to a neuron y is written Cₓᵧ. A positive contribution supports an increase in y relative to its reference; a negative contribution supports a decrease. These signs concern the chosen target and contrast. They do not label a feature as universally beneficial or harmful.

#### Require contributions to reconstruct the target difference

The paper’s first defining requirement is:

```
Σₛ∈S Cₛᵧ = δᵧ
```

S is a set of neurons whose activations provide a complete, nonredundant basis for computing y. The summation adds the contribution Cₛᵧ from each member s of that set. δᵧ is the activation difference at y.

The requirement gives the explanation an accounting structure. If the inputs in S fully determine the target’s activation, their assigned contributions should account for its departure from the reference. An explanation can therefore be checked against a quantity already available from the forward evaluations.

The condition does not say how every contribution must be allocated. Several allocations can potentially reconstruct the same difference. The operation-specific rules provide the additional choices needed for an executable method. Conservation constrains those choices without making them uniquely inevitable.

The qualification that S be nonredundant concerns the computational set used in this requirement. It should not be confused with the later discussion of semantically redundant evidence, where several input signals can each strongly support the same prediction. The latter creates a separate issue when the target is a bounded activation.

#### Compose contributions through intermediate neurons

A contribution to a distant target must pass through intermediate operations. DeepLIFT specifies the following relationship:

```
Cₓᵧ = Σₒ∈Oₓ (Cₓₒ / δₒ) Cₒᵧ
```

Oₓ is the set of neurons that directly receive output from x. For an intermediate neuron o, Cₓₒ describes x’s contribution to o, δₒ is o’s activation difference, and Cₒᵧ describes o’s contribution to y. The formula distributes the downstream contribution according to the share assigned upstream.

This is the paper’s linear-composition requirement. It says how local allocations connect to a larger explanation. A neuron inherits influence through each outgoing route, and the route contributions are added.

The expression also exposes a numerical concern: a small activation difference appears in a denominator. Rather than repeatedly forming these contribution ratios, the authors introduce multipliers. These carry the backward calculation in a form resembling the composition of derivatives.

#### Propagate multipliers instead of contribution ratios

A multiplier links an input’s activation difference to its contribution:

```
Cₓᵧ = mₓᵧ δₓ
```

mₓᵧ is the multiplier from x to y, δₓ is the observed-reference difference at x, and Cₓᵧ is the resulting contribution. The multiplier is an intermediate computational quantity. The contribution is obtained after multiplying it by the source difference.

For a target t, multipliers compose as follows:

```
mₓₜ = Σᵧ∈Oₓ mₓᵧ mᵧₜ
```

mₓₜ connects x to the target t. Each y is a direct recipient of x’s output, mₓᵧ is a local multiplier, and mᵧₜ carries influence from that recipient to the target. The summation combines the available routes.

Substituting the contribution definition into the composition rule produces this backward relationship. Its structure resembles the chain rule, but its local factors need not be derivatives. For a nonlinear operation, they may summarize a finite change between the reference and observed states.

The authors present this formulation as a way to avoid numerical difficulties associated with explicit contribution ratios. It also permits a backward implementation suitable for GPU computation. That computational design is part of the method’s efficiency claim; the paper does not accompany it with measured runtimes.

#### Handle affine transformations

An affine neuron combines weighted activations with a bias:

```
Aᵧ = Σₓ∈Iᵧ wₓᵧ Aₓ + b
```

Iᵧ is the input set of y. Aₓ is an input activation, wₓᵧ is its weight into y, and b is the bias. Aᵧ is the resulting activation.

The local multiplier is simply:

```
mₓᵧ = wₓᵧ
```

mₓᵧ is the multiplier for this connection, and wₓᵧ is its learned weight. The justification follows by evaluating the same affine operation under the reference and subtracting:

```
δᵧ = Σₓ∈Iᵧ wₓᵧ δₓ
```

δᵧ is the output difference, and each δₓ is an input difference. The same bias appears in the observed and reference calculations, so it cancels in their subtraction.

Bias cancellation does not make biases irrelevant to explanations. Biases help determine reference activations and which nonlinear regions are encountered. The affine difference is simple, while the effect of biased activity on subsequent nonlinear operations can be substantial.

#### Handle maximum operations

For a maximum operation, the output is:

```
Aᵧ = maxₓ∈Iᵧ Aₓ
```

Aᵧ is the largest activation among the inputs Aₓ in Iᵧ. The proposed multiplier rule is:

```
mₓᵧ = 𝟙{Aₓ = Aᵧ} δᵧ / δₓ
```

The indicator 𝟙 is active for an input that attains the observed maximum. δᵧ and δₓ are the output and input activation differences. The rule routes the output difference through a winning input.

The authors note that a symbolic differentiation system’s gradient for the maximum can replace the indicator. This connects the implementation to the routing information already available from the forward operation.

A careful reading needs to retain the implementation questions hidden by the compact expression. Ties and very small input differences require a convention or numerical treatment. The paper’s general use of multipliers does not mean every local expression is free of edge cases. The displayed rule communicates the intended allocation, while a robust implementation must make its operational behavior explicit.

#### Handle maxout by following changes between states

A maxout unit chooses among affine functions:

```
Aᵧ = maxᵢ (Σₓ wₓᵧⁱ Aₓ + bⁱ)
```

The index i identifies an affine branch. Each branch has weights wₓᵧⁱ and bias bⁱ. Aᵧ is the largest branch output.

The path from the reference input activations to the observed activations can pass through regions governed by different branches. The authors divide that path into segments and combine their coefficients:

```
mₓᵧ = Σₛ l(s) w(s)ₓᵧ
```

s identifies a segment, l(s) is the fraction of the reference-to-observation path assigned to that segment, and w(s)ₓᵧ is the coefficient of x in the branch active there.

This rule makes the finite-change interpretation especially visible. A derivative evaluated only at the endpoint would describe the final active branch. The proposed multiplier instead incorporates the branches encountered across the comparison. It remains local to the maxout operation, while the backward composition rule carries its effect through the wider network.

#### Handle common nonlinear activations

The paper proposes the following multiplier:

```
mₓᵧ = δᵧ / Σₓ′∈Iᵧ δₓ′
```

δᵧ is the output activation difference. The denominator sums the input differences for the operation, using x′ as the summation index. The same multiplier is assigned to each input covered by this rule.

For a nonlinearity with a single input, the denominator is simply that input’s difference. The multiplier then describes the output change per unit of input change across the reference-observation interval. This is a finite-change slope rather than necessarily the derivative at either endpoint.

The authors identify ReLU, PReLU, sigmoid, and tanh as relevant activations. The single-input case explains how DeepLIFT can carry information through a saturated sigmoid or an inactive rectifier: the observed-reference output change can remain informative even when the current derivative is negligible.

For a near-zero denominator, the paper invokes a limiting treatment using L’Hopital’s rule. That statement should be understood in the applicable activation setting. A general operation with several inputs can have cancelling input differences, so a vanishing sum alone is not a universal justification for every nonlinear function.

#### Divide the interaction in an element-wise product

Multiplication introduces an interaction between changing inputs. The operation is:

```
Aᵧ = (Aₓ₁⁰ + δₓ₁)(Aₓ₂⁰ + δₓ₂)
```

Aₓ₁⁰ and Aₓ₂⁰ are the reference activations of the factors. δₓ₁ and δₓ₂ are their respective changes. Aᵧ is the observed product.

Subtracting the reference product gives:

```
δᵧ = Aₓ₁⁰δₓ₂ + Aₓ₂⁰δₓ₁ + δₓ₁δₓ₂
```

The terms involving a reference activation describe one factor changing against the other factor’s reference. The final term is the joint-change interaction.

The proposed allocation divides that interaction symmetrically:

```
mₓ₁ᵧ = Aₓ₂⁰ + 0.5δₓ₂
```

mₓ₁ᵧ is the multiplier for the first factor. It combines the other factor’s reference activity with 0.5 of that factor’s change.

```
mₓ₂ᵧ = Aₓ₁⁰ + 0.5δₓ₁
```

mₓ₂ᵧ is the corresponding multiplier for the second factor. Multiplying each multiplier by its own factor’s difference reconstructs the product difference when the contributions are added.

This provides a viable allocation, not a proof that interactions admit only this allocation. The distinction matters when reading the method’s accounting guarantees. Reconstructing a total and choosing a particular division of interaction are related but separate decisions.

#### Decide whether to explain the final activation

The authors next consider a bounded final activation:

```
Aₜ = σ(Aᵧ)
```

Aᵧ is the score before the final sigmoid, σ is the sigmoid transformation, and Aₜ is its output. Their example constructs the score additively:

```
Aᵧ = Aₓ₁ + Aₓ₂
```

Aₓ₁ and Aₓ₂ are the supporting input activations. With reference activations of 0, a large observed input can drive the sigmoid close to its upper region.

The paper uses x₁ = 100 and x₂ = 0 to obtain a contribution of 0.5 from the first input to the final activation. When both inputs are 100, the reported contributions to that activation are 0.25 each. The final-output difference has limited room to grow, so the allocation is shared among redundant signals.

The suggested response is to explain the score y before the sigmoid when that better matches the purpose. In the example, the contribution from the first input to y is 100 in both settings. This changes the explanatory target. It does not make the probability-level allocation mathematically inconsistent.

#### Remove class-common shifts before explaining softmax scores

For a softmax output, the paper writes:

```
Aₜᵢ = exp(Aᵧᵢ) / Σᵢ′ exp(Aᵧᵢ′)
```

Aᵧᵢ is the score for class i before normalization, Aₜᵢ is its normalized output, and i′ indexes the scores included in the denominator. exp is the exponential function.

If a feature adds the same amount to every score, its exponential factor cancels between numerator and denominator. The class probabilities therefore do not change. Yet explaining an individual pre-softmax score without adjustment could still assign that feature a contribution.

The proposed correction centers each feature’s weights across classes:

```
w̄ₓᵧᵢ = wₓᵧᵢ − (1/n) Σᵢ′ wₓᵧᵢ′
```

wₓᵧᵢ is the original coefficient from feature x to class score yᵢ. n is the number of classes, the summation forms the mean coefficient across those classes, and w̄ₓᵧᵢ is the centered coefficient.

The transformation preserves the softmax output while removing the shared component. A feature with equal coefficients for every class then receives no class-specific contribution through these centered weights. This makes the explanation of a pre-softmax score more consistent with the comparative behavior of the normalized output.

#### Normalize weights when inputs obey a constraint

The paper also considers a subset of inputs whose activations have a fixed sum:

```
Σₓ∈Sᵧ Aₓ = c
```

Sᵧ is the constrained input subset and c is its fixed total. One-hot encoding is an example, since the active alternative determines the sum across the represented alternatives.

The proposed weight adjustment is:

```
w̄ₓᵧ = wₓᵧ − μ
```

μ is the mean weight over the relevant constrained set, wₓᵧ is an original weight, and w̄ₓᵧ is its normalized replacement. The accompanying bias adjustment is:

```
b̄ᵧ = bᵧ + cμ
```

bᵧ is the original bias, c is the input constraint, and b̄ᵧ is the adjusted bias. The added bias compensates for the subtracted weight component.

The resulting affine output is unchanged for inputs satisfying the constraint. This matters because affine multipliers equal weights: an arbitrary common weight offset could otherwise alter contributions in spite of leaving predictions unchanged on valid inputs.

For a convolution over one-hot DNA, the authors recommend centering weights separately within each filter position. That prevents common offsets at different positions from creating artificial differences in attributed importance. The paper’s displayed algebra has a notation inconsistency in its first substitution, but the stated weight and bias transformations express the intended compensation.

### Experiments and results

The empirical section offers demonstrations on images and genomic sequences. The experiments are useful for different reasons. Natural images make the spatial structure of an explanation visible, while the synthetic DNA task gives the authors control over the intended predictive pattern. Neither experiment provides a numerical leaderboard of attribution quality.

The reported scalar performance measurement belongs to the genomic classifier, not to DeepLIFT as an explanation method. Keeping that distinction clear is essential. A classifier’s ability to separate classes and an attribution method’s ability to explain its decisions are different properties.

#### Tiny ImageNet: comparing visual explanations

The image experiment uses a network with the VGG16 architecture, trained through Keras on Tiny ImageNet. The input images have dimensions 64 × 64, and the classification task contains 200 output classes. The reference is an all-zero input after preprocessing.

The displayed comparison places the original image beside explanations from the absolute gradient, positive gradient multiplied by input, and positive DeepLIFT contributions. Channel-level scores are combined across RGB to obtain a pixel-level display. The paper notes that its gradient presentation differs from the referenced saliency setup in how the channel values are combined.

These display choices affect interpretation. An absolute gradient communicates sensitivity magnitude while discarding sign. A positive-only contribution map emphasizes features supporting an increase in the chosen target and omits negative contributions. Accordingly, the figure compares practical visualization procedures as well as underlying attribution calculations.

The authors present gradient multiplied by input as an improvement over the raw-gradient display and DeepLIFT as a further improvement. The paper’s evidence for those judgments is visual. It supplies no numerical localization metric, no human evaluation score, and no dataset-wide measure of explanation faithfulness.

The image results therefore support a bounded conclusion: the displayed examples illustrate differences that the authors regard as more informative. They do not establish an average numerical advantage across the full image dataset. The reported setup also does not specify the image training split, optimization schedule, or classification accuracy.

#### Genomic sequences: a task with known intended signals

The genomic experiment is built around the joint presence of GATA and CAGATG. A positive sequence contains both kinds of pattern. A negative sequence contains only one kind, appearing once or twice. Each sequence has length-200, and the remaining positions are sampled from the bases A, C, G, and T. The core patterns are sampled through a generative procedure.

This task is useful for explanation because the intended class distinction is known in advance. An explanation that identifies only one relevant pattern may fail to communicate the joint condition the classifier is supposed to recognize. The experiment can therefore expose an omission that would be harder to judge in a natural-image heatmap.

The network is a CNN trained in Keras on one-hot encoded sequences. Its convolutional stage uses 20 filters, each with length 15 and stride 1. A max-pooling layer follows, with width and stride 50. The later part contains fully connected layers of size 200. Hidden activations use PReLU nonlinearities.

The reported classification auROC is 0.907. This measures discrimination between the positive and negative sequence classes. The authors attribute most misclassifications to cases where random background sampling accidentally creates one of the relevant patterns. That observation highlights a complication in the construction: the nominal class-generation procedure and the actual presence of patterns in a completed sequence can diverge.

DeepLIFT is applied to sequences the classifier predicts correctly. The reference is all zeros after normalization of the first convolutional layer’s weights. With that normalization, the authors explain that a convolutional neuron’s linear response to the zero input equals its bias and corresponds to the average response across the base alternatives at a position.

The attribution figure compares DeepLIFT with gradient multiplied by input. Because the input is one-hot encoded, multiplying by the input retains the gradient for the base actually present and removes the alternatives that are absent. The displayed DeepLIFT explanation identifies both patterns with substantial positive importance. The gradient-based comparison misses GATA.

No numerical attribution score accompanies this comparison. The paper does not report motif recovery across a specified split, an attribution precision measure, or a statistical comparison between methods. The result is a diagnostic example supporting the proposed failure mechanism.

#### Reading the numerical evidence at its proper scale

The paper contains no pair of dataset-level attribution measurements suitable for a quantitative method comparison. Its numerical comparison of contribution values instead comes from the controlled final-sigmoid example. The following chart reports that analytical comparison; it is not an image or genomic benchmark.

Final-sigmoid example, first input's contribution to the output Adding redundant support reduces the contribution assigned to the first input.

**The numbers**

| System or setting | contribution to final sigmoid activation |
| --- | --- |
| First input alone, x₁ = 100 and x₂ = 0 (this paper) | 0.5 |
| Redundant support, x₁ = 100 and x₂ = 100 | 0.25 |

The starred setting has the larger contribution under this particular target. A larger contribution is not a general measure of a better explanation; the chart’s direction only describes the quantity compared. Both rows follow the paper’s own allocation method. Their purpose is to show why a final probability can attenuate individual contributions when several inputs supply overlapping support.

Taken together, the experiments and analytical examples support the method’s motivation more strongly than they establish a comprehensive empirical ranking. They show a mechanism gradients can miss, illustrate its relevance in a controlled sequence task, and present visually different image explanations. They leave the size and consistency of the attribution advantage unmeasured.

### What the ablations show

The paper does not report a systematic component-removal ablation study; it offers controlled analytical examples, qualitative method comparisons, and an equivalence analysis instead.

#### The inactive-ReLU example isolates local flatness

The small network with reference inputs of 0 directly tests the claim that a zero gradient can hide a contribution. At the observed setting x₁ = x₂ = -1, the intermediate ReLU is inactive. Its reference activation is 2. The final output is 0.1, compared with the 0.5 used as the reference output in the contribution calculation.

The paper allocates the output change asymmetrically:

```
Cₓ₁ₜ = (0.1 − 0.5)(1/3)
```

Cₓ₁ₜ is the first input’s contribution to the output t. The term 0.1 − 0.5 is the observed-reference output difference, and 1/3 is the share assigned through that input’s route.

```
Cₓ₂ₜ = (0.1 − 0.5)(2/3)
```

Cₓ₂ₜ is the second input’s contribution, with 2/3 as its allocation share. The negative sign follows from the output being below its reference.

The example isolates an important distinction. The gradients are zero at the observed input, but the explained output difference is not. DeepLIFT can distribute that difference because it compares activation states instead of relying exclusively on endpoint derivatives.

This is a mechanism demonstration. It does not measure how often inactive units cause attribution failures in the image or genomic datasets. Its strength is logical clarity: it provides a concrete counterexample to interpreting a vanishing gradient as evidence of no contribution.

#### The redundancy example isolates target dependence

The final-sigmoid comparison changes the available supporting inputs while retaining the same kind of output transformation. A single large input receives a contribution of 0.5 to the final activation. When both supporting inputs are large, each receives 0.25.

The accounting rule remains satisfied. What changes is how the limited final-activation difference is divided. The authors therefore suggest using the score before the sigmoid when the desired explanation concerns supporting evidence without this attenuation. The first input’s contribution to that score is 100 in either setting.

This analysis shows that contribution magnitude cannot be interpreted independently of the target. A smaller contribution may reflect competition for a bounded total rather than weaker evidence inside the preceding computation. It also shows why changing the target is a substantive explanatory decision, not merely a presentation adjustment.

#### The softmax analysis isolates shared evidence

The softmax derivation considers a feature whose coefficient is equal across all class scores. Its effect cancels during normalization, leaving the final class outputs unchanged. A raw explanation of one pre-softmax score could nonetheless attribute importance to it.

Centering the feature’s coefficients across classes removes that common component. This controlled calculation supports the normalization proposal: evidence shared equally across every class should not be presented as distinguishing one class from the others.

The paper does not compare centered and uncentered attribution maps through a numerical experiment. The justification is algebraic. It shows that the transformation respects softmax behavior while addressing a specific ambiguity in score-level explanations.

#### The constrained-input analysis isolates parameterization

For inputs with a fixed total, subtracting a common offset from the relevant weights and compensating in the bias preserves the affine output. Since DeepLIFT’s affine multipliers are those weights, the same predictive computation can otherwise admit different local contribution values.

The normalization discussion therefore probes a different source of ambiguity from saturation. The issue is not a derivative becoming small. It is that a parameter-based explanation may depend on an arbitrary representational choice. Centering the constrained weights removes that particular freedom.

Again, the evidence is a derivation instead of a numerical ablation. The genomic experiment uses the proposed normalization, but the paper does not report a separate comparison showing what changes without it.

#### The LRP analysis clarifies the baseline

The paper analyzes an LRP redistribution rule:

```
Rᵢˡ = Σⱼ [zᵢⱼ / (Σᵢ′ zᵢ′ⱼ + ε sign(Σᵢ′ zᵢ′ⱼ))] Rⱼˡ⁺¹
```

Rᵢˡ is the relevance assigned to neuron i in layer l, and Rⱼˡ⁺¹ is the relevance arriving from neuron j in the next layer. zᵢⱼ is the weighted activation passed along their connection. ε is a stabilizing term, and sign records the denominator’s sign.

The weighted activation is defined as:

```
zᵢⱼ = aᵢˡ wᵢⱼˡ,ˡ⁺¹
```

aᵢˡ is the activation at the source neuron, and wᵢⱼˡ,ˡ⁺¹ is the connection weight. The authors consider the limit as ε approaches 0 and assume the relevant bias is included in the denominator.

Under those conditions, the denominator becomes the receiving neuron’s activation. When redistribution is composed through successive affine operations, intermediate activation factors cancel. The remaining expression has the form of an input activation multiplied by the gradient of the target with respect to that activation.

For rectifiers, the authors argue that the relevance rules align with gradient multiplied by input in the active and inactive cases. For pooling, both calculations route the signal through the selected location. If a nonlinear final layer complicates the initialization of relevance, they instead use the score before that layer, with the stated softmax normalization where applicable.

This analysis narrows the interpretation of the baseline comparison. The claim is that the specified LRP procedure reduces to gradient multiplied by input under the stated assumptions. It does not establish equivalence for every relevance method or for every nonlinear operation.

The authors further connect agreement with DeepLIFT to the case where reference activations are all zero. Their explanation for differences in practice emphasizes non-zero biases and internal references. The paper offers that mathematical account, but not a separate experimental sweep over bias values.

### Limitations

The clearest limitation is the distance between the method’s mathematical motivation and the breadth of its empirical validation. The paper provides a coherent reason why local gradients can fail and demonstrations consistent with that reason. It does not establish a general numerical measure of explanation quality or evaluate that measure across the reported datasets.

#### Limits the authors explicitly acknowledge or identify

The paper explicitly labels itself as an earlier DeepLIFT version and points to a later treatment. Readers should therefore avoid assuming that every rule here represents the final form of the method. The work remains important on its own terms, but its version status is part of those terms.

The authors also explicitly make reference selection task-dependent. They do not claim that a single reference is suitable for every application. Their demonstrations use all-zero inputs under specified preprocessing or normalization conditions. Those choices define the comparisons being explained; they do not turn the resulting contributions into baseline-independent properties of the features.

The discussion of final activations identifies another limitation directly. Bounded outputs can divide their available change among redundant signals, reducing individual contribution magnitudes. The proposed use of a preceding score avoids that particular attenuation, but it changes the target. An explanation of score evidence and an explanation of probability change should therefore remain distinguishable.

The paper recognizes numerical difficulties when activation differences are small and introduces multipliers in part to address them. For nonlinear rules involving small denominators, it calls for a limiting treatment. This is an explicit implementation concern, even though the paper does not supply a complete numerical specification for every possible edge case.

The authors also report a complication in the synthetic genomic data: relevant patterns can arise accidentally in the random background. They identify this as the main source of classification errors. The task’s intended label structure therefore does not perfectly describe every completed sequence.

#### Limits visible in the experimental setup

The image evidence consists of visual comparisons. There is no reported dataset-level explanation metric, uncertainty estimate, or statistical test. A reader can inspect whether a displayed map appears more focused, but cannot infer an average improvement of a stated size.

The genomic evidence likewise does not quantify attribution recovery. The auROC of 0.907 describes the classifier’s predictive discrimination. It should not be presented as DeepLIFT’s explanation score. The paper’s attribution claim rests on the displayed pattern-level comparison.

The genomic explanations are restricted to correctly predicted sequences. That choice makes sense for examining successful recognition, but it leaves error explanations outside the reported analysis. The paper does not show whether DeepLIFT reveals the accidental background patterns implicated in misclassification or how its explanations behave across all incorrect predictions.

The sequence task is synthetic and deliberately structured around the co-occurrence of specified patterns. This offers interpretive control, but it does not establish performance on a real genomic prediction problem with uncertain or overlapping biological causes. The explanation highlights the network’s assigned contribution; it does not independently demonstrate a biological mechanism.

Training details are also limited. The paper names architectures, input representations, and several layer settings, but it does not report dataset sizes, complete split definitions, or full optimization procedures. Those omissions constrain reproducibility from the written account alone.

#### Limits of what the accounting rules establish

Contribution conservation is a valuable consistency condition, but it is not a guarantee of unique attribution. A product interaction can be divided while preserving the total, and the paper selects a particular symmetric division. More broadly, a reconstruction identity can hold under different local allocation choices.

Reference-relative contribution is also different from a verified intervention on the world. The method decomposes a network calculation under its chosen comparison. It does not show that changing a feature in a real system would produce the same effect, especially where features cannot be varied independently or the reference is not a naturally occurring input.

The constrained-input discussion partially addresses representation dependence, but it should not be read as a proof of invariance to every equivalent network parameterization. It treats a particular family of weight and bias shifts under a fixed-sum constraint. Broader invariance claims are not established.

Some local rules require care beyond their compact mathematical form. A maximum can involve ties, and divisions by small activation differences need a stable implementation. The general nonlinear expression should not be extended to arbitrary multi-input functions merely because it reconstructs a difference in familiar single-input cases.

Finally, the paper’s efficiency is explained through the structure of the backward computation. It does not report runtime, memory use, or scaling measurements. Likewise, its discussion of gated recurrent units supplies a motivation and a potential application, not an evaluated recurrent benchmark. Those boundaries leave a substantial contribution intact: the method addresses a concrete weakness of local-gradient explanations without establishing universal superiority.

### What came after

The later citation record places this paper alongside work on attribution, explanation frameworks, explanation-guided training, and language understanding. That record establishes that the listed works cite it. It does not, by itself, specify which propagation rule each later work adopted, which experiment it repeated, or whether it accepted every claim made here.

The most direct continuation is [Learning Important Features Through Propagating Activation Differences](https://md.research.elamur.ai/free/en/papers/shrikumar-2017-learning-important-features-through-propagating/) (2017). The earlier paper explicitly directs readers to a newer DeepLIFT treatment, and this later title centers the same organizing idea: carrying information about activation differences through a network. It is therefore the natural continuation for understanding the method beyond this version. The citation information does not supply the later paper’s detailed rules or results, so those should not be retroactively assigned to the earlier work.

[A Unified Approach to Interpreting Model Predictions](https://md.research.elamur.ai/free/en/papers/lundberg-2017-unified-approach-interpreting-model-predictions/) (2017) places DeepLIFT in a broader interpretive setting. Its title signals a concern with relating prediction explanations within a common approach. DeepLIFT offers several concrete objects that such a discussion must distinguish: a reference, an output target, a contribution total, and an allocation rule. The citation establishes an intellectual connection, but does not alone establish the precise mathematical relationship developed in that later work.

[Right for the Right Reasons: Training Differentiable Models by Constraining their Explanations](https://md.research.elamur.ai/free/en/papers/ross-2017-right-right-reasons-training-differentiable/) (2017) concerns explanations as training constraints, as its title states. That direction raises a question beyond the earlier DeepLIFT demonstrations. An explanation can be inspected after a prediction, but it can also become something a training procedure is asked to satisfy. The earlier paper supplies a way to assign contributions to an existing network; the later title identifies a different role for explanations. The citation list does not establish that its training procedure uses DeepLIFT multipliers, and no such implementation should be inferred.

[Did the Model Understand the Question?](https://md.research.elamur.ai/free/en/papers/mudrakarta-2018-did-model-understand-question/) (2018) connects the citation history to the assessment of question understanding. The DeepLIFT paper’s general warning is relevant to that concern: a successful output and an adequate account of input use are different forms of evidence. Its genomic task already separates predictive performance from whether the explanation displays every intended pattern. The later work’s title asks a related behavioral question in a language setting, but the available bibliographic information does not identify its attribution procedure or findings.

[Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI](https://md.research.elamur.ai/free/en/papers/arrieta-2019-explainable-artificial-intelligence-xai-concepts/) (2019) situates the citation within a broad discussion of explanation concepts and classification. DeepLIFT is a useful case for such a discussion because its explanatory object is unusually explicit: a target activation difference allocated relative to a reference. That specificity helps distinguish feature attribution from other possible meanings of an explanation. The citation record does not establish the taxonomy category assigned to it or the survey’s evaluation of its strengths.

[Towards Faithful Model Explanation in NLP: A Survey](https://md.research.elamur.ai/free/en/papers/lyu-2024-faithful-model-explanation-nlp-survey/) (2024) brings the citation into a discussion of faithful explanation in [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/). The connection is conceptually important because the earlier paper separates an appealing display from a calculation that reflects a particular internal contrast. A reference-relative accounting rule offers one kind of connection to the computation, while the limitations above show why that connection should not be mistaken for a complete guarantee of explanatory adequacy. The later survey’s title establishes its subject, but the citation information does not state its judgments about DeepLIFT.

Across these later works, the safely established legacy is a set of questions that remain useful when explanations are compared or put to work. What quantity is being explained? Relative to which reference? Can a local derivative miss a consequential state? Do the contributions reconstruct a defined total? Can a behavior-preserving transformation change the explanation? DeepLIFT makes those questions concrete through activation differences and backward allocation rules. The later citations show that this proposal entered wider conversations about explaining predictions, shaping training, and assessing language systems; their individual answers require their own evidence.

## Cite

Cite as Avanti Shrikumar, Peyton Greenside, Anna Shcherbina and Anshul Bharat Kundaje. 2016. Not Just a Black Box: Learning Important Features Through Propagating Activation Differences. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1605.01713](https://doi.org/10.48550/arxiv.1605.01713) · [arXiv 1605.01713](https://arxiv.org/abs/1605.01713)

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

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
