arXiv AI

Generic Interpretation Approach for Transformer Models Incorporating Heterogenous Attention Structures

arXiv:2605. 27458v2 Announce Type: replace-cross Abstract: Transformer has significantly propelled the development of artificial intelligence, and certainly the development of agents as well.

arXiv Machine Learning
Jun 8

Attention Sink in Transformers: A Survey on Utilization, Interpretation, and Mitigation

arXiv:2604. 10098v2 Announce Type: replace Abstract: As the foundational architecture of modern machine learning, Transformers have driven remarkable progress across diverse AI domains.

By Zunhai Su, Hengyuan Zhang, Wei Wu, Yifan Zhang, Yaxiu Liu, He Xiao, Qingyao Yang, Yuxuan Sun, Rui Yang, Chao Zhang, Jing Xiong, Hui Shen, Keyu Fan, Weihao Ye, Chaofan Tao, Taiqiang Wu, Zhongwei Wan, Tiantian Zhang, Bowen Yan, Zhen Li, Yiming Zhang, Congkai Xie, Yulei Qian, Yuchen Xie, Yik-Chung Wu, Hongxia Yang, Ngai Wong
arXiv Computation and Language
Sep 7

Influence Score and Transformers interpretability: Measure of the Effective Impact of Attention Heads at inference time

The paper introduces an influence score that measures how much each attention head contributes to classification decisions in Transformer models, specifically for prompt injection detection. The score blends directional effects on logits with structural impact within the residual stream, allowing analysis at head, layer, and network scales. When applied to a DeBERTa model, the framework uncovers different decision patterns for correct versus incorrect predictions, offering a balanced approach between detailed circuit analysis and global output methods.

By Lisa Bouger, Yannick Teglia, Philippe Loubet Moundi
arXiv AI
Sep 11

Quantifying Logical Consistency in Transformers via Query-Key Alignment

The paper introduces a lightweight evaluation method for logical reasoning in transformer-based language models, using query-key alignments within attention heads to compute a QK-score. This single forward-pass technique identifies valid versus invalid inferences and is validated across multiple reasoning benchmarks, showing robustness to distractors and deeper reasoning. Experiments span models from 1.5B to 70B parameters, demonstrating scalability.

By Eduard Tulchinskii, Anastasia Voznyuk, Laida Kushnareva, Andrei Andriiainen, Irina Piontkovskaya, Evgeny Burnaev, Serguei Barannikov
arXiv AI
Oct 15

On the Statistical Mechanics of Attention

arXiv:2610.17347v1 Announce Type: cross Abstract: We revisit the statistical mechanics of Transformer attention via modern Hopfield models. We present a free-energy formalism to characterize paramete...

By Jerry Yao-Chieh Hu, Yu-An Chen, Maojiang Su, Han Liu
arXiv AI
Oct 31

From the Transformer to a Formal Semantics of Coordinated Transformations

The paper presents a formal semantics for coordinated systems of parameterized transformations, using the Transformer as a starting point but abstracting away from its specific mathematical form. It introduces concepts such as transforming concepts, where parameterized transformations are linked to property-level maps, and distinguishes a common algebraic-semantic core from architecture-specific organization. The framework is applied to attention heads and residual connections, showing how complex architectures can be decomposed into simpler, semantically coordinated subsystems that recur across different system types.

By Marco Giunti, Fabrizia Giulia Garavaglia