arXiv Machine Learning

What can linear attention learn from nonlinear teachers in-context?

The paper extends linear attention theory from linear regression to nonlinear single‑index targets, showing that linear attention only captures the linear Hermite component of the nonlinearity while treating the rest as effective noise. This nonlinearity‑noise equivalence lets existing linear results be applied to nonlinear tasks, and the authors demonstrate how finite pretraining data and increasing task diversity affect the shift from memorisation to generalisation. The work highlights a limitation of reduced linear‑attention models and offers a tractable framework for future studies of nonlinear in‑context learning.

arXiv Machine Learning
Sep 25

Transformers as Cross-Task Learners: Shared Structure Drives Sample Efficiency in In-Context Learning

Transformers can learn broad families of tasks during pretraining and adapt to unseen tasks from a short prompt, but a rigorous understanding of this capability is limited. This paper studies how shared cross‑task structure influences the sample complexity of in‑context learning (ICL) by characterizing task‑space complexity through covering numbers, yielding a set of anchor functions that localize unseen tasks and predict responses. The authors construct a Transformer with Softmax attention to approximate this procedure and derive an error bound that separates the effects of pretraining tasks and prompt length, showing that once enough tasks are available the dependence on prompt length becomes dimension‑free.

By Zhongjie Shi, Rongjie Lai, Alexander Cloninger, Wenjing Liao
Hugging Face Trending Papers
Oct 8

Softmax Attention on Gaussian Mixtures: Linear When It Can, Selective When It Must

Softmax attention, central to Transformers, has been examined in the context of Gaussian mixtures to explore its behavior in the infinite-prompt limit. While pure Gaussian prompts reduce softmax attention to a linear map, Gaussian mixtures preserve latent structure, multimodality, and nonlinear dependencies. The study demonstrates that softmax attention can learn optimal solutions for tasks such as supervised classification and denoising, recovering linear performance while also leveraging query-dependent selection to tackle nonlinear problems beyond linear attention.

arXiv Machine Learning
Oct 9

Softmax Attention on Gaussian Mixtures: Linear When It Can, Selective When It Must

Softmax attention, central to Transformers, has been examined in the context of Gaussian mixtures to explore its behavior in the infinite-prompt limit. The study demonstrates that, unlike the purely linear mapping observed with single Gaussian prompts, softmax attention on Gaussian mixtures can both recover linear tasks and exploit query-dependent selection to solve nonlinear problems such as supervised classification and denoising. The work shows that softmax attention retains tractability while gaining the ability to learn optimal solutions via gradient-based methods.

By Simon Gabet (LMO), Etienne Boursier (LMO, CELESTE), Claire Boyer (LMO, IUF)
arXiv AI
Oct 9

Emergent Inverse-Depth Scaling From Nonlinearity In Attention

The paper investigates how nonlinearity in attention mechanisms affects scaling laws in large language models. It finds that nonlinear attention leads to an inverse-depth decay of loss across various data spectra, enabling models to learn both strong and weak spectral directions simultaneously. This behavior contrasts with linear-attention models, which rely on a power-law data spectrum and learn directions sequentially.

By Zirui Peng, Yizhou Liu, Ziming Liu, Jeff Gore
arXiv AI
Oct 12

Not All Dimensions Are Equal: Outlier-Aware Attention Linearization with Grouped Quadratic Kernels

The paper introduces Outlier-Aware Attention Linearization (OAL), a method that improves linearized softmax attention by explicitly accounting for a few outlier dimensions that disproportionately affect query-key dot products. OAL builds on a second-order Taylor approximation, uses a Hadamard-product formulation to expose dimension-specific contributions, and groups dimensions with similar scales to share coefficients while treating outliers separately. Experiments on Qwen2.5-0.5B show an 8.9% reduction in frozen-attention output MSE, and fine-tuning with LoRA lowers WikiText-103 perplexity from 31.71 to 27.50 while boosting performance on PIQA, HellaSwag, and ARC-E.

By Weiqi Sun, Qianyue Wu, Wenjia Wang, Tianyang Hu