Inferensys

Glossary

Feature Attribution

Feature attribution is a class of interpretability methods that assign a relevance or importance score to each input nucleotide, quantifying its contribution to a genomic neural network's specific prediction.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
MODEL INTERPRETABILITY

What is Feature Attribution?

Feature attribution is the general class of methods that assign a relevance or importance score to each input feature—such as a nucleotide or genomic region—for a specific neural network prediction.

Feature attribution encompasses a broad family of algorithms designed to decompose a deep learning model's output back onto its input space, creating a quantitative map of contribution. In genomic sequence analysis, this means assigning a numerical score to every base pair in a DNA sequence, indicating how much that position influenced the model's prediction of a molecular phenotype like chromatin accessibility or transcription factor binding. These methods transform an opaque 'black box' into an auditable system by answering the fundamental question: 'Which parts of the input caused this output?'

The practical utility of feature attribution lies in its ability to validate model logic and generate biological hypotheses. A model achieving high accuracy on variant effect prediction is only trustworthy if its attribution maps highlight known pathogenic loci rather than spurious correlations. Techniques range from backpropagation-based approaches like Integrated Gradients and DeepLIFT to game-theoretic methods like SHAP, each with distinct mathematical properties regarding completeness and implementation invariance. For CTOs and regulatory leads, rigorous attribution is the prerequisite for deploying interpretable AI in clinical genomics.

Evaluating Genomic Interpretability

Key Properties of Attribution Methods

A rigorous framework for assessing the reliability, resolution, and biological validity of feature attribution maps generated by deep learning models applied to genomic sequences.

01

Faithfulness

The degree to which an attribution map accurately reflects the model's true decision logic. A faithful map identifies the nucleotides that causally influence the prediction.

  • Perturbation-based validation: Masking highly attributed nucleotides should cause a sharp drop in prediction probability.
  • Metrics: Area Over the Perturbation Curve (AOPC) and Remove And Retrain (ROAR) quantify this property.
  • Contrast with Infidelity: Infidelity measures the expected error between input perturbations and their effect on the attribution map itself.
02

Completeness (Summation to Delta)

An attribution method satisfies completeness if the sum of all feature importance scores equals the difference between the model's output for the actual input and a neutral baseline.

  • Axiomatic guarantee: Integrated Gradients is designed specifically to satisfy this property via path integration.
  • Practical utility: Ensures no importance is 'lost' or 'created' during the explanation process.
  • Baseline dependency: The choice of a neutral reference sequence (e.g., all zeros, shuffled sequence) critically impacts the resulting attribution map.
03

Implementation Invariance

Two functionally equivalent models, regardless of their internal architecture or parameterization, should yield identical attribution maps for the same input.

  • Functional equivalence: Models that always produce the same output for every possible input are functionally equivalent.
  • Method sensitivity: SHAP and Integrated Gradients are implementation invariant, while methods relying on raw gradients or specific network structures may not be.
  • Sanity check failure: A method that fails this property is sensitive to irrelevant aspects of the model, not just its input-output mapping.
04

Sensitivity

An attribution method must be sensitive to the model's learned parameters and the input. It should assign a non-zero score to any feature that, when changed, alters the prediction.

  • Sensitivity-n axiom: If a single nucleotide differs between two inputs that produce different predictions, that nucleotide must receive a non-zero attribution.
  • Sanity checks: Model parameter randomization tests verify this. If attributions don't change after randomizing the model's weights, the method is insensitive to the model itself.
  • Contrast with continuity: A sensitive method should still produce stable attributions under small, inconsequential input noise.
05

Resolution

The granularity at which importance scores are assigned, ranging from coarse region-level to fine nucleotide-level.

  • Nucleotide-level attribution: Assigns a score to every individual base pair, essential for identifying single-nucleotide variants (SNVs) driving predictions.
  • Motif-level attribution: Methods like TF-MoDISco cluster high-scoring subsequences into recurring, biologically meaningful motifs.
  • Layer-specific resolution: Grad-CAM produces coarse saliency maps from final convolutional layers, while gradient-times-input methods provide finer input-level resolution.
06

Computational Tractability

The practical feasibility of computing attributions, especially for large genomic models processing megabase-scale sequences.

  • Model-agnostic methods: KernelSHAP is exponentially complex in the number of features, making it intractable for whole-genome inputs without approximations.
  • High-speed approximations: DeepSHAP and DeepLIFT leverage backpropagation rules for near-instant computation.
  • ISM cost: In-silico mutagenesis requires a forward pass for every possible mutation (3 × sequence length), which is computationally expensive for large models.
METHODOLOGICAL TAXONOMY

Comparison of Feature Attribution Techniques

A comparative analysis of core feature attribution methods used to decode genomic neural network predictions, evaluated across key operational and axiomatic dimensions.

PropertyIntegrated GradientsDeepSHAPIn-silico Mutagenesis (ISM)

Method Class

Gradient-based, path integral

Additive feature attribution, backpropagation-based

Perturbation-based, brute-force

Satisfies Completeness Axiom

Requires Baseline/Reference

Computational Cost

Moderate (50-300 steps)

Low (single backward pass)

Very High (4^k evaluations for k-mers)

Attribution Resolution

Nucleotide-level

Nucleotide-level

Nucleotide-level

Model Agnostic

Captures Saturation Effects

Suitable for Regulatory Genomics

FEATURE ATTRIBUTION EXPLAINED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about interpreting genomic deep learning models using feature attribution methods.

Feature attribution is the general class of computational methods that assign a relevance score to each input nucleotide or genomic region for a specific neural network prediction. These scores quantify how much each base pair contributed to—or suppressed—the model's output, such as predicting a transcription factor binding site or a splice junction. In genomic sequence models, attribution maps transform an opaque "black box" prediction into a human-interpretable saliency map that highlights the sequence motifs driving the decision. The core mathematical goal is to decompose the output prediction $f(x)$ into a sum of per-feature contributions $\phi_i$, such that $f(x) \approx \sum_i \phi_i$. Methods range from simple gradient-based approaches like saliency maps to axiomatic solutions like Integrated Gradients and game-theoretic approaches like SHAP. For CTOs and regulatory compliance officers, feature attribution is the primary mechanism for auditing model logic, validating that predictions are driven by genuine biological signals rather than artifacts or confounding variables in the training data.

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.