arXiv Machine Learning

Theory on Attention Dynamics for Out-of-Distribution In-Context Learning

arXiv Machine Learning
Oct 16

ABNAT: Attention-Based Noise-Aware Training for Robust Transformers on Analog Compute-in-Memory Systems

ABNAT introduces an attention-based noise-aware training framework for Transformer models on analog compute-in-memory systems. It focuses on preserving clean teacher attention routes during noisy training, addressing the increased divergence in deeper layers and overconfidence issues of conventional NAT. Experiments across vision, language, and multimodal Transformers show up to 11.28% accuracy improvement and 85.77% reduction in attention deviation.

By Wenshuai Yao, Wenyong Zhou, Hanyong Shao, Zhiyuan Ning, Yizhe Chen, Yuannuo Feng, Kechao Tang, Ru Huang
arXiv Computation and Language
Oct 23

In-Context Learning Beyond Copying: A Training-Time Analysis of Abstractive ICL

The paper investigates the relationship between in-context copying and the emergence of abstractive in-context learning (ICL) in large language models. By introducing Hapax, a training regime that removes loss contributions from tokens predictable by induction circuits, the authors show that abstractive ICL can still develop even when copying signals are largely suppressed. Attention analysis reveals that Hapax-trained models exhibit fewer and weaker induction heads, indicating a weaker developmental link between induction circuits and abstractive ICL than previously thought.

By Kerem Sahin, Sheridan Feucht, Adam Belfki, Jannik Brinkmann, Aaron Mueller, David Bau, Chris Wendler
arXiv Machine Learning
5d ago

Distinct mechanisms underlying in-context learning in transformers

The paper investigates how transformers perform in-context learning by training them on a finite set of discrete Markov chains. It identifies four distinct algorithmic phases—based on memorization versus generalization and on using 1-point versus 2-point statistics—each implemented by specific multi-layer subcircuits. The study shows that transitions between these phases are governed by data diversity thresholds and a representational bottleneck, and it provides a symmetry-constrained theory explaining the sharp shift from 1-point to 2-point generalization.

By Cole Gibson, Wenping Cui, Gautam Reddy