arXiv

Length Generalization Bounds for Transformers

Title: Establishing Length Generalization Limits for Transformer Architectures

Abstract:

A fundamental characteristic of robust learning algorithms is length generalization—the capacity to generate accurate predictions for inputs of arbitrary lengths, even when trained on limited data. Securing this capability requires the derivation of specific length generalization bounds, which define the threshold beyond which such generalization is mathematically assured. This study addresses the unresolved question regarding whether these bounds are computable for C-RASP, a language class intrinsically connected to Transformer models. While previous work by Chen et al. offered a partial positive resolution for single-layer C-RASP and, under certain constraints, for two-layer configurations, we deliver definitive answers to this open problem. Our primary finding demonstrates that computable length generalization bounds do not exist for C-RASP, a limitation that extends to Transformers even in the simplest two-layer scenario. Conversely, we identify a computable bound for the positive fragment of C-RASP, establishing its equivalence to fixed-precision Transformers. For both this positive C-RASP subset and fixed-precision Transformers, we determine that length complexity grows exponentially and rigorously prove that these bounds are optimal.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Withings Debuts New Smart Scale Marketed Toward GLP-1 Users
Bloomberg

Withings Debuts New Smart Scale Marketed Toward GLP-1 Users

Withings launched a new smart scale targeting GLP-1 users, offering advanced body composition analysis. This device help...

TechCrunch

Rocket engine startup Impulse raises $500 million to hire people, not AI

Rocket engine startup Impulse Space raised $500 million to hire 200 engineers, prioritizing human expertise over AI for ...

Startup Impulse Space Raises $500 Million, Valued at $4 Billion
Bloomberg

Startup Impulse Space Raises $500 Million, Valued at $4 Billion

Impulse Space secured $500 million in funding, achieving a $4 billion valuation. This investment supports the developmen...

Walmart’s Answer to Apple Pay Wants to Be Your Favorite Financial App
Bloomberg

Walmart’s Answer to Apple Pay Wants to Be Your Favorite Financial App

Walmart’s new financial app aims to rival Apple Pay, positioning itself as a preferred digital payment and banking solut...

Nvidia Is Bigger, Stronger, and Trying to Slay the Laptop Dragon Again
Bloomberg

Nvidia Is Bigger, Stronger, and Trying to Slay the Laptop Dragon Again

Nvidia unveiled the RTX Spark Superchip at Computex 2026, aiming to challenge Intel’s PC dominance and modernize hardwar...

TechCrunch

Pacific Fusion’s latest prototype packs 440 gigawatts into an 80-nanosecond burst

Pacific Fusion’s new prototype delivers 440 gigawatts in 80 nanoseconds, securing over $1 billion in funding and enablin...