AILGSYDSOCDec 3, 2024

The Asymptotic Behavior of Attention in Transformers

arXiv:2412.02682v213 citationsh-index: 3
Originality Incremental advance
AI Analysis

This addresses a theoretical problem for LLM developers by showing depth scaling is suboptimal and can cause collapse, though it is incremental as it builds on prior studies of diminishing returns.

The paper proves that increasing transformer depth causes all tokens to asymptotically converge to a single cluster, leading to model collapse and reduced output diversity, based on differential equation models and control theory tools.

The transformer architecture has become the foundation of modern Large Language Models (LLMs), yet its theoretical properties are still not well understood. As with classic neural networks, a common approach to improve these models is to increase their size and depth. However, such strategies may be suboptimal, as several works have shown that adding more layers yields increasingly diminishing returns. More importantly, prior studies have shown that increasing depth may lead to model collapse, i.e., all the tokens converge to a single cluster, undermining the ability of LLMs to generate diverse outputs. Building on differential equation models for the transformer dynamics, we prove that all the tokens in a transformer asymptotically converge to a cluster as depth increases. At the technical level we leverage tools from control theory, including consensus dynamics on manifolds and input-to-state stability (ISS). We then extend our analysis to autoregressive models, exploiting their structure to further generalize the theoretical guarantees.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes