Sum-of-Parts Models: Faithful Attributions for Groups of Features

Weiqiu You, Helen Qu, Marco Gatti, Bhuvnesh Jain, Eric Wong · Submission to ICLR 2024 · Rejected

TL;DR

Standard feature attribution methods assign importance scores to individual inputs, but they fundamentally fail to faithfully capture feature interactions—incurring exponentially large errors even on simple polynomial functions. The authors introduce Sum-of-Parts (SOP), an architecture-agnostic framework that generates sparse groups of features and aggregates their partial predictions into a final score, making explanations faithful-by-construction.

What Problem Does This Paper Address?

In high-stakes domains such as clinical diagnosis and scientific discovery, machine learning models need faithful explanations—interpretations that accurately reflect how the model actually made its prediction. Today's most popular interpretability tools are feature attribution methods (such as SHAP, LIME, and Integrated Gradients), which assign an importance value to each individual input feature (e.g., a pixel or word).

However, the authors prove a fundamental barrier: when features interact, scoring individual features is mathematically doomed by the curse of dimensionality. For instance, in simple Boolean monomials (like an AND function over $d$ variables), any linear feature attribution incurs total deletion error that grows exponentially with dimension $d$. When features work in concert, explaining them individually cannot accurately predict how the model behaves under perturbation tests.

Methods

To overcome this inherent limitation, the authors propose explaining models using grouped attributions, where scores are assigned to subsets of features that only contribute when their constituent features are present. They implement this via Sum-of-Parts (SOP):

Input X ──► [ GroupGen ] ──► Groups (S_1, ..., S_G) 
                 │
                 ▼
         Masked Inputs (S_i ⊙ X)
                 │
                 ▼
         [ Backbone Model f ] ──► Group Encodings (z_i)
                 │
                 ▼
        [ GroupSelect ] ──► Group Scores (c_i) & Logits (y_i)
                 │
                 ▼
         Final Prediction: y = Σ (c_i * y_i)
  1. GroupGen: Uses multihead self-attention followed by a sparse projection (sparsemax) over image segments (patches or watershed contours) to create sparse binary-like masks $S_1, \dots, S_G$.
  2. Backbone Evaluation: Feeds each masked input $S_i \odot X$ through an arbitrary pre-trained black-box backbone $f$ to obtain group representations $z_i$.
  3. GroupSelect: Evaluates the group representations with a query-key sparse attention layer to simultaneously output a sparse set of non-negative weights $(c_1, \dots, c_G)$ and partial predictions $(y_1, \dots, y_G)$.
  4. Aggregation: The final output is computed as $y = \sum_{i=1}^G c_i y_i$.

Because the model's prediction is an explicit linear aggregation of outputs computed purely on masked feature subsets, the resulting group attributions are faithful-by-construction.

Datasets

  • ImageNet (Russakovsky et al., 2015): Evaluated on single-label image classification using a 10-class subset with a pre-trained Vision Transformer (ViT-Base) backbone.
  • CosmoGridV1 (Kacprzak et al., 2023): A benchmark suite of cosmological $N$-body simulations producing 2D weak gravitational lensing mass maps, used to predict cosmological parameters $\Omega_m$ (matter density) and $\sigma_8$ (amplitude of matter density fluctuations).

Key Insights and Ideas

  • The Exponential Failure of Pixel-Level Scores: For multilinear monomials of degree $d \le 20$, the minimum total deletion error over all possible feature attributions scales approximately as $\exp(0.664d - 1.159)$. In contrast, a single grouped attribution solves it with exactly zero error.
  • Sparsity Enables Interpretability: Using sparsemax in both group generation and selection guarantees that only a handful of human-interpretable feature groups receive non-zero weights.
  • Scientific Discovery in Cosmology: When predicting cosmological parameters from weak lensing maps without supervision, SOP automatically isolated two known physical structures:
  • Voids (under-dense regions) carry the bulk of predictive weight ($\sim 54\text{--}55\%$) for both $\Omega_m$ and $\sigma_8$.
  • Clusters (high-density regions $\ge +3\sigma$) are weighted significantly higher when predicting $\sigma_8$ ($14.8\%$) than $\Omega_m$ ($8.8\%$), aligning with astrophysical theory that rare massive peaks are especially sensitive to fluctuation amplitude.

Key Results

  • Classification Accuracy: On ImageNet, SOP maintains strong predictive accuracy ($88.80\%$), outperforming the rationale baseline FRESH ($85.60\%$) while remaining close to the unconstrained ViT baseline ($91.60\%$).
  • Faithfulness Metrics:
  • Achieved the highest standard Insertion AUC ($0.6149$) on ImageNet, outperforming SHAP ($0.6130$) and RISE ($0.5816$).
  • Achieved the best Grouped Deletion score ($0.2973$, lower is better) and competitive Grouped Insertion ($0.6408$, near Archipelago's $0.6472$).
  • Explanation Compactness: Achieved around $60\%$ non-zero feature selection per active group on ImageNet, producing sparse, human-inspectable object segmentations.

Limitations and Future Work

  • Non-Exhaustive Group Selection: SOP focuses on finding sufficient groups for prediction rather than comprehensive ones, resulting in higher pixel-wise deletion scores compared to some post-hoc baselines.
  • Computational Scaling: Running multiple groups through the backbone adds inference overhead. The authors mitigated this during training by randomly subsampling 20 groups (capped at 50 at test time).
  • Domain Realism: The cosmological case study was conducted on noiseless simulations; future work is needed to validate findings under realistic telescope observational noise and investigate super-cluster interactions.

Summary updated

BibTeX
@inproceedings{you2023sum,
  author = {Weiqiu You and Helen Qu and Marco Gatti and Bhuvnesh Jain and Eric Wong},
  title = {{Sum-of-Parts Models: Faithful Attributions for Groups of Features}},
  booktitle = {XAIA @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=wFJoNkiASU},
}

Loading related content...

Figure