Integrated Gradients is an axiomatic feature attribution method that satisfies Sensitivity and Implementation Invariance. It computes the integral of the gradients of the model's output with respect to the input, taken along a straight-line path from a non-informative baseline (e.g., zeros or reference sequence) to the actual input. This path integral ensures that the difference between the model's output at the input and the baseline is exactly apportioned among the input features.
Glossary
Integrated Gradients

What is Integrated Gradients?
A model interpretability technique that attributes the prediction of a deep network to its input features by accumulating the gradients along a path from a baseline input to the actual input.
In genomics, the technique is critical for decoding sequence-to-expression models like Enformer. By interpolating from a reference genome to a variant sequence, it quantifies the contribution of individual nucleotides to a predicted expression change, enabling the discovery of de novo regulatory motifs without relying on prior annotations. The choice of baseline is crucial; a dinucleotide-shuffled sequence preserves local composition while ablating functional syntax.
Key Properties of Integrated Gradients
Integrated Gradients is defined by a set of mathematical axioms that guarantee its attributions are unique, fair, and theoretically sound. These properties distinguish it from heuristic saliency methods and make it suitable for high-stakes genomic model interpretation.
Sensitivity (Completeness)
The axiom of Sensitivity states that if an input feature differs from the baseline and causes a change in the prediction, it must receive a non-zero attribution. Completeness is a stronger corollary: the sum of all feature attributions must exactly equal the difference between the model's output for the actual input and the baseline input.
- Guarantees no attribution is 'lost' during the calculation
- For a genomic sequence model, the sum of nucleotide importance scores equals the total predicted expression change
- Violated by simple gradient methods that can miss saturated features
Implementation Invariance
Two functionally equivalent neural networks—networks that produce identical outputs for all inputs despite having different architectures or parameters—must yield identical attributions under Integrated Gradients.
- Prevents attribution manipulation by architectural choices
- A ResNet and a Transformer predicting the same expression levels from a promoter sequence will assign identical importance to a key TATA box motif
- This property fails for methods like DeepLIFT or LIME, which depend on model internals or local sampling
Linearity
If a model is a linear combination of two sub-models, the Integrated Gradients attribution for the combined model is the same linear combination of the attributions from the sub-models.
- Enables compositional debugging of ensemble models
- If an expression predictor averages outputs from a CNN branch and an attention branch, the final attribution is the average of each branch's attribution map
- Critical for verifying that multi-task learning models fairly weight shared genomic features
Symmetry Preservation
Two input variables that are symmetric with respect to the model—meaning swapping their values leaves the output unchanged—must receive identical attributions.
- Ensures fair treatment of functionally equivalent features
- In a homodimer binding prediction, two identical half-sites in a palindromic sequence receive equal importance scores
- Prevents spurious asymmetry that could mislead biologists about which motif copy is the 'driver' of binding
Baseline Selection
The baseline input represents the 'absence' of signal and is a critical hyperparameter. The attribution explains the transition from this baseline to the actual input.
- For genomic sequences, common baselines include a dinucleotide-shuffled sequence preserving local composition or a uniform 0.25 probability vector for each nucleotide
- A poor baseline (e.g., all zeros) can create artifacts where the model extrapolates from non-biological inputs
- The path integral accumulates gradients along a straight line from baseline to input in the embedding space
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.
Frequently Asked Questions
Clear, technical answers to common questions about Integrated Gradients and its application in attributing deep learning model predictions to input features.
Integrated Gradients is a model interpretability technique that attributes the prediction of a deep network to its input features by accumulating the gradients along a straight-line path from a baseline input to the actual input. The method satisfies the completeness axiom, meaning the sum of all feature attributions equals the difference between the model's output for the actual input and the baseline. It works by computing the integral of the gradients of the model's output with respect to the input, approximated numerically by summing gradients at discrete interpolation points along the path. For a genomic sequence model predicting gene expression, the baseline is typically a neutral or uninformative sequence (e.g., all zeros or a reference genome), and the attributions highlight which nucleotides contributed positively or negatively to the predicted expression level.
Related Terms
Integrated Gradients is part of a broader toolkit for decoding genomic neural networks. These related techniques and concepts are essential for building auditable, trustworthy models in regulatory biology.
In Silico Mutagenesis
A computational perturbation method where every nucleotide in an input DNA sequence is systematically mutated to measure the predicted change in a model's output. While Integrated Gradients attributes importance to existing features, in silico mutagenesis reveals causal regulatory logic by asking 'what if this base were different?' The technique is foundational for identifying transcription factor binding motifs and interpreting the sequence determinants of gene expression.
Baseline Input Selection
The choice of baseline is the most critical hyperparameter in Integrated Gradients. For genomic models, common baselines include:
- Dinucleotide-shuffled sequences: Preserves local composition while destroying functional motifs
- Uniform nucleotide distributions: All positions set to 0.25 probability for each base
- Reference genome segments: A biologically neutral region with no known regulatory activity A poor baseline produces misleading attributions that violate the completeness axiom.
DeepLIFT
Deep Learning Important FeaTures (DeepLIFT) is a precursor to Integrated Gradients that computes feature importance by comparing neuron activation to a reference state. It uses rescale and reveal-cancel rules to backpropagate contribution scores. While faster than Integrated Gradients, it can violate implementation invariance—two functionally identical networks may produce different attributions. Integrated Gradients was designed to satisfy this axiom.
Expected Gradients
An extension of Integrated Gradients that removes the dependency on a single baseline by averaging attributions over multiple baselines drawn from a background distribution. This is particularly valuable in genomics where no single 'neutral' sequence exists. By sampling from shuffled genomic backgrounds, Expected Gradients produces more robust and less noisy saliency maps for regulatory DNA models.
Saturation Mutagenesis
An exhaustive experimental or computational technique where every position in a regulatory sequence is mutated to all three alternative nucleotides, and the effect on expression is measured. When compared with Integrated Gradients attributions, saturation mutagenesis provides ground-truth validation. High correlation between predicted importance scores and empirical mutational effects confirms that the model has learned genuine cis-regulatory grammar.
SmoothGrad
A technique that reduces visual noise in saliency maps by averaging the gradients of multiple noisy copies of the input. When combined with Integrated Gradients, SmoothGrad produces cleaner nucleotide-resolution importance tracks for genomic sequences. This is especially useful for visualizing attributions in genome browsers where pixel-level clarity is required for publication-quality figures.

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