The Infidelity Measure is a faithfulness metric that quantifies how accurately an attribution map reflects a genomic model's true decision logic. It is defined as the expected squared difference between the change in the model's output when a meaningful perturbation is applied to the input sequence and the dot product of the attribution map with that perturbation. A lower infidelity score indicates that the explanation is a more faithful local linear approximation of the model's behavior.
Glossary
Infidelity Measure

What is Infidelity Measure?
A quantitative metric that evaluates the reliability of feature attribution maps by measuring the expected error between a significant perturbation of the input sequence and the corresponding perturbation of the explanation.
Unlike perturbation-based metrics that measure output drop after removing salient features, infidelity directly evaluates the local fidelity of the attribution function itself. It is computed by sampling significant perturbations—such as Gaussian noise or meaningful nucleotide substitutions—and comparing the model's response delta to the attribution-weighted perturbation. This makes it a robust tool for benchmarking nucleotide-level attribution methods like Integrated Gradients and DeepSHAP against the ground-truth behavior of genomic sequence models.
Key Characteristics of Infidelity Measures
Infidelity measures quantify the expected error between a significant perturbation of the input sequence and the corresponding perturbation of the attribution map, providing a rigorous mathematical framework for evaluating how faithfully an explanation captures a model's decision logic.
Mathematical Definition
Infidelity is formally defined as the expected squared difference between the dot product of the perturbation vector and the attribution map, and the difference in model output caused by that perturbation.
- Core Equation:
INFD(Φ, f, x) = E_{I∼μ_I}[ (I^T Φ(f, x) - (f(x) - f(x - I)))^2 ] - Perturbation Vector (I): A significant, non-local modification to the input sequence, drawn from a distribution μ_I
- Attribution Map (Φ): The feature importance scores generated by an interpretability method
- Model Output Difference: The actual change in the model's prediction when the perturbation is applied
- A lower infidelity score indicates a more faithful explanation
Relationship to Completeness
Infidelity is closely tied to the completeness axiom of attribution methods, which requires that the sum of all feature attributions equals the difference between the model output at the input and a baseline.
- If an attribution method satisfies completeness, the infidelity for perturbations that are dense vectors (all features perturbed) will be zero
- Methods like Integrated Gradients and DeepSHAP inherently satisfy completeness
- Infidelity generalizes completeness by testing it across a distribution of perturbations rather than a single baseline
- This makes infidelity a more robust measure than simply checking the summation property
Perturbation Distribution Design
The choice of perturbation distribution μ_I is critical to the meaningfulness of the infidelity metric and must reflect biologically plausible sequence variations.
- Gaussian perturbations: Test sensitivity to small, diffuse noise across all nucleotide positions
- Subspace perturbations: Restrict perturbations to specific genomic regions (e.g., promoters, enhancers) to test localized faithfulness
- Motif-scrambling perturbations: Randomize conserved transcription factor binding sites while preserving dinucleotide composition
- In-silico mutagenesis perturbations: Introduce single-nucleotide variants drawn from known population frequencies (gnomAD)
- Poor perturbation design can yield misleadingly low infidelity scores that don't reflect real-world reliability
Comparison with Other Faithfulness Metrics
Infidelity complements but differs from other perturbation-based faithfulness metrics commonly used in genomic model evaluation.
- vs. AOPC (Area Over the Perturbation Curve): AOPC measures prediction drop when removing top features sequentially; infidelity measures alignment across all features simultaneously
- vs. ROAR (Remove And Retrain): ROAR requires expensive model retraining after feature removal; infidelity is computed on a single trained model
- vs. Sensitivity-n: Sensitivity-n measures correlation with a single perturbation magnitude; infidelity uses a full distribution
- vs. Faithfulness Correlation: Correlation metrics capture linear relationships; infidelity captures exact numerical agreement
- Infidelity is particularly suited for high-dimensional genomic inputs where feature interactions are complex
Application in Genomic Variant Effect Prediction
Infidelity measures are essential for validating attribution maps used to score the functional impact of non-coding variants in clinical genomics pipelines.
- Benchmarking: Compare DeepLIFT, Integrated Gradients, and SHAP attributions against Deep Mutational Scan (DMS) ground truth using infidelity
- Regulatory compliance: Demonstrate to auditors that variant effect scores are derived from faithful explanations of the underlying model
- Model selection: Choose between genomic architectures (e.g., Enformer vs. Basenji2) based on which produces lower infidelity attributions
- Attribution uncertainty: Combine infidelity with bootstrap resampling to compute confidence intervals on variant effect scores
- Example: A variant in a distal enhancer with low infidelity attribution is more trustworthy for clinical reporting
Limitations and Practical Considerations
Despite its theoretical rigor, infidelity has several limitations that practitioners must account for when evaluating genomic model explanations.
- Computational cost: Requires many forward passes through the model for each perturbation in the distribution, scaling poorly with sequence length
- Perturbation dependency: Results are only as meaningful as the perturbation distribution; biologically irrelevant perturbations produce uninformative scores
- Attribution scale sensitivity: Infidelity is sensitive to the magnitude of attributions, not just their relative ordering
- No baseline-free variant: Unlike some metrics, infidelity always requires specifying a perturbation distribution, introducing a design choice
- Non-uniqueness: Multiple different attribution maps can achieve identical infidelity scores, so it should be used alongside other metrics like AOPC and ROAR
Frequently Asked Questions
Clear, technical answers to the most common questions about the infidelity measure, a critical metric for evaluating the trustworthiness of feature attribution maps in genomic sequence models.
The infidelity measure is a quantitative metric that evaluates the faithfulness of a feature attribution map by calculating the expected mean squared error between a significant perturbation applied to an input genomic sequence and the corresponding perturbation applied to its explanation. In simpler terms, it measures how poorly an attribution map predicts the model's output change when you meaningfully alter the input DNA. A low infidelity score indicates that the attribution map is a faithful representation of the model's true decision logic, while a high score signals that the explanation is unreliable. The measure is formally defined as INFD(Φ, f, x) = E_{I~μ_I}[(I^T Φ(f,x) - (f(x) - f(x - I)))^2], where Φ is the attribution method, f is the model, x is the input sequence, and I is a significant perturbation vector drawn from a distribution μ_I. This metric is crucial for regulatory compliance in clinical genomics, where understanding why a model flagged a variant is as important as the prediction itself.
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
Core concepts for evaluating and understanding the fidelity of feature attribution methods in genomic deep learning models.
Faithfulness Metrics
Quantitative measures that evaluate how accurately an attribution map reflects the true decision-making logic of a genomic model. These metrics rely on perturbation experiments—systematically altering high-attribution nucleotides and measuring the resulting change in model output. A faithful explanation will show a steep, monotonic drop in prediction score as salient features are removed. Key implementations include AOPC (Area Over the Perturbation Curve) and ROAR (Remove And Retrain), which iteratively retrains the model after feature removal to prevent distribution shift artifacts.
Sensitivity Analysis
The study of how uncertainty in a genomic model's output can be apportioned to different sources of uncertainty in its nucleotide inputs. Unlike feature attribution which assigns a single importance score, sensitivity analysis quantifies the local gradient of the prediction with respect to each input dimension. This is foundational to understanding model robustness: a model with high sensitivity to single-nucleotide perturbations may be unreliable for variant effect prediction in clinical settings. Techniques range from simple partial derivatives to global variance-based methods like Sobol indices.
Genomic Ablation
An experimental perturbation technique that systematically removes or masks genomic regions in-silico to measure their causal effect on model predictions. Ablation studies are the empirical backbone of faithfulness evaluation. Common strategies include:
- Zero ablation: Replacing nucleotides with a null token
- Reference ablation: Substituting with a neutral baseline sequence
- Scrambling: Randomly shuffling the target region while preserving dinucleotide frequency The difference between pre- and post-ablation prediction scores provides a direct causal estimate of a region's importance.
Attribution Sanity Checks
A suite of diagnostic tests designed to verify that an attribution method is genuinely sensitive to the learned parameters of a genomic model, rather than producing plausible-looking but uninformative edge-detectors. The foundational sanity check is model parameter randomization: if an attribution map does not change substantially when model weights are progressively randomized, the method is not faithfully explaining the learned function. Other checks include data randomization (training on shuffled labels) and input invariance tests to ensure attributions respond to meaningful biological signal.
Attribution Uncertainty
The quantification of statistical confidence or credible intervals associated with the importance scores assigned to genomic features. Standard attribution methods produce point estimates without confidence bounds, making it difficult to distinguish true regulatory signals from noise. Approaches to estimate uncertainty include:
- Bayesian neural networks that place priors over weights
- Monte Carlo dropout at inference time
- Ensemble-based methods that aggregate attributions across independently trained models Reliable uncertainty quantification is critical for translating attribution maps into clinical variant interpretation.
Deep Mutational Scan (DMS)
A high-throughput experimental method that assays the functional impact of thousands of genomic variants, often used as a ground-truth benchmark for validating computational attribution methods. In a DMS, every possible single-nucleotide substitution in a regulatory element or protein-coding region is synthesized and its effect on a molecular phenotype—such as expression level or binding affinity—is measured. The resulting variant effect map provides an empirical gold standard against which the fidelity of in-silico attribution scores can be rigorously compared.

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