Explaining Black-box Model Predictions via Two-level Nested Feature Attributions with Consistency Property

Yuya Yoshikawa, Masanari Kimura, Ryotaro Shimizu, Yuki Saito · Submission to ICLR 2025 · Rejected

TL;DR

Standard model explanation techniques like LIME and SHAP often treat input features as a flat list, ignoring the hierarchical nature of real-world data. This paper introduces C2FA (Consistent Two-level Feature Attribution), a method that simultaneously estimates importance for both high-level features (e.g., sentences) and low-level features (e.g., words) while enforcing a mathematical "consistency property" to ensure the two levels of explanation agree with each other.

What Problem Does This Paper Address?

Machine learning models are often "black boxes," providing predictions without clear reasoning. To fix this, researchers use "local surrogate models" to approximate how a model behaves around a specific input. However, most existing methods assume features are independent and "flat."

In reality, data is often nested. In Multiple Instance Learning (MIL), an input is a "bag" of images; the bag is the high-level feature, and the pixels within each image are the low-level features. In text, a document consists of sentences, which in turn consist of words.

C2FA Framework and Consistency Property

If you explain these levels separately using standard tools, you run into two major problems:

  1. Inconsistency: The "importance" assigned to a sentence might not equal the sum of the "importance" of its words, leading to confusing or contradictory explanations.
  2. Efficiency: Querying complex black-box models (like LLMs or deep vision models) is expensive. Estimating two separate levels of explanation doubles that cost.

Methods

The authors propose a joint optimization framework called C2FA. Instead of treating high-level feature attributions (HiFAs) and low-level feature attributions (LoFAs) as separate problems, they bridge them using a Consistency Property: the attribution of a high-level feature must equal the sum of the attributions of its constituent low-level features.

Key technical highlights include:

  • Dual Surrogate Models: They define two linear surrogate models—one for each level of granularity—that mimic the black-box model's behavior.
  • ADMM Optimization: They use the Alternating Direction Method of Multipliers (ADMM) to solve the resulting constrained optimization problem. This allows them to handle the consistency constraint while still allowing for standard regularizations like sparsity ($\ell_1$) or non-negativity.
  • Theoretical Guarantees: The paper provides proofs for the existence and uniqueness of the solution, as well as convergence rates, ensuring the method is mathematically sound.

Datasets

The authors evaluated C2FA on two distinct domains:

  1. Image (MIL): A custom dataset derived from Pascal VOC. They created "bags" of 3–5 images where the goal was to identify if a "cat" was present. This allowed them to test if the model could correctly attribute importance to the specific image (high-level) and the specific "cat" pixels (low-level).
  2. Text: Product reviews from the Amazon reviews dataset. Here, sentences were high-level features and words were low-level features. The black-box model being explained was a fine-tuned BERT model.

Key Insights and Ideas

  • Information Sharing: By enforcing consistency, the high-level explanation acts as a regularizer for the low-level explanation, and vice versa. This "cross-talk" helps the algorithm find the true signal amidst the noise of random perturbations.
  • Query Efficiency: Because the levels are linked, C2FA requires significantly fewer queries to the black-box model to reach a stable explanation.
C2FA Query Efficiency vs Baselines
  • Faithfulness vs. Sanity: Many explainers produce visually appealing heatmaps that don't actually reflect the model's logic. C2FA's consistency constraint forces the explanation to be more "faithful"—meaning if you remove a feature the explainer calls "important," the model's prediction actually drops significantly.

Key Results

  • Accuracy (NDCG & AUROC): On the MIL image task, C2FA consistently outperformed LIME and MILLI (a state-of-the-art MIL explainer) in identifying ground-truth positive instances and their features.
  • Faithfulness: Using "deletion" metrics (measuring how fast the model's confidence drops as important features are removed), C2FA proved to be more faithful to the black-box model's actual behavior than separate-level explainers.
  • Consistency Score: While baselines like LIME showed high levels of internal contradiction between sentence-level and word-level importance, C2FA maintained near-zero inconsistency.
  • Qualitative Success: In text examples, C2FA correctly ignored "filler" words in unimportant sentences, whereas unconstrained methods often assigned random importance to them due to noise.

Limitations and Future Work

  • Two-Level Limit: The current framework is strictly two-level. Real-world data can be deeper (e.g., Document $\rightarrow$ Paragraph $\rightarrow$ Sentence $\rightarrow$ Phrase $\rightarrow$ Word).
  • Fixed Structure: The method assumes the nested structure is known and fixed beforehand. It cannot currently "discover" the best way to group low-level features into high-level ones.
  • Computational Overhead: While it reduces the number of model queries, the ADMM optimization itself is more complex than a simple linear regression, which might be a factor for extremely high-dimensional inputs.

The authors suggest that future work will involve extending the method to handle more complex, multi-layered nested structures.

Summary updated

BibTeX
@misc{yoshikawa2024explaining,
  author = {Yuya Yoshikawa and Masanari Kimura and Ryotaro Shimizu and Yuki Saito},
  title = {{Explaining Black-box Model Predictions via Two-level Nested Feature Attributions with Consistency Property}},
  year = {2024},
  eprint = {2405.14522},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.14522},
}
Figure