Research map / Vision-language and multimodal / Human and embodied modeling
Head Pursuit: Probing Attention Specialization in Multimodal Transformers
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Applies sparse-coding (SOMP) over the unembedding matrix to rank attention heads by how well they specialize in target concepts, then inverts or amplifies the top ~1% of heads to suppress or enhance those concepts in text and vision-language outputs.
Problem
Attention heads in generative language and vision-language models are poorly understood at the component level, and existing logit-lens style probes work per-sample and are heuristic, making it hard to identify which heads drive a given concept.
Approach
Reinterpret the Logit Lens as a single step of Matching Pursuit and extend it to Simultaneous OMP over many samples, using a concept-restricted unembedding matrix as dictionary; the variance fraction explained per head serves as a specialization score for head selection and intervention, with no extra training.
Key results
- Inverting 32 SOMP-selected heads in Mistral-7B reduces toxic generations on RTP to 0.66 of baseline vs 1.13 for random heads.
- On LLaVA-NeXT-7B, inverting 32 SOMP-selected heads drives MNIST classification accuracy to 0.12 of base, while random heads at the same layers keep it at 0.99.
- On Flickr30k captioning with LLaVA-NeXT-7B, inhibiting 16 color heads reduces color-keyword count to 0.18 with CIDEr at 0.91 of original; enhancing with alpha=5 raises sentiment-keyword count to about 5x.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Invert SOMP-selected toxic heads | Mistral-7B · RTP and TET | normalized toxic generations: RTP: 1.00 -> 0.66; TET: 1.00 -> 0.49 | Helped |
| Invert Logit Lens-selected heads instead of SOMP-selected heads | Mistral-7B · RTP and TET | normalized toxic generations: RTP, 32 heads: 0.66 vs 0.71; TET, 32 heads: 0.49 vs 0.68 | Mixed |
| Invert SOMP-selected heads instead of random heads | LLaVA-NeXT-7B · Image classification: MNIST, SVHN, EuroSAT, RESISC45, DTD, GTSRB | normalized classification accuracy: MNIST: 0.12 vs 0.99; SVHN: 0.17; EuroSAT: 0.42; RESISC45: 0.46; DTD: 0.58; GTSRB: 0.03 | Helped |
| Invert SOMP-selected color heads | LLaVA-NeXT-7B · Flickr30k | normalized color property count: 1.00 -> 0.14 | Helped |
| Invert SOMP-selected color heads | LLaVA-NeXT-7B · Flickr30k | normalized CIDEr: 1.00 -> 0.80 | Hurt |
| Amplify SOMP-selected concept heads | LLaVA-NeXT-7B · Flickr30k colors, sentiments, and quantity | normalized target property count: Colors: 2.44; sentiments: 4.57; quantity: 1.61 | Helped |
| Amplify SOMP-selected color heads | LLaVA-NeXT-7B · Flickr30k colors | normalized CIDEr: 1.00 -> 0.89 | Hurt |
| Increase the number of inverted SOMP-selected heads from 16 to 32 | LLaVA-NeXT-7B · DTD image classification | normalized classification accuracy: 0.94 -> 0.58 | Helped |
Surprising findings
- Logit Lens-selected heads are relevant for task performance but degrade in-domain and out-of-domain examples equally, so they lack specificity.
- Heads selected on one dataset transfer to semantically related datasets, e.g., digit-related heads from MNIST/SVHN also degrade GTSRB traffic-sign recognition.
Limitations
- SOMP assumes linear structure that may not capture nonlinear head representations.
- Results depend on the quality and coverage of the keyword dictionary; incomplete lists can bias head selection.
- Interventions are global rescalings or inversions of head outputs, which are coarse compared with finer-grained steering.
Experimental setup
Datasets: TriviaQA RealToxicityPrompts Thoroughly Engineered Toxicity MNIST SVHN GTSRB EuroSAT RESISC45 DTD Flickr30k
Benchmarks: TriviaQA RealToxicityPrompts Thoroughly Engineered Toxicity MNIST SVHN GTSRB EuroSAT RESISC45 DTD Flickr30k
Metrics: F1 normalized toxic generation count toxic keyword frequency exact-match classification accuracy property keyword count CIDEr
Baselines: Logit Lens head selection random head selection
Builds on: Logit Lens Matching Pursuit Orthogonal Matching Pursuit Attention Lens Tuned Lens
Closest papers by meaning
- Unveiling Visual Perception in Language Models: An Attention Head Analysis Approach (CVPR 2025 · similarity 0.92)
- Where Does Vision Meet Language? Understanding and Refining Visual Fusion in MLLMs via Contrastive Attention (CVPR 2026 · similarity 0.90)
- Cross-Attention Head Position Patterns Can Align with Human Visual Concepts in Text-to-Image Generative Models (ICLR 2025 · similarity 0.89)
- See What You Are Told: Visual Attention Sink in Large Multimodal Models (ICLR 2025 · similarity 0.89)
- Talking Heads: Understanding Inter-Layer Communication in Transformer Language Models (NeurIPS 2024 · similarity 0.88)
- Seeing is Understanding: Unlocking Causal Attention into Modality-Mutual Attention for Multimodal LLMs (ICML 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
