Regex Began as Neural Network Theory
In the summer of 1951, logician Stephen Cole Kleene took a consulting stint at the RAND Corporation in Santa Monica. While he was there, Merrill Flood—an old Princeton graduate-school friend then working at RAND—handed him an eight-year-old mathematical biophysics paper by Warren McCulloch and Walter Pitts and asked what those abstract models of the brain could actually compute.1
Most software engineers treat regular expressions as a piece of Unix folklore: cryptic line noise invented for grep, log scraping, and form validation. Kleene never wrote a text editor, and he had no interest in searching ASCII files. He invented regular expressions to describe which temporal patterns of sensory spikes can make a neuron fire inside a finite artificial neural network.
That origin is easy to forget because automata theory and connectionist AI spent sixty years in separate worlds. Yet open any frontier language model pipeline today and Kleene's machinery is back in three places at once: chopping raw text into tokens before the network sees it, masking logits at decoding time to guarantee valid JSON or SQL, and defining the formal complexity wall that fixed-depth Transformers still cannot climb without a chain of thought.
McCulloch, Pitts, and the Problem of Circles
In 1943, neurophysiologist Warren McCulloch and twenty-year-old logician Walter Pitts published "A Logical Calculus of the Ideas Immanent in Nervous Activity" in the Bulletin of Mathematical Biophysics.2 Their goal was to bridge neurophysiology and symbolic logic by idealizing biological neurons into simple binary units governed by five axioms:
- Neuron activity is strictly all-or-none ( or ).
- A fixed threshold of excitatory synapses must fire together within one period of latent addition to trigger a neuron.
- The only significant delay in the network is a uniform unit synaptic delay.
- Any active inhibitory synapse blocks excitation completely at that time step.
- The wiring of the net does not change over time.
In modern terms, a McCulloch–Pitts neuron is a discrete-time binary threshold gate. Wire those gates together without feedback loops ("nets without circles"), and McCulloch and Pitts proved they correspond cleanly to propositional logic over a fixed window of past time steps.2 Feed in sensory signals at time , and an output neuron at time fires if and only if those recent inputs satisfy a Boolean formula.
The hard part started when they allowed feedback loops—what they called nets with circles. Once a neuron's output can loop back to re-excite itself or its neighbors, "reference to time past becomes indefinite."2 A finite nerve net can suddenly remember whether a stimulus occurred arbitrarily long ago, or count modulo forever, without growing a single extra wire.
Near the end of the 1943 paper, McCulloch and Pitts drew a sharp distinction that is often misquoted in popular histories. Attach an external tape, scanners, and motor effectors to a nerve net, they noted, and it matches a Turing machine (and, as they explicitly remarked, "Church's -definability and Kleene's primitive recursiveness").2 Strip away the external tape, however, and a standalone finite nerve net with circles "can compute, without scanners and a tape, some of the numbers the machine can, but no others, and not all of them."2
They left that class half-characterized. Their Theorem 9 gave a formal condition so unwieldy it required searching function classes, and their Theorem 10 gave only a convenient sufficient condition.2 Eight years later at RAND, Kleene sat down to finish the job.
Kleene's 1951 Memorandum and Backward-Time Regex
Kleene wrote up his answer in a 101-page RAND Research Memorandum—RM-704, dated December 15, 1951—titled "Representation of Events in Nerve Nets and Finite Automata."3 Five years later, a revised version opened Claude Shannon and John McCarthy's anthology Automata Studies (1956).4
Because Kleene was modeling sensory inputs hitting a nervous system over discrete ticks of a clock, his setup looks startlingly foreign to anyone raised on Perl or JavaScript:
- Tables, not strings. Suppose a nerve net has input (receptor) neurons. At each discrete time step, every receptor either fires () or stays silent (). An input history ending at the present moment is a binary table of rows across past time steps.
- Events. An event is any property of that past input history—formally, a set of such binary tables.
- Representation. A finite McCulloch–Pitts nerve net represents an event when a designated output neuron fires (at time , or after a fixed lag ) if and only if the past sensory table belongs to that event.
To classify every event a finite nerve net can represent, Kleene defined regular events and regular expressions inductively. Starting from finite ("definite") sets of tables, a regular expression builds new sets using three operations: disjunction (), concatenation (), and iteration (, also written ).4
Two quirks of Kleene's 1951/1956 notation immediately betray its biological birthplace.
First, time ran backward across the page. Because Kleene stood at the moment an output neuron fired and looked backward into the sensory history that caused it, he wrote concatenation in reverse chronological order: "The notation is written so that we proceed backward into the past in reading from left to right."4 In Kleene's paper, meant that event occurred earlier in the past and event followed it closer to the present.
Second, the Kleene star began as a binary operator. Rather than applying a postfix unary star to a single expression, Kleene defined the binary "iterate of on ":
Why make * take two operands? Because a sensory input table arriving at a nerve net always spanned at least one time step—there was no zero-length "empty event" in his physical model, so iterating zero or more times always had to anchor onto a preceding event .45
With those three operators in hand, Kleene proved the two-way equivalence now known as Kleene's theorem: every regular event is representable by a finite McCulloch–Pitts nerve net (and by a finite automaton), and every event representable by a finite nerve net is regular.34
The publishing context of Kleene's revised paper ties regular expressions directly to the christening of AI itself. In 1956, Princeton University Press released Automata Studies (Annals of Mathematics Studies No. 34), edited by Claude Shannon and John McCarthy.4 Kleene's paper was Chapter 1 (pp. 3–41), sitting right ahead of John von Neumann's "Probabilistic Logics and the Synthesis of Reliable Organisms from Unreliable Components" (pp. 43–98), Edward F. Moore's "Gedanken-Experiments on Sequential Machines," and Marvin Minsky's "Some Universal Elements for Finite Automata."4
McCarthy had wanted to collect papers aimed squarely at thinking machines, while Shannon worried that "artificial intelligence" sounded too flashy and might attract sensational press, so they compromised on the sober title Automata Studies.6 When the submissions came back mostly as pure automata theory rather than machine intelligence, McCarthy was disappointed—and, as he later recalled, "decided not to fly any false flags anymore."6 On August 31, 1955, while Automata Studies was still in press, McCarthy, Minsky, Nathaniel Rochester, and Shannon circulated their Rockefeller Foundation grant proposal for a summer 1956 workshop at Dartmouth.7 That document—which explicitly noted Shannon and McCarthy's forthcoming Princeton Annals study and listed "Neuron Nets" by "Pitts and McCulloch" as its third research problem—was the first recorded use of the phrase "artificial intelligence."7
From Nerve Nets to Unix grep
Turning Kleene's backward-time nerve-net algebra into programmer regex took four clean steps of abstraction over the next seventeen years.
First, Irving Copi, Calvin Elgot, and Jesse Wright published "Realization of Events by Logical Nets" in 1958, simplifying Kleene's intricate nerve-net constructions and nudging regular expressions toward forward-time sequences and the unary star (recovering Kleene's binary form once an empty string is allowed).5
A year later, Michael Rabin and Dana Scott published "Finite Automata and Their Decision Problems" in the IBM Journal of Research and Development (1959).8 They credited McCulloch–Pitts and Kleene on page one, then deliberately stripped away every trace of neurophysiology: "our point of view is closer to [Burks, Wang, and Moore] than it is to the formalism of nerve-nets... We are not concerned with how the machine is built but with what it can do."8 In place of thresholds and synapses, Rabin and Scott gave computer science the black-box 5-tuple deterministic finite automaton (DFA) reading finite symbol tapes, introduced nondeterministic finite automata (NFAs), and proved that NFAs recognize the exact same class of languages as DFAs—work that won them the 1976 Turing Award.89
In 1964, Janusz Brzozowski introduced derivatives of regular expressions, showing that differentiating a regular expression symbolically with respect to each input character constructs a finite automaton directly without intermediate wiring diagrams.10
Then came the jump from mathematical journals to interactive software. In June 1968, Ken Thompson published "Programming Techniques: Regular expression search algorithm" in Communications of the ACM, describing how his reimplementation of the QED text editor on CTSS compiled a regular expression straight into IBM 7094 machine code simulating a parallel NFA.119 Thompson carried regular expressions into First Edition Unix ed (1971) and Fourth Edition grep (1973, named after the ed command g/re/p), and Alfred Aho followed with DFA-based egrep in Seventh Edition Unix (1979).9
Only later did mainstream "regex" engines drift away from Kleene's mathematics. As Russ Cox documented in his classic 2007 analysis, Henry Spencer's widely copied 1986 public-domain library implemented matching via recursive backtracking rather than Thompson's parallel NFA simulation—a choice inherited by Perl, PCRE, Python, Ruby, and Java.9 Those libraries also added non-regular features like backreferences (\1), turning pattern matching from guaranteed single-pass finite-state execution into an NP-complete search where matching 29 copies of a? followed by 29 as against a 29-character string of as could stall Perl for over a minute while Thompson's NFA finished in 20 microseconds.9 Cox's subsequent C++ library RE2 (open-sourced by Google in 2010) reclaimed Kleene and Thompson's linear-time finite-automata semantics for production search engines and security-sensitive services.12
Sixty Years Apart
While finite automata became the workhorse of Unix utilities, compiler lexers, and packet filters, artificial neural networks took an entirely different road.
In 1958, Frank Rosenblatt introduced the Perceptron, replacing hand-wired Boolean nerve nets with real-valued synaptic weights adjusted automatically from data.13 A decade later, Marvin Minsky and Seymour Papert's Perceptrons (1969) delivered a rigorous geometric critique, proving that single-layer linear threshold units cannot represent non-linearly separable Boolean predicates such as XOR or parity.14 When connectionism revived in the 1980s and exploded in the 2010s, it moved firmly into continuous differentiable optimization: smooth activations, backpropagation, recurrent networks (RNNs and LSTMs), and finally self-attention Transformers.
By the late 2010s, the divorce looked total. Compiler engineers owned regular expressions and finite-state machines; deep learning engineers owned gradient descent over floating-point tensors. Almost nobody writing a regular expression remembered McCulloch–Pitts nerve nets, and almost nobody training a language model gave a second thought to Kleene algebra.
Then large language models went into production, and Kleene's 1951 formalism walked straight back into the center of AI in three separate places.
1. The Regex Gatekeeper at the Front Door
Before a single matrix multiplication runs inside GPT-4, GPT-4o, or Llama 3, your prompt passes through a hand-written regular expression.
When Alec Radford and colleagues designed byte-level Byte Pair Encoding (BPE) for GPT-2 in 2019, they ran into an immediate practical problem: greedy frequency-based merges across raw UTF-8 bytes wasted precious vocabulary slots storing separate tokens for dog., dog!, and dog?.15 Their fix was to run a pre-tokenization regular expression over the input text first, preventing BPE from merging across character categories (letters, numbers, punctuation, whitespace) except for an optional leading space.15
OpenAI's tiktoken library still carries that design directly into production. Look at cl100k_base (GPT-4) and o200k_base (GPT-4o) in tiktoken_ext/openai_public.py, or Meta's llama/tokenizer.py for Llama 3, which adopted tiktoken and splits raw input with:161718
pat_str = (
r"(?i:'s|'t|'re|'ve|'m|'ll|'d)"
r"|[^\r\n\p{L}\p{N}]?\p{L}+"
r"|\p{N}{1,3}"
r"| ?[^\s\p{L}\p{N}]+[\r\n]*"
r"|\s*[\r\n]+"
r"|\s+(?!\S)"
r"|\s+"
)Notice the engineering irony tucked inside that string. Even modern LLM pre-tokenizers carry the scars of the post-Thompson regex split: because patterns like \s+(?!\S) use negative lookahead (and OpenAI's cl100k_base adds possessive quantifiers like \p{L}++), tiktoken cannot rely solely on Rust's pure linear-time automata engine and pulls in the fancy-regex backtracking crate.16 Meta's Llama 3 tokenizer even ships an explicit pre-slicing guard (MAX_NO_WHITESPACES_CHARS = 25_000) to chop long unbroken runs of characters before handing them to tiktoken, preventing runtime panics on adversarial strings.18
2. Logit Masking with Compiled Automata
If pre-tokenization puts a regular expression at the input gate of an LLM, constrained decoding puts a compiled finite-state machine directly on top of its output logits.
Autoregressive language models sample each token from a softmax distribution over a vocabulary of subword strings. Prompting a model to "output strict JSON" or "match this ISO date format" works most of the time and fails silently at the worst possible moment.
In 2023, Brandon Willard and Rémi Louf (authors of the Outlines library) reformulated regex-guided generation directly in Rabin and Scott's 5-tuple DFA notation .19 Naively testing every vocabulary token against a regex at every generation step costs work per token—far too slow for interactive inference. Instead, Willard and Louf walk every token string through the compiled DFA starting from every reachable state once ahead of time, building a hash map index:
During generation, the serving engine tracks only the current DFA state . Fetching the valid-token boolean mask drops from runtime regex evaluation to an average lookup, zeroing out the probability of every token that cannot legally extend the DFA before sampling the next token.19
Subsequent engines climbed one rung higher on the Chomsky hierarchy while keeping the same automata-indexing architecture. XGrammar (Yixin Dong et al., 2024 / MLSys 2025) compiles full context-free grammars (arbitrary nested JSON, SQL, and code DSLs) into byte-level pushdown automata.20 By splitting the vocabulary into context-independent tokens (decidable purely from the local automaton state and pre-cached ahead of time) versus the tiny fraction of context-dependent tokens requiring a persistent stack check—and overlapping mask computation with GPU forward passes—XGrammar cut per-token CFG mask latency by up to and delivered up to end-to-end serving speedups on Llama-3.1.20
Every time a production AI agent emits guaranteed schema-valid tool calls today, a 1950s state machine is holding the steering wheel on every sampled token.
3. A 1951 Regular Language Can Still Beat a Fixed-Depth Transformer
The deepest reconnection between Kleene's paper and modern AI is neither tokenization nor JSON schemas. It is what formal language theory has revealed about the computational ceiling of the Transformer architecture itself.
In 2023, researchers at DeepMind (Grégoire Delétang et al.) trained 20,910 neural models across 15 algorithmic sequence tasks organized along the Chomsky hierarchy—training on sequences up to length and testing length generalization out to length .21 On the four Regular language tasks sitting at the very bottom of the hierarchy, plain RNNs and LSTMs hit 100.0% accuracy across the board. Transformers solved Even Pairs (96.4%, a task that only needs to compare the first and last symbols), yet collapsed to 52.0% on Parity Check (where random guessing is 50%) and 24.2% on Modular Arithmetic (Simple) (where random guessing is 20%).21
Theoretical computer science soon explained why—and the answer loops straight back to 1943.
William Merrill, Ashish Sabharwal, and collaborators proved that realistic fixed-depth Transformers—first under saturated attention (2022) and then with full -bit floating-point precision (2023)—can be simulated by uniform, constant-depth, polynomial-size threshold circuits, placing their computational power inside the complexity class .2223 In 2024, Merrill, Jackson Petty, and Sabharwal showed that popular linear State-Space Models like S4 and Mamba—despite looking recurrent on paper—are bound by the exact same ceiling, a phenomenon they called "the illusion of state."24
Pause on what actually is: a constant-depth, acyclic circuit built out of threshold gates that output whenever at least inputs equal .24 In other words, a fixed-depth log-precision Transformer is mathematically trapped inside a scaled-up acyclic McCulloch–Pitts threshold network.
The boundary between and Kleene's regular languages is remarkably subtle and sharp:
- Hard-attention Transformers fall inside the weaker class , which cannot even compute
PARITYorMAJORITY.22 - Log-precision Transformers in can in principle represent
PARITYand every other solvable finite-state automaton in constant depth. As Bingbin Liu et al. proved at ICLR 2023 using the Krohn–Rhodes decomposition from semigroup theory, shallow Transformers find clever algebraic "shortcut" circuits that parallelize solvable state machines without stepping through them one symbol at a time—though those shortcuts are statistically brittle and often break on unseen sequence lengths.25 - Non-solvable finite automata hit a hard wall. Consider the word problem for the symmetric group (tracking five objects under an arbitrary sequence of swaps, a finite-state automaton with states) or its 60-state even subgroup . Both are finite-state machines, so both define ordinary 1951 Kleene regular languages. Yet by Barrington's theorem (1989), the word problem for any non-solvable finite group is -complete.26 Unless the widely conjectured separation collapses, no fixed-depth log-precision Transformer—and no fixed-depth linear SSM—can simulate that 60-state finite automaton at arbitrary input length, no matter how wide its layers or how many parameters it holds.2425
| Computational Model | Feedback / Memory | Formal Language Ceiling | Can Simulate All Kleene Regular Languages? |
|---|---|---|---|
| McCulloch–Pitts acyclic net (1943) | None (bounded window) | Finite-window temporal logic | No |
| McCulloch–Pitts cyclic net / DFA (1951–1959) | Internal feedback circles | Regular () | Yes (by Kleene's theorem) |
| Fixed-depth log-precision Transformer / linear SSM | Parallel self-attention / linear scan (no nonlinear recurrence) | Uniform | No, unless (fails on / ) |
| Decoder Transformer + Chain of Thought | Autoregressive output fed back as input | Yes (linear decoding steps) | |
| Decoder Transformer + Chain of Thought | Polynomial scratchpad | Exactly | Yes (and all polynomial-time problems) |
The reason for this ceiling is what Merrill and Sabharwal call the parallelism tradeoff.23 Modern Transformers scale across thousands of GPUs precisely because they eliminated the sequential bottleneck of recurrent hidden states—the exact feedback circles McCulloch and Pitts had worried over in 1943 and Kleene had tamed in 1951. Giving up recurrence bought massive training throughput at the cost of collapsing back into constant-depth acyclic threshold circuits.
And how did modern AI climb back out of ? By wiring the feedback circle back in through the model's own token stream.
In "The Expressive Power of Transformers with Chain of Thought" (ICLR 2024), Merrill and Sabharwal proved that letting a decoder-only Transformer emit intermediate tokens before answering expands its computational class cleanly with scratchpad length.27 Logarithmic steps () move the ceiling only slightly to log-space (). Linear steps () restore full finite-state tracking, enabling the model to recognize every regular language (including state tracking); polynomial steps make the decoder recognize exactly .27
Every time a reasoning model writes out intermediate scratchpad tokens to track variables, trace code execution, or verify board states, it is doing something Stephen Kleene would have recognized immediately in Santa Monica seventy-five years ago: feeding an acyclic threshold network's outputs back into its inputs so that a finite machine can finally remember the past.
Footnotes
-
Saunders Mac Lane, Stephen Cole Kleene (1909–1994), National Academy of Sciences Biographical Memoirs, Vol. 75 (1998); historical accounts of Kleene's August 1951 RAND consulting visit note that Merrill Flood directed Kleene to McCulloch and Pitts (1943) to analyze nerve nets. ↩
-
Warren S. McCulloch and Walter Pitts, A Logical Calculus of the Ideas Immanent in Nervous Activity, Bulletin of Mathematical Biophysics, Vol. 5 (1943), pp. 115–133 (reprinted in Bulletin of Mathematical Biology, Vol. 52, No. 1/2, 1990, pp. 99–115; open course PDF via CMU). ↩ ↩2 ↩3 ↩4 ↩5 ↩6
-
Stephen Cole Kleene, Representation of Events in Nerve Nets and Finite Automata, Project RAND Research Memorandum RM-704 (December 15, 1951), 101 pp. ↩ ↩2
-
Stephen Cole Kleene, Representation of Events in Nerve Nets and Finite Automata, in Claude E. Shannon and John McCarthy (eds.), Automata Studies, Annals of Mathematics Studies No. 34, Princeton University Press (1956), pp. 3–41 — introduces regular events, regular expressions over sets of past sensory tables, backward-time concatenation (), and the binary iterate operation (). ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
-
Irving M. Copi, Calvin C. Elgot, and Jesse B. Wright, Realization of Events by Logical Nets, Journal of the Association for Computing Machinery, Vol. 5, No. 2 (April 1958), pp. 181–196 (DBLP record) — streamlined Kleene's proofs and helped establish the modern forward-time, unary-star regular expression formalism. ↩ ↩2
-
John McCarthy's retrospective accounts (including his AI@50 remarks and interviews with Pamela McCorduck) explaining why he and Shannon titled the 1956 volume Automata Studies and how his disappointment with the narrow automata focus motivated coining "Artificial Intelligence" so as "not to fly any false flags anymore." ↩ ↩2
-
John McCarthy, Marvin L. Minsky, Nathaniel Rochester, and Claude E. Shannon, A Proposal for the Dartmouth Summer Research Project on Artificial Intelligence (August 31, 1955) — coins "artificial intelligence," cites Shannon and McCarthy's forthcoming Princeton Annals volume on automata theory, and lists "Neuron Nets" by Pitts and McCulloch as problem 3. ↩ ↩2
-
Michael O. Rabin and Dana S. Scott, Finite Automata and Their Decision Problems, IBM Journal of Research and Development, Vol. 3, No. 2 (April 1959), pp. 114–125 (open archival PDF via CMU-HoTT). ↩ ↩2 ↩3
-
Russ Cox, Regular Expression Matching Can Be Simple And Fast (but is slow in Java, Perl, PHP, Python, Ruby, ...) (January 2007) — traces the path from Rabin–Scott and Thompson's QED implementation through
ed,grep,egrep, Henry Spencer's backtracker, and Perl/PCRE's exponential worst-case behavior. ↩ ↩2 ↩3 ↩4 ↩5 -
Janusz A. Brzozowski, Derivatives of Regular Expressions, Journal of the Association for Computing Machinery, Vol. 11, No. 4 (October 1964), pp. 481–494. ↩
-
Ken Thompson, Programming Techniques: Regular expression search algorithm, Communications of the ACM, Vol. 11, No. 6 (June 1968), pp. 419–422. ↩
-
Russ Cox, Regular Expression Matching in the Wild (March 2010) — introduces Google's open-source automata-based
RE2engine. ↩ -
Frank Rosenblatt, The Perceptron: A Probabilistic Model for Information Storage and Organization in the Brain, Psychological Review, Vol. 65, No. 6 (1958), pp. 386–408. ↩
-
Marvin Minsky and Seymour Papert, Perceptrons: An Introduction to Computational Geometry, MIT Press (1969). ↩
-
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever, Language Models are Unsupervised Multitask Learners, OpenAI (2019), Section 2.2 — documents preventing BPE merges across character categories to avoid duplicating tokens like
dog.,dog!, anddog?. ↩ ↩2 -
OpenAI,
tiktoken_ext/openai_public.pyinopenai/tiktoken— defines the exactpat_strpre-tokenization regular expressions forr50k_base,cl100k_base, ando200k_base, executed via Rust'sfancy-regexcrate. ↩ ↩2 -
Abhimanyu Dubey et al. (Llama Team, AI @ Meta), The Llama 3 Herd of Models, arXiv:2407.21783 (2024), Section 3.2 — details Llama 3's 128,256-token
tiktoken-based BPE vocabulary. ↩ -
Meta Platforms,
llama/tokenizer.pyinmeta-llama/llama3— defines Llama 3'spat_strregex and theMAX_NO_WHITESPACES_CHARS = 25_000chunking guard fortiktoken. ↩ ↩2 -
Brandon T. Willard and Rémi Louf, Efficient Guided Generation for Large Language Models, arXiv:2307.09702 (2023) — reformulates regex-constrained LLM sampling via pre-indexed DFA state-to-vocabulary maps () in Outlines. ↩ ↩2
-
Yixin Dong, Charlie F. Ruan, Yaxing Cai, Ruihang Lai, Ziyi Xu, Yilong Zhao, and Tianqi Chen, XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Models, arXiv:2411.15100 (2024; Proceedings of MLSys 2025) — byte-level pushdown automata and adaptive token mask caching achieving up to lower per-token CFG mask latency and up to end-to-end serving speedups on Llama-3.1. ↩ ↩2
-
Grégoire Delétang, Anian Ruoss, Jordi Grau-Moya, Tim Genewein, Li Kevin Wenliang, Elliot Catt, Chris Cundy, Marcus Hutter, Shane Legg, Joel Veness, and Pedro A. Ortega, Neural Networks and the Chomsky Hierarchy, ICLR 2023 (arXiv:2207.02098) — evaluates 20,910 models across 15 tasks, documenting Transformer length-generalization failures on regular languages such as
Parity Check(52.0%) andModular Arithmetic (Simple)(24.2%). ↩ ↩2 -
William Merrill, Ashish Sabharwal, and Noah A. Smith, Saturated Transformers are Constant-Depth Threshold Circuits, Transactions of the Association for Computational Linguistics, Vol. 10 (2022), pp. 843–856 (arXiv:2106.16213). ↩ ↩2
-
William Merrill and Ashish Sabharwal, The Parallelism Tradeoff: Limitations of Log-Precision Transformers, Transactions of the Association for Computational Linguistics, Vol. 11 (2023), pp. 531–545 (arXiv:2207.00729). ↩ ↩2
-
William Merrill, Jackson Petty, and Ashish Sabharwal, The Illusion of State in State-Space Models, ICML 2024, PMLR 235 (arXiv:2404.08819) — proves that generalized linear SSMs including S4 and Mamba fall inside uniform and cannot solve -complete state tracking such as / permutation composition at fixed depth. ↩ ↩2 ↩3
-
Bingbin Liu, Jordan T. Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril Zhang, Transformers Learn Shortcuts to Automata, ICLR 2023 (arXiv:2210.10749) — characterizes constant-depth Krohn–Rhodes shortcuts for solvable semiautomata and proves that non-solvable semiautomata (smallest: 60-state ) have no constant-depth log-precision Transformer simulator unless . ↩ ↩2
-
David A. Mix Barrington, Bounded-Width Polynomial-Size Branching Programs Recognize Exactly Those Languages in , Journal of Computer and System Sciences, Vol. 38, No. 1 (February 1989), pp. 150–164. ↩
-
William Merrill and Ashish Sabharwal, The Expressive Power of Transformers with Chain of Thought, ICLR 2024 (arXiv:2310.07923) — proves intermediate decoding steps let decoder-only Transformers recognize all regular languages and steps characterize . ↩ ↩2