TL;DR
This paper introduces the Sparse Möbius Transform (SMT), a novel algorithm that efficiently identifies complex feature interactions in machine learning models. By exploiting the fact that real-world functions are often sparse and low-degree, SMT achieves sub-linear query complexity, providing model explanations that are significantly more faithful than traditional metrics like Shapley values.
What Problem Does This Paper Address?
As machine learning models like BERT and XGBoost become more complex, our ability to interpret their decisions has lagged behind. Popular tools like Shapley values provide a score for individual features, but they struggle to capture "synergies"—how combinations of features work together to influence a prediction.
The Möbius transform is a powerful mathematical framework that perfectly captures these higher-order interactions. However, computing it for a model with $n$ inputs requires $2^n$ inferences, making it computationally impossible for anything beyond a few dozen features. This paper tackles the challenge of making the Möbius transform practical for high-dimensional, real-world models.
Methods
The authors propose the Sparse Möbius Transform (SMT) algorithm, which relies on two key observations: real-world functions are typically sparse (only a few interactions are significant) and low-degree (interactions usually involve only a small number of features).
- Subsampling and Aliasing: Instead of querying all $2^n$ subsets, SMT intelligently samples a much smaller number. This process "aliases" many high-dimensional coefficients into smaller "bins," similar to the principles behind the Fast Fourier Transform.
- Graph Peeling: To resolve these bins, SMT uses a message-passing algorithm. If a bin contains only one significant interaction (a "singleton"), it is identified, and its value is "peeled" away from other bins, potentially revealing new singletons in a cascading process.
- Group Testing Connection: The authors uncover a deep link between identifying interactions and group testing (a field originally designed for efficient medical screening). They use group testing matrices to design optimal sampling patterns, reducing the number of model queries to just $O(Kt \log n)$ for $K$ significant interactions of degree at most $t$.
Datasets
The authors evaluated SMT across three distinct machine learning tasks:
- XGBoost for Breast Cancer Diagnosis: Using the Wisconsin Breast Cancer dataset (30 features).
- BERT for Sentiment Analysis: Fine-tuned on the IMDb Movie Reviews dataset (sentences of ~20-40 words).
- RoBERTa for Multiple Choice: Fine-tuned on the RACE reading comprehension dataset.
Key Insights and Ideas
- Sparsity is Ubiquitous: The authors empirically demonstrate that for complex models, a tiny fraction of the $2^n$ possible interactions accounts for nearly all the model's behavior.
- Interpretable Basis: The Möbius transform projects functions onto the "unanimity basis," which is more fundamentally interpretable for sets of inputs than other game-theoretic transforms.
- Non-Adaptive Parallelism: Unlike many sparse transform algorithms, SMT is non-adaptive. All model queries can be determined upfront and computed in parallel, which is crucial for large-scale applications.
- Robustness: The algorithm includes a noise-tolerant variant, ensuring it remains effective even when model outputs are slightly inconsistent or the sparsity is only approximate.
Key Results
- Sub-linear Complexity: SMT recovers the transform in $O(Kn)$ samples for uniform interactions and $O(Kt \log n)$ for low-degree ones. This allows it to scale to $n=1000$ features in synthetic tests where other methods fail.
- Superior Faithfulness: In sentiment analysis and medical diagnosis tasks, SMT-generated representations were up to twice as faithful (measured by $R^2$) to the original model compared to Shapley or Banzhaf values when using the same number of terms.
- Speedup: SMT significantly outperforms existing interaction-aware methods like SHAP-IQ in runtime, especially as the number of features grows.
Limitations and Future Work
The current theoretical guarantees assume that significant interactions are distributed uniformly at random. In practice, interactions are often correlated (e.g., certain words appearing together in specific linguistic structures). The authors suggest that future work could exploit these correlations to further reduce sample complexity.
Additionally, while SMT is a major step forward, applying it to massive models like LLM chatbots or high-resolution diffusion models will require further improvements in handling noise and extremely high-dimensional feature spaces.
Summary updated