REVIEW 4 cited by
Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages
Not yet reviewed by Pith; the record is open.
This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.
SPECIMEN: schema-true, not a live event
T0 review · schema-true
One-sentence machine reading of the paper's core claim.
pith:XXXXXXXX · record.json · timestamp
Signed reviews
read the original abstract
The expressive power of transformers over inputs of unbounded size can be studied through their ability to recognize classes of formal languages. In this paper, we establish exact characterizations of transformers with hard attention (in which all attention is focused on exactly one position) and attention masking (in which each position only attends to positions on one side). With strict masking (each position cannot attend to itself) and without position embeddings, these transformers are expressively equivalent to linear temporal logic (LTL), which defines exactly the star-free languages. A key technique is the use of Boolean RASP as a convenient intermediate language between transformers and LTL. We then take numerous results known for LTL and apply them to transformers, showing how position embeddings, strict masking, and depth all increase expressive power.
Forward citations
Cited by 4 Pith papers
-
Ehrenfeucht-Haussler Rank and Chain of Thought
A function's Ehrenfeucht-Haussler rank exactly equals the minimum chain-of-thought steps for a single-layer hard-attention Transformer, with matching lower bounds for iterated composition and the k-th-one function.
-
Simulating Hard Attention Using Soft Attention
Softmax transformers can approximately simulate hard-attention transformers, using a temperature that depends on the reciprocal of the attention-score gap.
-
Disentangling the Expressivity of RoPE
Periodic RoPE schedules yield exactly LTL with past operators and modular predicates, while conventional non-periodic RoPE provides only a bounded, precision-limited fixed-offset look-back mechanism.
-
The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexity
Mamba and state-space models with constant depth and poly(n) precision are shown to lie in DLOGTIME-uniform TC0, the same circuit class as Transformers, so their expressiveness is bounded unless TC0=NC1.
Discussion (0). Continue with ORCID to comment.