paper-with-me

홈 › Papers

Automated Attention Pattern Discovery at Scale in Large Language Models

2026-04-04 · Jonathan Katzy, Razvan-Mihai Popescu, Erik Mekkes, Arie van Deursen, Maliheh Izadi arxiv

Large language models have found success by scaling up capabilities to work in general settings. The same can unfortunately not be said for interpretability methods. The current trend in mechanistic interpretability is to provide precise explanations of specific behaviors in controlled settings. These often do not generalize, or are too resource intensive for larger studies. In this work we propose to study repeated behaviors in large language models by mining completion scenarios in Java code datasets, through exploiting the structured nature of code. We collect the attention patterns generated in the attention heads to demonstrate that they are scalable signals for global interpretability of model components. We show that vision models offer a promising direction for analyzing attention patterns at scale. To demonstrate this, we introduce the Attention Pattern - Masked Autoencoder(AP-MAE), a vision transformer-based model that efficiently reconstructs masked attention patterns. Experiments on StarCoder2 show that AP-MAE (i) reconstructs masked attention patterns with high accuracy, (ii) generalizes across unseen models with minimal degradation, (iii) reveals recurring patterns across inferences, (iv) predicts whether a generation will be correct without access to ground truth, with accuracies ranging from 55% to 70% depending on the task, and (v) enables targeted interventions that increase accuracy by 13.6% when applied selectively, but cause collapse when applied excessively. These results establish attention patterns as a scalable signal for interpretability and demonstrate that AP-MAE provides a transferable foundation for both analysis and intervention in large language models. Beyond its standalone value, AP-MAE also serves as a selection procedure to guide fine-grained mechanistic approaches. We release code and models to support future work in large-scale interpretability.

📄 PDF Abstract BibTeX arXiv:2604.03764

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

BrainExplore: Large-Scale Discovery of Interpretable Visual Representations in the Human Brain

2025-12-09 · Navve Wasserman, Matias Cosarinsky, Yuval Golbari, Aude Oliva 외 arxiv

Understanding how the human brain represents visual concepts, and in which brain regions these representations are encoded, remains a long-standing challenge. Decades of work have advanced our understanding of visual rep…

AI-Driven Automation Can Become the Foundation of Next-Era Science of Science Research

2025-05-17 · Renqi Chen, Haoyang Su, Shixiang Tang, Zhenfei Yin 외

The Science of Science (SoS) explores the mechanisms underlying scientific discovery, and offers valuable insights for enhancing scientific efficiency and fostering innovation. Traditional approaches often rely on simpli…

scientific discovery

Attribution Patching Outperforms Automated Circuit Discovery

2023-10-16 · Aaquib Syed, Can Rager, Arthur Conmy

Automated interpretability research has recently attracted attention as a potential research direction that could scale explanations of neural network behavior to large models. Existing automated circuit discovery work a…

Interactive Multi Interest Process Pattern Discovery

2023-08-28 · Mozhgan Vazifehdoostirani, Laura Genga, Xixi Lu, Rob Verhoeven 외

Process pattern discovery methods (PPDMs) aim at identifying patterns of interest to users. Existing PPDMs typically are unsupervised and focus on a single dimension of interest, such as discovering frequent patterns. We…

Multi-Agent Causal Reasoning System for Error Pattern Rule Automation in Vehicles

2026-02-01 · Hugo Math, Julian Lorenz, Stefan Oelsner, Rainer Lienhart arxiv

Modern vehicles generate thousands of different discrete events known as Diagnostic Trouble Codes (DTCs). Automotive manufacturers use Boolean combinations of these codes, called error patterns (EPs), to characterize sys…