pith:UL5I747M
Characterizing the Expressivity of Local Attention in Transformers
Local attention introduces a second temporal operator in transformers, strictly enlarging the class of recognizable regular languages beyond what global attention alone achieves.
arxiv:2605.00768 v2 · 2026-05-01 · cs.CL
Add to your LaTeX paper
\usepackage{pith}
\pithnumber{UL5I747MG5WKVSCFJTWH5AMHKL}
Prints a linked badge after your title and injects PDF metadata. Compiles on arXiv. Learn more · Embed verified badge
Record completeness
Claims
We additionally prove that adding local attention introduces a second temporal operator, strictly enlarging the class of recognizable regular languages. Moreover, global and local attention are expressively complementary: neither subsumes the other, and combining them yields the richest fragment.
The established correspondence between fixed-precision global-attention transformers and a single-past-operator fragment of linear temporal logic extends cleanly to local attention without additional restrictions that would limit the result to toy models rather than practical transformers.
Local attention strictly enlarges the class of regular languages recognizable by fixed-precision transformers by adding a second past operator in linear temporal logic, with global and local attention being expressively complementary.
Receipt and verification
| First computed | 2026-05-20T01:05:15.036764Z |
|---|---|
| Builder | pith-number-builder-2026-05-17-v1 |
| Signature | Pith Ed25519
(pith-v1-2026-05) · public key |
| Schema | pith-number/v1.0 |
Canonical hash
a2fa8ff3ec376caac8454cec7e818752f999cc78786ba053455d9c017312e7f0
Aliases
· · · · ·Agent API
Verify this Pith Number yourself
curl -sH 'Accept: application/ld+json' https://pith.science/pith/UL5I747MG5WKVSCFJTWH5AMHKL \
| jq -c '.canonical_record' \
| python3 -c "import sys,json,hashlib; b=json.dumps(json.loads(sys.stdin.read()), sort_keys=True, separators=(',',':'), ensure_ascii=False).encode(); print(hashlib.sha256(b).hexdigest())"
# expect: a2fa8ff3ec376caac8454cec7e818752f999cc78786ba053455d9c017312e7f0
Canonical record JSON
{
"metadata": {
"abstract_canon_sha256": "4fc5a9bb3390f86196108506be9e6053a1f29b72ee0124d47334fe10e4e9de8d",
"cross_cats_sorted": [],
"license": "http://creativecommons.org/licenses/by/4.0/",
"primary_cat": "cs.CL",
"submitted_at": "2026-05-01T16:30:52Z",
"title_canon_sha256": "fd25aa791c18a9d06471ccd3da2c9cb720ff875a1df8374eead3b427a5497ee1"
},
"schema_version": "1.0",
"source": {
"id": "2605.00768",
"kind": "arxiv",
"version": 2
}
}