<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Sum-of-Parts: Self-Attributing Neural Networks with End-to-End Learning of Feature Groups</title></titleStmt>
			<publicationStmt>
				<publisher>PMLR</publisher>
				<date>07/19/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10675368</idno>
					<idno type="doi"></idno>
					
					<author>Weiqiu You</author><author>Anton Xue</author><author>Shreya Havaldar</author><author>Delip Rao</author><author>Helen Jin</author><author>Chris Callison-Burch</author><author>Eric Wong</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Self-attributing neural networks (SANNs) present a potential path towards interpretable models for high-dimensional problems, but often face significant trade-offs in performance. In this work, we formally prove a lower bound on errors of per-feature SANNs, whereas group-based SANNs can achieve zero error and thus high performance. Motivated by these insights, we propose Sum-of-Parts (SOP), a framework that transforms any differentiable model into a group-based SANN, where feature groups are learned end-to-end without group supervision. SOP achieves state-of-the-art performance for SANNs on vision and language tasks, and we validate that the groups are interpretable on a range of quantitative and semantic metrics. We further validate the utility of SOP explanations in model debugging and cosmological scientific discovery.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Machine learning (ML) models are powerful at complex tasks, but also notoriously opaque. In high-stakes domains such as science <ref type="bibr">(Li et al., 2021;</ref><ref type="bibr">Zednik &amp; Boelsen, 2022)</ref> and medicine <ref type="bibr">(Reyes et al., 2020;</ref><ref type="bibr">Tjoa &amp; Guan, 2021)</ref>, experts need explanations to trust the models' decisions. For instance, physicists use interpretable coefficients to validate an ML model's rediscovery of Kepler's first law <ref type="bibr">(Li et al., 2021)</ref>, while physicians require explanations to trust MLdriven diagnostic decisions <ref type="bibr">(Klauschen et al., 2024)</ref>. . Sum-of-Parts (SOP) linearly aggregates outputs from multiple feature groups. This maintains performance while ensuring interpretability. SOP first generates groups using a group generator &#915;, predicts with a pre-trained backbone h, and aggregates the group predictions with a group selector &#952;.</p><p>Self-explaining neural networks (SENNs) were proposed as a way to create neural networks with guaranteed linear interpretations <ref type="bibr">(Alvarez Melis &amp; Jaakkola, 2018)</ref>. Specifically, SENNs express predictions as linear combinations of interpretable atoms scaled by learnable coefficients, a natural generalization of the statistical interpretation of the classic linear model. These interpretable atoms represent semantic notions such as object segments in images or example image prototypes <ref type="bibr">(Alvarez Melis &amp; Jaakkola, 2018)</ref>.</p><p>A common class of self-explaining neural networks, which we refer to as Self-Attributing Neural Networks (SANNs), use embedded feature subsets as interpretable atoms <ref type="bibr">(Brendel &amp; Bethge, 2019;</ref><ref type="bibr">Jain et al., 2020;</ref><ref type="bibr">Agarwal et al., 2021)</ref>. SANNs have predictions faithfully decomposable as linear combinations of feature subset contributions. On the other hand, post-hoc feature attributions fail to pass the sanity checks for faithfulness <ref type="bibr">(Sundararajan et al., 2017;</ref><ref type="bibr">Adebayo et al., 2018)</ref>.</p><p>However, SANNs often exhibit performance trade-offs and rely on specific components such as per-feature modules in NAM <ref type="bibr">(Agarwal et al., 2021)</ref>, convolutional layers in Bag-Net <ref type="bibr">(Brendel &amp; Bethge, 2019)</ref>, or attention mechanisms in FRESH <ref type="bibr">(Jain et al., 2020)</ref>. This architecture require-ment hinders SANN from leveraging pre-trained models that achieve high performance on target tasks.</p><p>To understand these limitations, we first analyze a theoretical barrier that limits SANN's performance. Specifically, we prove a lower bound on the error of a class of self-attributing neural networks that we refer to as per-feature SANNs. This result shows that it is impossible for per-feature SANNs to achieve high performance when features are highly correlated, a critical limitation in high-dimensional vision and language data. In contrast, we further prove that group-based SANNs can achieve high performance in these settings, but require a careful selection of feature groups.</p><p>To overcome these provable limitations for per-feature SANNs and inflexible group-based SANNs, we propose Sum-of-Parts (SOP), a flexible framework that transforms any differentiable model into a group-based SANN (Figure <ref type="figure">1</ref>). Specifically, given a backbone model and an input, the framework (1) identifies feature groups with a learned attention module, (2) encodes each group using a modelagnostic backbone, and (3) aggregates predictions with a second sparse attention module. This framework can then be learned end-to-end with only the final prediction labels, notably without the direct supervision of feature groups. Learned feature groups can capture the dynamic correlations in high-dimensional data, enabling SOP to overcome the theoretical limitations of per-feature and fixed-groupbased SANNs.</p><p>Our main contributions are as follows:</p><p>1. We propose Sum-of-Parts (SOP), a model-agnostic framework which transforms any model into a groupbased SANN. The groups in SOP are end-to-end learnable without the need for group label supervision.</p><p>2. We formally prove that groups are essential for SANNs to achieve low errors for highly correlated features.</p><p>In contrast, we prove a lower bound on per-feature SANNs' errors, which grows as the number of features increases.</p><p>3. We show that SOP achieves state-of-the-art performance among SANNs on vision and language tasks as informed by the theory, with learned interpretable groups validated on a range of quantitative and semantic metrics.</p><p>4. We validate the utility of SOP in debugging if correct/incorrect model predictions rely more on the background/objects, as well as a scientific discovery setting within cosmology by using the groups and scores to uncover new insights about galaxy formation.</p><p>2 Overcoming Self-Attributing Neural Networks' Limitations with Groups</p><p>In this section, we first review self-attributing neural networks (Section 2.1), and prove that the poor performance of previously explored per-feature SANNs is theoretically limited due to correlated features in high dimensional data (Section 2.2). In contrast, we further prove that group-based SANNs can overcome these fundamental limitations, motivating our proposed framework for learnable group-based SANNs (Section 2.3).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Self-Attributing Neural Networks</head><p>Self explaining neural networks model predictions as a linear combination f (x) = i &#952;(x) i h(x) i , where &#952;(x) are linear coefficients and h(x) are referred to as interpretable atoms <ref type="bibr">(Alvarez Melis &amp; Jaakkola, 2018)</ref>. A common strategy for creating self-explaining neural networks is to use feature subsets as interpretable atoms. For example, Bag-Net <ref type="bibr">(Brendel &amp; Bethge, 2019)</ref> or Neural Additive Models <ref type="bibr">(Agarwal et al., 2021)</ref> decompose predictions into a linear combination of terms, where each term is directly computed from and attributed to a subset of input features. We denote such models, which combine the interpretability of linearity with guaranteed attributions to input features, as Self-Attributing Neural Networks (SANNs).</p><p>Definition 2.1. A self-attributing neural network f : R d &#8594; R given input x &#8712; R d decomposes predictions as follows:</p><p>where &#952;(x) &#8712; R m are linear coefficients, and h(x Gi ) &#8712; R m are embeddings of the feature subset x Gi corresponding to the subset G i &#8838; <ref type="bibr">[d]</ref>. Note that m can be different from the number of raw features d.</p><p>The resulting linear combination constitutes a faithfulby-construction explanation for the decision process of the model <ref type="bibr">(Lyu et al., 2024)</ref>. SANNs are only as interpretable as the underlying feature subsets <ref type="bibr">(Alvarez Melis &amp; Jaakkola, 2018;</ref><ref type="bibr">Zytek et al., 2022)</ref>, and different SANNs have explored various feature subsets x Gi . For example, NAM <ref type="bibr">(Agarwal et al., 2021)</ref> uses individual features, Bag-Net <ref type="bibr">(Brendel &amp; Bethge, 2019)</ref> relies on large patches, and FRESH <ref type="bibr">(Jain et al., 2020</ref>) selects a single subset using attention scores. However, across these subsets, SANNs have consistently exhibit significant trade-offs in performance in exchange for interpretability. In this section, we theoretically analyze the underlying cause for this trade-off and how SANNs can overcome these barriers.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Lower Bounds on the Error of Per-feature SANNs</head><p>One class of SANNs uses individual features as interpretable atoms <ref type="bibr">(Agarwal et al., 2021)</ref>, where each feature subset G i = {i} and the corresponding interpretable atom h(x Gi ) = h(x i ) is the encoding of exactly one feature x i . We begin by analyzing the error of per-feature SANNs.</p><p>In order for such models to be accurate, the contribution of a feature to the true label should match the change in prediction when the feature is removed or added. Similarly, the contribution of a subset, Gi&#8838;S &#945; i , should capture the change in prediction when the subset S is excluded or included. We formalize this difference between a SANN prediction and the ground truth when inserting or deleting subsets of features as insertion and deletion errors, respectively. Definition 2.2. (Insertion Error) Let &#945; i = &#952;(x) i h(x Gi ) be the total contribution of the ith feature group to the prediction of a SANN. Then, the insertion error of a self attributing neural network f</p><p>The total insertion error over all possible insertions is</p><p>The insertion error captures the difference between the ground truth effect of inserting a subset of features S and the corresponding change in the SANN. If these two quantities are close, then the error is low. The insertion error of a perfeature SANN is a special case where G = {{1}, . . . , {d}}.</p><p>For brevity of presentation, in this section we focus on insertion, and present analogous definitions and theorems for deletion to Appendix A. We note that the insertion and deletion procedures are analogous to insertion and deletion tests for post-hoc explanations <ref type="bibr">(Petsiuk et al., 2018;</ref><ref type="bibr">Samek et al., 2017)</ref>, but used here to capture the error of a SANN.</p><p>Error Lower Bounds for Data with Correlated Features.</p><p>We now prove that it is impossible for per-feature SANNs to perform well when the data contains correlated features. Specifically, in Theorem 2.3, we show that when estimating polynomials function with correlated features, per-feature SANNs have a non-trivial lower bound on the total insertion error.</p><p>Theorem 2.3 (Lower Bound on Insertion Error for Binomials). Let p : {0, 1} d &#8594; {0, 1, 2} be a multilinear binomial polynomial function. Furthermore suppose that the features can be partitioned into (S 1 , S 2 , S 3 ) of equal sizes where p(x) = i&#8712;S1&#8746;S2 x i + j&#8712;S2&#8746;S3 x j . Then,</p><p>, where D ins ( &#955;) = ( &#955;1 -&#955;2 ) &#8868; c is the lower bound, &#955; is a dual feasible point, and c is a constant as defined in (16).</p><p>To derive this lower bound, we formulated the minimum total error of any SANN as a linear program, and used a dual feasible point to compute a lower bound. The proof and an analogous theorem for deletion error on monomials (Theorem A.2) are presented in Appendix A.</p><p>Lower Bounds Grow Rapidly with Dimension. In Figure <ref type="figure">2</ref>, we calculate the lower bound using ECOS <ref type="bibr">(Domahidi et al., 2013)</ref> and plot the lower bound for total insertion and deletion errors as the feature dimension grows (Figure <ref type="figure">2</ref>), and observe that these errors increase exponentially with d. Altogether, these theoretical lower bounds and empirical trends suggest that per-feature SANNs are fundamentally in-</p><p>Algorithm 1 The Sum-of-Parts Framework Require: Backbone Pred h, Backbone Encoder h h , Embedding Model h e , Class Weights C h</p><p>{Group Generating (trained)}</p><p>capable of modeling high-dimensional data, as they cannot model even simple polynomials.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Group-based Self-Attributing Neural Networks Can Overcome the Performance Barrier</head><p>The fundamental limitation of per-feature SANNs comes from its choice of interpretable atom: individual features are unable to capture correlations between multiple features. If we allow SANNs to use more expressive interpretable atoms composed of feature groups, can we get past this limitation?</p><p>To answer this question, we carry out an analogous analysis for more general, group-based SANNs.</p><p>In this section, we summarize our main theoretical result in Theorem 2.4: we prove that there exist group-based SANNs that can not only perfectly capture the earlier settings in Theorem 2.3 (and Theorem A.2 in the appendix), but also far more complex, general polynomials with zero error. In other words, the right groups can enable SANNs to capture correlated signals and overcome the performance barrier. Theorem 2.4 (Informal: Zero Group Insertion and Deletion Error). For any general m-nomial polynomial p, having at most m groups is sufficient for a group-based selfattributing neural network to achieve zero insertion and deletion error. See Theorem A.5 for full theorem and proof.</p><p>Intuitively, a SANN can achieve low error if its groups align with the correlations in the data. Specifically, consider data generated from a polynomial with multiple terms p</p><p>, where each q i (x G &#8242; i ) is a multiplicative term that depends on the group of features in G &#8242; i . Then, a group-based SANN can achieve low error if each correlated feature group G &#8242; i aligns with a SANN group G i . On the other hand, misaligned or insufficiently many groups lead to nonzero errors, highlighting how groupalignment is key to SANN performance.</p><p>While this theorem demonstrates that SANNs can model highly complex polynomials, it also provides insight into why existing SANNs have suffered major performance trade-offs. For example, SANNs that rely on rigid patterns <ref type="bibr">(Brendel &amp; Bethge, 2019)</ref>, use groups that are too small <ref type="bibr">(Agarwal et al., 2021)</ref> or use too few groups <ref type="bibr">(Jain et al., 2020)</ref> are unlikely to align with the ground truth correlations. In contrast, a high-performing SANN requires the ability to use many groups of flexible patterns to capture the diverse signals in high-dimensional data. These criteria motivate a new type of SANN that can overcome this theoretical performance barrier: the Sum-of-Parts framework.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">The Sum-of-Parts Framework</head><p>In this section, we introduce our main technical contribution Sum-of-Parts (SOP), a framework that transforms any differentiable model into a group-based self-attributing model.</p><p>Suppose we have an input x &#8712; R d and a backbone model h : R d &#8594; R that makes a prediction with the input, and we hope to convert h to a SANN. A SANN requires components to generate and encode feature subsets and another component to assign them coefficients. SOP therefore naturally consists of three parts: a group generator &#915; : R d &#8594; {0, 1} m&#215;d that generates groups g 1 , . . . , g m &#8712; {0, 1} d , a backbone predictor h : R d &#8594; R that makes a prediction with each group of features, and a group selector &#952; : {0, 1} m&#215;d &#215; R d &#8594; [0, 1] m that assigns scores to the groups:</p><p>where g i &#8712; &#915;(x).</p><p>group generator (trained)</p><p>Here we consider a single predicted logit, while the process can be repeated in batch for multiple logits or classes. Our algorithm is illustrated in Figure <ref type="figure">1</ref> and Algorithm 1.</p><p>Group Generator &#915; : R d &#8594; {0, 1} m&#215;d takes in an input x &#8712; R d and outputs m binary group masks g 1 , . . . , g m &#8712; {0, 1} d , where g ij = 1 if and only if the feature j is included in group g i . <ref type="foot">2</ref> It uses a multi-headed self-attention module <ref type="bibr">(Vaswani et al., 2017)</ref> to assign scores to features, and threshold each attention distribution to include top &#964; = 20% features to each group.</p><p>where the encoder h e : R d &#8594; R d&#215;e , which we typically take up to the penultimate layer of the backbone model, embeds each feature x i into a vector with embedding dimension e. The learnable group generator dynamically creates feature groups for each input, enabling better correlation compared to fixed groups (e.g., patches). Moreover, it has no specific architectural constraints on the backbone such as attention mechanisms.</p><p>Backbone Predictor h : R d &#8594; R then makes a prediction with the input x masked by each binary group mask g i :</p><p>where y i &#8712; R is the output logit and &#8857; is Hadamard product. The backbone predictor can be arbitrary high-performing pre-trained model.</p><p>Group Selector &#952; : {0, 1} m&#215;d &#215; R d &#8594; [0, 1] m then takes in the encoding of each group and uses a sparse crossattention module to assign each group a score.</p><p>where the query C h &#8712; R k is initialized using the target class's weights with k hidden dimensions and the key z = (h h (g 1 &#8857;x), . . . , h h (g m &#8857;x)) &#8712; R m&#215;k are last hidden states of all groups. As using a sparse number of groups avoids overloading human users, we replace the softmax in the cross attention with a sparse variant, the sparsemax operator <ref type="bibr">(Martins &amp; Astudillo, 2016)</ref>. Dynamically assigning scores allows the model to choose the most helpful groups for prediction, while the sparse number of groups ensures easy human interpretability.</p><p>The final prediction is made by aggregating predictions from each group g i with its assigned score c i .</p><p>To address the gradient flow issue caused by binarized groups, we incorporate a scaling factor based on the attention score in the final loss, as detailed in Appendix B.3. Additional details on self-attention, cross-attention, and embedding models are provided in Appendix B.</p><p>In summary, the learnable group generator dynamically creates correlated groups needed for high-performing SANNs, the model-agnostic framework supports arbitrary backbone predictors, and the sparse group selector assigns contributions for a small number of groups. Together, these components are essential for SOP to be a high-performing SANN, as informed by theory in Section 2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Empirical Evaluations of Sum-of-Parts</head><p>We conduct experiments using our framework on image and text tasks to see if our theory-informed framework actually uses the learned groups for (RQ1) high performance. Next, we quantitatively measure the interpretability of SOP with (RQ2) the performance at different inference-time sparsity levels, (RQ3) various faithfulness metrics, and (RQ4) whether the group masks are leaking predictive signals.</p><p>Then, we measure the interpretability of SOP semantically using (RQ5) semantic coherence of the groups. Finally, we validate SOP's utility on (RQ6) model debugging for unwanted behaviors in correct and incorrect predictions and (RQ7) scientific discovery in cosmology.</p><p>Experiment Setups. We evaluate on two vision and one language datasets: ImageNet-S <ref type="bibr">(Gao et al., 2022)</ref> image classification using Vision Transformer <ref type="bibr">(Dosovitskiy et al., 2021)</ref> backbone, CosmoGrid <ref type="bibr">(Kacprzak et al., 2023)</ref> cosmology image regression using CNN <ref type="bibr">(Matilla et al., 2020)</ref>, and MultiRC <ref type="bibr">(Khashabi et al., 2018)</ref> text classification using BERT <ref type="bibr">(Devlin et al., 2019)</ref>. We use patches as image features and tokens as text features. For baselines, we compare with other SANNs including XDNN <ref type="bibr">(Hesse et al., 2021)</ref>, BagNet <ref type="bibr">(Brendel &amp; Bethge, 2019)</ref>, and FRESH <ref type="bibr">(Jain et al., 2020)</ref>. Additionally, we convert post-hoc feature attribution methods to self-attributing models by using top 20% scored features as single groups and denote with "-F" (e.g. "LIME-F"), including LIME <ref type="bibr">(Ribeiro et al., 2016)</ref>, SHAP <ref type="bibr">(Lundberg &amp; Lee, 2017)</ref>, IG <ref type="bibr">(Sundararajan et al., 2017)</ref>, GC <ref type="bibr">(Selvaraju et al., 2016)</ref>, FG <ref type="bibr">(Srinivas &amp; Fleuret, 2019)</ref>, RISE <ref type="bibr">(Petsiuk et al., 2018)</ref>, Archipelago <ref type="bibr">(Tsang et al., 2020)</ref>, MFABA <ref type="bibr">(Zhu et al., 2024)</ref>, AGI <ref type="bibr">(Pan et al., 2021)</ref>, AMPE <ref type="bibr">(Zhu et al., 2023)</ref> and BCos <ref type="bibr">(B&#246;hle et al., 2022)</ref>. We use a maximum of 20 groups for SOP and the same 20 forward passes for all controllable baselines (Table <ref type="table">2</ref>). Details for datasets, models and baselines are in Appendix C.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Performance</head><p>(RQ1) How Well Does SOP Perform? As the theory suggests, SANNs can only perform well with groups of features that align with underlying correlations. We evaluate whether the learned groups allow SOP to achieve lower errors comparing to previous SANNs which rely on fixed or limited feature groups. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Computation Cost Methods</head><p>1&#215; forward pass IG-F, GC-F, FG-F, BCos-F, XDNN, BagNet, FRESH 20&#215; forward passes LIME-F, SHAP-F, RISE-F, MFABA-F, AGI-F, AMPE-F, SOP O(d 2 ) forward passes Archipelago-F (due to pairwise interaction testing) Table <ref type="table">2</ref>. Computation cost of different attribution methods in terms of number of forward passes. SOP uses 20x forward passes, and we use the same number of forward passes for perturbation-based baselines that we compare with.</p><p>the lowest errors and MSE for all tasks. SHAP-F is the second best on vision tasks but lags on MultiRC. No other SANN consistently performs well on all tasks, demonstrating that SOP's learnable groups do enable state-of-the-art performance across diverse settings.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Quantitative Measures for Interpretability</head><p>(RQ2) Can SOP Perform Well at Different Sparsity Levels? Sparser explanations are easier to understand for humans <ref type="bibr">(Lombrozo, 2007;</ref><ref type="bibr">Poursabzi-Sangdeh et al., 2021)</ref>, but the best sparsity level is often unknown at training time. SOP's group generator learns to generate groups at a specific sparsity, and we test whether it performs well across other sparsity levels without retraining. Figure <ref type="figure">3</ref> shows that as sparsity increases (&#8805; 80%, keeping &#8804; 20% features per group), SOP's error grows more slowly than other SANNs, maintaining much lower errors at extreme sparsity. Similar trends are observed in CosmoGrid and MultiRC (Appendix C.4.2). For MultiRC, FRESH slightly outperforms SOP for untrained sparsity levels, as it is optimized for language tasks. Overall, SOP trained on one sparsity also performs well on other sparsity levels at inference time.</p><p>3 Requires specialized architectures and thus only included for ImageNet-S where pre-trained models exist.</p><p>0.0 0.2 0.4 0.6 0.8 Sparsity 0.2 0.4 0.6 0.8 1.0 Error ImageNet VisionTransformer Beyond group size, we examine how the total number of groups affects performance. Ablation studies on ImageNet-S using 1, 2, 5, 10, 20 groups show that performance improves with more groups but saturates at 5 groups. Using only 2 groups increases the error rate by 6 percentage points compared to 5 groups, suggesting SOP can achieve approximately 4x greater computational efficiency while maintaining comparable performance.</p><p>(RQ3) How Faithful Is SOP with Respect to Classic Metrics? While self-attributing neural networks ensure faithfulness by construction through linear aggregation, we check how well SOP performs on classic faithfulness metrics: fidelity <ref type="bibr">(Yu &amp; Varshney, 2017;</ref><ref type="bibr">Chen et al., 2019)</ref>, insertion, and deletion <ref type="bibr">(Petsiuk et al., 2018;</ref><ref type="bibr">Samek et al., 2017)</ref>. Fidelity measures how well summed explanations match the model's prediction using KL-divergence, while insertion and deletion evaluate the impact of high-scoring features via perturbations and area-under-curve (AUC) computation.</p><p>Definitions and results are in Appendix C.4.3, C.4.4.</p><p>All SANNs, including SOP, achieve a perfect fidelity score of 0, while no post-hoc method does (Table <ref type="table">A5</ref>), indicating only SANNs faithfully match predictions. SOP outperforms all baselines on insertion across all tasks, and on deletion for ImageNet, while methods like Archipelago, LIME, and FRESH perform better on deletion in some cases (Tables <ref type="table">3</ref> and <ref type="table">A6</ref>). In fact, as deletion score measures how fast the predicted probability drops when the most scored features are deleted, it biases towards models that use a small number of features, regardless of how faithful the model is. SOP which relies on signals from multiple groups then naturally performs better on insertion than deletion. Ablations using smaller step sizes and occlusion values (Table <ref type="table">A7</ref>) show consistent and thus robust results. In summary, SOP performs strong on most classic faithfulness metrics in addition to its built-in faithfulness.</p><p>(RQ4) Do SOP's Attributions Contain Predictive Signals? The SANN's claim of linear interpretability relies on the assumption that feature groups (which form the interpretable atoms) do not inherently encode label information. If these groups already contain predictive signals, the backbone model-not the coefficients-would drive predictions, rendering the coefficients uninformative. To validate this, we train probing models to predict labels solely from group masks: high accuracy indicates that label information is pre-encoded in the groups. Figure <ref type="figure">4</ref> shows that group masks from SOP achieves random accuracy (0.10%) on ImageNet-S using a CNN probing model. In comparison, probing models for groups from other SANNs achieve significantly higher accuracies, such as FG-F (13.40%) and AGI-F (10.66%). Thus SOP's generated groups do not leak information about the label compared to other SANNs, and the model's interpretablity is not weakened.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Semantic Measures for Interpretability</head><p>(RQ5) How Semantically Coherent are SOP Groups? Explanations need to be semantically coherent such as relating to object segments or human-understandable con- </p><p>R E S H S O P 0.00 0.05 0.10 0.15 Group Pred Acc ImageNet VisionTransformer Figure 4. (ImageNet Group Probing Accuracy) The powerful group generator in SOP is not doing all the work and not compromising SOP's interpretability. A CNN model trained on group masks from SOP is unable to obtain accuracies more than random (0.1% accuracy), while MFABA-F, AMPE-F, IG-F etc. do. RISE and Archipelago is omitted for the significant computational cost. Results for linear and ViT probing models are in Appendix C.4.5.</p><p>cepts. We thus ask how semantically coherent are the group explanations generated by SOP compared to other models? To evaluate this, we compute intersection-over-union (IOU) for ImageNet-S and MultiRC where ground-truth annotations exist, and threshold-based purity for Cosmo-Grid using expert-informed metrics for cosmological structures <ref type="bibr">(Matilla et al., 2020)</ref>. Table <ref type="table">1</ref> shows that SOP has the best semantic coherency on two vision tasks and a close second on the language task. Figure <ref type="figure">5</ref> illustrates an example of an image displaying a beagle, where SOP learns more semantically coherent groups than other methods without direct supervision. The exact formulations for IOU and purity, threshold ablations for CosmoGrid, and additional examples can be found in Appendix C.4.1. Additional experiments for human evaluation can be found in Appendix C.4.6. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Utility of SOP Explanations</head><p>(RQ6) Can We Use SOP Explanations to Debug Models?</p><p>As SOP explanations directly compose the final prediction, we want to see if we can use the group explanations to identify undesirable model behaviors. One such behavior is overly relying on background features for correct predictions, indicating potential spurious correlations. We analyze SOP's explanations to check which feature groups the model use to make correct and incorrect predictions. We find that SOP uses more objects in correct (64.9%) than incorrect (57.3%) examples. Figure <ref type="figure">6</ref> shows similar behavior for other SANN baselines. We conjecture that using objects, instead of relying on spurious background correlations, helps the model make correct predictions. Thus, explanations from SOP and other SANNs can help illuminate the reasoning behind model behaviors.</p><p>(RQ7) Can SOP Explanations Assist Scientific Discovery? The ultimate goal of interpretability methods is for domain experts to use these tools and explanations in real settings. To validate the usability of our approach, we collaborate with cosmologists and use SOP to discover new knowledge about the expansion of the universe and the growth of the cosmic structure.</p><p>Problem Formulation. Cosmologists hope to understand the relations of cosmological structures with two cosmological parameters related to the initial state of the universe: &#8486; m and &#963; 8 . The parameter &#8486; m captures the average energy density of all matter in the universe, while &#963; 8 describes the fluctuation of matter distribution <ref type="bibr">(Abbott et al., 2022)</ref>. However, these parameters are not directly measurable. What we can obtain are weak lensing mass maps, which are spatial distribution of matter density in the universe calculated using precise measurements of the shapes of &#8764; 100 million</p><p>E S H S O P 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 % Object Pixels ImageNet-S -Vision Transformer Correct Incorrect Figure 6. (ImageNet-S Percent of Groups that are Objects) We analyze the proportion of groups that are objects on ImageNet-S, and find that groups consistently consist more of objects when predicting correctly. This trend is consistently across methods.</p><p>galaxies <ref type="bibr">(Gatti et al., 2021)</ref>. While the direct relation from weak lensing maps to &#8486; m and &#963; 8 is unknown, cosmologists create simulated weak lensing maps from different &#8486; m and &#963; 8 values and train CNNs <ref type="bibr">(Ribli et al., 2019;</ref><ref type="bibr">Matilla et al., 2020;</ref><ref type="bibr">Fluri et al., 2022)</ref> to reversely predict &#8486; m and &#963; 8 from the mass maps. An open question in cosmology remains:</p><p>What structures from weak lensing maps drive the inference of the cosmological parameters &#8486; m and &#963; 8 ?</p><p>As validated in Section 4.3 (RQ5), the groups from SOP correspond to more cosmological structures-voids and clustersthan other self-attributing models. Voids are large regions under-dense relative to the mean density (pixel intensity &lt; 0&#963;) and appear as dark regions in the mass maps, whereas clusters are areas of concentrated high density (pixel intensity &gt; 3&#963;) and appear as bright dots, as shown in Figure <ref type="figure">7</ref>.</p><p>Cosmological Findings. We then use the groups automatically generated by SOP and find the following new findings related to voids/clusters and &#8486; m /&#963; 8 :</p><p>1. Figure <ref type="figure">8a</ref> shows that for both voids and clusters, when they are used in the prediction, they weigh higher when predicting &#8486; m than &#963; 8 .</p><p>2. Figure <ref type="figure">8b</ref> shows that a lot of voids contribute 100% to the prediction, while most clusters contribute partially. This finding is consistent with previous work <ref type="bibr">(Matilla et al., 2020)</ref> that found that voids are the most important feature in prediction for low noise maps, as when the model does use voids, it relies on them more.</p><p>Therefore, we are able to obtain explanations meaningful to expert cosmologists from SOP, which is a promising step towards meaningful scientific discovery. We include additional cosmology background in Appendix D.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Related Works</head><p>Self-attributing neural networks uses feature-based interpretable atoms and include per-feature models such as NAM <ref type="bibr">(Agarwal et al., 2021)</ref>, and group-based models such as BagNet <ref type="bibr">(Brendel &amp; Bethge, 2019)</ref> and FRESH <ref type="bibr">(Jain et al., 2020)</ref>. While previous works did use per-feature SANNs mainly in tabular data domains <ref type="bibr">(Agarwal et al., 2021)</ref> and group-based SANNs in image and text domains <ref type="bibr">(Brendel &amp; Bethge, 2019;</ref><ref type="bibr">Jain et al., 2020)</ref>, they did not formalize the problem of growing error in per-feature SANNs. Also, previous models rely on specific architectures while our framework allows the use of arbitrary pre-trained models <ref type="bibr">(Li, 2023;</ref><ref type="bibr">Jo &amp; Kim, 2023)</ref>. Other self-explaining neural networks include prototype-based <ref type="bibr">(Ma et al., 2024;</ref><ref type="bibr">Wen et al., 2024)</ref> and concept-based <ref type="bibr">(Koh et al., 2020;</ref><ref type="bibr">Yang et al., 2023;</ref><ref type="bibr">Lai et al., 2024;</ref><ref type="bibr">Yang et al., 2024</ref>) models, which explain with prototypical examples or concepts instead of input features. Self-attributing models that we use have attributions to input features, it is not directly comparable to prototypes and concepts. Program-execution models <ref type="bibr">(Lyu et al., 2023)</ref> provide faithful reasoning but do not attribute to features.</p><p>For evaluating SANNs, <ref type="bibr">Nauta et al. (2023)</ref> advocates prioritizing performance over faithfulness as the primary metric; we adopt this approach in our evaluation. Coherence <ref type="bibr">(Nauta et al., 2023)</ref> is also proposed to evaluate how well the explanation aligns with domain knowledge ground truth, using metrics such as Intersection over Union <ref type="bibr">(Bau et al., 2017;</ref><ref type="bibr">Wang &amp; Vasconcelos, 2020)</ref>, outside-inside relevanace ratio <ref type="bibr">(Nam et al., 2020)</ref>, and pointing game accuracy <ref type="bibr">(Du et al., 2018;</ref><ref type="bibr">Huang &amp; Li, 2020)</ref>. We thus use IOU when there is ground truth <ref type="bibr">(Gao et al., 2022;</ref><ref type="bibr">DeYoung et al., 2020)</ref> and an expert-informed threshold-based purity when the ground truth is not available <ref type="bibr">(Matilla et al., 2020)</ref>. Human evalua- &#8486; m &#963; 8 Cosmological Parameter 0.0 0.5 1.0 Attribution Void Cluster (a) &#8486;m vs. &#963;8 Attributions 0.00 0.25 0.50 0.75 1.00 Contribution Density Void Cluster (b) Voids vs. Clusters Weights Figure 8. (a) &#8486;m relies more on cosmological structures than &#963;8, as shown by box plots of group weights from SOP for predicting &#8486;m and &#963;8. Voids on average contribute 50.7% to &#8486;m and 41.5% to &#963;8, and clusters contribute 34.0% to &#8486;m and 28.5% to &#963;8. (b) Many voids contribute 100% to the predictions, while clusters are weighted less, as shown by the density plot.</p><p>tions are used to validate utilities <ref type="bibr">(Kim et al., 2022;</ref><ref type="bibr">Akula et al., 2020;</ref><ref type="bibr">Hase &amp; Bansal, 2020)</ref>. We are using a standard human distinction task from the HIVE protocol <ref type="bibr">(Kim et al., 2022)</ref>. <ref type="bibr">Matilla et al. (2020)</ref> attempted to use post-hoc explanations in scientific discovery for cosmology. Our work uses a self-attributing model to validate the same results.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusion</head><p>We propose Sum-of-Parts (SOP), a new framework for converting an arbitrary pre-trained model to a self-attributing neural network. Our framework is model-agnostic and uses end-to-end learned groups without supervision, overcoming theoretical performance limitations of per-feature or fixedgroup SANNs. SOP empirically achieves state-of-the-art performance among SANNs across multiple datasets, and is shown to be useful for model debugging and uncovering insights in cosmological discovery. We hope this general framework allows people to build their own self-attributing models more easily and use the resulting explanations to extract meaningful insights from complex patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Impact Statement</head><p>This paper presents work aimed at providing interpretable explanations for machine learning models that are importantly, true to the model's reasoning process. We show that the groups of features learned in our model-agnostic framework for group-based self-attributing models provide insights in scientific discovery such as cosmology. The groups generated by our model can also be trustworthy references for decisions in other high-stakes domains such as medicine, law, and automation. We hope our work can help improve the state of explainable and trustworthy machine learning models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A Theory Details and Proofs</head><p>In addition to the insertion error, we can define the deletion error for a SANN and a target true function when excluding a subset. Definition A.1. (Deletion Error) Let &#945; i = &#952;(x) i h(x Gi ) be the total contribution of the ith feature group to the prediction of a SANN. Then the deletion error of a self-attributing neural network f</p><p>Then the total deletion error over all possible deletions is S&#8838; <ref type="bibr">[d]</ref> DelErr(G, &#945;, S).</p><p>We can solve the exact total deletion error for multilinear monomials with linear programs. These lowerbounds are then the minimum error in performance of SANNs attempting to learn the simple monomials. </p><p>where (M S , c S ) are defined as (M S ) i = 1 if i &#8712; S 0 otherwise, and c S contains the remaining constant terms.</p><p>This captures the faithfulness notion that &#945; i is faithful if it reflects a contribution of x i to the prediction of the target function.</p><p>Then, the self-attributing neural network f (x) = d i=1 &#945; * i with &#945; * that achieves the lowest possible faithfulness error over all possible subsets is &#945; * = arg min</p><p>This can be more compactly written as</p><p>The minimum total deletion error can then be solved by the following linear program</p><p>To obtain the lower bound for total deletion error, we can solve the dual of this linear program. Given the above primal linear program, we can find the Lagrangian</p><p>For the dual function to be bounded below, the coefficients of &#945; and &#946; must be zero:</p><p>Since we are minimizing over &#945;, &#946;, the dual objective is to maximize</p><p>In summary, the dual problem is</p><p>Let &#955; be feasible, then D ins ( &#955;) = (&#955; 1&#955; 2 ) &#8868; c &#8804; S&#8712;P InsErr(&#945;, S). We can then maximize the lower bound to the primal program (5) in linear programming solvers such as CVXPY which maximizes the dual program (9). x i . Then, the lower bound of total deletion error for p follows an exponential trend as dimension d grows, where the lower bound is approximately &#947; 0 + e &#947;1+&#947;2d , where (&#947; 0 , &#947; 1 , &#947; 2 ) = (-1.030, -1.171, 0.665).</p><p>We solve for &#945; * in (5) using ECOS in the cvxpy library for d &#8712; {2, . . . , 20}. To fit the exponential function, we fit a linear model to the log transform of the output which has high degree of fit (with a relative absolute error of 0.012), with the resulting exponential function shown in Figure <ref type="figure">2b</ref>.</p><p>In other words, Theorem A.2 states that we can find the exact lower bound of the total deletion error of a monomial, and Conjecture A.1 posits that lower bound of the total deletion error of any feature attribution of a monomial grows exponentially with respect to the dimension, as visualized in Figure <ref type="figure">2b</ref> For high-dimensional problems, this suggests that there does not exist a feature attribution that satisfies all possible deletion tests. On the other hand, monomials can easily achieve low insertion error, as formalized in Theorem A.3. Theorem A.3 (Insertion Error for Monomials). Let p : {0, 1} d &#8594; {0, 1} be a multilinear monomial function of d variables, p(x) = d i=1 x i . Then, for all x, there exists a self-attributing neural network f (x) = d i=1 &#945; i for p at x that incurs at most 1 total insertion error.</p><p>Proof. Consider &#945; = 0 d . If x &#824; = 1 d then this achieves 0 insertion error. Otherwise, suppose x = 1 d . Then, for all subsets S &#824; = [d], p(x S ) = 0 = i&#8712;S &#945; i so &#945; incurs no insertion error for all but one subset. For the last subset S = [d], the insertion error is 1. Therefore, the total insertion error is at most 1 for &#945; = 0 d . However, once we slightly increase the function complexity to binomials, we find that the total insertion error of any feature attribution likely follows an exponential trend with respect to d, as shown in Figure <ref type="figure">2a</ref>. Theorem 2.3 (Lower Bound on Insertion Error for Binomials). Let p : {0, 1} d &#8594; {0, 1, 2} be a multilinear binomial polynomial function. Furthermore suppose that the features can be partitioned into (S 1 , S 2 , S 3 ) of equal sizes where p(x) = i&#8712;S1&#8746;S2 x i + j&#8712;S2&#8746;S3 x j . Then, <ref type="bibr">S&#8838;[d]</ref> InsErr(G, &#945;, S) &#8805; D ins ( &#955;), where D ins ( &#955;) = ( &#955;1 -&#955;2 ) &#8868; c is the lower bound, &#955; is a dual feasible point, and c is a constant as defined in (16).</p><p>Proof. Consider x = 1 d . The addition error for a binomial function can be written as</p><p>where (M S , c S ) are defined as (M S ) i = 1 if i &#8712; S 0 otherwise, and c S contains the remaining constant terms. Then, the least possible insertion error that any attribution can achieve is</p><p>The minimum total insertion error can then be solved by the following linear program</p><p>To obtain the lower bound for total insertion error, we can solve the dual of this linear program. Given the above primal linear program, we can find the Lagrangian</p><p>For the dual function to be bounded below, the coefficients of &#945; and &#946; must be zero:</p><p>Since we are minimizing over &#945;, &#946;, the dual objective is to maximize</p><p>In summary, the dual problem is</p><p>Let &#955; be feasible, then D ins ( &#955;) = (&#955; 1&#955; 2 ) &#8868; c &#8804; S&#8712;P InsErr(&#945;, S). We can then maximize the lower bound to the primal program (12) in linear programming solvers such as CVXPY which maximizes the dual program (16).</p><p>Conjecture A.2 (Insertion Error for Binomials Grows Exponentially with Dimension). Let p be a multilinear binomial function of d variables as defined in Theorem 2.3. Then, the lower bound of total insertion error for p follows an exponential trend as dimension d grows, where the lower bound is approximately &#955; 0 + e &#955;1+&#955;2d , where (&#955; 0 , &#955; 1 , &#955; 2 ) = (4. <ref type="bibr">778, 1.332, 0.198)</ref>.</p><p>We maximize the lower bound by solving the dual linear program in (16) using ECOS in the cvxpy library for d &#8712; {2, . . . , 20}. To get the exponential function, we fit a linear model to the log transform of the output, doing a grid search over the auxiliary bias term. The resulting function has a high degree of fit (with a relative absolute error of 0.188), with the resulting exponential function shown in Figure <ref type="figure">2a</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.1 Groups</head><p>Theorem A.4 (Insertion and Deletion Error for Groups). Consider p 1 and p 2 , the polynomials from Conjecture A.1 and Conjecture A.2. Then, there exists a group-based self-attributing neural network with zero deletion and insertion error for both polynomials.</p><p>Proof. Let [d] denote {1, . . . , d}. First let p 1 (x) = i x i and consider a self-attributing neural network with one group,</p><p>Otherwise, no matter what subset S is being tested, S &#8838; [d] is always true, thus:</p><p>Therefore the total grouped deletion error for p 1 is 0. Next let p 2 (x) = i&#8712;S1&#8746;S2 x i + j&#8712;S2&#8746;S3 x j and consider a self-attributing neural network with two groups,</p><p>then</p><p>If S empty, then the insertion error is trivially 0. Otherwise suppose S is missing an element from one of S 1 or S 3 . WLOG suppose it is from S 1 but not S 2 or S 3 . Then,</p><p>Otherwise, suppose we are missing elements from both S 1 and S 3 . Then,</p><p>Lastly, suppose we are missing elements from S 2 . Then,</p><p>Thus by exhaustively checking all cases, p 2 has zero grouped insertion error. Therefore the total grouped insertion error for p 2 is 0. , where</p><p>is the set of indices for terms associated with group G i , and b ijk &#8712; Z + is the exponent for feature j in subset i in the term indexed by k &#8712; K i . Then, a self-attributing neural network needs at most m groups to achieve zero deletion and insertion error for polynomial p.</p><p>Proof. Let [d] denote {1, . . . , d}. Let q i (x) = k&#8712;Ki a ik j&#8712;Gi x b ijk j be the ith polynomial with K i terms, and then we can rewrite p(x) = q 1 (x) + &#8226; &#8226; &#8226; + q m (x). We prove by induction that we can have a self-attributing neural network of m groups G = {G 1 , . . . , G m } with contributions &#945; = {q 1 (x), . . . , q m (x)} to achieve zero deletion and insertion error for polynomial p. For groups and contribution scores for up to m groups, we denote with G (m) and &#945; (m) , and omit the superscripts when the context is clear.</p><p>Insertion. Base Case: Suppose m = 1, then p 1 (x) = k&#8712;K1 a 1k j&#8712;G1 x b 1jk j = q 1 (x) and consider a self-attributing neural network with one group, G (1) = {G 1 } with contribtuions &#945; (1) = {q 1 (x)}. As there are no other input features,</p><p>We proved that we can have a self-attributing neural network with groups G (1) = {G 1 } and group contributions &#945; (1) = {q 1 (x)} for polynomial p 1 (x) = q 1 (x), which only has one group. Therefore, we can need at most one group to achieve zero grouped insertion error for monomial p 1 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Inductive</head><p>Step: Assume that it holds for (m -1)-nomial polynomial p m-1 (x) = q 1 (x) + &#8226; &#8226; &#8226; + q m-1 (x) that we need at most (m -1) groups to achieve zero insertion error, where the groups are G (m-1) = {G 1 , . . . , G m-1 } with group contributions &#945; (m-1) = {q 1 (x), . . . , q m-1 (x)} which means that</p><p>This holds for all S &#8838; [d].</p><p>Now, we prove it for m-nomial polynomial p m (x) = q 1 (x) + &#8226; &#8226; &#8226; + q m (x). There are two cases. First, if G m &#8840; S, meaning that not all G m features are in S, but there are some parts of G m in &#172;S. Then f * (x S ) does not contain the polynomial term q m (x) that uses G m . Thus,</p><p>= InsErr(G (m-1) , &#945; (m-1) , S) = 0</p><p>Otherwise, if G m &#8838; S, meaning that all G m features are in S, and no features that are in G m are contained in S, then f * (x S ) contains the polynomial term q m (x) that uses G m . Thus,</p><p>The last steps of the above derivations use the induction from (17). Thus by exhaustively checking all cases, p m has zero group insertion error with self-attributing neural networks with groups G (m) and group contributions &#945; (m)</p><p>Deletion. Base Case: Suppose m = 1, then p 1 (x) = k&#8712;K1 a 1k j&#8712;S1 x b 1jk j = q 1 (x) and consider a self-attributing neural network with one group G (1) = {G 1 } and contribution &#945; (1) = {q 1 (x)}. As there are no other input features,</p><p>We proved that we can have a self-attributing neural network f (x) = &#952;(x) i h(x [d] ) = q 1 (x) with groups G (1) = {G 1 } and group contributions &#945; (1) = {q 1 (x)} for polynomial p 1 (x) = q 1 (x), which only has one group. Therefore, we can need at most one group to achieve zero grouped deletion error for monomial p 1 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Inductive</head><p>Step: Assume that it holds for (m -1)-nomial polynomial p m-1 (x) = q 1 (x) + &#8226; &#8226; &#8226; + q m-1 (x) that we need at most (m -1) groups to achieve zero grouped deletion error, which means that</p><p>This holds for all S &#8838; [d].</p><p>Now, we prove it for m-nomial polynomial p m (x) = q 1 (x) + &#8226; &#8226; &#8226; + q m (x). There are two cases. First, if G m &#8840; &#172;S, meaning that not all G m features are in &#172;S, but there are some parts of G m in S. Then f * (x &#172;S ) does not contain the polynomial term q m (x) that uses S m , and S &#8745; G i &#824; = &#8709;. Thus,  Otherwise, if G m &#8838; &#172;S, meaning that all S m features are in &#172;S, and no features that are in G m are contained in S, then f * (x &#172;S ) contains the polynomial term q m (x) that uses G m , and S &#8745; G i = &#8709;. Thus,</p><p>The last steps of the above derivations use the induction from (18). Thus by exhaustively checking all cases, p m has zero grouped deletion error with self-attributing neural network with groups G (m) and group contributions &#945; (m) .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.2 Alternative Mean Square Error Insertion/Deletion Errors</head><p>In the main paper, we use mean absolute error for Insertion Error and Deletion Error. Here we also compute the exact Deletion Errors for monomials and Insertion Errors for binomials up to d = 20. We conjecture that the two errors will also follow an exponential growth. Definition A.6. (Mean Square Deletion Error) Let &#945; i &#952;(x) i h(x Gi ) be the total contribution of the ith feature group to the prediction of a SANN. Then the mean square deletion error of a self-attributing neural network f (x) = m i=1 &#952;(x) i h(x Gi ) = i &#945; i for a target function f * : R d &#8594; R when removing a subset of features S from an input x is</p><p>d}. Then the total mean square deletion error over all possible deletions is S&#8838;[d] DelErr(G, &#945;, S). Theorem A.7 (Lower Bound on Mean Square Deletion Error for Monomials). Let p : {0, 1} d &#8594; {0, 1} be a multilinear monomial function of d variables, p(x) = d i=1 x i . Then, S&#8838;[d] DelErr MSE (G, &#945;, S) &#8805; &#945; * , where &#945; * del</p><p>is the lower bound, and M and c are constants as defined in (28).</p><p>Proof. Let x = 1 d , and let &#945; &#8712; R d be any feature attribution. Consider the set of all possible perturbations to the input, or the power set of all features P, We can write the error of the attribution under a given perturbation S &#8712; P as</p><p>where (M S , c S ) are defined as (M S ) i = 1 if i &#8712; S 0 otherwise, and c S contains the remaining constant terms.</p><p>This captures the faithfulness notion that &#945; i is faithful if it reflects a contribution of &#945; i to the prediction. Then, the feature attribution &#945; * that achieves the lowest possible faithfulness error over all possible subsets is</p><p>where</p><p>for an enumeration of all elements S i &#8712; P.</p><p>This is a quadratic function without constraint, and thus we can analytically solve the exact minimum by finding where the gradient is zero.</p><p>To solve min</p><p>We first expand the squared norm as</p><p>Substituting into the objective function:</p><p>Since 1 &#8868; is a summation operator over all elements, this simplifies to:</p><p>Then, we compute the gradient. We define</p><p>Taking the derivative with respect to &#945;:</p><p>Setting the gradient to zero:</p><p>Finally, we can solve for &#945;. If M &#8868; M is invertible, we obtain the optimal solution:</p><p>As M is the enumeration of all elements S i &#8712; P, the columns in M are linearly independent to each other, and thus M &#8712; {0, 1} 2 d &#215;d is invertible with column rank d.</p><p>By the fundamental rank theorem,</p><p>Since M &#8868; M &#8712; Z d&#215;d , it is then invertible.</p><p>Thus we prove that we can solve the optimal solution with (28). x i . Then, the lower bound of the total mean square deletion error for p follows an exponential trend as dimension d grows, where the lower bound of total mean square deletion error is approximately &#947; 0 + e &#947;1+&#947;2d , where (&#947; 0 , &#947; 1 , &#947; 2 ) = (-1.104, -1.720, 0.626).</p><p>We solve for &#945; * in ( <ref type="formula">20</ref>) using ( <ref type="formula">28</ref>) for d &#8712; {2, . . . , 20}. To fit the exponential function, we fit a linear model to the log transform of the output which has high degree of fit (with a relative square error of -0.293), with the resulting exponential function shown in Figure <ref type="figure">A9b</ref>.</p><p>Definition A.8. (Mean Square Insertion Error) Let &#945; i = &#952;(x) i h(x Gi ) be the total contribution of the ith feature group to the prediction of a SANN. Then, the mean square insertion error of a self attributing neural network</p><p>The total mean square insertion error over all possible insertions is S&#8838; <ref type="bibr">[d]</ref> InsErr(G, &#945;, S).</p><p>Theorem A.9 (Lower Bound on Mean Square Insertion Error for Binomials). Let p : {0, 1} d &#8594; {0, 1, 2} be a multilinear binomial polynomial function of d variables. Furthermore suppose that the features can be partitioned into (S 1 , S 2 , S 3 ) of equal sizes where p(x) = i&#8712;S1&#8746;S2 x i + j&#8712;S2&#8746;S3 x j . Then, <ref type="bibr">S&#8838;[d]</ref> InsErr MSE (G, &#945;, S) &#8805; &#945; * , where &#945; * del = (M &#8868; M ) -1 M &#8868; c is the lower bound, and M and c are constants as defined in (40).</p><p>Proof. Consider x = 1 d . The addition error for a binomial function can be written as</p><p>where (M S , c S ) are defined as (M S ) i = 1 if i &#8712; S 0 otherwise, and c S contains the remaining constant terms. Then, the least possible insertion error that any attribution can achieve is</p><p>where (M, c) are constructed by stacking (M S , c S ) for some enumeration of S &#8712; P.</p><p>This is a quadratic function without constraint, and thus we can analytically solve the exact minimum by finding where the gradient is zero.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.3 Discussion on Theoretical Proofs</head><p>While our theorems and that of <ref type="bibr">Bilodeau et al. (2024)</ref> both present impossibility results for feature attributions, the assumptions and resulting theorem are different. <ref type="bibr">Bilodeau et al. (2024)</ref> put forth a result that says (put simply) that linear models cannot accurately capture complex models, where complexity is measured by having a large number of piece-wise linear components. Indeed, if we had shown that a linear model is not a good approximation of a highly non-linear model, then this would not be a novel contribution. This is also an unsurprising result (it is not surprising that a linear model cannot approximate a highly non-linear model).</p><p>However, our result paints a significantly bleaker picture: we show that a linear feature attribution is unable to model the extremely simple functions in our theorems. Our examples distill the problem to the fundamental issue in its purest form: correlated features. Specifically, we show feature attribution is impossible with only one group of correlated features. This is the polar opposite assumption than that of <ref type="bibr">Bilodeau et al. (2024)</ref>, and we argue that it is more surprising for feature attribution to be impossible for simpler functions than for complex functions.</p><p>Second, we provide not only a negative impossibility result for standard feature attributions, but also a positive result for grouped feature attributions that provides a path forward and motivates the approach in our submission. This is in contrast to <ref type="bibr">Bilodeau et al. (2024)</ref>, which only presents negative impossibility results in standard feature attributions without clear suggestions on where to go.</p><p>In summary, our theoretical results differ in Assumption (we assume simple functions with a single correlation whereas Bilodeau et al. ( <ref type="formula">2024</ref>) assume complex functions with many piece-wise linearities) Theoretical results (we show both positive and negative results, whereas <ref type="bibr">Bilodeau et al. (2024)</ref> only show negative results).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Method Details B.1 Group Generator Details</head><p>The group generator &#915; : R d &#8594; {0, 1} m&#215;d takes in an input x &#8712; R d and outputs m groups (g 1 , . . . , g m ), Each g i &#8712; {0, 1} d is a binary mask such that if the feature j is included in group g i , then g ij = 1, otherwise 0.</p><p>To generate these groups, we first project the input x into embedding dimension e with embedding function h e : R d &#8594; R d&#215;k .</p><p>In our experiments, we typically use up to the second to last layer in the backbone model as the embedding function to obtain the contextualized embedding of each feature, and we finetune this copy of projection layer while keeping the original backbone model unchanged.</p><p>Soft Multiheaded Self-Attention. Then, we use a self-attention mechanism a : R d&#215;e &#8594; [0, 1] d&#215;d <ref type="bibr">(Vaswani et al., 2017)</ref> to parameterize a probability distributions over features.</p><p>where W Q , W K &#8712; R k are learned parameters, and &#945; is a temperature scaling hyperparameter. In practice, one might not need that many groups and can use m &lt; d groups, resulting in a(x) &#8712; [0, 1] m&#215;d . However, the outputs of self-attention are continuous and dense. To make groups sparse, we binarize the attention by taking top &#964; = 0.2 features for each group. Each group g i is then the binarized a(x) where g ij = 1 if jth feature is within top &#964; according to a(x), and otherwise g ij = 0.</p><p>Input Embedding Encoder. In practice, the embedding function h e is initialized with parts of the backbone predictor h.</p><p>The embedding function h e can be finetuned as part of the group generator while not changing the backbone predictor.</p><p>Binary Groups and the Risk of Out-of-Distribution Data. The groups (i.e. the image patch subsets or language token subsets) are binary. However, the scores for each group are real valued. Since we are using discrete groups of features for making each prediction, the group masks need to be binarized. Nonbinary groups (i.e. close to zero but non-zero) will have information leakage from the nonzero input features.</p><p>A potential risk of blacking out pixels is that it will create Out-of-Distribution (OOD) data. However, modern Transformers are not significantly affected by this bias due to the significant data augmentations used during pretraining. For example, <ref type="bibr">Jain et al. (2022)</ref> show that ResNet suffers more from masking out tokens while ViT mostly is able to maintain its original prediction even when some parts are blacked out. In our ImageNet and MultiRC experiments, we use these transformer based models, and all baselines use the same transformer in fairness, except XDNN, BCos and BagNet which do not have Transformer counterparts. For CosmoGrid, though we are using a CNN-based model, the data form is very different from natural images, and zeroing parts of the map is not as OOD as it would be for natural images.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.2 Group Selector Details</head><p>Sparse Multiheaded Cross-Attention. The group selector &#952; : {0, 1} m&#215;d &#215; R d &#8594; [0, 1] m then assigns a weight to each group such that a sparse subset of the groups get nonzero weights. The scores (c 1 , . . . , c m ) are produced by a cross attention using the target class's weights C h &#8712; R k as the query and all groups' hidden states z = (h h (g 1 &#8857; x), . . . , h h (g m &#8857; x)) &#8712; R m&#215;k as the key, where h h : R d &#8594; R k is usually the same backbone as h but outputs the hidden states with hidden dimension k:</p><p>where</p><p>parameters, and &#946; is a temperature scaling factor.</p><p>Having scores on a sparse subset of groups helps avoid overloading human users. As the outputs of softmax are continuous and dense, we use a sparse variant, the sparsemax operator <ref type="bibr">(Martins &amp; Astudillo, 2016)</ref>, to assign scores to the groups. The sparsemax operator uses a simplex projection to make the attention weights sparse and only assigns nonzero scores to a few groups.</p><p>In practice, we can initialize the query C h to a row of the weight matrix in the linear classifier of the pretrained model h, and W Q &#8242; and W K &#8242; to the identity matrix, since the pretrained model already learns a relation between the hidden states z and class weights C h .</p><p>Hidden State Encoder. In practice, the embedding function h e , and encoder for hidden states h h are both initialized as parts of the backbone predictor h. The embedding function h e can be finetuned as part of the group generator, while the hidden state encoder h h is always kept frozen and computed at the same time of making the prediction with h. Therefore, h h does not incur additional forward passes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.3 Scaling the Loss</head><p>Since the gradient cannot pass through the thresholded binary mask, we use a scale &#955; &#8712; [-1, 1] that is the difference between sums of attention weights of selected and unselected features and multiply that to the logits for optimization.</p><p>The gradient-passing scales (&#955; 1 , . . . , &#955; m ), the group scores (c 1 , . . . , c m ), and predictions (y 1 , . . . , y m ) are then combined with a weighted average to make the final prediction</p><p>Classification. For classification, we multiply the scaler &#955; on the logits. If the prediction from group i is prefered, then &#955; i will also increase and thus up-weigh the selected features in the group. Conversely, if the prediction from group i is not prefered, then &#955; i will decrease and thus down-weigh the selected features and up-weigh other features in the group.</p><p>Scaled CrossEntropyLoss(&#8407; y, y * , &#8407; c, &#8407; &#955;) = CrossEntropyLoss(</p><p>where y i is the predicted logit from each group and y * is the ground truth label.</p><p>Regression. For regression, we multiply the negated scaler on the loss instead of the logits because we need to scale the loss instead of the absolute value.</p><p>Scaled MSELoss(&#8407; y, y * , &#8407; c, &#8407; &#955;) = min(</p><p>Method Abbr Model-Agnostic Self-Attributing Learnable Groups Self-Attributing Ver.</p><p>LIME <ref type="bibr">(Ribeiro et al., 2016</ref> <ref type="bibr">(Petsiuk et al., 2018)</ref> RISE &#10003; &#10007; &#10007; RISE-F Archipelago <ref type="bibr">(Tsang et al., 2020)</ref> Archi. &#10003; &#10007; &#10007; Archi.-F MFABA <ref type="bibr">(Zhu et al., 2024)</ref> MFABA &#10003; &#10007; &#10007; MFABA-F AGI <ref type="bibr">(Pan et al., 2021)</ref> AGI &#10003; &#10007; &#10007; AGI-F AMPE <ref type="bibr">(Zhu et al., 2023)</ref> AMPE &#10003; &#10007; &#10007; AMPE-F BCos <ref type="bibr">(B&#246;hle et al., 2022)</ref> BCos &#10007; &#10007; &#10007; BCos-F XDNN <ref type="bibr">(Hesse et al., 2021)</ref> XDNN</p><p>Table <ref type="table">A4</ref>. Properties of all post-hoc feature attributions and self-attributing neural networks we use. SOP is the only attribution method that is both model agnostic and self-attributing and has learnable groups.</p><p>&#8226; Input Features: We use tokens as individual features.</p><p>&#8226; </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.2.2 SOP MODELS</head><p>For SOP model training, we use learning rate of 5e-6 for all experiments. For ImageNet-S and MultiRC, we use one head in the attention in the group generator. For CosmoGrid, we use four heads. We observe that using more heads result in more diverse groups, while the groups generated based on queries from the same head are similar. For all experiments, we select only 20 groups from all the possible groups, by choosing attentions created by queries spaced out evenly. We find that we do not need more than 20 groups for good performance. For ImageNet, we train for 1 epoch, but taking the checkpoint at 0.5 epoch as it already converges, while we train for 3 epochs for CosmoGrid and 20 epochs for MultiRC. For ImageNet, we use Gaussian blurring of kernel size 5 on the patches, and kernel size 15 on MultiRC, so that we obtain more contiguous groups. For CosmoGrid though, we do not use Gaussian blur because we do not assume that connected groups are better for weak lensing maps.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.2.3 COMPUTE RESOURCES</head><p>We use NVIDIA A100 with 80G memory and NVIDIA A6000 with 48G memory on our internal cluster for experiments. Typically, one training for ImageNet finish in a day with one epoch. The training for CosmoGrid finish in 2 hours and converge in one epoch. The training for MultiRC also converges in one epoch. The evaluation takes around 5 minutes for each method. There were preliminary experiments that take more time to debug and modify the architecture.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.3 Baselines</head><p>As we are building a new type of self-attributing neural networks, we compare with self-attributing neural networks that attribute to input features for all main experiments. The baselines we compare with are either already self-attributing neural networks, or converted from post-hoc attributions. The models that already fall under the class of self-attributing neural (a) Image: Tench (b) LIME-F (Ribeiro et al., 2016) (c) SHAP-F (Lundberg &amp; Lee, 2017) (d) IG-F (Sundararajan et al., 2017) (e) GC-F (Selvaraju et al., 2016) (f) FG-F (Srinivas &amp; Fleuret, 2019) (g) RISE-F (Petsiuk et al., 2018) (h) Archi.-F (Tsang et al., 2020) (i) MFABA-F (Zhu et al., 2024) (j) AGI-F (Pan et al., 2021) (k) AMPE-F (Zhu et al., 2023) (l) BCos-F (B&#246;hle et al., 2022) (m) XDNN (Hesse et al., 2021) (n) BagNet (Brendel &amp; Bethge, 2019) (o) FRESH (Jain et al., 2020) (p) SOP (Ours) Figure A11. Example groups from different feature attribution methods for an image of Tench. "-F" indicates self-attributing models converted from post-hoc methods. The highlights show the groups selected by each method (top 20% attributed patches), with unused patches hatched-out.</p><p>Fidelity can be measured by the KL-Divergence between the model predicted probabilities p(x) &#8712; [0, 1] k for all k classes and the probability using summed attributions p(x) &#8712; [0, 1] k for all k classes <ref type="bibr">(Yu &amp; Varshney, 2017;</ref><ref type="bibr">Chen et al., 2019;</ref><ref type="bibr">Anders et al., 2020)</ref>.</p><p>where p = softmax(f (x)) is the predicted probability of the model, and p = softmax( i &#945; i ) is the probability of summed attribution scores for data x in distribution D. As self-attributing neural networks all follow the design f (x) = m i=1 &#952;(x) i h(x) i and the attribution scores &#945; i = &#952;(x) i h(x) i , self-attributing neural networks by design achieve 0 fidelity. We report fidelity of post-hoc models in Table <ref type="table">A5</ref> and show that self-attributing neural networks are the only ones that achieve perfect fidelity.</p><p>For SOP, the sum of attribution scores is the sum of group predictions weighted by the group selector scores i &#945; i = i c i y i . For FRESH <ref type="bibr">(Jain et al., 2020)</ref>, they only have one group, so the score for each class is the same as the prediction from that one group. All the self-attributing neural networks achieves fidelity of 0 by construction.</p><p>For most post-hoc baselines, the sum of attribution scores is simply the sum of all the scores for each feature. We report the fidelity scores for post-hoc methods in Table <ref type="table">A5</ref>. We can see that no post-hoc method achieves perfect fidelity of 0. (a) Image: Cassette tape (b) LIME-F (Ribeiro et al., 2016) (c) SHAP-F (o) FRESH (Jain et al., 2020) (p) SOP (Ours) Figure A13. Example groups from different feature attribution methods for an image of Cassette tape. "-F" indicates self-attributing models converted from post-hoc methods. The highlights show the groups selected by each method (top 20% attributed patches), with unused patches hatched-out.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.4.4 INSERTION AND DELETION</head><p>Original Insertion and Deletion. Intuitively, if we add features from the most important to the least important one-by-one starting with a blank image, the probability for the predicted class should go up quickly. Conversely, if we delete them from the most to least important, the probability should ideally drop instantly. The mainstream insertion and deletion metrics <ref type="bibr">(Samek et al., 2017;</ref><ref type="bibr">Petsiuk et al., 2018)</ref> intend to evaluate if the features are actually important by inserting or deleting them one-by-one and computing the area-under-the-curve (AUC).</p><p>As insertion and deletion criteria are designed for pixel-level instead of groups of features, we consider a modified version of insertion and deletion for groups, which grow or shrink the groups instead of adding pixels to the model. We report the percentage probability AUC instead of the absolute, to accommodate the difference in accuracy when the models are different. We use step size of 10% following previous work <ref type="bibr">(Wu et al., 2024)</ref>. Table <ref type="table">3</ref> shows that SOP performs the best for both insertion and deletion on ImageNet. Among other methods, the perturbation-based methods such as SHAP and LIME perform better than gradient-based methods. Table <ref type="table">A6</ref> shows that SOP performs the best for insertion on Cosmogrid and MultiRC. (a) Image: Castle (b) LIME-F (Ribeiro et al., 2016) (c) SHAP-F (o) FRESH (Jain et al., 2020) (p) SOP (Ours) Figure A15. Example groups from different feature attribution methods for an image of Castle. "-F" indicates self-attributing models converted from post-hoc methods. The highlights show the groups selected by each method (top 20% attributed patches), with unused patches hatched-out.</p><p>The mainstream insertion and deletion metrics <ref type="bibr">(Samek et al., 2017;</ref><ref type="bibr">Petsiuk et al., 2018)</ref> are approximations intended to evaluate the faithfulness of post-hoc methods <ref type="bibr">(Nauta et al., 2023)</ref>. Nevertheless, we include results for insertion and deletion for completeness.</p><p>Adapting Insertion and Deletion for Groups. The mainstream insertion and deletion criteria has a problem when directly used to evaluate group attribution. When inserting a single group of features, it is unclear what order one should use to insert individual features. In images, inserting pixels by row versus randomly can result in very different results. As a result, it is not immediately obvious how to directly apply the standard insertion and deletion criteria to the group setting. Nevertheless, we can consider a modified version of insertion criteria for groups, where instead of adding a single pixel at a time, we instead gradually grow the size of all groups simultaneously. This procedure is equivalent to the classic insertion criteria when there is a single group. Specifically, we grow the size of the groups gradually from with an interval of 10% of all features (approximately around 5017 pixels), and compute the AUCs of the highest predicted probability of the faithful models.</p><p>For deletion, we perform a similar procedure by shrinking the groups gradually with the same interval of 10% pixels and computing the AUCs on the highest predicted probability of the faithful models. Because each faithful model's prediction start with a different value, it is hard to compare the deletion score. Therefore, we make a small modification to the original deletion metric and penalize the cases where the prediction is wrong by setting the score of that point to 1.</p><p>Method ImageNet CosmoGrid MultiRC Fidelity&#8595; Fidelity&#8595; Fidelity&#8595; LIME 3.866 &#177; 0.244 0.100 &#177; 0.000 1.550 &#177; 0.271 SHAP 0.015 &#177; 0.006 0.100 &#177; 0.000 1.628 &#177; 0.283 IG 7.161 &#177; 0.212 0.100 &#177; 0.000 1.921 &#177; 0.276 GC 10.406 &#177; 1.098 1.697 &#177; 0.277 1.697 &#177; 0.277 FG 13.567 &#177; 0.158 1.921 &#177; 0.277 1.921 &#177; 0.277 RISE 0.884 &#177; 0.533 0.100 &#177; 0.000 2.771 &#177; 0.231 Archi. 10.850 &#177; 0.354 1.684 &#177; 0.277 1.684 &#177; 0.277 MFABA 6.674 &#177; 0.166 1.690 &#177; 0.267 1.690 &#177; 0.267 AGI 5.416 &#177; 0.549 1.665 &#177; 0.254 1.665 &#177; 0.254 AMPE 13.671 &#177; 0.326 2.532 &#177; 0.493 2.532 &#177; 0.493 BCos 13.372 &#177; 0.373 --Table A5. Fidelity scores for post-hoc methods on ImageNet, CosmoGrid, and MultiRC. Lower values indicate better fidelity. We omit numbers for self-explaining models as they by design achieve fidelity of 0. Post-hoc attribution methods are not able to achieve fidelity of 0, which empirically shows that they are not faithful to the model prediction. For CosmoGrid, to compute KL-divergence for fidelity, an additional softmax operation is applied on top of the CNN predicted logits as KL-divergence only works on probability distributions. Category Method MultiRC CosmoGrid Ins.&#8593; Del.&#8595; Ins.&#8595; Del.&#8593; Post-Hoc-Converted LIME 0.869 &#177; 0.020 0.778 &#177; 0.005 0.028 &#177; 0.001 0.028 &#177; 0.001 SHAP 0.840 &#177; 0.016 0.839 &#177; 0.017 0.023 &#177; 0.001 0.023 &#177; 0.001 IG 0.878 &#177; 0.009 0.852 &#177; 0.019 0.027 &#177; 0.001 0.027 &#177; 0.001 GC 0.882 &#177; 0.011 0.876 &#177; 0.014 0.026 &#177; 0.001 0.026 &#177; 0.001 FG 0.928 &#177; 0.009 0.834 &#177; 0.014 0.025 &#177; 0.001 0.025 &#177; 0.001 RISE 0.961 &#177; 0.017 0.832 &#177; 0.016 0.027 &#177; 0.001 0.027 &#177; 0.001 Archi. 0.669 &#177; 0.021 0.920 &#177; 0.015 0.036 &#177; 0.002 0.036 &#177; 0.002 MFABA 0.863 &#177; 0.011 0.873 &#177; 0.007 0.023 &#177; 0.004 0.023 &#177; 0.004 AGI 0.929 &#177; 0.013 0.901 &#177; 0.007 0.024 &#177; 0.004 0.024 &#177; 0.004 AMPE 0.868 &#177; 0.007 0.892 &#177; 0.018 0.027 &#177; 0.004 0.027 &#177; 0.004 Self-Attributing FRESH 0.937 &#177; 0.013 0.710 &#177; 0.028 --SOP 1.018 &#177; 0.022 0.949 &#177; 0.007 0.020 &#177; 0.001 0.027 &#177; 0.002 Table A6. Insertion/Deletion metrics for MultiRC and CosmoGrid. For MultiRC (left columns), higher insertion (Ins.&#8593;) and lower deletion (Del.&#8595;) are better. Best result is bolded, second-best is italicized. As FRESH is designed for text, it is unsurprising that it achieves better results on some metrics in text. We compute percent insertion/deletion scores as discussed in Appendix C.4.4, which is why it is possible for SOP to obtain an insertion score larger than 1. For CosmoGrid (right columns), lower insertion (Ins.&#8595;) and higher deletion (Del.&#8593;) are better due to MSE loss. Best result is bolded, second-best is underlined. All tables report percent insertion and deletion scores with an interval of 10%. FRESH is not applicable to CosmoGrid.</p><p>Also, as we are using different self-attributing neural networks, the base prediction can be different, making it unfair when comparing the insertion and deletion scores. We thus use the percent probability comparing with using all the input instead of the raw probability.</p><p>For self-attributing neural networks that select groups by thresholding attention, such as SOP and FRESH, we grow the size of the group according to the attention scores. For models that have fixed group sizes, such as XDNN which uses groups of single pixels, and BagNet which uses groups of fixed patches, we perform insertion/deletion by adding/removing patches from the aggregation, following the same percentage for step sizes. Similar things are performed when evaluating accuracy for different sparsity levels.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Different</head><p>Step Sizes. Here in the Appendix, we also report more finegrained insertion and deletion scores using step sizes of 16 &#215; 16 patches (which equals 256 pixels) in</p><p>Table A7. The result is very similar and SOP still achieves the best insertion and deletion scores. Different Occlusion Strategies. There can be different occlusion values to use when masking out the groups. To test if the choice of feature deletion values affects the results, we ran additional insertion/deletion experiments using an alternative deletion value as used in Bluecher et al. (2024) (specifically, randomly sampled color from the image). The results in Category Method ImageNet -ViT Step size 256 pix. Occlusion w. Colors Ins.&#8593; Del.&#8595; Ins.&#8593; Del.&#8595; Post-Hoc-Converted LIME-F 0.815 &#177; 0.005 0.428 &#177; 0.004 0.797 &#177; 0.007 0.555 &#177; 0.023 SHAP-F 0.831 &#177; 0.006 0.373 &#177; 0.008 0.909 &#177; 0.018 0.524 &#177; 0.023 IG-F 0.611 &#177; 0.006 0.617 &#177; 0.008 0.679 &#177; 0.030 0.786 &#177; 0.059 GC-F 0.772 &#177; 0.007 0.366 &#177; 0.007 0.789 &#177; 0.021 0.540 &#177; 0.031 FG-F 0.759 &#177; 0.005 0.383 &#177; 0.004 0.830 &#177; 0.029 0.447 &#177; 0.026 RISE-F 0.590 &#177; 0.008 0.661 &#177; 0.004 0.652 &#177; 0.043 0.776 &#177; 0.019 Archi.-F 0.676 &#177; 0.003 0.501 &#177; 0.004 0.824 &#177; 0.058 0.608 &#177; 0.025 MFABA-F 0.674 &#177; 0.006 0.499 &#177; 0.010 0.855 &#177; 0.048 0.610 &#177; 0.085 AGI-F 0.735 &#177; 0.006 0.462 &#177; 0.008 0.875 &#177; 0.048 0.585 &#177; 0.050 AMPE-F 0.675 &#177; 0.007 0.534 &#177; 0.005 0.738 &#177; 0.078 0.645 &#177; 0.041 BCos-F 0.257 &#177; 0.005 0.288 &#177; 0.008 0.574 &#177; 0.175 0.380 &#177; 0.032 Self-Explaining XDNN 0.199 &#177; 0.007 0.156 &#177; 0.003 0.245 &#177; 0.038 0.254 &#177; 0.044 BagNet 0.560 &#177; 0.006 0.417 &#177; 0.007 0.878 &#177; 0.023 0.228 &#177; 0.022 FRESH 0.713 &#177; 0.002 0.369 &#177; 0.004 0.746 &#177; 0.033 0.512 &#177; 0.046 SOP 0.890 &#177; 0.004 0.014 &#177; 0.000 0.910 &#177; 0.010 0.106 &#177; 0.000 Table A7. ImageNet Insertion (Ins.&#8593;) and Deletion (Del.&#8595;) metrics. Higher Ins. and lower Del. are better. Best results are bolded, second-best are italicized. Step size results use 16 &#215; 16 patches (256 pixels, 5% of image). Occlusion uses a random color. All tables report percent scores with an interval of 10%.</p><p>Table <ref type="table">A7</ref> aligns with our previous results of replacing the deletion value with 0 and SOP still performs the best for both insertion and deletion on ImageNet. This shows that the evaluation is consistent with other feature deletion values.</p><p>Discussion: Biases in Insertion and Deletion Tests. SOP performs well on the insertion test for all tasks, while being only the best on deletion task for one task. We notice a bias in the deletion test. As the deletion test favors SANNs such that deleting the most important feature results in a sharp performance drop, it biases towards models that rely primarily on a small number of features. On the other hand, if a model distributes its dependence to multiple different groups of features, removing the new most important features will not lead to a large performance drop. While deletion test is initially designed to evaluate post-hoc feature attributions that attempt to explain the same backbone model, it is not well-suited to evaluate self-attributing models, as it will score models that depend on a few features more, regardless of the underlying faithfulness of the explanation.</p><p>For example, if there are multiple flowers in an image, and the model only looks at the upper left corner, while ignoring all other parts of the image, then removing the flower in the upper left corner will reduce the model predicted probability for the flower to 0. However, if the model averages the prediction from different parts of the image, its predicted probability for the flower will only drop a little bit if its most used flower is removed. This doesn't mean that the second model's explanation is any less faithful than the first one. On the other hand, the model's score for the one flower could be a smaller number that faithfully reflects the small amount of confidence reduced.</p><p>Figure <ref type="figure">A16</ref> shows average deletion curves for SOP. We see that even as we delete features from groups, SOP is able to maintain relatively high performance, resulting in a worse deletion score. Such behavior is natural because the training objective in SOP encourages the group selector to select highly predictive groups, and multiple groups can compensate for the information missing in another group.</p><p>Insertion/Deletion Results for CosmoGrid and MultiRC. Table <ref type="table">A6</ref> shows insertion and deletion results for MultiRC and CosmoGrid. We see that SOP is consistently good on the insertion metric while LIME is better at deletion. We conjecture that this is due to different groups in SOP compensating for each other.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.4.5 INFORMATION LEAK FROM THE GROUP GENERATOR</head><p>We show all the results for probing if the groups contain the labels in Table <ref type="table">A8</ref>. We can see that models trained on the SOP groups are not able to predict the labels well. While results from linear and ViT models are not differentiating different methods, CNN probing models show that the groups from other methods like FG-F and AGI-F are leaking a lot of information. Archipelago is omitted because of the significant computational cost. to generate explanations for training 0.0 0.3 0.6 0.9</p><p>Fraction of Patches Removed</p><p>0.0 0.5 1.0 Percent Probability Deletion Curve ImageNet Method LIME-F SHAP-F IG-F FG-F GC-F RISE-F Archi.-F MFABA-F AGI-F AMPE-F BCos-F XDNN BagNet FRESH SOP 0.0 0.3 0.6 0.9 Fraction of Patches Removed 0.00 0.05 0.10 Loss Deletion Curve CosmoGrid Method LIME-F SHAP-F IG-F FG-F GC-F RISE-F Archi.-F MFABA-F AGI-F AMPE-F SOP 0.0 0.3 0.6 0.9 Fraction of Patches Removed 0.7 0.8 0.9 1.0 Percent Probability Deletion Curve MultiRC Method LIME-F SHAP-F IG-F RISE-F Archi.-F MFABA-F AGI-F AMPE-F FRESH SOP Figure A16. Deletion curves across datasets. SOP's multi-group approach allows it to maintain low loss when only a few input features are preserved. Other methods show unstable behavior, especially in CosmoGrid. LIME-F SHAP-F IG-F GC-F FG-F MFABA-F AGI-F AMPE-F BCos-F XDNN BagNet FRESH SOP Model CNN 0.10 0.17 9.38 2.96 13.40 8.27 10.66 6.67 0.12 0.14 0.06 2.55 0.10 Linear 2.58 0.15 3.41 3.46 2.95 2.95 3.06 3.28 2.32 3.14 0.15 3.61 2.62 ViT 0.13 0.11 0.10 0.07 0.16 0.11 0.08 0.12 0.13 0.09 0.28 0.08 0.07 Table A8. (ImageNet Group Probing Model Accuracy) A model trained on group masks from SOP is unable to obtain accuracies much more than random. This indicates that the powerful group generator in SOP is not doing all the work and not compromising SOP's interpretability. RISE and Archipelago are omitted because of the significant computational cost to generate explanations for training examples.</p><p>examples, while the experiments with all other baselines already demonstrate the interpretability of linear combination in SOP.</p><p>C.4.6 HUMAN DISTICTION TEST SOP learns to use predictions from feature groups for the final prediction. However, if the group explanations are the same for different classes, they are not semantically relevant to the classes. We follow the HIVE protocol <ref type="bibr">(Kim et al., 2022)</ref> and conduct a human distinction task on ImageNet-S to assess if people can predict which class the model predicts based solely on the group explanations for the classes. In the study, human evaluators are shown an image with group explanations for four classes and asked to guess the model prediction. Figure <ref type="figure">A18</ref> shows a bar plot of human distinction task accuracies, where explanations from SOP is among the ones having most distinctive explanation for the predicted class. The large error bars do not declare a single winner, while being consistent with original experiments in HIVE <ref type="bibr">(Kim et al., 2022)</ref>. <ref type="foot">7</ref>Nevertheless, SOP groups for different classes are distinctive enough to provide meaningful explanations.</p><p>We follow HIVE <ref type="bibr">(Kim et al., 2022)</ref> for constructing our distinction task for a human simulation test. Figure <ref type="figure">A18</ref> shows the accuracy of the human distinction task and its standard deviation bootstrapped 1000 times. This human evaluation is conducted on Amazon Mechanical Turk (MTurk) on 100 examples each evaluated by 3 mturk users.</p><p>The large standard deviation is consistent with the literature and thus there is no one absolute winner method for human simulation <ref type="bibr">(Kim et al., 2022)</ref>. Figure <ref type="figure">A17</ref> show the interface we display to the human evaluators.</p><p>superclusters and voids, develop throughout cosmic history. However, &#8486; m and &#963; 8 are not directly measurable, and the inverse relation from cosmological structures in the weak lensing map to &#8486; m and &#963; 8 is unknown.</p><p>One approach to inferring &#8486; m and &#963; 8 from weak lensing maps, as demonstrated for example by <ref type="bibr">Ribli et al. (2019)</ref>; <ref type="bibr">Matilla et al. (2020);</ref><ref type="bibr">Fluri et al. (2022)</ref>, is to apply deep learning models that can compare measurements to simulated weak lensing maps. Even though these models have high performance, we do not fully understand how they predict &#8486; m and &#963; 8 . As a result, the following remains an open question in cosmology:</p><p>What structures from weak lensing maps drive the inference of the cosmological parameters &#8486; m and &#963; 8 ?</p><p>In collaboration with expert cosmologists, we use convolutional networks trained to predict &#8486; m and &#963; 8 as the backbone of an SOP model to get accurate predictions with faithful group attributions. Crucially, the guarantee of faithfulness in SOP provides confidence that the attributions reflect how the model makes its prediction, as opposed to possibly being a red herring. We then interpret and analyze these attributions and understand how structures in weak lensing maps of CosmoGridV1 <ref type="bibr">(Kacprzak et al., 2023)</ref> influence &#8486; m and &#963; 8 .</p><p>It will be interesting to explore how these results change as we mimic realistic data by adding noise and measurement artifacts. Other aspects worth exploring are the role of "super-clusters" that contain multiple clusters, and how to account for the fact that voids occupy much larger areas on the sky than clusters (i.e., should we be surprised that they perform better?).</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_0"><p>We use binary groups to avoid leaking information resulting in unfaithful explanations.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_1"><p>Requires Transformer backbone and not applicable to CNN.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_2"><p>https://huggingface.co/google/vit-base-patch16-224</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_3"><p>http://www.cosmogrid.ai/</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_4"><p>Sum-of-Parts: Self-Attributing Neural Networks with End-to-End Learning of Feature Groups</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_5"><p>(Lundberg &amp; Lee, 2017) (d) IG-F (Sundararajan et al., 2017) (e) GC-F (Selvaraju et al., 2016) (f) FG-F (Srinivas &amp; Fleuret, 2019) (g) RISE-F (Petsiuk et al., 2018) (h) Archi.-F (Tsang et al., 2020) (i) MFABA-F (Zhu et al., 2024) (j) AGI-F (Pan et al., 2021) (k) AMPE-F (Zhu et al., 2023) (l) BCos-F (B&#246;hle et al., 2022) (m) XDNN (Hesse et al., 2021)(n) BagNet<ref type="bibr">(Brendel &amp; Bethge, 2019)</ref> </p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="7" xml:id="foot_6"><p>Here we show the attributions for different classes from the original post-hoc methods, since the converted SANNs only uses one group explanation-one for the highest predicted classes.</p></note>
		</body>
		</text>
</TEI>
