Search
Talk

Algebraic Decomposition and Expressivity of Recurrent Language Models

  • Franz Nowak (ETH)
Live Stream

Abstract

The strong empirical performance of language models on reasoning tasks raises the question of what different neural architectures can compute, and where their limitations lie. One approach to formalizing this question is through formal language recognition: which languages can a model recognize correctly over sequences of arbitrary length?

This talk presents an algebraic approach to studying the expressivity of recurrent sequence models, including recurrent neural networks (RNNs) and state-space models (SSMs). While neural sequence models are usually modeled as real-valued input-controlled dynamical systems, under finite-precision arithmetic they become finite-state systems whose state transitions form a finite transformation semigroup.

The main mathematical tool is Krohn–Rhodes theory, which allows any finite semigroup to be decomposed into a wreath product of simpler 'prime' components. Relating these components to the operations available in a given architecture then provides a way to derive upper bounds on its expressivity. Conversely, when the required components are available, one can construct specific model parametrizations that recognize a given regular language.

I will illustrate this approach using Mamba-like SSMs as an example, showing how relatively small changes in architectural or quantization choices can change the classes of formal languages that these models can recognize.

Finally, I will sketch how this approach can be extended to transformer language models.

Upcoming Events of this Seminar