atlas

Research map / Architectures and efficiency / Attention and transformers

Characterizing the Expressivity of Fixed-Precision Transformer Language Models

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that fixed-precision soft-attention transformers with strict future masking and no positional encodings are exactly as expressive as the past-only LTL fragment PTL (equivalently PODFAs / left-deterministic polynomials), and validates this with length-generalization experiments.

Problem

Prior characterizations of transformer expressivity either assume unique hard attention or arbitrary/log precision; the exact expressivity of realistic fixed-precision soft-attention transformers (strict masking, NoPE) remained open.

Approach

Shows fixed-precision soft-attention transformers with strict masking and NoPE are exactly equivalent to PTL (past-only linear temporal logic) and to PODFAs; a construction handles vanishing attention weights by a two-layer past-of-conjunction trick without increasing precision.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a transformer instead of an LSTM for parity recognitionLanguage recognizer · paritymean accuracy: 50.6\pm 0.8 vs. \mathbf{100.0}\pm 0.0Hurt
Use a transformer instead of an LSTM for cnt recognitionLanguage recognizer · cntmean accuracy: 53.6\pm 8.6 vs. 86.9\pm20.9Hurt
Use a transformer instead of an LSTM for dyck-(1,2) recognitionLanguage recognizer · dyck-(1,2)mean accuracy: 64.2\pm8.0 vs. 99.3\pm1.0Hurt
Use a transformer instead of an LSTM for dyck-(1,1) recognitionLanguage recognizer · dyck-(1,1)mean accuracy: 71.5\pm9.3 vs. 88.8\pm17.3Hurt
Use a transformer instead of an LSTM for lt-2 recognitionLanguage recognizer · lt-2mean accuracy: 57.9\pm2.3 vs. \mathbf{100.0}\pm0.0Hurt
Use a transformer instead of an LSTM for rdp-1 recognitionLanguage recognizer · rdp-1mean accuracy: 71.1\pm11.5 vs. \mathbf{100.0}\pm0.0Hurt
Use a transformer instead of an LSTM for last recognitionLanguage recognizer · lastmean accuracy: 57.3\pm2.7 vs. \mathbf{100.0}\pm0.0Hurt
Train a transformer on a left-deterministic polynomial languageTransformer · ldp-2mean accuracy: 100.0\pm0.0Helped
Train a transformer on a language outside its characterized capacityTransformer · paritymean accuracy: 50.6\pm 0.8Hurt
Train a transformer LM on rdp-1 rather than an ldp languageTransformer LM · rdp-1per-token accuracy: 98.3\%Hurt
Train a transformer LM on ldp-1Transformer LM · ldp-1per-token accuracy: perfect accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic formal languages (CNT, PARITY, DYCK, LT, RDP, LAST, PT, LDP, FIRST) with strings up to length 40, tested on 41

Benchmarks: synthetic formal language recognition (length generalization) per-token accuracy on RDP-1, LDP-2, LDP-1 language modeling

Metrics: accuracy (max and mean over seeds) per-token accuracy probing accuracy

Baselines: LSTM

Builds on: unique hard attention transformer characterization (LTL) C-RASP linear temporal logic first-order logic FO[2]

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy