Inferensys

Glossary

Integrated Gradients

A model interpretability method that attributes the prediction of a genomic neural network to its input sequence by accumulating gradients along a path from a baseline to the actual input.
ML engineer managing model training cluster on laptop, GPU utilization visible, technical deep learning setup.
AXIOMATIC ATTRIBUTION

What is Integrated Gradients?

A model interpretability method that attributes the prediction of a deep neural network to its input features by accumulating gradients along a straight-line path from a baseline to the actual input.

Integrated Gradients is an axiomatic feature attribution method that satisfies two fundamental requirements: Sensitivity and Implementation Invariance. It computes the contribution of each input feature by integrating the model's gradients along a linear path from a non-informative baseline input (e.g., a reference genome or zero embedding) 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.

In genomic sequence analysis, the baseline is typically a neutral or shuffled DNA sequence, and the attribution scores highlight individual nucleotides critical for a specific prediction, such as a transcription factor binding site. Unlike gradient-saturation-prone methods like simple saliency maps, Integrated Gradients reliably identifies the complete set of motif bases driving a regulatory prediction, making it a cornerstone for decoding the decision logic of genomic neural networks.

AXIOMATIC ATTRIBUTION

Key Properties of Integrated Gradients

Integrated Gradients satisfies a unique set of theoretical axioms that make it a robust and reliable feature attribution method for genomic neural networks.

01

Sensitivity (Completeness)

The sum of all feature attributions equals the difference between the model's output for the input and the baseline. If a single feature change flips a prediction, that feature receives non-zero attribution. This guarantees that the total importance is fully accounted for, preventing attribution leakage in regulatory sequence analysis.

Σ attributions
Equals F(input) - F(baseline)
02

Implementation Invariance

Two functionally equivalent networks—regardless of architectural differences—always produce identical attributions. This is critical for comparing interpretability results across different genomic model architectures, such as comparing a Basset convolutional network against a DanQ hybrid model, ensuring the explanation reflects biology, not model artifacts.

03

Linearity

The attribution for a linearly composed model is the linear combination of attributions from its components. This property is essential for multi-task epigenomic prediction models where a shared trunk feeds multiple task heads, allowing researchers to decompose attributions per assay without retraining separate explanation pipelines.

04

Symmetry Preservation

Symmetric variables in the model receive identical attributions. In genomic contexts, if two nucleotides at different positions play functionally equivalent roles—such as a palindromic transcription factor binding motif—they are assigned equal importance, preserving the biological symmetry of the regulatory grammar.

05

Path Integral Formulation

Attributions are computed by accumulating gradients along a straight-line path from a neutral baseline (e.g., all-zero embedding) to the actual input sequence. This path integral captures how each nucleotide's contribution evolves, distinguishing between positions that saturate early and those that drive predictions only near the final input.

06

Baseline Selection Sensitivity

The choice of baseline critically shapes attributions. For genomic models, common baselines include:

  • Zero embedding vectors (neutral reference)
  • Shuffled dinucleotide-preserving sequences (controls for composition)
  • Expected value over a reference genome Selecting a biologically meaningful baseline ensures attributions highlight true regulatory drivers rather than compositional biases.
INTERPRETABILITY INSIGHTS

Frequently Asked Questions

Explore common questions about applying Integrated Gradients to decode the decision logic of genomic neural networks, from baseline selection to practical implementation.

Integrated Gradients is a model interpretability method that attributes the prediction of a deep neural network to its input features by accumulating gradients along a straight-line path from a baseline input to the actual input. The method satisfies two fundamental axioms: Sensitivity, meaning any feature that differs from the baseline and influences the output receives a non-zero attribution, and Implementation Invariance, ensuring that functionally equivalent networks yield identical attributions. Mathematically, it computes the path integral of the gradient of the model's output with respect to the input, scaled by the difference between the input and baseline. For a genomic sequence model, this produces a saliency map highlighting which nucleotide positions most strongly influenced a prediction, such as a specific chromatin accessibility call or gene expression level.

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.