---
title: "Identifying Interactions at Scale for LLMs"
description: "SPEX and ProxySPEX identify influential interactions in LLMs and other ML models by treating ablation-based attribution as a sparse recovery problem, using signal processing and coding theory to scale interaction discovery from dozens to thousands of components."
url: "https://swe.quest/articles/identifying-interactions-at-scale-for-llms-3793e2abaeb5d127"
canonical: "https://bair.berkeley.edu/blog/2026/03/13/spex/"
source: "Berkeley AI Research"
published: "2026-03-13"
difficulty: "hard"
kind: "Research"
reading_minutes: 7
tags: ["ai-safety","llms","machine-learning","algorithms"]
---

# Identifying Interactions at Scale for LLMs

A post on [Berkeley AI Research](https://swe.quest/sources/bair.md), published 2026-03-13, 7 min read, Research. Original: [https://bair.berkeley.edu/blog/2026/03/13/spex/](https://bair.berkeley.edu/blog/2026/03/13/spex/)

## Summary

SPEX and ProxySPEX identify influential interactions in LLMs and other ML models by treating ablation-based attribution as a sparse recovery problem, using signal processing and coding theory to scale interaction discovery from dozens to thousands of components. SPEX exploits sparsity and low-degreeness of influential interactions. ProxySPEX adds a hierarchy assumption and matches SPEX with roughly 10x fewer ablations. Applications cover feature attribution, where SPEX keeps high faithfulness on long contexts and explains GPT-4o mini failing a modified trolley problem; data attribution, finding synergistic and redundant CIFAR-10 training examples; and attention-head pruning on MMLU, which can improve task accuracy. Code is available in the SHAP-IQ repository.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [AI safety](https://swe.quest/tags/ai-safety.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)

## Prerequisites

- feature attribution methods like SHAP
- Shapley values
- LLM architecture and attention heads ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- sparse signal recovery

## Keywords

SPEX, ProxySPEX, SHAP-IQ, SHAP, GPT-4o mini, CIFAR-10, MMLU, ResNet

## Related posts

- [Red-Teaming Large Language Models](https://swe.quest/articles/red-teaming-large-language-models-a911211681792c3b.md): Hugging Face · 2023-02-24 · Easy · 6 min read · AI safety, Evaluation, LLMs
  Red-teaming evaluates LLMs by crafting natural-language prompts that elicit harmful outputs such as toxicity, bias, misinformation or leaked personal data, and it differs from adversarial attacks, which can use unintelligible inputs.
- [An Introduction to AI Secure LLM Safety Leaderboard](https://swe.quest/articles/an-introduction-to-ai-secure-llm-safety-leaderboard-3389612600bb2dd0.md): Hugging Face · 2024-01-26 · Easy · 5 min read · Evaluation, AI safety, LLMs
  The LLM Safety Leaderboard, built on the Hugging Face leaderboard template, ranks open and closed models using DecodingTrust, a NeurIPS 2023 evaluation framework covering eight trustworthiness perspectives: toxicity, stereotype bias, adversarial robustness, OOD robustness, adversarial demonstrations, privacy, machine ethics and fairness.
- [LLMON: An LLM-Native Markup Language, now in Granite 4.1 3B and 8B](https://swe.quest/articles/llmon-an-llm-native-markup-language-now-in-granite-4-1-3b-and-8b-15ec5b2310826586.md): Hugging Face · 2026-11-12 · Medium · 9 min read · LLMs, AI safety, Model training, Application security
  LLMON (LLM Object Notation) is an XML-like markup whose structural delimiters are reserved special tokens.
- [What We Learned by Reproducing 2,200 papers from ICML](https://swe.quest/articles/what-we-learned-by-reproducing-2-200-papers-from-icml-582affbafe8bbb7a.md): Hugging Face · 2026-08-13 · Medium · 12 min read · AI agents, Evaluation, Machine learning, LLMs
  A community hackathon used coding agents to reproduce 2,226 ICML 2026 papers (about a third of the conference) claim by claim, publishing 6,816 Trackio logbooks judged per claim by an open-weights GLM-5.2 judge.
- [Together AI at ICML 2026: frontier research across the full stack](https://swe.quest/articles/together-ai-at-icml-2026-frontier-research-across-the-full-stack-7ba2ab06914581c4.md): Together AI · 2026-06-30 · Hard · 10 min read · Inference & serving, Model training, LLMs, AI agents, Evaluation
  Together AI's nine ICML 2026 papers span the AI stack from agents to GPU kernels, each with a headline result.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
