ARTFEED — Contemporary Art Intelligence

Transformers' Length Generalization Characterized for Regular Languages

ai-technology · 2026-08-15

A recent theoretical study published on arXiv (2608.13433) delivers the first comprehensive description of the regular languages for which transformer-based language models can generalize in length. It introduces a polynomial-time decision algorithm that depends on the size of the syntactic monoid of the language. This research fills a crucial gap, as it was previously unclear which tasks allowed for such generalization, even among regular languages. The authors successfully characterize these languages using C-RASP, a formalism that identifies the languages transformers can length-generalize on. Traditional methods like Krohn-Rhodes decomposition are inadequate for C-RASP, necessitating new algebraic techniques specifically designed for it. This work is vital for the AI field, as it establishes a solid framework for predicting length generalization in transformers, influencing model design for tasks with varying input lengths.

Key facts

  • Paper arXiv:2608.13433, announced as cross type.
  • Establishes first complete characterization of regular languages on which transformers length-generalize.
  • Provides a decision algorithm running in polynomial time in the size of the language's syntactic monoid.
  • Relies on an effective characterization of regular languages in C-RASP.
  • Classical Krohn-Rhodes decomposition theory is insufficient for C-RASP.
  • The paper addresses a foundational class of languages: regular languages.
  • Length generalization is a known but poorly understood capability of transformers.
  • The work offers a theoretical framework for predicting length generalization.

Entities

Institutions

  • arXiv

Sources