Introduction
Large Language Models (LLMs) derive their power from capturing complex relationships between features, yet explaining these interactions remains a significant computational challenge. Traditional interpretability tools like SHAP or LIME often focus on marginal attributions, failing to capture how combinations of features (e.g., "not" and "bad") influence sentiment. Identifying these interactions typically requires testing exponential combinations of features ($O(n^d)$), creating an "inference tax" that is prohibitive for massive models like Llama-3.
ProxySPEX addresses this by identifying complex feature interactions up to 10x more efficiently than previous state-of-the-art methods. It leverages the discovery that LLM interactions are "hierarchical"—high-order interactions are almost always built upon simpler ones—allowing for a fast proxy-based mapping of model logic.
The ProxySPEX Pipeline
The core innovation of ProxySPEX is the use of Gradient Boosted Trees (GBTs) as an efficient stand-in for expensive LLM queries. The process follows a three-step pipeline:
- Sampling: The LLM is queried with a limited number of "masked" inputs where specific features are hidden.
- Proxy Fitting: GBTs are trained on these samples. GBTs are uniquely suited for this task because their greedy, tree-based construction naturally mirrors the hierarchical structure of LLM interactions.
- Fourier Extraction: Fourier coefficients, representing feature interactions, are extracted directly from the trained GBTs in a single pass.
The Hierarchy Hypothesis
ProxySPEX relies on the Hierarchy Hypothesis: if a 3-way interaction between features {A, B, C} is significant, it is highly probable that the 2-way subsets {A, B}, {B, C}, and {A, C} are also significant. To validate this, the authors introduced the Direct Subset Rate (DSR), finding that over 80% of significant high-order interactions in real-world LLM tasks possess significant lower-order subsets. This "staircase" property allows the algorithm to prune the search space effectively.
Experimental Results
The authors evaluated ProxySPEX across diverse tasks, including Sentiment Analysis (DistilBERT), Question Answering (Llama-3.1), and Vision-Language tasks (CLIP).
Key findings include:
- Efficiency: ProxySPEX achieves the same faithfulness as previous methods like SPEX while requiring 10x fewer model inferences.
- Accuracy: Compared to marginal-only methods like LASSO, ProxySPEX improved explanation faithfulness by 15% to 25%.
- Practical Utility: The method proved effective for data attribution (identifying influential training samples) and model pruning (identifying redundant attention heads based on interaction importance).
Discussion and Future Work
While ProxySPEX excels at capturing hierarchical structures, it may struggle with "pure" high-order interactions that lack lower-order counterparts, such as parity functions. Furthermore, while the algorithm identifies which features interact, translating these mathematical interactions into human-intuitive explanations remains an area for development. Future research will explore adaptive masking techniques to further minimize the required inference count.
Summary updated