Inferensys

Glossary

Faithfulness Score

A quantitative metric that evaluates the accuracy of an explanation by measuring how well the attributed importance scores correlate with the actual change in model output when the corresponding features are perturbed or removed.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
EXPLANATION ACCURACY METRIC

What is Faithfulness Score?

A quantitative metric that evaluates the accuracy of an explanation by measuring how well the attributed importance scores correlate with the actual change in model output when the corresponding features are perturbed or removed.

The faithfulness score is a quantitative metric that evaluates an explanation's accuracy by measuring the correlation between attributed feature importance and the actual change in model output when those features are perturbed. It answers a critical question: does the explanation reflect the model's true reasoning process, or is it a plausible-looking fabrication?

Computation typically involves iteratively removing or masking the most important features according to an attribution map and measuring the resulting drop in prediction probability. A high faithfulness score indicates that features identified as important genuinely drive the model's decision, while a low score exposes an interpretability illusion—an explanation that appears convincing but misrepresents the model's internal logic.

QUANTITATIVE EXPLANATION EVALUATION

Core Characteristics of Faithfulness Metrics

Faithfulness scores provide a rigorous, quantitative framework for auditing the trustworthiness of AI explanations by measuring how accurately an attribution map reflects the model's true decision-making process.

02

Comprehensiveness & Sufficiency

Two complementary metrics that decompose faithfulness into distinct, measurable properties of an explanation.

  • Comprehensiveness: Quantifies how much the model's prediction changes when the most important features are removed. A high comprehensiveness score indicates the explanation captured all features the model relied on.
  • Sufficiency: Measures if the most important features alone are enough to sustain the original prediction. A low sufficiency score confirms the model needs more than just the highlighted region.
  • These metrics are foundational in toolkits like Quantus and provide a standardized benchmark for comparing attribution methods.
03

Correlation with Ground Truth

In synthetic or semi-synthetic settings, faithfulness can be measured by comparing an explanation to a known, ground-truth signal that was intentionally embedded in the data.

  • Synthetic Lesion Injection: A known artifact is digitally inserted into a medical scan; a faithful explanation must exclusively highlight that region.
  • Grid Pointing Game: A dataset is constructed where the class label is determined by a specific, known pixel location.
  • Rank Correlation: Metrics like Kendall's Tau or Spearman's Rho measure the statistical correlation between the rank order of attribution scores and the true feature importance.
04

Sensitivity & Robustness Checks

A faithful explanation must be sensitive to meaningful changes in the model or input while remaining robust to irrelevant perturbations.

  • Input Invariance: Adding imperceptible noise to the input should not drastically alter the explanation if the model's prediction remains unchanged.
  • Model Parameter Randomization: Progressively randomizing a model's weights from the top layer down must cause the explanation to degrade. If the saliency map stays visually similar, it is unfaithful and merely an edge detector.
  • Max-Sensitivity: Measures the maximum change in an explanation given a small, constrained input perturbation, bounded by Lipschitz continuity.
05

Ablation & Causal Metrics

Moving beyond correlation to causation, these metrics test if the highlighted features are the cause of the model's decision.

  • Causal Faithfulness: Intervenes on the model's internal activations by surgically removing the effect of specific neurons or attention heads identified by the explanation.
  • Ablation Gap: Measures the difference in model output when removing features based on the explanation versus removing a random set of equal size. A large gap indicates high faithfulness.
  • Necessity vs. Sufficiency: Distinguishes features that are required for the prediction (necessity) from those that can independently trigger it (sufficiency).
06

Faithfulness vs. Plausibility

A critical distinction in explainable AI: faithfulness is an objective property of the explanation's fidelity to the model's internal mechanics, while plausibility is a subjective measure of how convincing the explanation appears to a human.

  • The Interpretability Illusion: A smooth, anatomically plausible saliency map can be completely unfaithful, creating a false sense of security in clinical settings.
  • Human-Grounded Evaluation: Plausibility is measured via clinician surveys; faithfulness is measured via perturbation and ablation.
  • Regulatory Relevance: Bodies like the FDA prioritize faithfulness over plausibility for SaMD audit trails, as it verifies the model's true reasoning, not just a post-hoc rationalization.
FAITHFULNESS SCORE EXPLAINED

Frequently Asked Questions

A deep dive into the quantitative metric used to validate whether an AI explanation truly reflects the model's internal reasoning process, a critical requirement for regulatory compliance in medical imaging diagnostics.

A Faithfulness Score is a quantitative metric that evaluates the accuracy of a feature attribution explanation by measuring the correlation between the attributed importance scores and the actual change in model output when the corresponding input features are perturbed or removed. Formally, it assesses whether the pixels or regions highlighted as 'important' by a saliency map are genuinely causal to the model's prediction. The core principle is perturbation-based evaluation: if an explanation claims a set of pixels is critical, deleting or altering those pixels must cause a proportionally significant drop in the model's confidence for the predicted class. A perfectly faithful explanation would show a monotonic decrease in the target class probability as features are removed in descending order of attributed importance. This metric is foundational for regulatory explainability in medical imaging, as it distinguishes between a plausible-looking heatmap and a genuine representation of the model's decision logic.

COMPARATIVE ANALYSIS

Faithfulness vs. Other XAI Evaluation Criteria

A comparison of faithfulness against other key quantitative metrics used to evaluate the quality of post-hoc explanations in medical imaging AI.

Evaluation CriterionFaithfulnessRobustnessComplexity

Core Question

Does the explanation reflect the model's true reasoning?

Is the explanation stable under minor input perturbations?

How concise and human-interpretable is the explanation?

Primary Measurement

Correlation between feature importance and model output change upon perturbation

Max-sensitivity or local Lipschitz continuity of the explanation function

Entropy, sparsity, or effective number of non-zero features

Key Metric Example

Pearson Correlation Coefficient (PCC)

Local Lipschitz Estimate

Gini Index or Shannon Entropy

Sensitivity to Model Internals

Sensitivity to Input Noise

Detects Interpretability Illusion

Relevance to Regulatory Audit

Critical for verifying diagnostic logic

Important for ensuring consistent outputs

Useful for clinician cognitive load assessment

Toolkit Support (Quantus)

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.