atlas

Research map / Architectures and efficiency / Attention and transformers

Transformer Encoder Satisfiability: Complexity and Impact on Formal Reasoning

ICLR 2025 · 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.

Shows that satisfiability of transformer encoders is undecidable in general (hardmax, expressive scoring, even with log-precision), decidable and NEXPTIME-bounded for bounded input length and for periodic-embedding or fixed-width quantized encoders, with NEXPTIME-hardness for fixed-width arithmetic.

Problem

Decidability and complexity of the satisfiability problem (trSat) for transformer encoders, which underlies formal verification and interpretation of transformers.

Approach

Reduces the unbounded octant tiling-word problem to trSat for a minimal transformer encoder class using hardmax normalisation and FNN scoring to show undecidability; then shows that bounded input length or fixed-width arithmetic with periodic embeddings yields decidability with NEXPTIME upper bounds (and NEXPTIME-hardness for fixed-width with arbitrary embeddings).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use hardmax normalization with expressive scoring and positional embeddingsTransformer encoders in T_udec · Unbounded inputtrSat decidabilityHurt
Restrict internal computation to log-precisionTransformer encoders in T_udec · Unbounded inputtrSat decidabilityNo clear effect
Bound the input lengthTransformer encoders in any computable class · Bounded input, unary ndecidabilityHelped
Bound the input length and encode n in unaryClasses containing T_udec · Bounded input, unary ncomplexityMixed
Bound the input length and encode n in binaryClasses containing T_udec · Bounded input, binary ncomplexityMixed
Use an additive-periodical positional embedding and fixed-width arithmeticTransformer encoders in T_fix_circle · Unbounded inputtrSat decidabilityHelped
Use fixed-width arithmetic while allowing arbitrary embeddingsTransformer encoders in T_fix · Unbounded inputtrSat decidabilityHelped
Use fixed-width arithmetic while allowing arbitrary embeddingsTransformer encoders in T_fix · Unbounded inputtrSat complexityHurt

Surprising findings

Limitations

Experimental setup

Metrics: decidability complexity class membership

Builds on: log-precision transformers tiling problems

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