Learning Important Features Through Propagating Activation Differences
Paper · 2017 · Avanti Shrikumar, Peyton Greenside and Anshul Kundaje
Summary
A neural network can respond strongly to a feature and then reach a point where a small change to that feature has no effect. This is a problem for interpretability methods that score inputs using gradients. A gradient measures what would happen if the input moved slightly from its current value. Once a unit has saturated, that measurement can miss the evidence that brought it there. A threshold creates a different problem. The gradient can switch abruptly as a unit turns on, even though the output has barely moved. DeepLIFT addresses both situations by comparing a prediction with a prediction made on a chosen reference input.
The reference gives every unit in the network a starting activation. DeepLIFT assigns each feature a share of the change in a selected output, with the requirement that all the shares add up to that change. The authors call this requirement summation-to-delta. They express each share per unit of input change as a multiplier. These multipliers describe finite changes and combine through a chain rule, so the explanation can be calculated in a single backward pass once the actual and reference activations are available. For a handwritten digit, the authors use a blank background as the reference. For simulated DNA, they use expected background base frequencies or average explanations made against shuffled sequences.
The paper develops two rules for nonlinear operations. Rescale uses the same finite-change multiplier for incoming signals that raise and lower an activation. RevealCancel evaluates these signals separately, giving each credit for its effect both before and after the other has been introduced. The difference matters in a network that takes the smaller of its inputs. Rescale and several gradient-based methods can give the entire score to the smaller input. RevealCancel gives both inputs credit, reflecting the fact that the result depends on having both values in place.
On MNIST, the digit classifier achieves 99.2% test-set accuracy. In a separate test of the explanations, RevealCancel gives the strongest rankings among the backward methods compared when pixels are erased to favor a chosen alternative digit. The DNA experiment tests whether explanations recover planted GATA1 and TAL1 patterns and distinguish their roles across prediction tasks. Gradient × input and input-weighted Guided Backpropagation can give weak matches disproportionately large scores. RevealCancel helps recover TAL1's contribution when the task requires both kinds of pattern. Keeping Rescale in the convolutional layers and using RevealCancel at the fully connected layer reduces noise compared with applying RevealCancel throughout that network. Together, the experiments show why the reference and the treatment of nonlinear operations matter to the evidence an explanation brings into view.
Deep dive: Learning Important Features Through Propagating Activation Differences
DeepLIFT explains neural network predictions by tracing activation changes from a chosen reference and tracking how input signals interact. · about 82 minutes to read
The problem and its context
What an importance score is supposed to explain
The paper starts with a trained network, a particular input, and an output worth inspecting. In an image classifier, the input features can be individual pixels and the output can be the score for a particular digit. An attribution method gives those pixels numerical scores. A reader can then see which locations the method associates with an increase or decrease in the selected score. The substantive question is how to assign those numbers so that they describe something meaningful about the prediction.
Sensitivity supplies one possible answer. If a tiny increase in a pixel value would move the digit score, the pixel has local influence in that direction. An edit to the image supplies another answer. A region may matter because obscuring it changes the network's response. DeepLIFT concerns a comparison between complete evaluations. It asks how the features that differ between the actual input and a reference account for the change between their outputs. Each of these questions has a precise object. A quantity that answers one can be a poor substitute for a quantity that answers another.
This distinction matters when an explanation is needed alongside a prediction. Knowing which changes the network is currently sensitive to can be valuable, but the evidence that set its state may lie elsewhere. The authors illustrate this with saturation, where an activation reaches a range in which the output has flattened. The presence of several inputs can bring the network to that range. A local measurement made there sees the flat part of the response. The starting point from which the inputs brought it there falls outside that measurement.
Thresholds pose a related difficulty from the other direction. A rectified linear unit, or ReLU, returns zero for a negative argument and passes through a positive argument. The transition can be continuous even though the derivative changes abruptly. A score based on the derivative can therefore react more sharply to a small input change than the activation itself does. The paper's example uses a ReLU with bias −10. An input just above 10 turns the unit on by a small amount, yet the derivative has already switched to the value it takes when the unit is fully in its active region. The input's magnitude and the derivative together can make that slight activation look like a large contribution.
The proposed method has to address these problems without making every explanation a separate series of prediction experiments. Its goal is to carry a signal backward from a chosen output to all the relevant inputs once the prediction is available. The technical challenge is to replace the backward signal of ordinary differentiation with one that respects a finite comparison. The distinction between positive and negative incoming effects adds another question. A change may be small because little occurred or because substantial signals opposed each other. The design of an attribution rule determines whether the second situation remains visible.
What happens when the input is edited
One family of earlier approaches tests the trained computation by changing parts of the input. Zeiler and Fergus cover regions of an image and inspect the responses of later layers. A related sequence method, in-silico mutagenesis, substitutes a base at a position and measures what happens to a prediction. The paper also discusses a method that assesses an image patch by averaging over its alternatives. This lets a researcher ask about a missing region without making the result depend entirely on one particular fill value. Visualizing and Understanding Convolutional Networks
The attraction is that an observed difference can be tied to an explicit edit. If hiding a region lowers a score, that is a direct statement about the network's behavior on the edited image. The choice of edit is part of the statement. Occlusion asks about visibility against a particular replacement, while substitution asks about the replacement used at a particular location. When a different alternative is substituted or the edit is made to a different region, the resulting prediction can answer a substantially different question.
There is also a cost to producing a set of these comparisons. Each perturbation requires its own forward evaluation. A researcher who wants to examine many image regions or sequence positions incurs that cost repeatedly. A backward method starts from the output of interest and obtains scores for many features in a common calculation. The paper treats this computational advantage as especially relevant when the explanation is for a single input with many candidate features.
The saturation example exposes a limit that extra precision in a single edit cannot fix. The constructed network receives inputs i₁ and i₂. At i₁ = 1 and i₂ = 1, setting either input to 0 independently leaves the output unchanged. An attribution based on those edits has no observed output change to assign to either one. Both facts about the edits are correct. They describe removals from a state in which the other input is still present. The joint departure from a reference with both inputs absent can be consequential even though each isolated removal is ineffective.
The difference between the perturbation question and the comparison question is particularly clear here. Removing i₁ while leaving i₂ in place asks whether i₁ is necessary at the current value of i₂. The analogous removal of i₂ reverses the roles. A reference with both absent instead gives a starting configuration from which both changes can be considered together. The attribution problem is then to divide a joint effect. Repeating isolated removals more accurately would keep answering the first question.
Gradients and the rules for passing them backward
The saliency approach associated with Simonyan and colleagues uses the derivative of the chosen output with respect to each image pixel. The magnitude of a derivative describes how responsive the output is to a small change at that pixel. Its sign gives a direction to that response. Because the chain rule expresses input derivatives through the intervening operations, the scores can be obtained backward through the layers. The result is an image-shaped map of local sensitivity. Deep Inside Convolutional Networks
The authors compare ordinary differentiation through a ReLU with the backward rules used in deconvolutional networks and Guided Backpropagation. In ordinary differentiation, the forward input to the ReLU determines the gate. If the forward input was negative, the unit was on its flat side and the backward gradient is blocked. When the unit is active, the incoming backward signal can pass, including a signal with a negative sign.
The deconvolutional rule uses the sign of the backward signal to decide what to keep. It blocks a negative signal regardless of the sign of the input seen in the forward evaluation. Guided Backpropagation uses both restrictions. A negative forward input is sufficient to stop the backward signal, and a negative backward signal is sufficient as well. The difference between the methods thus includes what happens to evidence passing through an active rectifier when the backward influence is negative.
Negative influence can carry information about why a class score is low or about what distinguishes it from another class. Even an activation that is high in the forward evaluation can follow a path that depresses the selected output. A backward rule that removes negative signals at rectifiers can lose part of that influence. The paper treats this as a limitation of both the deconvolutional approach and Guided Backpropagation. The direction of influence is a separate issue from the strength of a forward response.
The saturation example shows how the restrictions can fail at different places. The output is locally flat with respect to an intermediate value at the saturated operating point. Other parts of the backward calculation also encounter zero derivatives or negative signals of the sort that the modified procedures discard. Ordinary gradients have no signal to transmit through a flat derivative. Guided Backpropagation has that problem as well as its sign restriction. A backward pass can be efficient while still failing to describe the evidence that produced the state through which it is passing.
The threshold example identifies a complementary problem. In saturation, a flat derivative can conceal a large finite change. At the transition of the biased ReLU, a derivative changes abruptly while the finite output movement can remain small. These are consequences of what a derivative measures. A derivative is exactly the quantity needed for many local questions. An importance score that shares all its properties will also inherit the difference between local behavior and a comparison across a wider range.
Adding the value of the input to the gradient
Gradient × input multiplies each feature's derivative by the value of that feature. This makes it possible for features with similar derivatives to receive different scores according to their magnitudes. The product also reflects the sign of the input. The method still obtains the derivative at the observed input, so an activation with zero derivative contributes a zero product. Just above a threshold, a large input value can amplify the effect of a derivative that has only just switched on.
The paper relates gradient × input to Layerwise Relevance Propagation, which sends relevance scores backward through a network. In the setting discussed by the authors, the equivalence holds up to a scaling factor for ReLU networks when changes made for numerical stability are set aside. The authors use gradient × input in the comparison because they can implement it easily on a GPU. They report that they knew of no GPU implementation of Layerwise Relevance Propagation at the time. The earlier DeepLIFT work is among the analyses they cite for the connection. Not Just a Black Box
The baseline implicit in multiplying by the raw input is zero. Multiplication by a difference from a reference can be understood as applying a first-order approximation to a movement away from that reference. With a zero reference, the difference is just the current value. The paper's DNA comparison uses an explicit background input for the products so that the weighted methods are evaluated against the same baseline as DeepLIFT. That choice changes the input factor in the product while retaining the endpoint gradient or modified backward signal.
The biased ReLU makes the issue with a local approximation concrete. When active, the unit subtracts a fixed amount from its input. Close to the point where it turns on, the two terms almost offset one another. An explanation based on separately weighting the input and the bias can preserve this offset by assigning a large positive number to the input and a large negative number to the bias. DeepLIFT addresses a different accounting problem. The bias is already present when the reference is evaluated, so it can set the threshold without receiving any of the credit for departure from the reference.
Following a path of gradients
Integrated gradients also makes a comparison with a starting input. It accumulates derivatives along the path from the starting input to the observed one. Where the derivative at the endpoint has become flat, earlier portions of the path can still contribute. Near a threshold, the portion of the path beyond the threshold can be short even when the endpoint derivative has switched fully into its active regime. The path thus preserves information lost by measuring the gradient at the endpoint alone.
The computational difference is that a numerical integral requires gradients at multiple points along the path. The quality of the approximation depends on how the integral is evaluated. DeepLIFT computes its local multipliers with the actual and reference activations already available and combines them in a backward pass. The paper's efficiency argument comes from the design of those calculations. Its comparison with integrated gradients also tests whether two numerical resolutions give similar empirical results on the digit task.
Path integration and RevealCancel treat interactions differently. Imagine an output determined by the smaller of two positive inputs. Starting both at zero and scaling them toward their final values preserves their order along the path. The smaller input determines the minimum along that path, so integrating the derivative can give all the credit to it. A comparison that introduces the inputs in different orders can recognize a different feature of the same function. With either input still at zero, increasing the other on its own cannot create the observed positive minimum. RevealCancel is designed to recover this kind of dependency through local calculations.
These methods agree on the value of an explicit starting point. They can disagree about what should happen between the starting point and the observed computation. Integrated gradients accumulates derivatives along a joint path. The positive and negative terms used by RevealCancel are also evaluated in partial configurations. That choice changes the allocation even when the endpoints and the total to be explained are the same.
Spatial explanations from convolutional features
The paper also discusses Grad-CAM. This method uses gradients for a class to weight the feature maps in the last convolutional layer. The weighted activations give a coarse map of regions associated with the class. Guided Grad-CAM combines that map with the scores from Guided Backpropagation to obtain finer spatial detail. This approach provides a way to connect features deep in the image computation to the spatial regions of the input. Grad-CAM
The authors identify two qualifications. Combining the maps retains the treatment of negative backward signals used by Guided Backpropagation. The construction also relies on convolutional feature maps. DeepLIFT formulates its rules at the level of operations that can occur in different layers, including dense and convolutional computations. Its explanatory quantity is the change in a selected activation, allocated among the changes that contributed to it. This formulation makes both the reference and the rules for passing credit through a nonlinear unit part of the interpretation.
The method, step by step
Decide which comparison the scores will describe
DeepLIFT starts with the input whose prediction is being examined. It pairs this input with a reference chosen for the question. Running the network on that reference establishes the value that every internal activation and output would take in the reference computation. The corresponding actual values come from the ordinary prediction. The method uses the departures between these values as it traces the computation backward.
A target also has to be selected. It may be a final output, such as a probability, or a score that feeds the prediction layer. Once the target and reference are fixed, their evaluations determine the amount of change to explain. The attribution rules assign parts of that amount to the departures of earlier units, continuing back to the input features. A positive contribution represents a portion of the target change in the upward direction. A negative contribution accounts for movement in the opposite direction.
At a linear operation, the calculations follow the weights connecting the inputs to the output. At a nonlinearity, the output change depends on where the input started as well as where it finished. Rescale describes that relationship with a common finite-change multiplier. RevealCancel can assign different multipliers to retained components that push in opposite directions. These choices are local. The chain rule then connects them to the selected target.
From a reference input to feature contributions
The steps in order.
The forward evaluations have complementary roles. The observed evaluation shows what the network computed for the input of interest. The reference evaluation shows what the same operations compute under the starting condition chosen for the explanation. A bias, for instance, can give an internal unit a non-zero reference activation even when every feature in the reference image is zero. This is why an internal activation's reference value is obtained by running the computation through the preceding layers.
Account for the full change at the target
Call the chosen target t. Its change is defined by comparing its activation when presented with the observed input and its activation during the reference evaluation.
Δt = t − t⁰
Here t is the actual target activation, t⁰ is its reference activation, and Δt is their signed difference. The superscript ⁰ labels an activation obtained from the reference input. The same convention applies to earlier units. Thus Δxᵢ is the actual value xᵢ of unit i minus its own reference value xᵢ⁰.
The paper considers a set of earlier units whose values provide what is needed to compute the target. The set can consist of inputs or of units in intermediate layers. DeepLIFT assigns a contribution to the change in each member of the set.
Σᵢ₌₁ⁿ C(Δxᵢ → Δt) = Δt
The sum Σ runs over index i from 1 through n, where n is the number of explanatory units. C denotes a contribution and the arrow reads “to.” Thus C(Δxᵢ → Δt) is the amount of the target change Δt allocated to the departure Δxᵢ. The equation is summation-to-delta. The right-hand side is the reference-relative change of the target, which can be positive, negative, or zero.
The specification of the set matters. A complete set of features at the input can account for the movement from the reference to the observed target. A group of intermediate units can do so when it supplies the computation of the target. A display restricted to whichever features have the largest scores is a view of part of the attribution. There is no reason for that subset alone to add up to the full change.
The sum preserves signs. An attribution can contain substantial support in one region and substantial opposition in another even if the total is small. Where the contributions balance, the total records that the target has remained near its reference. The individual terms make it possible to see how that balance is allocated. The requirement fixes the sum, leaving the choice of propagation rule to determine the shares.
This same interpretation explains why a score can be non-zero when a gradient is zero. If a flat endpoint still differs from the reference activation, the share describes part of that change. It need not follow the slope that would be measured by moving the endpoint slightly in one direction. Conversely, the sum also fits the case where a steep current slope accompanies a very small departure from the reference. Whether the change is substantial is decided by the two evaluations.
Express each contribution as a multiplier
The paper expresses a contribution relative to the size of the input change that receives it. This gives a quantity that can be reused while chaining the explanatory effects of successive operations.
m(Δx → Δt) = C(Δx → Δt) / Δx
The symbol m denotes a multiplier. It relates the departure Δx of unit x to the change Δt of target t. The numerator C(Δx → Δt) is the allocated contribution. Dividing by Δx expresses how much contribution is carried per unit of that departure. With m known, multiplying by Δx recovers the contribution.
A partial derivative also expresses a change per unit of another change, with the changes taken infinitesimally. A DeepLIFT multiplier concerns the finite movements between the chosen reference and the observed state. It also reflects an allocation rule. When several earlier units help produce a target, the contribution attributed to one of them depends on how the method apportions the shared outcome. It cannot in general be read from a derivative at either endpoint.
Suppose units xᵢ influence the target through intermediate units yⱼ. Given the multipliers for the first part of the route and the multipliers from the intermediate units to the target, DeepLIFT defines the combined multiplier as follows.
m(Δxᵢ → Δt) = Σⱼ m(Δxᵢ → Δyⱼ) m(Δyⱼ → Δt)
Here Δxᵢ and Δyⱼ are the departures from reference of the earlier unit with index i and the intermediate unit with index j. The target departure is Δt. Each product applies the multiplier from xᵢ to yⱼ and then the multiplier from yⱼ to t. The sum over j accounts for the available routes through the intermediate units. The expression on the left is the multiplier from xᵢ to the target across the entire intervening computation.
The authors show that this combination is consistent with summation-to-delta. The reason can be seen by considering the total arriving at an intermediate unit. The contributions from its predecessors account for that unit's departure. When all those contributions are multiplied by the intermediate unit's multiplier to the target, their sum carries the intermediate unit's contribution to the target. Collecting the pieces at the earlier inputs retains that same total while assigning it to the earlier layer. Repeating the argument lets the attribution reach the features.
The chain rule also gives the algorithm its computational structure. Working backward, the method can use the target multiplier already calculated for a successor when determining the multiplier for one of its predecessors. It does not need to recompute the full forward prediction separately for each path or each input coordinate. For a selected target and reference, the chain calculation gives the input scores in a single backward pass after the forward values are available.
The ratio in the multiplier definition also identifies cases that need care. A unit can be very close to its reference, making the denominator small. Its net departure can also be zero because earlier effects have canceled. The paper deals with these issues in its local rules. Using the same numerical response for every zero change would obscure the difference between a unit whose inputs did not move and one that received opposing changes.
Obtain reference activations from a forward evaluation
An internal reference value is defined by applying the unit's usual function to the reference values of its inputs.
y⁰ = f(x₁⁰, x₂⁰, …)
The symbol y⁰ is the reference activation of unit y. The function f is the operation that produces y. The values x₁⁰, x₂⁰, and those indicated by the ellipsis are the reference activations of all its inputs. Evaluating f on their actual activations instead gives the actual y. The pair of values describes the same operation under the two input conditions.
This construction ties all the differences together. The reference for a unit downstream of a bias includes the effect of that bias. The reference for a unit downstream of a nonlinearity is whatever the nonlinearity returns for the reference argument it receives. The final reference output consequently represents a coherent evaluation of the network. Attributions relative to it concern an input comparison a reader can specify.
For MNIST, the authors take an all-zero reference because it represents the background of the digit images. In that comparison, a visible stroke is a departure from the baseline. A pixel intensity equal to the baseline supplies no difference of its own in the input. The score for a stroke pixel still depends on how the stroke is processed and on which class score is selected.
For the simulated DNA classification problem, the paper's fixed reference specifies expected base frequencies at each position. In A, C, G, T order, the values are 0.3, 0.2, 0.2, and 0.3. This is an input expressed as a composition across channels. It supplies a different kind of baseline from a sequence made up of specific letters at every location. A feature's input change for the fixed reference is measured relative to the expected background representation at its location.
The paper also considers using shuffled forms of a particular sequence as references. Each shuffle supplies a particular rearranged input, and the authors average the resulting scores. The fixed-composition comparison asks about the departure from the same background distribution at each position. A shuffled comparison uses other arrangements of the observed sequence's content. The explanatory contrast therefore depends on the reference strategy even when both strategies give interpretable results.
On CIFAR10, the authors compare a blurred copy of an image with a zero reference. The blurred copy retains a coarse form of the image, and the resulting explanations highlight outlines of its major objects. With a zero reference, the explanation highlights background pixels the authors find difficult to interpret. The example puts the choice in terms of the comparison a reader wants to make. Features whose effects remain visible relative to a blur can differ from the features that account for the change from a dark starting image.
Track upward and downward effects separately
An intermediate unit can receive a mixture of weighted changes. If upward and downward effects are recorded separately, later nonlinear rules can act on them before they are combined for the explanation.
Δy = Δy⁺ + Δy⁻
Here Δy is the total departure of unit y from its reference. Δy⁺ and Δy⁻ are the positive and negative components under the paper's decomposition. Their sum gives the departure that can be measured directly from the pair of forward evaluations. At a linear unit, the labels are assigned by grouping the terms of the weighted sum by sign.
The same accounting applies to the downstream contribution of the unit.
C(Δy → Δt) = C(Δy⁺ → Δt) + C(Δy⁻ → Δt)
The left side is the contribution C of the change Δy to the target change Δt. The terms on the right give the individual contributions associated with Δy⁺ and Δy⁻. Adding those terms returns the score that would be reported for the unit as a whole. While the components remain separate, they can carry different amounts of target influence per unit of change.
This is a decomposition of incoming effects. For a single scalar activation, the sign of its net change would reveal only which direction won out. The separate terms can reveal that competing signals arrived. A connection with a negative weight can also reverse the direction in which a change influences the next unit. A positive component at an earlier point should therefore be interpreted relative to the operation where it was defined.
When only Linear and Rescale are used, the paper uses the same multiplier from the two components as from the total change. In that setting, keeping the components is consistent with combining their effects before reporting the result. RevealCancel allows the component multipliers to differ. The distinction can then affect which upstream features receive credit, even with the same actual and reference outputs.
Apply the Linear rule to weighted inputs
The Linear rule applies to the weighted computation in a dense layer or convolution, before the nonlinearity. The paper writes this operation as an affine function.
y = b + Σᵢ wᵢxᵢ
Here y is the output of the operation, b is its fixed bias, xᵢ is its input with index i, and wᵢ is that input's weight. The sum runs over all the inputs used by the operation. A convolution uses this kind of weighted sum for its local input region. A dense unit uses the inputs connected to it in the dense layer.
Subtracting the reference evaluation gives the change carried into the next operation.
Δy = Σᵢ wᵢΔxᵢ
The symbols Δy and Δxᵢ denote the output and input departures from their references. The weights wᵢ are the same in both evaluations, and the sum still runs over i. The difference eliminates b because the same bias was added both times. The bias can affect where a nonlinearity turns on and where the reference sits relative to that threshold. Its influence is built into the evaluations, while the change DeepLIFT allocates is due to input departures.
The two components of the linear change can be written by retaining the weighted terms of the corresponding sign.
Δy⁺ = Σᵢ 1{wᵢΔxᵢ > 0} wᵢΔxᵢ
The component Δy⁺ collects terms from inputs i whose weighted deviations wᵢΔxᵢ are greater than 0. The expression 1{condition} is an indicator. It is 1 if the inequality holds and 0 otherwise. Multiplication by the indicator includes the weighted departure when it qualifies.
Δy⁻ = Σᵢ 1{wᵢΔxᵢ < 0} wᵢΔxᵢ
Here Δy⁻ collects weighted deviations below 0. The weight, input departure, index and indicator have the same roles, with the inequality selecting the negative terms. The resulting component includes their signs. Together the components recover the weighted sum for Δy.
If input xᵢ has its own retained components, the positive output grouping can be expressed in terms of them.
Δy⁺ = Σᵢ 1{wᵢΔxᵢ > 0} wᵢ(Δxᵢ⁺ + Δxᵢ⁻)
The expression in parentheses adds the positive and negative components of the departure of input xᵢ. The sum over i uses each input's weight wᵢ and selects the entire weighted term when its net value wᵢΔxᵢ is positive. In this expression, the indicator is decided by the weighted net change, even though the two components are still identifiable.
Δy⁻ = Σᵢ 1{wᵢΔxᵢ < 0} wᵢ(Δxᵢ⁺ + Δxᵢ⁻)
This grouping gives the negative output component Δy⁻. For each i, the components inside the parentheses appear when the weighted net change is negative. The same decision includes or excludes both weighted components. It does not sort them independently according to their own signs after weighting.
The contributions follow from this routing. For the positive output group, the upstream positive component contributes according to the first expression below.
C(Δxᵢ⁺ → Δy⁺) = 1{wᵢΔxᵢ > 0} wᵢΔxᵢ⁺
The function C allocates a portion of Δy⁺ to the positive component Δxᵢ⁺. The indicator tests the net weighted departure of input i. If it is positive, the contribution is the component multiplied by wᵢ. Otherwise the indicator excludes the term.
C(Δxᵢ⁻ → Δy⁺) = 1{wᵢΔxᵢ > 0} wᵢΔxᵢ⁻
This expression uses the same test on wᵢΔxᵢ for the contribution of the negative input component Δxᵢ⁻ to the positive output component Δy⁺. A component can therefore reduce the amount allocated to a group to which the input as a whole contributes positively.
C(Δxᵢ⁺ → Δy⁻) = 1{wᵢΔxᵢ < 0} wᵢΔxᵢ⁺
The positive component Δxᵢ⁺ contributes to the negative output group Δy⁻ when the weighted departure wᵢΔxᵢ is below 0. The contribution is again the selected component times its weight.
C(Δxᵢ⁻ → Δy⁻) = 1{wᵢΔxᵢ < 0} wᵢΔxᵢ⁻
The negative input component Δxᵢ⁻ uses that same condition for a contribution to Δy⁻. In all these expressions, the arrow indicates which component's contribution is being assigned and which output component receives it.
Dividing a contribution by its source departure gives the corresponding multiplier. The two inputs to the positive output group share the same multiplier for a given i.
m(Δxᵢ⁺ → Δy⁺) = m(Δxᵢ⁻ → Δy⁺) = 1{wᵢΔxᵢ > 0} wᵢ
The two expressions involving m denote multipliers from the positive and negative input components to Δy⁺. They both get weight wᵢ if the indicated net change is positive, and the indicator gives zero otherwise. This is the factor multiplying each respective component in its contribution formula.
m(Δxᵢ⁺ → Δy⁻) = m(Δxᵢ⁻ → Δy⁻) = 1{wᵢΔxᵢ < 0} wᵢ
These are the multipliers to the negative output group. The input components and weight have the same roles, while the inequality tests for a negative weighted net departure. The multipliers represent routes through which later rules can attribute a target change to each retained component.
The authors make a special assignment when Δxᵢ is zero. The most direct reading of the sign tests would block both routes. The net departure can vanish while the positive and negative components remain different from zero. Blocking the routes would eliminate information about those terms. The paper instead gives each destination part of the weight.
m(Δxᵢ⁺ → Δy⁺) = m(Δxᵢ⁺ → Δy⁻) = 0.5wᵢ
The input component Δxᵢ⁺ is given the multiplier 0.5 times the connection weight wᵢ to each output component, Δy⁺ and Δy⁻, when Δxᵢ is zero. The paper gives Δxᵢ⁻ the same assignment to both destinations. With opposing parts that cancel, their net contribution under this assignment can still be zero. Their separate paths stay available for use by later rules. This case shows why a rule that conserves the total can still make a substantive choice about which individual effects remain visible.
Use Rescale at a single-input nonlinearity
A ReLU, tanh, or sigmoid takes a scalar input and produces a scalar activation. The preceding linear computation can gather information from many features, but at the immediate step there is only one argument. Write the operation in its usual forward form.
y = f(x)
The variable x is the input activation to the nonlinear operation f, and y is its output. Applying f to x⁰ gives y⁰. The quantities Δx and Δy are the respective differences between their actual and reference values.
Summation-to-delta requires the sole immediate input to account for the local output change.
C(Δx → Δy) = Δy
The term C is the contribution from the input change Δx to the output difference Δy. At this step, it receives all of the change Δy. The separate question is how to carry that change back to the features that produced x.
m(Δx → Δy) = Δy / Δx
The multiplier m is the ratio of output change Δy to input change Δx. It is the slope between the two evaluations on the graph of f when the denominator is non-zero. A derivative at the observed input is the slope there. Between a reference in one region and an actual activation in another, the ratio can preserve an output difference the derivative misses.
Rescale applies this common ratio to both components.
Δy⁺ = (Δy / Δx) Δx⁺ = C(Δx⁺ → Δy⁺)
The input component Δx⁺ is multiplied by the ratio of finite changes to produce Δy⁺. The same term is the contribution C from the positive input component to the corresponding output component. It describes how much of that component's effect is carried through the operation.
Δy⁻ = (Δy / Δx) Δx⁻ = C(Δx⁻ → Δy⁻)
The component Δx⁻ receives the same factor, giving Δy⁻ and the associated contribution. The two component changes together account for the finite movement of the output. The rule lets the magnitudes of the inputs differ while using a common conversion from input change to output change.
m(Δx⁺ → Δy⁺) = m(Δx⁻ → Δy⁻) = m(Δx → Δy) = Δy / Δx
These multipliers m describe the transfer from each input component to its corresponding output component and from net input change to net output change. All are set to the same ratio. This equality is the feature that distinguishes Rescale from the component-specific treatment in RevealCancel.
If the actual input approaches the reference, both the numerator and denominator can be small. The authors describe using a gradient in this region to avoid numerical instability.
m(Δx → Δy) → dy/dx at x = x⁰ as x → x⁰
The arrows indicate approach to a limit. As the actual input x approaches its reference x⁰, the multiplier m from Δx to Δy approaches the derivative dy/dx evaluated at that reference, where the derivative is defined. The derivative measures the local change of output y as input x changes. The limiting treatment gives the finite-change rule a practical calculation near a vanishing denominator.
In the paper's saturation example, take i₁⁰ and i₂⁰ to be 0. When i₁ + i₂ > 1, the intermediate change Δh is −1 and the target change Δy is 1. The resulting multiplier from the intermediate activation h to y is −1, even though the current derivative of y with respect to h is zero. The backward calculation thus has a signal to pass through the part of the network that ordinary differentiation would see as locally flat.
At the biased ReLU, let both the input and output references be 0. The observed input is just above the threshold, at 10 + ε, where ε is a small positive amount. The output increase is ε. Rescale evaluates the transition from the reference to this actual activation as follows.
m(Δx → Δy) = ε / (10 + ε)
Here ε is the amount by which the input x exceeds the threshold 10. The numerator is the output change Δy, and the denominator is the input change Δx because x⁰ is zero. Multiplying this ratio by Δx gives a contribution of ε to the observed input. In the paper's gradient × input account of the same example, the input term is 10 + ε and the bias term is −10. Above the threshold those terms almost offset. In DeepLIFT, the bias was already in the reference computation, and the attributed amount tracks the small output movement.
Follow the cancellation in a network that takes a minimum
Rescale can transmit finite changes through saturation and thresholds while still allocating credit in a way that hides a dependency. The paper uses a network that returns the smaller of two inputs.
o = min(i₁, i₂)
The output o is the minimum of the input values i₁ and i₂. The paper specifies zero references for both inputs. The example of interest shows how two positive inputs can both support a positive minimum even though one of them is larger throughout a local neighborhood.
The network realizes this operation using subtraction and a ReLU. It first computes a difference.
h₁ = i₁ − i₂
The intermediate activation h₁ is the first input i₁ minus the second input i₂. At the reference both inputs are zero. In the observed computation the positive effect from i₁ and the negative effect from i₂ can therefore meet at this unit.
h₂ = max(0, h₁)
The activation h₂ is the rectified value of h₁, with max selecting the larger of zero and h₁. This retains the positive part of the difference. It means that h₂ equals the excess of i₁ over i₂ when i₁ is larger, and remains zero when the difference is negative.
o = i₁ − h₂
The output o subtracts the rectified difference h₂ from i₁. If i₁ is larger, the operation removes the excess and leaves i₂. If i₂ is larger, h₂ is zero and the output stays at i₁. The direct path from i₁ and its indirect path through h₂ are both important to the explanation of how this computation works.
Consider the branch where i₁ > i₂. The Linear rule gives i₁ a contribution of i₁ at h₁ and gives i₂ a contribution of −i₂ there. The ReLU is active, and Rescale gives it multiplier 1 because the reference is zero and the output change equals its input change. The contributions that reached h₁ therefore pass through to h₂ with the same values. At the last subtraction, the direct path from i₁ supplies i₁ and the route through h₂ supplies its negative. The net credit to i₁ is zero, leaving i₂ with the entire output contribution. In the other branch, the attribution goes entirely to i₁.
What disappears in this calculation is the conditional role of the inputs. The negative term from i₂ adjusts h₂ in the displayed branch because the positive term from i₁ is also present. With i₁ still at its zero reference, the effect of adding the negative term by itself would be blocked by the ReLU. A common multiplier evaluates the combined change and carries the two effects through it proportionally. It has no separate place to record this change in the role of i₂ when the other input is absent.
The authors report the same concentration on the smaller input for gradients, gradient × input, Guided Backpropagation, and integrated gradients in the example. A local derivative identifies the input that controls the minimum for a small adjustment at the endpoint. Following the reference-to-input scaling path also keeps the ordering of the two positive inputs throughout the path. The example gives a reason to ask about marginal effects in additional configurations, even when the chosen reference and endpoint stay fixed.
Use RevealCancel to evaluate effects in both orders
At a single-input nonlinearity, the explanation can still treat the positive and negative parts of the argument's change as distinct. RevealCancel measures a component's marginal effect in two contexts. It first considers adding the component to the reference while the other component is absent. It also considers adding it after the other component is in place. The assigned output component is the average of those effects.
Δy⁺ = (1/2)[f(x⁰ + Δx⁺) − f(x⁰)] + (1/2)[f(x⁰ + Δx⁻ + Δx⁺) − f(x⁰ + Δx⁻)]
The function f is the local nonlinearity, x⁰ is its reference argument, and Δx⁺ and Δx⁻ are the retained components of the input departure. In the first bracket, the positive component is added at x⁰. In the second, it is added to the value x⁰ + Δx⁻, which already includes the negative component. The coefficient 1/2 gives equal weight to these two contexts in the assignment of Δy⁺.
Δy⁻ = (1/2)[f(x⁰ + Δx⁻) − f(x⁰)] + (1/2)[f(x⁰ + Δx⁺ + Δx⁻) − f(x⁰ + Δx⁺)]
The output component Δy⁻ is obtained by adding Δx⁻ first to the reference x⁰ alone and then to a reference with Δx⁺ already included. The same function f is evaluated at the indicated arguments. The two brackets are the marginal effects of the negative component in those contexts, again averaged with coefficient 1/2.
In either order, following the two successive marginal effects takes the output from the reference to the full observed activation. The intermediate activation serves as the endpoint of one step and the starting point of the other, so it cancels when the steps are added. Averaging the effects across orders therefore still accounts for the full change. The allocation depends on how the intermediate evaluations differ, which can matter greatly if just one of the terms can push a ReLU past its threshold.
The component changes determine the multipliers through their respective ratios.
m(Δx⁺ → Δy⁺) = C(Δx⁺ → Δy⁺) / Δx⁺ = Δy⁺ / Δx⁺
Here m is the multiplier from the positive input component to the corresponding output component. Its numerator C(Δx⁺ → Δy⁺) is the contribution allocated by the rule, equal to Δy⁺. The denominator is the positive input component Δx⁺ whose effect is being allocated.
m(Δx⁻ → Δy⁻) = Δy⁻ / Δx⁻
The multiplier from the negative input component Δx⁻ to the corresponding output component Δy⁻ uses their ratio. Because the brackets used to calculate Δy⁺ and Δy⁻ can describe different responses, the two component multipliers can differ. The backward chain rule can then give the upstream features that entered through these components different shares of the target change.
The authors relate the calculation to Shapley values, which assign credit by averaging the marginal effect of including something across the possible inclusion orders. In the attribution setting, inclusion means using an actual value in place of a reference value. At a RevealCancel unit, the participants in this calculation are the grouped positive and negative components. The rule evaluates each in both orders. Extending this idea through local multipliers gives an efficient approximation to the broader input-attribution problem. The calculation at each nonlinear unit concerns its two components, while the full network can have many individual inputs whose global inclusion orders would form a different calculation.
For the minimum example, the result of the component-specific calculation is a shared allocation.
C(Δi₁ → Δo) = C(Δi₂ → Δo) = 0.5 min(i₁, i₂)
Here Δi₁ and Δi₂ are the departures of the two inputs from their zero references, and Δo is the departure of the minimum output from its reference. Each C term is an individual input contribution and equals 0.5 times the minimum. The result accounts for the positive output while recognizing the role of both inputs. The difference between this allocation and the Rescale allocation traces back to how the rectified subtraction treats the positive and negative parts when one is introduced without the other.
The local evaluations used in RevealCancel occur at the operation whose multipliers are being computed. They do not require a collection of separate full-network predictions, one for each feature independently included or withheld. This keeps the method compatible with the single backward propagation of contribution multipliers. It also explains why the graph of operations matters. The example makes the dependence visible at a rectifier where the two effects meet, before they proceed along the rest of the computation.
Respect a detector's threshold when it suppresses noise
RevealCancel's ability to expose hidden effects can produce information that is unwelcome in an explanation. The authors consider a thresholded ReLU where an input change below the threshold represents noise. If the combined change leaves the unit inactive, an explanation intended to reflect the detector's decision may reasonably carry no score through that response.
When the output difference is zero and the input change is non-zero, Rescale gives a zero multiplier. Neither retained component carries credit through that step. RevealCancel evaluates the positive part with the negative part temporarily absent. In that partial condition, the positive part may activate the unit. Restoring the negative part can then produce an offsetting effect. The individual assignments can be non-zero even though the full observed argument gives the same output as the reference.
The choice depends on the intended significance of the cancellation. In the minimum network it is the reason to recognize both inputs as contributors. In a local motif detector that has rejected a weak candidate, the same accounting can draw attention to components of a response that the forward computation suppressed. A single attribution can therefore use Rescale for some nonlinearities and RevealCancel for others. The local choice determines whether the backward calculation preserves a canceled signal or respects the suppression of a net response.
Explain a score on the right scale
The target fixes the total available to distribute. For a sigmoid or softmax output, that total reflects the compression or normalization in the final activation. If the question is how strongly the inputs contribute to a class score, the authors suggest considering the linear activation before the final nonlinearity.
o = σ(y)
The symbol σ denotes the sigmoid. Its input y is the logit, the score before the sigmoid is applied. The output o is the bounded activation. Attributions to y explain its reference-relative movement on the linear score scale. Attributions to o must fit the movement on the sigmoid scale.
In the paper's example, the logit is a sum of input activations.
y = x₁ + x₂
The inputs x₁ and x₂ add to the logit y, and the example gives both inputs zero references. This keeps the score before the sigmoid easy to interpret and isolates the effect of the final compression. If the output o is already close to 1, raising the logit further adds little to the output difference available for attribution. The contributions to o then divide a nearly fixed amount among the inputs, although the contributions to the logit itself can continue to increase.
Softmax raises a separate issue about the relationships between class scores. Adding the same amount to every logit leaves the output probabilities unchanged. An unadjusted attribution to a single linear score can include a component of this common movement. The authors propose centering each feature's scores over the classes.
C′(Δx → Δcᵢ) = C(Δx → Δcᵢ) − (1/n) Σⱼ₌₁ⁿ C(Δx → Δcⱼ)
The change Δx belongs to the feature being scored. The change Δcᵢ is the departure of the linear score for class i. The unadjusted contribution is C(Δx → Δcᵢ), and C′ denotes its centered value. The index j in the sum runs from 1 through n, the number of classes, so the second term is the mean contribution of that same feature across all classes. Removing the mean makes the contribution relative to the common movement across the class scores.
Centering concerns each feature's contribution across classes. It gives a score for whether a feature contributes more or less to the chosen class than it does on average to the class logits. A pairwise comparison of class contributions is consistent with this interpretation, since a common term subtracted from both classes disappears in their difference. This is relevant to the digit experiment, where the pixels are ranked according to which of two class scores they favor.
Train the predictors before attributing their outputs
The attribution procedure is applied to fitted predictors. The learned quantities used to make the prediction, such as the weights and biases in the Linear rule, are held fixed while the actual and reference inputs are evaluated. The authors trained a digit classifier on MNIST and a multitask classifier on simulated DNA. For the digit experiment, Keras is the software named for training. The paper also identifies the authors' DeepLIFT implementation.
The digit data provide images whose background supplies a natural zero reference. The network first processes spatial features with convolutions, then passes them through a fully connected stage to produce class scores for the softmax. The experiments ask what happens when particular pixels, identified using a contrast between class scores, are erased. The association between the reference and the background gives concrete meaning to the move from the observed pixel to an erased value.
For DNA, the authors control the training problem by generating background sequences and adding examples of probabilistic motifs, short sequence patterns that can occur in different forms. The labels describe whether GATA1, TAL1, or both kinds are present. A shared network must therefore produce outputs with different dependencies on the same input. This makes it possible to ask whether attributions identify a pattern for a task where it should be relevant and give it less credit for a task associated with the other motif. The same reference and local propagation rules can be used to explain the different outputs.
Experiments and results
Measure what pixel erasure does to a digit prediction
In the MNIST predictor, two convolutional layers feed into a fully connected layer, which in turn feeds the softmax output. The authors use convolutions with stride greater than 1 in place of pooling. They report that this choice did not lower predictive performance. The classifier reaches 99.2% accuracy on the test set. That number measures whether the trained classifier predicts the recorded digit. The attribution experiment measures changes in its responses to edits, using the same trained predictor across the competing explanation methods.
The test starts with an image from an original class and chooses another digit as the target class. For each pixel, a method produces a score for both classes. The ranking uses the contrast between those pixel scores.
S(xᵢ, diff) = S(xᵢ, cₒ) − S(xᵢ, cₜ)
The function S gives the score associated with pixel xᵢ for a specified class. The symbol cₒ is the original class and cₜ is the target. The label diff denotes the difference used to rank the pixels. A positive difference means that the pixel has been scored more favorably for the original digit than for the chosen alternative.
The contrast makes the proposed edit specific to the alternative. A stroke could receive a high score for the original digit and also be useful to the target digit. Its contrast score would depend on the difference between those roles. The order of removal starts with pixels with the largest positive differences and proceeds toward those with smaller positive differences. The authors erase up to 157 pixels, described in the paper as 20% of the image. A pixel without a positive contrast does not qualify for erasure under this procedure.
The outcome is the shift in target-versus-original class log-odds from the initial image to the masked image. Log-odds here express how the scores favor one class relative to the other. A larger shift in favor of the target means the removed pixels were more effective, under this test, at weakening the original interpretation relative to the selected alternative. The evaluation can register a shift even if the top predicted digit stays the same.
The figure includes an original 8, with 3 and 6 as separate target digits. Different strokes can be implicated in the two conversions. The authors chose the displayed image for a particularly large change in the 8-to-6 contrast when gradient × input or integrated gradients supplied the ranking. The aggregate comparison uses boxplots for 1K test images belonging to the original class. The selected image shows what the ranking and erasure look like together. The distributions describe how the changes behave across the evaluated test images.
DeepLIFT with RevealCancel produces the strongest results among the backward attribution methods in the digit comparison. For DeepLIFT and integrated gradients, the reference is the all-zero image. The integrated gradients calculations use the midpoint rule over 5 or 10 evenly spaced intervals. The results at those settings are similar, and the paper also reports that integrated gradients performs comparably to gradient × input. The number of intervals describes the numerical procedure. The comparative outcome is the reported behavior of the log-odds shifts.
The authors interpret the similarity between integrated gradients and gradient × input as a sign that the saturation and threshold failures motivating finite comparisons may be uncommon in this evaluation. Both methods can rank many of the same useful pixels even though one measures gradients along a path and the other uses a gradient at the observed image. RevealCancel's advantage in this test is therefore consistent with a contribution from its different allocation of interacting effects. The authors report that substituting Rescale for RevealCancel on various layers degrades performance.
Guided Backpropagation performs poorly at distinguishing the original digit from the alternative under the erasure test. The authors suggest that discarding negative backward signals could help account for the result. A class contrast can be affected by a pixel that supports the original digit, a pixel that lowers the target score, or a pixel that affects both. The ranking depends on the relative changes for the two classes. Removing negative signals can make part of that contrast less visible to the scoring procedure.
Check how the target scale changes an attribution
The paper's sigmoid example gives exact contribution values for two controlled settings. This example concerns a constructed score calculation, while the digit experiment uses class log-odds after pixel erasure. In the sigmoid calculation, the authors hold the reference fixed and change the inputs to the same additive logit. They then compare the contribution that DeepLIFT assigns to x₁ when the selected output is the sigmoid.
At x₁ = 50 and x₂ = 0, the sigmoid is already very close to 1. The paper gives probability-output contributions of 0.5 for x₁ and 0 for x₂. At x₁ = 100 and x₂ = 100, the output remains very close to 1. The reported contribution is 0.25 for each input. The comparison shows an input becoming larger while receiving less of the probability change because the score must account for the contribution of another input within the compressed output range.
Constructed sigmoid example, DeepLIFT contribution from x₁ to the probability output
The input with the larger activation receives a smaller share of the saturated output change.
The numbers
| System or setting | contribution to sigmoid output |
|---|---|
| DeepLIFT with x₁ = 50 and x₂ = 0 (this paper) | 0.5 |
| DeepLIFT with x₁ = 100 and x₂ = 100 | 0.25 |
The chart compares the magnitude of one feature's attribution. Its direction and star identify the larger displayed contribution, without ranking the two predictions or the quality of the explanations. The usefulness of this numerical comparison is that the score can shrink while the evidence entering the logit grows. The authors use the example to motivate explaining the logit when the aim is to compare the strength of input evidence across examples. With a probability as the target, summation-to-delta correctly preserves the compressed total.
Create a sequence task with known predictive patterns
The sequence study is motivated by regulatory DNA, where proteins can bind to short patterns in a sequence. A motif describes a family of related patterns with different degrees of match. The paper selects motifs for GATA1 and TAL1 and builds a simulation that makes their relationship to the prediction tasks explicit. The resulting sequences can include both planted matches and accidental matches in the sampled background. This allows the authors to check both what an attribution recovers and where a scoring rule gives excessive importance.
Each background sequence has length 200. The authors sample A, C, G, and T at each position with respective probabilities 0.3, 0.2, 0.2, and 0.3. Instances of the two motifs are sampled from previously established probability distributions for the patterns. The generator inserts 0-3 instances of a given motif at randomly selected positions, with the placements prevented from overlapping. Since examples come from distributions, the strength of a match can vary even among the inserted instances.
A share of 1/4 of the generated sequences contains both motifs and has label 111. A share of 1/4 contains only GATA1 and has label 010. Another 1/4 contains only TAL1 and has label 001. The sequences with neither motif, labeled 000, also form 1/4 of the generated data. The entries of the label indicate the joint condition, the GATA1 condition, and the TAL1 condition, respectively. A sequence with both types therefore satisfies the separate presence conditions as well as the joint one. The results can be read by these task names across the experiment's numbering conventions.
The trained sequence network includes a pair of convolutional layers, a global average pooling operation, and a single fully connected layer. Global average pooling aggregates responses across positions. The shared processing serves 3 binary tasks. A pattern that helps predict TAL1 presence can be relevant whether or not GATA1 occurs elsewhere. For the joint output, the same pattern's role depends on whether evidence for the other motif is also available. The label design thus creates a way to test if an attribution distinguishes detecting a local pattern from combining it with other evidence.
The expected frequency input is used as the reference for DeepLIFT and integrated gradients. The authors also apply it to the input factor in gradient × input and Guided Backpropagation × input. In those names, the input factor for the DNA comparison is the departure from the common reference. This makes the comparison informative about the methods' different backward signals. The authors use the weighted version of Guided Backpropagation because it gives better results on their DNA sequence inputs than unweighted Guided Backpropagation.
Relate the importance of a subsequence to the strength of its match
The motif distributions give the authors a measure of how well a subsequence fits a motif independently of the attribution assigned by a prediction method. A motif log-odds score compares how likely a subsequence is under the motif distribution with how likely it is under the background distribution. The authors rank matches using this criterion and keep the top 5 for each motif in each test sequence. For each selected match, they total the contribution scores for the subsequence and examine that importance for the different outputs.
The axes in the resulting plots answer different questions. Match log-odds indicate how compatible the subsequence is with the motif relative to background. The total importance assigned to that region indicates how the chosen backward method credits it for a task. A strong match can be a good instance of TAL1 while being unhelpful for the GATA1 output. Conversely, a weak match could receive a large attribution if it triggers a particular detector or if a scoring rule amplifies its local response. Reading the axes together helps distinguish these possibilities.
The authors look for high credit to TAL1 matches under the TAL1 output and low credit under the GATA1 output. They expect the corresponding task specificity for GATA1 matches. Within a relevant task, stronger matches should generally receive more importance. For the joint output, both kinds of recognizable motif should receive credit. The intended pattern of cooperation is that a TAL1 match receives more credit when GATA1 is present as well than when TAL1 is the only motif inserted. The same distinction applies to the role of GATA1 in the presence or absence of TAL1.
The scatter plots mark the generated categories so these contextual differences can be seen among matches of comparable strength. A method could identify a pattern at a plausible location across many sequences and still give it nearly the same credit regardless of whether the other required pattern is present. That would be a good indication of position with weak evidence of cooperation. Conversely, allowing a motif score to depend on what appears elsewhere in the sequence can reveal the joint nature of the task.
Inspect threshold effects and missing relevance
Guided Backpropagation × input gives positive importance to TAL1 matches for the GATA1 task, where the planted label rule gives TAL1 no such role. For the joint output its scores also fail to show the desired separation between sequences with both motifs and those containing only TAL1. The two observations concern different weaknesses. One is inappropriate credit under another task. The other is insufficient distinction between the contexts in which the same motif is observed for a task that requires both.
Gradient × input and Guided Backpropagation × input show a sharp increase in importance around a motif log-odds of 7. At stronger match scores, their attributions show relatively little further differentiation. The other evaluated methods show a more gradual progression. The paper connects the sudden rise to the rectifier threshold example. A match can cross a threshold that changes the backward derivative substantially while making a relatively small change to an activation. Weighting by the input departure can then give a weak match undue credit. The authors also note the comparatively inflated attribution scale of these two weighted methods in the plots.
A displayed sequence contains both inserted motifs and a weaker chance match to TAL1. The annotations identify the inserted GATA1 and TAL1 sites and indicate the incidental match separately. This example lets a reader inspect whether an attribution puts the main emphasis on the planted patterns for the joint task or prominently credits background sequence that resembles a motif. Different scores for the same letters reflect how the methods handle the activations involved, even though every method examines the same trained predictor and sequence.
The authors separately look for a strong match whose total importance is nonpositive on the joint task. For this diagnostic they restrict the test sequences to cases with both planted motif types and examine TAL1 matches with log-odds greater than 7. A total attribution of 0 or below is counted as a missed positive contribution. Gradient × input, integrated gradients, and DeepLIFT using Rescale can occasionally miss TAL1 under these conditions. The figure caption reports no false negatives for DeepLIFT with RevealCancel or for Guided Backpropagation × input on this diagnostic.
The other results are needed to interpret that success for the weighted Guided Backpropagation variant. A method can give positive importance to all the strong matches examined for the joint task while assigning positive importance in contexts where the motif is irrelevant. Here the scores for the GATA1 task exhibit that problem for TAL1, and the joint-task comparison shows a weak distinction between contexts with different planted patterns. The diagnostic on strong matches measures omissions within a specified subset. Task specificity and response to match strength address additional properties of the allocation.
Compare where DeepLIFT applies each nonlinear rule
The sequence experiments compare Rescale throughout, RevealCancel throughout, and a hybrid that uses Rescale in the convolutional layers and RevealCancel in the fully connected layer. The hybrid reduces visible noise relative to RevealCancel throughout. Applying RevealCancel in the fully connected layer also recovers TAL1 relevance in the joint task when attribution with Rescale alone can fail to do so. The two findings concern different kinds of credit at different stages of the same computation.
The authors suggest that convolutional units act as local motif detectors in this setting. A response that remains inactive can indicate that the surrounding input failed to produce a meaningful detection. In that case, the finite-change multiplier of Rescale suppresses attribution through responses that did not change. RevealCancel can expose partially offset components of those responses. Useful local filtering is therefore a plausible explanation for why keeping Rescale in the convolutions makes the sequence maps cleaner.
The fully connected stage combines evidence relevant to the tasks. For a joint output, a detected pattern can deserve credit because of evidence for another pattern elsewhere. The paper's minimum example gives a concrete mechanism for losing a contribution when an explanation considers only the combined change at a nonlinearity. In the sequence results, preserving separate signals at the combination stage gives a clearer account of the role of TAL1. The hybrid retains that benefit where the task calls for integration and reduces the scattered attribution associated with applying RevealCancel earlier.
The authors also observe bands in the RevealCancel scores. They connect this feature to cases with multiple instances of a motif in the same sequence. When several TAL1 instances help establish presence, the attribution for that presence is shared across the instances. Accordingly, motif log-odds alone do not determine the credit for an individual occurrence. Its score also reflects how much other evidence for the same motif is available when the selected task is explained.
The two applications reward different uses of the attribution. The MNIST result concerns a ranking of image edits that move a chosen class contrast, with the strongest reported performance from RevealCancel. The sequence study shows that exposing cancellation can help at the stage that combines evidence while adding noise where local responses are formed. The hybrid retains the joint relevance that can disappear with Rescale alone and gives cleaner local explanations than RevealCancel throughout on the simulated DNA task.
What the ablations show
Changing where RevealCancel is used
The most informative comparisons hold the trained network fixed and change the rule used to explain it. This matters because the forward computations in the comparisons remain identical. A digit gets the same scores before any pixels are removed, and a sequence gets the same set of task outputs before its motifs are scored. The difference appears in the allocation of credit. The attribution rule can favor different pixels for removal or emphasize different subsequences even though it starts from the same prediction. On MNIST the consequences can be measured by running the classifier again after the suggested erasure. In the sequence study they can be seen in where the scores land and how they change with the task.
The MNIST comparison isolates a choice inside DeepLIFT that a comparison with another attribution method would leave open. The authors replace RevealCancel with Rescale at various layers and observe a decline in performance on the erasure test. Both settings use the blank reference and explain departures from it. Both propagate multipliers and account for the target change. The result therefore concerns the usefulness of the allocation produced by the nonlinear rules. For the class contrasts studied, the treatment of opposing changes can affect which strokes are selected, even with the same accounting total and the same input and target.
One way to see the significance of the result is to consider the boundary of the erasure mask. A change in a pixel's attribution can matter very little if the pixel is firmly within the set to be erased under either rule. A changed score near the end of the ranking can alter which pixels are removed. A change of sign in the pixel's contrast score can also alter its eligibility. Thus success in this experiment depends on the relative ordering and signs of the pixel scores. The sum of the attributions does not provide this information. Nor does an improvement in the outcome of the erasure show where in the ordering the useful changes occurred. The paper establishes a difference between rule settings at the level of the resulting edits.
The interpretation in terms of cancellation has a basis in RevealCancel's calculation, but the erasure comparison does not identify an individual dependency for every selected stroke. The evaluation ends with the change in a class contrast. A better mask can arise from improved assignments in a small region, from changes across several strokes, or from the way the scores for the original and target digits differ. The minimum network provides an example where the path that causes the difference can be tracked exactly. MNIST supplies evidence of a benefit when the same rule is used in a trained image classifier, where many paths contribute and the experiment measures their combined effect.
The sequence comparison gives more information about where the explanation benefits from distinguishing the components. The two DeepLIFT settings that use RevealCancel at the fully connected stage differ in how the convolutional nonlinearities are handled. Using Rescale in the convolutions gives cleaner maps. Since the two settings still handle cancellation at the fully connected stage in the same way, the difference in background activity points to the earlier application of RevealCancel. Reading that comparison together with the all-Rescale setting is important. It shows that the useful result is associated with the placement of the rule, rather than with adding or removing a general capacity for reference-relative attribution.
In the authors' interpretation, a convolutional unit can reject a candidate for a motif even if the terms that reach it have substantial magnitudes. It rejects the candidate on the basis of their combined effect. An attribution that lets opposite terms cross the threshold in separate evaluations can give each a visible score in a region where the detector's actual response was suppressed. Keeping Rescale at that operation can remove such scores. This account connects the appearance of the maps to a particular mathematical feature of the rule. The comparison establishes the reduction in visible noise, while the account of detector behavior explains how that reduction could arise.
The interpretation also depends on what counts as noise for the question being asked. If the task is to find recognizable evidence on which the joint prediction rests, the movements of components in a rejected local candidate can obscure the relevant locations. If the question were why a particular candidate failed to produce a response, those same components could be the subject of interest. Their treatment matters here because the study evaluates scores as evidence assigned to matches for designated tasks. The local rule governs whether the explanation includes the effects of terms considered in partial configurations that could have led to a response.
At the combination stage, the relationship between the two motif families changes the interpretation of a canceled term. Credit for TAL1 on the joint task depends on evidence associated with GATA1 as well. The comparisons where TAL1 receives a nonpositive total despite a strong match and both motifs being present are especially informative. Rescale throughout the network already replaces endpoint gradients with finite-change multipliers. The missed credit under that setting therefore shows that correcting endpoint sensitivity leaves an allocation problem in this particular task. Applying RevealCancel at the fully connected stage addresses that problem in the cases the authors report.
The all-RevealCancel and hybrid analyses also show how two desirable properties can coexist. Reducing scattered scores in the convolutional part of the explanation need not entail losing the recovered TAL1 contribution. Conversely, recovering the strong pattern does not require making every weak response visible. The two comparisons together give a more specific result than a single ranking of attribution methods. They locate the helpful change in one part of the backward computation and the noisy change in another. Their evidential scope is the sequence predictor and the attribution diagnostics used in the study.
There is consequently a different way to read the image and sequence outcomes than to ask which rule won overall. On MNIST the intervention rewards the allocation that best identifies pixels whose erasure shifts a particular class comparison. In the DNA simulation the plots allow the authors to inspect foreground and background evidence separately and to distinguish a detector's response from the role of that response under another output. Different outcomes for local rule placement are compatible with those differences in how evidence is combined and how explanations are assessed. The paper supplies empirical grounds for the rule choices in these settings, with the detector account offered as an explanation of the sequence result.
What agreement between gradient baselines can establish
The integration comparison addresses a practical question about the MNIST baseline. The path integral is calculated numerically, so its approximation depends on how the path is divided. The authors compare the midpoint calculations using 5 and 10 intervals on the same digit-erasure test. Their similar results reduce the plausibility that the particular comparison with RevealCancel is explained by the coarsest resolution tried. This is a check on the explanation ranking obtained with the numerical procedure. It is useful because the difference between attribution methods could otherwise be confounded with an unstable approximation in one of them.
The outcome being checked matters for the inference. Similar class shifts can occur when the rankings are similar, and also when different pixels produce comparable effects once erased. A stable erasure result across interval settings therefore provides evidence of stability for that test. It gives less information about whether the two numerical integrations agree at every pixel. A small error in a pixel score could go unnoticed if it does not affect the mask, and a larger change in rank could go unnoticed if enough redundant stroke evidence remains among the selected pixels. The authors interpret the agreement in terms of the experimental result, for which the outcome after masking is the quantity that was compared.
There is a separate comparison between path integration and gradient × input on the same images. With a zero reference, both procedures incorporate the observed pixel intensity but differ in the gradient information they use. The path calculation can accumulate effects in parts of the path where the endpoint derivative gives little indication of an earlier change. The similar digit-erasure results suggest that this difference provides limited leverage in that evaluation. That is the basis for the authors' suggestion that the motivating saturation and threshold failures are uncommon on MNIST in the sense relevant to their test.
Agreement on the erasure test cannot give a frequency for saturated units or threshold crossings. The relevant question is whether such events affect the method's ability to rank discriminating pixels. Internal differences might be real yet leave the contrast ranking substantially intact. Aggregate similarity can also coexist with a case in which one procedure does much better than the other. The comparison thus helps interpret the gain from RevealCancel without establishing that the digit network lacks the types of nonlinear behavior used to motivate the paper.
The sequence plots provide a place where the expected threshold effect is visible more directly. A group of matches spanning a range of independently scored strengths can show whether the assigned importance changes abruptly as the match becomes more convincing. If weak matches begin receiving large scores near a common region of the horizontal axis, followed by little discrimination at higher strengths, the attribution is behaving in a way the biased rectifier example makes intelligible. Multiplying by a reference-relative input factor retains the endpoint backward signal. Sharing the background reference consequently does not remove a difference in how sharply that signal is passed through an activation.
The authors are able to make a narrower comparison here than a claim that gradient methods always inflate weak signals. Two of the sequence baselines share the abrupt profile. Other methods show a more gradual response in the plots. The connection to a threshold is an interpretation supported by that profile and by the worked example. The match score describes the subsequence under the motif and background distributions. It is not a direct recording of the input of a specific hidden unit. The experimental comparison locates the artifact in the relationship between reported sequence strength and assigned credit, without assigning the same activation threshold to every convolutional unit.
The presence of integrated gradients among the methods that can occasionally miss TAL1 on the joint task further separates the diagnostics. Including gradients from earlier portions of a path can mitigate the problem of relying on an endpoint derivative. It can still leave one pattern without positive credit when a joint prediction is explained by following that path. The rule replacement within DeepLIFT supplies another instance of the same distinction. This is the empirical counterpart of the minimum example, where a path can correctly track the full change and still favor one input exclusively. The sequence data point to omissions of this kind without requiring the trained network to compute an exact minimum.
Score signs, match context, and repeated evidence
The strong-match diagnostic answers a precisely bounded question. With both kinds of motif inserted and TAL1 in the strong-match subset, does the explanation give that match a positive total for the joint output? A method can do well here by giving many TAL1 regions positive scores. The rest of the evaluation makes it possible to see when such a tendency goes too far. Guided Backpropagation × input avoids the reported omissions on that subset, yet its TAL1 scores under the GATA1 task and its joint-task scores across insertion categories expose shortcomings that the sign diagnostic alone would miss.
This illustrates an asymmetry in the checks. A total above the cutoff is sufficient to pass the strong-match test. It can still be too large for a weak match, poorly distinguished across sequence contexts, or assigned to an output whose label concerns the other motif family. The joint-task comparison across categories asks whether surrounding evidence changes the role of the same kind of match. The comparison across outputs asks whether the allocation follows the question the predictor is answering. Those additional dimensions help distinguish recovery of joint relevance from a general willingness to score conspicuous sequence patterns positively.
The visible score bands raise a different issue about what a motif-level metric can establish. The authors associate the bands with repeated occurrences of a motif. With several contributors to a presence prediction, the score available for that evidence can be distributed among the occurrences. Accordingly, reading the distribution of importance solely as a function of match log-odds would leave out a variable that the trained computation uses, namely the other evidence available in the sequence. The supplementary analysis links the grouping in the scores to this property of the input. It gives a different explanation for the bands from the threshold account used for the abrupt increase in the gradient-based plots.
The distinction matters when comparing strong and weak matches. A strong occurrence can have a modest share in a sequence where several other occurrences contribute to establishing presence. A weaker incidental match that receives a large attribution near the abrupt rise raises a separate question about the propagation rule and the detector's response. Both cases can depart from a simple increasing curve. The former can reflect the sharing of evidence. The latter can reflect amplification around a threshold. The labels and sequence examples help the authors assign these interpretations without treating every departure from a smooth trend as the same defect.
The repeated-instance analysis also narrows what the experiments show about cooperation. The main test for cooperation concerns the role of one motif family when the other is available. When several instances of one family are present, there is also a question about how the explanation allocates that family's share. These are different relationships. Recognition of the complementary family can increase the relevance of TAL1 to the joint prediction, while sharing among TAL1 occurrences can limit the amount received by any one of them. An attribution at a single match can therefore reflect both the dependence across families and the availability of similar evidence within its own family.
Comparisons that change the meaning of the score
The reference and target examples vary parts of the explanatory question itself. The rule-placement comparisons ask how to distribute credit for a fixed output departure. A reference change can alter the departure that has to be explained, as well as the activation differences through which it is allocated. A target change can alter the quantity being measured. Interpreting these examples in the same way as a competition among attribution rules would miss what was varied. Their role is to demonstrate sensitivity to the setup and to motivate reporting the comparison along with the scores.
The CIFAR10 comparison is qualitative. When the reference carries a blurred version of the image, the sharp structures of the actual image are departures from a background that already contains coarse information about the scene. A zero reference leaves the rest of the image content in the comparison too. The authors report that the former draws out object outlines and the latter gives attention to background pixels that are difficult to interpret. This tells a reader what the authors saw when they changed the baseline. A claim about whether either map more faithfully follows a classifier under edits would require a measure of the kind used on the digits, applied to this image setting.
The two DNA reference constructions likewise change the comparison. Channel frequencies supply the same starting composition at each location, while a rearrangement of a sequence supplies a concrete arrangement of its letters. Averaging scores across rearrangements brings several such comparisons into the explanation. The paper describes both choices as giving sensible results. The pertinent conclusion is that a fixed input of background frequencies is not the only usable reference for these sequence tasks. The paper does not give a quantitative rule for choosing between the alternatives or a measure of agreement across individual shuffles.
The sigmoid example isolates another source of variation by fixing the reference and following the effect of bounded output. A contribution at the sigmoid is constrained by the available change of that activation. When the output is already very near its ceiling, adding evidence on the logit scale can change how credit is divided without allowing the total probability change to grow appreciably. The reported example therefore makes the interpretation of score magnitude conditional on the target. This is a direct consequence of the quantity that summation-to-delta conserves. It does not require a failure of numerical approximation or the loss of an internal signal during propagation.
A related point applies to the centering proposed before softmax. The paper's justification is that a shift common to all linear scores has no effect on the probabilities. For a class contrast, the common part is already removed by the subtraction. This clarifies why an evaluation based on the difference between two classes can tell a different story from examining the darkest or brightest areas of an attribution map for one class. Common evidence can be prominent in the latter view and have little bearing on the ranking of pixels for the contrast. The output quantity is a real choice about what the experiment asks an explanation to recover.
Limitations
Limits stated by the authors
The paper leaves empirical reference selection open. Its examples rely on knowing something about the input and the question. The blank image expresses absence of a digit stroke, and the frequency reference expresses background composition under the generator. The blurred image illustrates a comparison chosen to retain some structure while losing finer detail. These choices are intelligible because the reader can describe what the reference represents. The attribution equations take that representation as given. They provide a way to compute the consequences of choosing a baseline, instead of a criterion for selecting a baseline from data.
The reference question becomes more demanding when there are several plausible meanings of absence. In the sequence study, an expected composition supplies a common baseline for all positions and all sequences. A shuffle keeps the letters of the observed sequence available but uses them in another arrangement. If the aim is to set aside composition and investigate arrangement, the two kinds of comparison naturally have different interpretations. The forward reference output can differ accordingly. The limitation the authors identify is substantive because the network's response to the reference is part of every reported attribution, including for features far from the eventual location of interest.
The paper suggests considering multiple references where appropriate. For an individual sequence, attraction to one particular shuffled arrangement can be reduced by averaging over several of them. The resulting interpretation still rests on the family of rearrangements used. If those rearrangements retain evidence that affects the output, the reference outputs reflect it. This dependence follows from performing a coherent comparison for each reference. Averaging also entails evaluating the chosen references and obtaining the associated scores. The single backward pass describes the computation for a target and reference after the forward activations are available. It does not turn a collection of reference comparisons into the same amount of work as a single one.
Recurrent networks are another explicit open problem. The authors point to saturating sigmoid and tanh operations as a reason reference-relative signals may be valuable in recurrent computation. Their demonstration concerns behavior at nonlinear operations and how local multipliers can carry a finite change. Applying those ideas in a recurrent architecture would also require an account of how comparisons and contribution rules operate across the repeated computation. The paper identifies the application as a future question. The sequence experiment supplies evidence about a convolutional network with global average pooling, in spite of the fact that its inputs have a sequential form.
The distinction between sequence data and recurrent computation is important for interpreting transfer. An attribution at a base position in the simulation can be traced through the shared convolutional features used by the trained predictor. The experiment does not exercise a recurrent state that carries changes through a series of positions. A successful explanation of the joint task consequently establishes something about evidence gathered and combined in the tested network. The stated motivation for studying a recurrent extension comes from properties that can occur in its activations. It remains a motivation rather than a reported evaluation of the extension.
The authors also ask how to propagate importance through maximum operations beyond falling back on gradients. They name Maxout and Maxpooling as cases of interest. Their Linear rule handles weighted sums with fixed weights. Rescale and RevealCancel in the form presented here address scalar nonlinearities. A maximum taken over several inputs can change which input determines the output across the comparison. An attribution rule has to decide how to account for that competition. A derivative at the observed maximum can identify the currently selected input, leaving open the kind of credit-allocation question the rest of the paper is concerned with.
The architectures in the main experiments let the authors study other parts of their proposal while leaving that problem open. In the digit network, strided convolutions perform the spatial reduction for which pooling could otherwise be used. In the sequence predictor, the specified pooling is an average. The constructed minimum example is valuable for understanding the effect of a chosen implementation on attribution, but its rectified subtraction is a particular graph with particular rules. The example demonstrates that the treatment of cancellation can affect credit. It does not supply a comparison of propagation schemes for maximum pooling over arbitrary inputs.
The authors also state a qualification to the use of RevealCancel. A threshold may exist to keep weak activity from propagating. A partial evaluation can show an effect of a component under conditions in which the observed combined signal was rejected. For some tasks this effect reveals just the dependency a reader wants to see. For others it gives noise a visible score. The paper motivates the hybrid in terms of this qualification and finds that its local maps are cleaner on the sequence problem. It leaves the choice of rule at other thresholds to the intended interpretation and evidence from the application.
The tradeoff is especially relevant where a region with little net output change is assigned substantial opposing contributions. Summation-to-delta allows this allocation. If the components compensate, the displayed net amount remains consistent with the two forward evaluations. That bookkeeping is valuable when the compensation itself matters. The same feature can produce a map that draws attention away from successful detections. The paper offers both allocations because the property to preserve depends on the role of the unit. The threshold example explains how the tradeoff can arise, while the experiments give a concrete setting in which rule placement affects the result.
Evidential limits of the accounting framework
Contributions that satisfy summation-to-delta meet an exact accounting requirement. The sum specifies which quantity all the features collectively explain. A valid sum permits multiple assignments to the features, as the paper demonstrates by giving different allocations for the same minimum. An interpretation of any individual score therefore has to invoke the rule that produced it. A large share under RevealCancel reflects its treatment of the marginal effects of the groups at nonlinearities. A large share under Rescale reflects the propagation of a common finite-change multiplier where the rule is applied. Both can account for the same target departure.
The minimum comparison makes it possible to say why a shared attribution may be desirable. With positive inputs and a zero reference, the positive minimum requires both inputs. In a small neighborhood away from a tie, the larger input has no influence on the value of the minimum. These are properties of different comparisons. The common allocation rule yields a result aligned with whichever input controls the minimum in the worked branch. RevealCancel recognizes a role for the other input through the way the computation combines the two changes. The paper's preference depends on wanting the explanation to express that joint role. The final total alone provides no grounds for that preference.
This has consequences for how an attributor's score can be used as evidence about an edit. DeepLIFT distributes the outcome of a joint move from a reference to an observed input. A score for one feature is a share of that movement. Editing just that feature back to its reference while keeping all other features observed defines a particular intervention with its own outcome. In a network with interactions, the two quantities can differ. The paper's saturation example shows how a group can receive a non-zero joint allocation even though the separate removals are ineffective. The fact that a feature has a share need not imply that removing it alone would create a change of the same magnitude.
An analogous qualification applies when reading signs. A positive attribution describes a contribution in the positive direction for the selected target and reference. At an intermediate nonlinearity, RevealCancel calculates effects using configurations with one component present before the other. These are legitimate function evaluations within the rule. Their interpretation is local to the operation and its component decomposition. They do not amount to a catalog of how the full network behaves when each input feature is independently altered. An allocation can thus be helpful for distinguishing supportive from opposing effects while a direct deletion experiment answers a separate behavioral question.
The connection to Shapley values has the same boundary. Each RevealCancel calculation averages over the orderings of its grouped positive and negative components. The participants in a global feature allocation would be the original features. An ordering of those features can change several internal activations together, including the signs of changes entering later units. The backward chain rule organizes an efficient approximation based on the local rules. Exactness of the averaging for the local participants does not confer exactness over all global feature orders. The paper presents the relationship as an approximation, and the experimental comparisons are evidence about the behavior of the propagated scores.
The distinction between the function and its representation is also relevant. The local rules are defined by the operations the network uses. In the minimum example it is the rectified subtraction that gives the positive and negative components their specific roles. The paper shows how the attribution is obtained through that computation. It gives no general result that equivalent computations expressed through different arrangements of operations will give identical feature scores. The reference-relative target change would be the same if the forward functions agreed on the actual and reference inputs. That agreement constrains the total. The individual scores still depend on the local allocation along the graph provided to the procedure.
There is a related scope condition on explanations at intermediate layers. A full set whose activations determine the target can be used for the accounting that the paper defines. Picking only one unit in that set and inspecting its contribution isolates a part of the allocation. If several paths carry related information, a single unit's credit may understate the amount attributed across the full set, or a large share may reflect compensation with another path. The method supports tracing scores through hidden activations. The existence of such a trace on its own does not establish which set of components constitutes a complete explanation of the behavior.
Evidential limits of the image test
The MNIST benchmark has a clear behavioral outcome. It takes a ranking associated with a class contrast and asks how the classifier's preference changes when high-ranked positive evidence is erased. This supports claims about the usefulness of the ranking for making that edit. Erasure supplies a particular intervention and a particular replacement value. It tests the network's responses to the resulting masks, including masks that can change several pieces of a stroke at once. The resulting shift does not separately measure the effect of each selected pixel or show that the classifier would respond similarly to other alterations of the image.
The removal budget and the restriction to positive contrast scores are part of that scope. A ranking may identify informative pixels early and still place other relevant pixels poorly farther down. If only the early pixels are erased, the measurement chiefly reflects that part of the ordering. Conversely, methods can select a different number of pixels if positive differences run out. Their results reflect the rules of the masking procedure and the scores supplied to it. The paper's conclusion about RevealCancel is justified for these edits and the reported shifts in relative class scores. A general ranking of entire attribution maps would need evidence about portions of the maps the test leaves untouched.
There is also a difference between shifting a classifier's preference and producing an image a person would recognize as the intended alternative. The paper uses the term conversion in describing the erasures. Its measured result is a change in the class log-odds, which is available whether or not the target becomes the top prediction. An image can lose evidence for its original class without gaining visual evidence that a person would read as the target digit. The example images allow a qualitative look at the edits. The aggregate test evaluates changed classifier output. It does not give an independent measure of the naturalness or legibility of the edited digits.
The selection of the displayed image also guides how to use it. The authors choose an example according to a large shift under the ranking from gradient × input or integrated gradients for the displayed conversion to 6. It is therefore especially informative for seeing how the procedures' masks compare on a case selected by that criterion. The aggregate plots supply the evidence about the distribution over test images. Neither the displayed digit nor the number of images in the aggregate tells a reader the exact improvement of RevealCancel in a summary statistic that the paper does not state numerically.
The classifier's test accuracy describes the recognizer's predictive performance before the attribution interventions. A high value can establish that the network is solving the digit task well on its test set. The attribution comparison, however, uses that fixed recognition behavior as the object of investigation. Each procedure can assign different scores for the same correctly or incorrectly recognized image. Reporting test accuracy alongside the erasure outcome provides context for the underlying computation. It does not turn the accuracy measure into an independent validation of any method's explanation.
Evidential limits of the sequence test
The sequence simulation fixes the intended role of each motif family in the labels. This makes otherwise ambiguous attribution failures easier to discuss. If TAL1 receives a large positive score for the GATA1 presence task, the generator supplies a reason to examine that result. A trained predictor can still respond to features that resemble a motif by chance or use evidence that only approximates the label rule. The known generator tells the reader what information was designed to matter. The attribution is directed at the learned computation. A discrepancy can reflect a feature of that computation, an allocation artifact, or contributions from both.
The paper's diagnostics help with this distinction through comparisons on a common predictor. If competing scoring rules give very different credit to the same weak match, the discrepancy is associated with the explanatory procedures: they all see the same sequence and output. Which score best describes the match's role may still depend on the explanation question. A high gradient signal can accurately describe an endpoint sensitivity even when the paper regards it as an inflated share of the finite change. A reference-relative allocation shares a different quantity. The fixed predictor makes method comparisons meaningful without supplying a unique correct number for every motif instance.
The motivation comes from regulatory DNA, but the evidence supports claims about the study's predictive tasks. The observed cooperation concerns the joint label and the score given to a match in the presence of the other motif family. The simulation defines that dependence. It does not measure how the corresponding proteins interact in a biological system or establish that the attributed positions cause differences in regulatory activity. The plantings provide the control needed for the paper's comparisons. That control is also what bounds the inference to the problem set up by the generator.
The motif-strength comparison has its own selection condition. The analysis uses the highest-ranking matches per motif in each test sequence. This makes the plots legible and focuses attention on credible candidates, yet the chosen matches do not span every position or every weak background substring. A method can appear noisy at some highlighted matches without the plots quantifying how much attribution falls over all remaining regions. A clean appearance in a sequence figure is also a local observation about a displayed example. The paper uses these views to diagnose behavior. It gives no complete numerical inventory of attribution across the full input.
Likewise, judging the sign of the total on a strong match can hide the allocation within that match. Several positions may contribute upward and others downward. Their combined score determines whether the importance passes the diagnostic, so different positionwise maps could produce the same outcome. This is appropriate for a test concerned with whether a motif region receives positive credit. It limits conclusions about how faithfully the explanation assigns weight to individual letters within the region. The displayed sequence provides a finer illustration. The aggregate strong-match check measures the sign of a region total under its conditions.
Even before positions are aggregated, task relevance and raw strength have distinct meanings. The log-odds of a match are measured against the background sequence distribution. They estimate how well a candidate fits a motif. An importance score is conditional on the target being explained and on what other evidence is present. The authors reasonably expect stronger compatible matches to tend toward higher scores when the task calls for them, and use large jumps as a diagnostic. A requirement that attribution be a strictly increasing function of raw match strength across every sequence would ignore the credit-sharing phenomenon the authors observe. The evaluation is persuasive where it uses these measures together.
There is also a numerical boundary on comparisons of the strongest findings. The paper reports qualitatively which methods can omit positive TAL1 credit and which avoid that failure on the designated subset. It provides plots of importance against strength and highlights examples of excessive scoring. Exact attribution gaps between methods are not supplied as a printed set of point estimates for these results. The threshold and match-selection settings identify which observations enter the analysis, while the reported directions and the presence or absence of errors describe outcomes. Turning a visible separation in a scatter plot into a numerical effect size would go beyond the reporting.
Evidential limits of efficiency and numerical behavior
DeepLIFT's efficiency claim follows from the structure of its calculation. Once the actual and reference activations are available, a backward traversal combines the multipliers for a selected target. Evaluating a function at partial component values under RevealCancel adds work locally without requiring a separate full input perturbation for each feature. This supports the paper's distinction between backward attribution, repeated forward editing, and numerical integration along a path. The comparative claim is about the operations needed. The experiments do not report elapsed times that would establish a speed ratio on the digit or sequence task.
The amount of computation in use also depends on the question being asked. The digit ranking needs attribution scores for the original and alternative classes. Explanations averaged over shuffled references need the comparisons associated with those shuffles. An attribution procedure that obtains feature contributions together still has these dimensions of scope. Interpreting the efficiency statement per target and reference keeps it tied to the stated algorithm. It also preserves the relevant contrast with per-feature perturbation, which can require new predictions even when a reader is interested in only one target and one reference.
Small changes at nonlinear units create a separate numerical issue. Rescale uses a derivative near the reference to avoid dividing by a very small difference. The limiting justification applies where the derivative at the reference exists. A rectifier at its kink illustrates why the condition matters: approaching the reference from opposite sides need not yield the same slope when the reference is exactly at the threshold. The paper gives the finite-change rule and describes the gradient substitution. The stated examples demonstrate desirable behavior for their comparisons. They do not quantify how frequently near-reference calculations or choices at nondifferentiable points affect the measured attribution rankings.
Finally, the paper's efficiency argument and its correctness argument concern different things. Multipliers compose in a way that preserves the attribution total. This accounts for the computational structure and for the invariant a correct application should satisfy. The richer rules can change which features receive the conserved credit. Whether those features explain the intended comparison is evaluated through the reported tests, and the quality of an explanation on an unfamiliar operation or input distribution remains an empirical question. The established results are strongest where the reference, target, propagation rule, and evaluation criterion are all specified.
What came after
Placing local contribution rules in a broader account of attribution
The nearest connection in the subsequent citation record is Lundberg and Lee's unified treatment of prediction interpretation. The DeepLIFT paper itself describes an exchange of ideas with their earlier work. That account connected an early formulation of DeepLIFT, containing Linear and Rescale, to attribution by average marginal effects. Inclusion in such a comparison means using an observed feature value in place of its reference. RevealCancel adds a local calculation in that spirit for the positive and negative components entering a nonlinear operation. Lundberg and Lee's later paper places the interpretation of predictions in a unified frame, giving that particular relationship a wider setting among explanation procedures. The technical connection established by DeepLIFT concerns the preprint and the marginal-effect idea. It supplies no basis for identifying every propagated RevealCancel score with a global allocation in the subsequent paper. A Unified Approach to Interpreting Model Predictions
The question that travels between these works is how different procedures distribute credit when there is some agreed quantity to explain. DeepLIFT contributes an example in which the total can be held fixed while the rule for distributing it is changed. It also supplies a computational reason to study approximations. Local allocation and chaining avoid having to calculate effects for every ordering of the original features. This gives the later unifying project a concrete antecedent: an attribution rule can be described both by the comparison it uses and by how it approximates a more expansive account of marginal effects. The claim about this antecedent rests on the relationship the authors describe, which predates their addition of the sign-separated rule.
A broader treatment appears in the work by Arrieta and colleagues on explainable artificial intelligence. It addresses concepts, taxonomies, and challenges for responsible AI. DeepLIFT provides a particular kind of explanation for such a discussion: signed scores attached to features for a selected prediction, with their meaning fixed by a reference. The taxonomic scope is broader than choosing a backward rule for a unit. It concerns how this kind of explanation fits among the ways a system can be made intelligible to a reader. In that setting, the properties demonstrated in the paper, including the finite comparison and the propagation constraint, help specify which kind of claim a feature-attribution method makes. Explainable Artificial Intelligence
Asking what an explanation should be evaluated against
Arras and colleagues bring explanation evaluation to recurrent neural networks. DeepLIFT had raised recurrence as an open application because the benefits of tracing finite changes might extend to networks with saturating activations. The later work takes explanations of recurrent computation as the subject of evaluation. This continues the concern with testing explanations against behavior while moving to an architectural setting distinct from the convolutional networks in the earlier paper. The connection is at the level of the evaluation problem and the recurring question of how evidence is traced through a computation. It gives no grounds for naming a specific rule from DeepLIFT as the solution adopted for recurrence. Evaluating Recurrent Neural Network Explanations
Pruthi and colleagues examine the help a student gets from explanations supplied by a teacher. Their framing gives the assessment a recipient and an outcome linked to what that recipient can learn. In DeepLIFT's MNIST study, the outcome is a change in the teacher-like predictor's response to pixels selected by an attribution method. The later evaluation question concerns the value of explanations to a student. An attribution that identifies an effective edit may be useful for one purpose and still leave open how much of the underlying behavior another learner can recover from it. The later work turns this latter question into its subject, broadening what an explanation experiment can measure. Evaluating Explanations
Wiegreffe and colleagues consider the association of labels with rationales written in free text. Here the object being inspected is a linguistic account linked to a decision. The connection to DeepLIFT's task-specific analysis lies in the requirement that an explanation relate to the output it accompanies. In the motif study, that relationship can be probed by scoring the same region under different targets. Free-text rationales put the relation to a label into a different form, for which an allocation of a numeric reference difference supplies no direct criterion. The later work focuses on the association itself and makes it an object of evaluation. Measuring Association Between Labels and Free-Text Rationales
Hanna and colleagues take up faithfulness in the evaluation of internal mechanisms and explicitly ask for evidence beyond circuit overlap. DeepLIFT's experiments also illustrate why one measured property can leave a separate claim open. For instance, positive credit to a strong match is compatible with poor discrimination among the tasks for which it is scored. The later circuit work makes a related issue central in a different setting. Researchers who identify parts of a computation need a test suited to the claim that those parts explain a particular behavior. The citation connects the earlier tests of feature scores to the wider evaluation question, with the circuit-oriented work pursuing its own criterion of faithfulness. Have Faith in Faithfulness
Moving from a selected score to generated sequences
Inseq addresses text generation through an interpretability toolkit for sequence generation. This changes the setting of an attribution from a digit or sequence classifier with designated outputs to a computation that produces a sequence. DeepLIFT's emphasis on the choice of target is relevant because an explanation is attached to a specified part of a computation. For generated sequences, the reader must know what part of the output the explanation concerns before interpreting the input scores. The toolkit's stated focus brings those questions into a shared software setting. Its citation places DeepLIFT among the earlier approaches relevant to that work, with the specific operations and supported attribution variants left outside the claims that can be drawn from that connection. Inseq
SyntaxShap proposes syntax-aware explanation for text generation. Its stated scope puts linguistic structure into an area where the definition of an explanatory unit matters. In DeepLIFT the allocation starts with a comparison of input features to reference values, while the local interaction calculation groups activation changes by sign. A syntax-aware explanation raises the question of which parts of a generated-text computation should be considered together because of structured relationships in the input. This continues the inquiry into how a choice of units affects the explanation a reader receives. The citation links the work to earlier attribution research and supports that conceptual relationship without specifying a reuse of the Linear, Rescale, or RevealCancel rules. SyntaxShap
LAFaCT places attribution-based localization in a system concerned with detecting hallucinations through fact-critical tokens. It makes the location identified by attribution part of a further analysis. DeepLIFT's experiments likewise connect an attribution map to a subsequent question about selected regions, such as what happens after pixels are removed or how a region's credit changes with the target. In the later work, the relevant region is expressed in tokens associated with factual content, and localization serves a detection objective. The continuity is the use of attribution to direct attention to particular input or sequence elements for a defined purpose. The contribution rule and the success of the resulting detector require evidence specific to that work. LAFaCT
Tracing a prediction to its evidence or its mechanism
Koh and Liang pursue prediction explanation through influence functions. Their approach names a different explanatory instrument from finite activation differences. The two works belong to a common effort to investigate why a particular prediction occurred, and the explanatory quantities have different objects. DeepLIFT allocates an output change to departures within the input computation. An influence-based analysis gives a way to consider the effects associated with learning from data. This relationship matters when a feature receives high attribution: a score attached to evidence in the current input leaves a further question about why the trained predictor uses that evidence. Understanding Black-box Predictions via Influence Functions
Han and colleagues link influence functions to the investigation of data artifacts. In DeepLIFT's controlled sequence evaluation, the generator separately identifies planted components and the background where incidental matches can arise. That design helps diagnose suspicious credit under designated outputs. The later work brings artifacts in data themselves into the explanatory question. A predictor's reliance on a pattern and the origin of that reliance are connected avenues of investigation. The shift in focus extends the concern with misleading evidence beyond a particular assignment on an individual input. The stated method here is influence functions. The citation establishes a relationship among approaches to explaining opaque predictions. Explaining Black Box Predictions and Unveiling Data Artifacts through Influence Functions
The review by Bereska and Gavves situates explanation in the context of mechanistic interpretability and AI safety. DeepLIFT assigns credit through internal operations, which makes it relevant to the question of how a computation produces an observed result. The feature scores summarize those operations in relation to a target. A mechanistic investigation can seek greater detail about which internal components perform a behavior and how their contributions are organized. The review draws the earlier attribution work into that broader area. The useful distinction for reading the connection is between tracing an allocated change and giving an account of the internal mechanism that supports the behavior. Mechanistic Interpretability for AI Safety
Wu and colleagues take the identification of causal mechanisms as their stated goal in Alpaca. The word causal raises the evidential demand from locating where explanatory credit is assigned to establishing what internal components do under an appropriate change. DeepLIFT's digit test offers a small example of relating a location identified by attribution to an observed response under an edit. The later work addresses causal mechanisms within a different system and at a different explanatory level. Its place in the citation record shows how the earlier effort to trace contributions became part of the background for work seeking stronger claims about internal computation. Interpretability at Scale
These connections carry forward distinct questions from DeepLIFT. The unified attribution work engages the allocation of a finite change. The explanation studies vary what counts as a successful account of an output. The influence and mechanism studies investigate other parts of the causal story behind a prediction. Among them, the relationship to marginal-effect allocation is the one DeepLIFT itself spells out technically. The other citations establish the reach of its questions about target choice, relevant evidence, and evaluation, while the evidence for any particular attribution still comes from the computation and comparison that produced it.
Institutions
Fields, topics and concepts
Shelves 3The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksSoftware · 150 works
Cite
Cite as Avanti Shrikumar, Peyton Greenside and Anshul Kundaje. 2017. Learning Important Features Through Propagating Activation Differences. arXiv:1704.02685 · PMLR 70:3145-3153, 2017.
@misc{shrikumar2017learning,
title = {{Learning Important Features Through Propagating Activation Differences}},
author = {Avanti Shrikumar, Peyton Greenside and Anshul Kundaje},
year = {2017},
doi = {10.48550/arxiv.1704.02685},
eprint = {1704.02685},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1704.02685}
}References
- Bach, Sebastian, Binder, Alexander, Montavon, Grégoire, Klauschen, Frederick, Müller, Klaus-Robert, and Samek, Wojciech. On Pixel-Wise explanations for Non-Linear classifier decisions by Layer-Wise relevance propagation. PLoS One, 100 (7):0 e0130140, 10 July 2015. OpenAlex ↗ · Scholar ↗
- Chollet, François. keras. https://github.com/fchollet/keras, 2015. OpenAlex ↗ · Scholar ↗
- Kheradpour, Pouya and Kellis, Manolis. Systematic discovery and characterization of regulatory motifs in encode tf binding experiments. Nucleic acids research, 420 (5):0 2976–2987, 2014. OpenAlex ↗ · Scholar ↗
- Kindermans, Pieter-Jan, Schütt, Kristof, Müller, Klaus-Robert, and Dähne, Sven. Investigating the influence of noise and distractors on the interpretation of neural networks. CoRR, abs/1611.07270, 2016. URL https://arxiv.org/abs/1611.07270. OpenAlex ↗ · Scholar ↗
- LeCun, Yann, Cortes, Corinna, and Burges, Christopher J.C. The mnist database of handwritten digits. http://yann.lecun.com/exdb/mnist/, 1999. OpenAlex ↗ · Scholar ↗
- Lundberg, Scott and Lee, Su-In. An unexpected unity among methods for interpreting model predictions. CoRR, abs/1611.07478, 2016. URL http://arxiv.org/abs/1611.07478. OpenAlex ↗ · Scholar ↗
- Selvaraju, Ramprasaath R., Das, Abhishek, Vedantam, Ramakrishna, Cogswell, Michael, Parikh, Devi, and Batra, Dhruv. Grad-cam: Why did you say that? visual explanations from deep networks via gradient-based localization. CoRR, abs/1610.02391, 2016. URL http://arxiv.org/abs/1610.02391. OpenAlex ↗ · Scholar ↗
- Shrikumar, Avanti, Greenside, Peyton, Shcherbina, Anna, and Kundaje, Anshul. Not just a black box: Learning important features through propagating activation differences. arXiv preprint arXiv:1605.01713, 2016. our card
- Simonyan, Karen, Vedaldi, Andrea, and Zisserman, Andrew. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013. our card
- Springenberg, Jost Tobias, Dosovitskiy, Alexey, Brox, Thomas, and Riedmiller, Martin A. Striving for simplicity: The all convolutional net. CoRR, abs/1412.6806, 2014. URL http://arxiv.org/abs/1412.6806. OpenAlex ↗ · Scholar ↗
- Sundararajan, Mukund, Taly, Ankur, and Yan, Qiqi. Gradients of counterfactuals. CoRR, abs/1611.02639, 2016. URL http://arxiv.org/abs/1611.02639. OpenAlex ↗ · Scholar ↗
- Zeiler, Matthew D. and Fergus, Rob. Visualizing and understanding convolutional networks. CoRR, abs/1311.2901, 2013. URL http://arxiv.org/abs/1311.2901. our card
- Zhou, Jian and Troyanskaya, Olga G. Predicting effects of noncoding variants with deep learning-based sequence model. Nat Methods, 12:0 931–4, 2015 Oct 2015. ISSN 1548-7105. . OpenAlex ↗ · Scholar ↗
- Zintgraf, Luisa M, Cohen, Taco S, Adel, Tameem, and Welling, Max. Visualizing deep neural network decisions: Prediction difference analysis. ICLR, 2017. URL https://openreview.net/pdf?id=BJ5UeU9xx. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/shrikumar-2017-learning-important-features-through-propagating/