SPEX: Scaling Feature Interaction Explanations for LLMs
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have revolutionized machine learning due to their ability to capture complex interactions between input features. Popular post-hoc explanation methods like SHAP provide marginal feature attributions, while their extensions to interaction importances only scale to small input lengths (≈ 20). We propose Spectral Explainer (SPEX), a model-agnostic interaction attribution algorithm that efficiently scales to large input lengths (≈ 1000). SPEX exploits underlying natural sparsity among interactions -- common in real-world data -- and applies a sparse Fourier transform using a channel decoding algorithm to efficiently identify important interactions. We perform experiments across three difficult long-context datasets that require LLMs to utilize interactions between inputs to complete the task. For large inputs, SPEX outperforms marginal attribution methods by up to 20% in terms of faithfully reconstructing LLM outputs. Further, SPEX successfully identifies key features and interactions that strongly influence model output. For one of our datasets, HotpotQA, SPEX provides interactions that align with human annotations. Finally, we use our model-agnostic approach to generate explanations to demonstrate abstract reasoning in closed-source LLMs (GPT-4o mini) and compositional reasoning in vision-language models.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 31 of its 62 references that are in the map. First posted on arXiv 19 Feb 2025.
Builds on
31 of 62 references.
References · 31
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
- 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 838
- 2018Learning to Explain: An Information-Theoretic Perspective on Model Interpretationcited by 248
- 2016Layer-wise Relevance Propagation for Neural Networks with Local Renormalization Layerscited by 199
- 2018Deep learning generalizes because the parameter-function map is biased towards simple functionscited by 183
- 2019The Shapley Taylor Interaction Indexcited by 143
- 2022Data Banzhaf: A Robust Data Valuation Framework for Machine Learningcited by 132
19 more
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
- 2024ContextCite: Attributing Model Generation to Contextcited by 98
- 2023Tell Your Model Where to Attend: Post-hoc Attention Steering for LLMscited by 91
- 2021Vision-and-Language or Vision-for-Language? On Cross-Modal Influence in Multimodal Transformerscited by 72
- 2022Faith-Shap: The Faithful Shapley Interaction Indexcited by 69
- 2019A Fine-Grained Spectral Perspective on Neural Networkscited by 68
- 2023SHAP-IQ: Unified Approximation of any-order Shapley Interactionscited by 51
- 2022MM-SHAP: A Performance-agnostic Metric for Measuring Multimodal Contributions in Vision and Language Models & Taskscited by 43
- 2024Easy Problems That LLMs Get Wrongcited by 30
- 2024Efficient Automated Circuit Discovery in Transformers using Contextual Decompositioncited by 23
- 2024SVARM-IQ: Efficient Approximation of Any-order Shapley Interactions through Stratificationcited by 16
- 2024Learning to Understand: Identifying Interactions via the M"obius Transformcited by 13
- 2024Towards the Dynamics of a DNN Learning Symbolic Interactionscited by 13
- 2024Multi-Level Explanations for Generative Language Modelscited by 11
- 2024Large Language Models Cannot Explain Themselvescited by 11
- 2024On Recovering Higher-order Interactions from Protein Language Modelscited by 10
- 2023Efficiently Computing Sparse Fourier Transforms of q-ary Functionscited by 7
- 2022Trade-off Between Efficiency and Consistency for Removal-based Explanationscited by 6
- 2013Computing a k-sparse n-length Discrete Fourier Transform using at most 4k samples and O(k log k) complexitycited by 3
Built on by
Citing papers per year: 2025: 3; 2026: 9.
12 papers.
- 2025ProxySPEX: Inference-Efficient Interpretability via Sparse Feature Interactions in LLMscited by 16
- 2025Explaining Similarity in Vision-Language Encoders with Weighted Banzhaf Interactionscited by 6
- 2026An Odd Estimator for Shapley Valuescited by 5
- 2026Compressed Sensing for Capability Localization in Large Language Modelscited by 2
- 2026Selecting Feature Interactions for Generalized Additive Models by Distilling Foundation Modelscited by 2
- 2026Mechanistic Tomography: Designed Measurement for Control-Oriented Interpretabilitycited by 2
- 2026Cross-LLM Consistency in Inference: Evidence from Shared Interactionscited by 1
- 2025CUBE: Contrastive Understanding by Balanced Experimentscited by 0
- 2026TabSHAPcited by 0
- 2026Reconciling Contradictory Views on the Effectiveness of SFT in LLMs: An Interaction Perspectivecited by 0
- 2026Saturation Makes Quantization Error Additive: A Coverage Model with a Certificatecited by 0
- 2026Evaluating and Explaining Prompt Sensitivity of LLMs Using Interactionscited by 0
- 2026Mechanistic Tomography: Designed Measurement for Control-Oriented Interpretability19 Aug 2026
- 2026Evaluating and Explaining Prompt Sensitivity of LLMs Using Interactions19 Aug 2026
- 2026Saturation Makes Quantization Error Additive: A Coverage Model with a Certificate14 Jul 2026
- 2026Cross-LLM Consistency in Inference: Evidence from Shared Interactions6 Jun 2026
- 2026Reconciling Contradictory Views on the Effectiveness of SFT in LLMs: An Interaction Perspective18 May 2026
- 2026TabSHAP22 Apr 2026
- 2026Selecting Feature Interactions for Generalized Additive Models by Distilling Foundation Models14 Apr 2026
- 2026Compressed Sensing for Capability Localization in Large Language Models11 Feb 2026
- 2026An Odd Estimator for Shapley Values1 Feb 2026
- 2025CUBE: Contrastive Understanding by Balanced Experiments13 Sep 2025
- 2025Explaining Similarity in Vision-Language Encoders with Weighted Banzhaf Interactions7 Aug 2025
- 2025ProxySPEX: Inference-Efficient Interpretability via Sparse Feature Interactions in LLMs23 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025Interpreting and Steering LLMs with Mutual Information-based Explanations on Sparse Autoencoders
- 2025A Survey on Sparse Autoencoders: Interpreting the Internal Mechanisms of Large Language Models
- 2024From Feature Importance to Natural Language Explanations Using LLMs with RAG
- 2023In-Context Explainers: Harnessing LLMs for Explaining Black Box Models
- 2025Gaussian mixture models as a proxy for interacting language models
- 2025Aligning What LLMs Do and Say: Towards Self-Consistent Explanations
- 2025Explainability of Large Language Models: Opportunities and Challenges toward Generating Trustworthy Explanations
- 2024Rethinking Interpretability in the Era of Large Language Models