Lune

ICML2025Top-tier venue

SPEX: Scaling Feature Interaction Explanations for LLMs

Justin Singh Kang, Landon Butler, Abhineet Agarwal, Yigit Efe Erginbas, Ramtin Pedarsani, Bin Yu, Kannan Ramchandran

Abstract

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 realworld 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Compressed Sensing for Capability Localization in Large Language Models cites ProxySPEX: Inference-Efficient Interpretability via Sparse Feature Interactions in LLMs
  • Evaluating and Explaining Prompt Sensitivity of LLMs Using Interactions cites ProxySPEX: Inference-Efficient Interpretability via Sparse Feature Interactions in LLMs
  • ProxySPEX: Inference-Efficient Interpretability via Sparse Feature Interactions in LLMs cites Scatterbrain: Unifying Sparse and Low-rank Attention
  • ProxySPEX: Inference-Efficient Interpretability via Sparse Feature Interactions in LLMs cites The Shapley Taylor Interaction Index
  • ProxySPEX: Inference-Efficient Interpretability via Sparse Feature Interactions in LLMs cites Where We Have Arrived in Proving the Emergence of Sparse Interaction Primitives in DNNs
  • Explaining Similarity in Vision-Language Encoders with Weighted Banzhaf Interactions cites The Shapley Taylor Interaction Index
  • Where We Have Arrived in Proving the Emergence of Sparse Interaction Primitives in DNNs cites The Shapley Taylor Interaction Index
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. ProxySPEX: Inference-Efficient Interpretability via Sparse Feature Interactions in LLMsLandon Butler, Abhineet Agarwal, Justin Singh Kang, Yigit Efe Erginbas et al.NeurIPS 2025 · 19 citations
  2. Explaining Similarity in Vision-Language Encoders with Weighted Banzhaf InteractionsHubert Baniecki, Maximilian Muschalik, Fabian Fumagalli, Barbara Hammer et al.NeurIPS 2025 · 6 citations
  3. Compressed Sensing for Capability Localization in Large Language ModelsAnna Bair, Yixuan Xu, Mingjie Sun, Zico KolterICML 2026 · 1 citation
  4. Evaluating and Explaining Prompt Sensitivity of LLMs Using InteractionsRuiyang Qin, Qingzhuo Wang, Tian Wang, Zhihua Wei et al.ICML 2026 · 1 citation
  5. An Odd Estimator for Shapley ValuesFabian Fumagalli, Landon Butler, Justin S. Kang, Kannan Ramchandran et al.ICML 2026

Builds on13

  1. The Shapley Taylor Interaction IndexMukund Sundararajan, Kedar Dhamdhere, Ashish AgarwalICML 2020 · 199 citations
  2. Scatterbrain: Unifying Sparse and Low-rank AttentionBeidi Chen, Tri Dao, Eric Winsor, Zhao Song et al.NeurIPS 2021 · 165 citations
  3. Tell Your Model Where to Attend: Post-hoc Attention Steering for LLMsQingru Zhang, Chandan Singh, Liyuan Liu, Xiaodong Liu et al.ICLR 2024 · 76 citations
  4. Vision-and-Language or Vision-for-Language? On Cross-Modal Influence in Multimodal TransformersStella Frank, Emanuele Bugliarello, Desmond ElliottEMNLP 2021 · 36 citations
  5. Where We Have Arrived in Proving the Emergence of Sparse Interaction Primitives in DNNsQihan Ren, Jiayang Gao, Wen Shen, Quanshi ZhangICLR 2024 · 23 citations

Related papers

  1. TextGenSHAP: Scalable Post-Hoc Explanations in Text Generation with Long DocumentsJames Enouen, Hootan Nakhost, Sayna Ebrahimi, Sercan Ö. Arik et al.ACL Findings 2024 · 3 citations
  2. JoPA: Explaining Large Language Model's Generation via Joint Prompt AttributionYurui Chang, Bochuan Cao, Yujia Wang, Jinghui Chen et al.ACL 2025
  3. GiLOT: Interpreting Generative Language Models via Optimal TransportXuhong Li, Jiamin Chen, Yekun Chai, Haoyi XiongICML 2024 · 6 citations
  4. PE: A Poincare Explanation Method for Fast Text Hierarchy GenerationQian Chen, Dongyang Li, Xiaofeng He, Hongzhao Li et al.EMNLP Findings 2024
  5. Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMsWenbo Pan, Zhichao Liu, Xianlong Wang, Yu Haining et al.ICML 2026 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines