Inferensys

Glossary

Deletion Metric

An evaluation metric that measures the quality of an attribution map by incrementally removing pixels from most to least important and recording the resulting decay in the model's prediction probability.
ML engineer working on model compression and quantization, laptop showing performance benchmarks, technical workspace.
FAITHFULNESS EVALUATION

What is Deletion Metric?

A quantitative evaluation criterion that measures the quality of an attribution map by incrementally removing pixels from most to least important and recording the resulting decay in the model's prediction probability.

The Deletion Metric is a faithfulness evaluation protocol that quantifies the accuracy of a feature attribution map by iteratively removing input features in descending order of attributed importance. A faithful explanation will cause a steep, monotonic decline in the model's prediction score as the most salient pixels are deleted, indicating that the attribution correctly identified the evidence the model relied upon.

This metric is typically visualized as a curve plotting the model's probability against the fraction of removed features, with the Area Under the Deletion Curve (AUDC) providing a single scalar summary. A lower AUDC signifies a more faithful attribution. It serves as the direct counterpart to the Insertion Metric, which measures probability increase when adding features to a blurred baseline.

EVALUATION PROTOCOL

Key Characteristics of Deletion Metrics

The Deletion Metric quantifies the fidelity of an attribution map by measuring the decay in a model's prediction probability as the most salient pixels are systematically removed.

01

Core Mechanism: Iterative Perturbation

The deletion metric operates by iteratively removing pixels from the input image in descending order of their attributed importance. At each step, the model's prediction probability for the target class is recorded. A sharp, monotonic drop in probability indicates a high-quality attribution map where the method correctly identified the pixels most critical to the model's decision. The area under the resulting probability curve quantifies overall explanation fidelity.

AUC
Primary Quantifier
02

Mathematical Formulation

Given an input x, an attribution map A, and a model f, the deletion curve is constructed by:

  • Step 1: Rank pixels by descending importance from A.
  • Step 2: Sequentially replace the top k pixels with a baseline value (e.g., zero or gray).
  • Step 3: Compute f(x_masked) at each step. The Deletion Score is often reported as the Area Over the Curve (AOC) or the drop in log-odds, with lower scores indicating better explanations.
f(x_masked)
Monitored Output
04

Baseline Selection Sensitivity

The choice of baseline value for replaced pixels critically impacts the metric. Common strategies include:

  • Zero Baseline: Replacing pixels with black (0).
  • Blur Baseline: Replacing with a heavily blurred version of the image.
  • Noise Baseline: Replacing with random Gaussian noise. A poor baseline can introduce out-of-distribution artifacts that cause spurious probability drops unrelated to feature importance. The blurred baseline is often preferred as it preserves local color statistics while destroying structural information.
05

Faithfulness and Sanity Checks

The deletion metric serves as a critical sanity check for attribution methods. A truly faithful explanation must outperform random baselines. Key validations include:

  • Random Attribution: A random ordering of pixels should produce a significantly slower probability decay.
  • Edge Detection: Simple edge detectors (e.g., Sobel) should not outperform sophisticated attribution methods.
  • Model Parameter Randomization: If model weights are cascadingly randomized, the deletion curve should degrade, proving the explanation is sensitive to the learned parameters.
DECOMMISSIONING PIXELS

Frequently Asked Questions

A deep dive into the Deletion Metric, a foundational evaluation protocol for measuring the fidelity and compactness of feature attribution maps by observing the decay in prediction confidence as critical information is surgically removed.

The Deletion Metric is a faithfulness evaluation protocol that quantifies the quality of a saliency or attribution map by iteratively removing input features—ranked from most to least important—and measuring the resulting decline in the model's prediction probability. The core mechanism involves replacing the top-k most salient pixels (or tokens) with a non-informative baseline value (e.g., black pixels or zero embeddings) and recording the model's softmax output for the target class. The process generates a deletion curve plotting the prediction score against the fraction of removed features. A sharp, monotonic drop indicates a high-quality explanation where the attribution method correctly identified the features most responsible for the prediction. The area under this deletion curve (or over it, depending on normalization) serves as the summary statistic; a lower area under the probability curve signifies a more faithful attribution map. This metric directly tests the causal relationship between the highlighted features and the model's output, moving beyond visual plausibility to functional verification.

PERTURBATION-BASED EVALUATION

Deletion Metric vs. Insertion Metric

Comparing the two complementary perturbation protocols used to evaluate the faithfulness of feature attribution maps.

FeatureDeletion MetricInsertion Metric

Perturbation Direction

Most important first

Most important first

Starting State

Original image

Blurred or zero baseline

Action Performed

Remove or zero out pixels

Add or reveal pixels

Curve Trend

Monotonically decreasing

Monotonically increasing

Optimal Curve Area

Small area under curve

Large area under curve

Primary Failure Mode

Insensitive to false positives

Insensitive to false negatives

Sensitivity to Baseline

Low

High

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.