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.
Glossary
Deletion Metric

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.
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.
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.
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.
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
kpixels 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.
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.
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.
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.
Deletion Metric vs. Insertion Metric
Comparing the two complementary perturbation protocols used to evaluate the faithfulness of feature attribution maps.
| Feature | Deletion Metric | Insertion 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 |
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 measuring and validating the quality of feature attribution maps using perturbation-based protocols.
Insertion Metric
The complementary evaluation protocol to the Deletion Metric. Instead of removing pixels, it incrementally adds pixels from most to least important into a blurred or zeroed baseline image. The area under the curve (AUC) of the model's prediction probability as pixels are inserted measures attribution quality. A steep, early rise in probability indicates the attribution map correctly identified the most salient regions. This metric is often paired with deletion to provide a comprehensive view of an explanation's fidelity.
Faithfulness Metric
A quantitative evaluation criterion that measures how accurately an attribution map reflects the true importance of features. The core principle is that perturbing the inputs deemed most important by an explanation should cause a correspondingly large change in the model's output. Both the Deletion and Insertion metrics are specific, widely adopted instantiations of the general faithfulness framework. A faithful explanation is one that mirrors the model's actual decision logic, not just plausible-sounding patterns.
ROAR (RemOve And Retrain)
An evaluation protocol that goes beyond single-instance perturbation. ROAR iteratively retrains a model from scratch after removing a fraction of the most important features (as ranked by an attribution method) from the entire training dataset. The resulting degradation in the retrained model's performance is measured. If an attribution method identifies truly important features, a model retrained without them should suffer a significant performance drop. This tests whether attributions capture dataset-level signal, not just instance-level noise.
Axiomatic Attribution
A theoretical framework that defines desirable mathematical properties a feature attribution method must satisfy to be considered reliable. Key axioms include:
- Completeness: Attributions sum to the prediction difference from a baseline.
- Sensitivity: If an input changes and the prediction changes, that input must receive non-zero attribution.
- Implementation Invariance: Two functionally identical models must receive identical attributions. Methods like Integrated Gradients are designed to satisfy these axioms, providing a theoretical guarantee that complements empirical evaluation with the Deletion Metric.
Occlusion Sensitivity
A foundational perturbation-based attribution method that directly inspired the Deletion Metric. It systematically occludes different regions of an input (e.g., with a gray square) and measures the resulting change in the model's prediction probability. The Deletion Metric formalizes this idea into a rigorous evaluation protocol by defining a specific perturbation strategy (progressive removal from most to least important) and a summary statistic (AUC of the probability decay curve).
Extremal Perturbation
An optimization-based attribution method that finds the smallest smooth mask that maximally preserves or destroys a model's prediction. Unlike the Deletion Metric, which evaluates a pre-computed attribution map, Extremal Perturbation directly optimizes for a compact, interpretable saliency mask. The resulting masks are naturally smooth and avoid the jittery artifacts common in gradient-based methods. It provides an alternative lens on what constitutes a 'good' explanation: maximal information with minimal input area.

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