arXiv:2610.09844cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09844

For Those Who Believe in Faithfulness: Optimizing the Area Under Insertion and Deletion Curves for Ranking Relative Feature Importance

Bjørn Leth Møller, Bulat Ibragimov, Christian Igel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Bjørn Leth Møller, Bulat Ibragimov, Christian Igel

Abstract—The adoption of machine learning for socially relevant tasks requires effective explainable artificial intelligence (XAI) methods to better understand the behavior of machine learning models. Attribution methods are a popular XAI approach in which input-output relationships are characterized by heat maps that reflect the relative importance of input features for a particular prediction. The quality of such maps is often assessed by measuring faithfulness based on the area under insertion and deletion curves, which measures changes in the model output as features are added and removed. In this study, we derive an objective function from this notion of faithfulness and a way to approximate its gradient. We establish the connection between insertion curves and top-k feature selection, which leads to a loss function measuring the quality of attributions. Randomization of the loss allows us to efficiently approximate its gradient. To show the effectiveness of the general approach, we combine the loss function with the neural explanation mask framework. The resulting method, termed Ra-NEM, can be used with any differentiable model without affecting the model's performance. Experiments demonstrate that Ra-NEM provides accurate attributions robustly and efficiently. Compared to other algorithms, the attributions have not only higher faithfulness but also perform well in terms of other XAI metrics. The high inference speed of Ra-NEM makes the method suitable for online applications. The code is available online.

Index Terms—Explainable AI, Smooth top-k feature selection, Occlusion based explanations

1 INTRODUCTION

Explainable AI (XAI) aims to clarify how and why a model produces specific outputs from given inputs. This insight is needed to provide a higher level of transparency and safety in real-world applications [1] and is increasingly emphasized in regulatory frameworks [2]. A wide range of tasks fall under the umbrella of XAI. One of the most fundamental ones is to estimate the importance of individual input features for the model prediction, usually through a feature map, also referred to as an attribution, which assigns to each input feature some importance score. While verification of attribution maps is still an open research question, one quality commonly measured during evaluation is faithfulness, which attempts to quantify how well the attribution aligns with the model's behavior for a given input-output pair. Faithfulness, in turn, is often assessed through deletion and insertion curves [3], [4], [5]. Introduced in [3], the insertion curve measures changes in the model output as features are added in order of highest importance. A higher area under the curve (AUC) indicates better explanations. Similarly, the deletion curve tracks how much the output changes when the features are removed in reverse order. In this case, a low AUC indicates a good attribution. Although many different heuristics have been proposed to solve the attribution problem [6], none, to our knowledge, has approached it by optimizing the insertion and/or deletion curve directly. Assuming that faithfulness defined based on these curves is a desirable property of an attribution, directly optimizing the area under these curves would be a principled way of generating high-quality attributions. In the following, we present an objective function that can be used to directly optimize the AUCs and an efficient approximation of its gradient that allows for real-time applications. The objective can be combined with other loss terms; however, we empirically show that the objective function alone is sufficient to provide faithful attributions that score high in terms of Average Sensitivity [7] and the Minimal Deletion Set metric [5], passing the MPRT (Model Parameter Randomization Test) [8].

This study (i) establishes a link between top-k feature selection with variable k and the insertion and deletion curves; (ii) states the sample complexity of Monte Carlo approximations of the area under these curves; (iii) proposes a differentiable operator for feature masking depending on the top-k features selected via the “Gumbel-top trick” [9]; (iv) adds the new operator to the Neural Explanation Mask (NEM) framework [10] yielding Ranking-NEM (Ra-NEM), which produces sparse faithful explanations with low latency; and (v) experimentally evaluates Ra-NEM applied to different deep learning architectures for image classification in comparison to state-of-the-art attribution methods, demonstrating that the new approach and performs, on average, superior in terms of faithfulness, inference speed, and robustness.

References (37)