Inferensys

Glossary

Deep Taylor Decomposition

A method for explaining neural network predictions by performing a Taylor expansion of the model's output at a root point, redistributing the function value to input features via propagation rules.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
NEURON-LEVEL RELEVANCE PROPAGATION

What is Deep Taylor Decomposition?

A method for explaining neural network predictions by decomposing the output value into contributions from input features using a series of first-order Taylor expansions performed at locally defined root points.

Deep Taylor Decomposition is a feature attribution method that explains a deep neural network's prediction by redistributing its output score backwards through the network's layers. It operates by performing a Taylor expansion of the neuron's activation function at a specific root point—a point in the input space where the neuron's contribution is zero—and then decomposing the function value into first-order relevance terms assigned to the inputs of that neuron.

The technique satisfies the completeness axiom by design, ensuring the sum of all assigned relevances equals the model's final output score. Unlike standard gradient-based methods, it propagates relevance signals using layer-specific rules derived from the DeepLIFT framework, avoiding issues of shattered gradients by relying on the difference-from-reference logic rather than instantaneous partial derivatives.

MECHANISM

Key Characteristics of Deep Taylor Decomposition

A rigorous framework for explaining deep network predictions by decomposing the output value using Taylor expansions rooted at carefully chosen reference points, ensuring exact conservation of relevance.

01

Root Point Identification

The decomposition is performed at a root point in the input space where the function value f(x₀) = 0. This root is found by searching along the gradient direction from the input until the decision boundary is crossed. The choice of root point is critical—it determines the path along which the Taylor expansion is computed and directly influences the quality of the resulting relevance maps. For ReLU networks, root points are often located on the piecewise linear boundary where the neuron activation state changes.

02

Deep Taylor Expansion

03

Layer-wise Relevance Propagation Connection

Deep Taylor Decomposition provides the theoretical foundation for Layer-wise Relevance Propagation (LRP). The LRP-αβ rules commonly used in practice can be derived as special cases of Deep Taylor expansions with specific choices of root points. This connection elevates LRP from a heuristic propagation scheme to a mathematically justified decomposition method grounded in functional analysis and Taylor's theorem.

04

Conservation Property

The decomposition satisfies the completeness axiom by construction: the sum of all relevance scores assigned to input features exactly equals the model's output value for the target class. This conservation is maintained layer by layer during backpropagation, ensuring that no relevance is artificially created or destroyed. This property is essential for auditing applications where total attribution must be fully accounted for.

05

Handling Non-Linearities

For deep networks with non-linear activation functions, the method employs local Taylor approximations at each layer. The relevance received by a neuron is redistributed to its inputs by expanding the neuron's output function around a root point in its input space. Different propagation rules emerge from different choices of root points:

  • w²-rule: Root point chosen on the line between the input and origin
  • z-rule: Root point at the origin itself
  • αβ-rule: Weighted combination of positive and negative contributions
06

Comparison with Gradient Methods

Unlike standard gradient-based methods that can suffer from gradient saturation and shattered gradients, Deep Taylor Decomposition explicitly addresses the non-linearity of deep networks. While Gradient × Input provides only a first-order approximation without conservation guarantees, Deep Taylor Decomposition enforces exact decomposition by design. It also avoids the noise amplification issues of Integrated Gradients by operating directly on the function value rather than accumulating gradients along arbitrary paths.

DEEP TAYLOR DECOMPOSITION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Deep Taylor Decomposition, its mechanisms, and its role in neural network interpretability.

Deep Taylor Decomposition (DTD) is a feature attribution method that explains a neural network's prediction by performing a first-order Taylor expansion of the model's output function at a carefully chosen root point in the input space. The core mechanism works by identifying a root point—an input for which the neuron's output is zero or near-zero—and then decomposing the function value at the actual data point as a sum of linear contributions from each input feature. This decomposition is propagated backwards through the network using relevance propagation rules that conserve the total relevance score across layers. Unlike simple gradient-based methods, DTD explicitly handles the non-linearities in deep networks by applying distinct rules for different layer types, such as the alpha-beta rule for ReLU activations, ensuring that the final attribution map faithfully represents each feature's contribution to the prediction.

FEATURE ATTRIBUTION COMPARISON

Deep Taylor Decomposition vs. Other Attribution Methods

A technical comparison of Deep Taylor Decomposition against other prominent gradient-based and propagation-based feature attribution methods for neural network interpretability.

FeatureDeep Taylor DecompositionIntegrated GradientsLayer-wise Relevance PropagationGradient × Input

Theoretical Foundation

Taylor expansion at root point

Path integral of gradients

Conservation-based redistribution

First-order Taylor approximation

Satisfies Completeness Axiom

Satisfies Implementation Invariance

Requires Baseline/Reference Input

Handles Gradient Saturation

Propagation Rule Type

Layer-specific Taylor decomposition

Gradient integration along path

Predefined relevance propagation rules

Direct gradient scaling

Computational Cost

Moderate (single backward pass per layer rule)

High (50-200 integration steps)

Moderate (single backward pass)

Low (single backward pass)

Attribution Sign Preservation

Positive and negative relevance

Positive and negative attributions

Positive relevance only (typically)

Positive and negative values

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.