atlas

Research map / Architectures and efficiency / Attention and transformers

The Power of Hard Attention Transformers on Data Sequences: A formal language theoretic perspective

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 0 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.

Studies expressive power of unique hard attention transformer encoders over data sequences (tuples of rationals), showing they go beyond AC0 (within TC0), can recognize a non-regular language without positional encoding, and capture an LTL extension with locally testable arithmetic.

Problem

Formal language theory of transformer encoders assumes a finite alphabet with token embeddings, which does not cover time series or arbitrary numeric inputs; the expressive power of transformers on sequences of numbers is unknown.

Approach

Extends UHAT analysis to infinite alphabets Q^d: shows UHAT with positional encodings lie in TC0 (not AC0) via polynomial constraints and rational approximation, gives a non-regular UHAT language without positional encodings, and shows an LTL extension with unary numeric predicates and local arithmetic tests is captured by UHAT.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use arbitrary data-sequence inputs instead of strings over a finite alphabetUHAT · Circuit complexitycircuit complexity class: AC^0 -> TC^0Helped
Use data-sequence inputs without positional encodingsUHAT · Data sequences over Q^dlanguage class: regular -> non-regularHelped
Add positional encodingUHAT on data sequences · LTL-definable languageslanguage recognitionHelped

Surprising findings

Limitations

Experimental setup

Builds on: UHAT formal analysis over finite alphabets LTL with unary numeric predicates symbolic automata

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