arXiv Machine Learning

Sanity Checks for Attention Surgery: Null Models and Matched Interventions for Representation-Motivated Design

The paper introduces three sanity checks to evaluate whether architectural changes to Transformers—specifically removing components of attention heads—are justified by meaningful statistics in internal representations. Applying these checks to self‑attention removal across nine pretrained models, the authors find that a significant portion of head‑value cosine alignment is explained by a causal null, that alignment varies with key‑value grouping, and that the effect of removing the own‑value direction improves validation loss in large models but not in smaller ones. The study demonstrates that large cosine alignment alone does not guarantee redundancy, and that the benefit of removing a specific direction depends on model size and architecture.

arXiv AI
Sep 30

Which Attention Heads are like the Human Head? Not the Ones that Compute

The study investigates whether attention heads in large language models that align with human EEG signals are causally involved in model computation. By ablating these brain‑aligned heads during a pattern‑completion task, the authors find that while such heads contribute to performance, their removal is less disruptive than removing heads selected by attribution patching. The research also distinguishes two families of brain‑aligned heads—novelty and repetition heads—highlighting that novelty heads track human attention but are less critical than random ablation, whereas repetition heads modestly aid performance and align with abstract‑pattern representations.

By Christopher Pinier, Gustaw Opie{\l}ka, Hannes Rosenbusch, Taylor Webb, Michael D. Nunez, Claire E. Stevenson
arXiv Machine Learning
Oct 3

When Do Attention-Head Ablations Support Causal Claims? Projection-Level Confounds, Floor Effects, and Matched Controls

The paper investigates the reliability of attention‑head ablation as a causal inference tool in language models. Using GPT‑2 small, the authors find that a natural post‑projection zeroing method is almost uncorrelated with a corrected pre‑projection ablation and yields a completely different set of top‑5 important heads. They also show that binary accuracy can mask effects near performance floors or ceilings, whereas gold‑token log‑probability provides a graded signal. By employing a discovery/held‑out split and 1,000 matched random‑head and layer‑matched‑head controls, the corrected per‑head effect ranking remains highly stable (Spearman ρ = 0.974) and the top‑5 heads significantly outperform both control distributions (Monte Carlo p = 0.001). However, evidence for task specificity is weak on GPT‑2, and replication on DistilGPT‑2 confirms the intervention‑semantic and matched‑control findings.

By Juli Huang
arXiv Computation and Language
Oct 16

Spurious Attention Heads in Vision Transformers: Mechanistic Identification of Annotation-Driven Bias in Medical Chest X-Ray Analysis

The study identifies a specific attention head (L8H10) in Vision Transformers that reads annotation text on chest X‑ray images instead of lung pathology, affecting 62% of COVID‑19 images. Causal inpainting experiments confirm that the head’s behavior is driven by annotation content, and removing the head increases lung attention by 1.52×. This spurious annotation‑attending behavior is consistent across multiple ViT architectures and datasets, persists after full fine‑tuning, and is invisible to standard output‑level evaluation, highlighting the need for mechanistic auditing.

By Joshua Muhumuza, Cornelius Kalenzi
arXiv Machine Learning
Sep 23

Magnitude Profile Pruning: Calibration-Free Structured Attention Head Removal for Transformer Compression

Magnitude Profile Pruning introduces a training‑free, calibration‑free method for removing attention heads in Transformer models by statistically detecting outliers in weight row norms. Heads whose projection weights fall within the bulk of the distribution are pruned, while outlier heads are retained. Across several models, the MP‑G variant achieves superior perplexity at various sparsity levels and yields significant parameter and FLOP reductions without requiring forward passes, calibration data, or gradient computations.

By Kasun Dewage, Marianna Pensky, Heranga K. Rathnasekara, Suranadi De Silva
arXiv Machine Learning
Nov 2

What Does a Harness Repair? Three Preregistered Studies Around a Longevity-Tuned Language Model

The paper reports three preregistered studies evaluating a longevity‑tuned 1.7B language model’s performance when a harness is applied. Across multiple tasks, the harness sometimes improves test accuracy over a capped thinking setting, but its gains are often comparable to or only slightly better than a constant label baseline. Replication experiments confirm that the observed improvements can be attributed to specific unparsed rows and pipeline artifacts rather than a general model enhancement.

By Bowen Xu, Boyu Chen
arXiv AI
Nov 11

From Architecture to Output: Testing the Structural Origins of Hallucination and the Amplifying Role of Data

The paper investigates whether hallucinations in language models stem from their architecture or from the data they are trained on. By swapping attention mechanisms for state‑space mixers in Pythia/Mamba models, the authors show that attention models are more prone to repeating false statements, while state‑space models better handle planted facts. A second study demonstrates that correcting a single erroneous fact in instruction‑tuned models significantly reduces downstream errors, indicating that the structure of the model influences how errors propagate.

By Md. Rejaul Korim Sadi, Toufiqur Rahman Tasin, Golam Mostofa Naeem
arXiv Computer Vision
Aug 27

Targeting the Attention Heads Behind Object Hallucination in LLaVA

The paper investigates why vision‑language models like LLaVA‑1.5‑7B hallucinate objects in captions and proposes a targeted fix. By ranking attention heads whose image attention drops around hallucinated words, the authors identify 32 key heads and apply a head‑sliced LoRA adapter plus an inference‑time grounding controller. On COCO images, this combined method reduces hallucinated captions from 37% to 23% and hallucinated object mentions from 15.6% to 9.6%, while also lowering object recall.

By Armaan Sandhu, Abhilasha Senapati, Hima Kammachi
arXiv Machine Learning
6d ago

Lost in a Few Heads: Diagnosing and Repairing Block Selection in Sparse Attention

The paper investigates why sparse attention models lose long‑context retrieval accuracy when limited to a fixed number of key blocks. By using exact attention mass as an oracle, the authors show that the block selector under‑ranks the relevant token (the “needle”) rather than exhausting its budget, and identify specific attention heads that consistently miss the needle. Fixing these blind heads—either by enabling full attention or by using a lightweight 4‑bit scorer—recovers most of the lost accuracy across several large‑language‑model checkpoints.

By Wenhe Zhang, Boxing Chen
arXiv Machine Learning
Sep 23

Spectral Tail Interventions in Decoder-Only Language Models: Reasoning-Sensitive Weight Structure from Controlled Surgery

The paper investigates how the upper spectral tails of weight matrices in decoder‑only transformer language models influence reasoning behavior. By performing controlled interventions on the query–key product and comparing them to factor‑level surgeries, the authors find that edits targeting the spectral tail more strongly affect model performance across multiple checkpoints and reasoning benchmarks. The study also explores how inverse participation ratios predict accuracy transitions and shows that tail‑aware low‑rank adaptations converge faster than standard methods.

By Ibne Farabi Shihab, Sanjida Akhter, Md Najmus Swaqeeb, Abu Sa-Adat Mohamed Moon-Im Al Ahsan, Anuj Sharma