Abstract
An explanation of a machine learning model is considered "faithful" if it accurately reflects the model's decision-making process. However, explanations such as feature attributions for deep learning are not guaranteed to be faithful, and can produce potentially misleading interpretations. In this work, we develop Sum-of-Parts (SOP), a class of models whose predictions come with grouped feature attributions that are faithful-by-construction. This model decomposes a prediction into an interpretable sum of scores, each of which is directly attributable to a sparse group of features. We evaluate SOP on benchmarks with standard interpretability metrics, and in a case study, we use the faithful explanations from SOP to help astrophysicists discover new knowledge about galaxy formation.
Introduction
Deep learning models are notoriously difficult to interpret, often operating as "black boxes." While post-hoc explanation methods like feature attributions exist, they frequently lack "faithfulness"—the degree to which an explanation accurately reflects the model's internal logic. To address this, researchers have turned to Self-Attributing Neural Networks (SANNs), which are designed to be faithful by construction. In a SANN, the final prediction is a simple weighted sum of feature contributions.
However, standard SANNs face a significant "Interpretability-Performance Trade-off." Most existing SANNs operate on individual features. This paper mathematically demonstrates a "Correlation Barrier": when features are highly correlated (e.g., adjacent pixels), per-feature models are fundamentally limited in their ability to capture complex patterns, leading to high error rates. The Sum-of-Parts (SOP) framework overcomes this by learning to group correlated features, allowing for both high performance and faithful interpretability.
Methods: The SOP Framework
The SOP framework converts a high-performing, pre-trained "backbone" model into a group-based SANN. The architecture is composed of three primary modules:
- Group Generator ($\Gamma$): This module uses multi-headed self-attention to dynamically generate $m$ binary masks (groups) for a given input $x$. These groups are learned end-to-end, discovering semantic "atoms" of meaning without manual supervision.
- Backbone Predictor ($h$): A frozen, pre-trained model (such as a Vision Transformer or BERT) processes each masked group independently. This ensures that the contribution of each group is calculated in isolation, preventing information leakage between groups.
- Group Selector ($\theta$): A sparse cross-attention module assigns a coefficient $c_i$ (weight) to each group's partial prediction $y_i$.
The final output is an aggregated prediction: $y = \sum c_i \cdot y_i$. Because this aggregation is linear, the model's explanation—represented by the chosen groups and their weights—is an exact representation of its decision-making process.
Experimental Evaluation
The authors evaluated SOP across three domains: vision (ImageNet-S), cosmology (CosmoGrid), and NLP (MultiRC). In each case, SOP was compared against standard SANN baselines and post-hoc attribution methods.
Key Results
SOP consistently outperformed existing SANN baselines in both accuracy and interpretability metrics. On ImageNet-S, SOP achieved an error rate of 0.267, significantly lower than the next best SANN, SHAP-F (0.306).
Furthermore, SOP demonstrates remarkable robustness to sparsity. As shown in the figure below, SOP maintains a lower error rate than competing methods even when the model is forced to rely on a very small fraction of the input features.
In terms of semantic coherence, SOP’s learned groups aligned more closely with ground-truth objects (IoU of 0.630) than other methods like FRESH (0.464). Crucially, probing experiments confirmed that SOP's masks do not "leak" label information, ensuring that the explanations are genuine and not just artifacts of the masking process.
Scientific Utility and Conclusion
Beyond standard benchmarks, SOP proved its value in scientific discovery. In the CosmoGrid task, SOP's faithful explanations allowed astrophysicists to confirm that "voids" (under-dense regions) play a more significant role than "clusters" in certain cosmic predictions, aligning with domain expertise.
While SOP requires more computational resources due to multiple forward passes through the backbone, its ability to provide faithful, high-performing explanations makes it a powerful tool for high-stakes applications. Future work will focus on optimizing computational efficiency and extending the framework to more complex multi-modal datasets where human-readable explanations are a prerequisite for discovery.
Summary updated