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.
Glossary
Deep Taylor Decomposition

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.
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.
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.
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.
Deep Taylor Expansion
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.
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.
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
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.
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.
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.
| Feature | Deep Taylor Decomposition | Integrated Gradients | Layer-wise Relevance Propagation | Gradient × 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 |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Deep Taylor Decomposition is a specific propagation-based attribution method. The following concepts form the theoretical and practical landscape surrounding it.
Layer-wise Relevance Propagation (LRP)
The broader family of techniques to which Deep Taylor Decomposition belongs. LRP operates on a conservation principle, redistributing the model's output score backwards through the network layers. Each neuron receives a relevance score from higher layers and redistributes it to lower layers based on neuron activations and weights. Deep Taylor Decomposition provides a theoretical justification for specific LRP propagation rules by treating them as Taylor expansions at root points.
Root Point Analysis
A core concept in Deep Taylor Decomposition where a reference point is identified in the input space at which the neuron's function evaluates to zero. The decomposition then performs a first-order Taylor expansion of the function at this root point. The choice of root point is critical:
- Nearest root point: Minimizes higher-order Taylor residuals
- Constrained root points: Respect the input domain (e.g., pixel values bounded by [0,1])
- Multiple root points: Used when a single root point is insufficient
Completeness Axiom
A fundamental mathematical property that Deep Taylor Decomposition satisfies by construction. The axiom states that the sum of all feature attributions must exactly equal the model's output difference from a baseline. This ensures no relevance is created or destroyed during propagation. Formally: Σᵢ Rᵢ = f(x) - f(x₀), where Rᵢ is the relevance of feature i, f(x) is the model output, and f(x₀) is the baseline output. This conservation of relevance makes the method auditable.
DeepLIFT
A closely related attribution method that also uses a reference-based decomposition strategy. DeepLIFT compares neuron activations to a reference activation and assigns contribution scores based on the difference-from-reference. While Deep Taylor Decomposition uses Taylor expansion at root points, DeepLIFT uses a finite-difference approach with a summation-to-delta property that is analogous to the completeness axiom. Both methods address the gradient saturation problem that plagues simple gradient-based methods.
Gradient Saturation Problem
A critical failure mode of simple gradient-based attribution that Deep Taylor Decomposition is designed to overcome. In deep networks with saturating nonlinearities (like sigmoid or softmax), the gradient of the output with respect to input features can become near-zero for features that strongly activate the correct class. This creates a paradox where the most influential features appear unimportant. Deep Taylor Decomposition avoids this by using function value redistribution rather than local gradient information alone.
Attribution Propagation Rules
The specific mathematical formulas that govern how relevance is redistributed at each layer. Deep Taylor Decomposition derives different rules for different layer types:
- z⁺-rule: For layers with positive-only activations (ReLU)
- αβ-rule: A parameterized rule that controls the ratio of positive to negative relevance
- w²-rule: For layers where weights are squared to eliminate sign cancellation Each rule corresponds to a different Taylor expansion root point choice.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us