Table of Contents
Fetching ...

Partial Answer of How Transformers Learn Automata

Tiantian Zhang

TL;DR

The paper tackles the question of which natural automata admit extremely shallow Transformer implementations, aiming for depth independent of both input length $T$ and state size $|Q|$. It develops a representation-theoretic framework that uses Fourier modules to embed automaton states (e.g., $Q= Z_p$) and to realize transitions as frequency-domain operations, yielding constant-depth simulations. The approach generalizes beyond abelian groups to finite semigroups and non-abelian groups via an embedding into direct sums of irreducible representations, with depth bounds $O(1)$ for semigroup automata and $O() for semidirect-product automata, at widths tied to representation sizes $D= _j d_j^2$. It further extends to finite monoids and semidirect-product structures $N times H$, showing that Transformers can simulate such automata with $O()$ depth and widths $O((N)+( ho_H))$, thus going beyond Krohn–Rhodes decompositions. The results include discussions of solvable versus unsolvable groups, where depth remains constant while width grows with representation dimensions, and provide an open-question answer illustrating a broad class of automata amenable to efficient Transformer simulations with practical implications for frequency-domain reasoning and structured memory handling.

Abstract

We introduce a novel framework for simulating finite automata using representation-theoretic semidirect products and Fourier modules, achieving more efficient Transformer-based implementations.

Partial Answer of How Transformers Learn Automata

TL;DR

The paper tackles the question of which natural automata admit extremely shallow Transformer implementations, aiming for depth independent of both input length and state size . It develops a representation-theoretic framework that uses Fourier modules to embed automaton states (e.g., ) and to realize transitions as frequency-domain operations, yielding constant-depth simulations. The approach generalizes beyond abelian groups to finite semigroups and non-abelian groups via an embedding into direct sums of irreducible representations, with depth bounds for semigroup automata and D= _j d_j^2N times HO()O((N)+( ho_H))$, thus going beyond Krohn–Rhodes decompositions. The results include discussions of solvable versus unsolvable groups, where depth remains constant while width grows with representation dimensions, and provide an open-question answer illustrating a broad class of automata amenable to efficient Transformer simulations with practical implications for frequency-domain reasoning and structured memory handling.

Abstract

We introduce a novel framework for simulating finite automata using representation-theoretic semidirect products and Fourier modules, achieving more efficient Transformer-based implementations.
Paper Structure (34 sections, 5 theorems, 19 equations, 2 tables)

This paper contains 34 sections, 5 theorems, 19 equations, 2 tables.

Key Result

Lemma 1

The Fourier composition module operates with depth $O(1)$, independent of sequence length $T$.

Theorems & Definitions (12)

  • Lemma 1: Informal
  • proof
  • Definition 1: Modular automaton
  • Theorem 1: Constant-depth Transformer simulation of modular automata
  • proof
  • Definition 2: Semigroup Automaton
  • Theorem 2: Constant-depth Transformer simulation of semigroup automata
  • proof
  • Definition 3: Group Automaton
  • Theorem 3: Transformer simulation of group automata
  • ...and 2 more