Transformer Encoder Satisfiability: Complexity and Impact on Formal Reasoning
Not on the map. Why?
Abstract (arXiv)
We analyse the complexity of the satisfiability problem, or similarly feasibility problem, (trSAT) for transformer encoders (TE), which naturally occurs in formal verification or interpretation, collectively referred to as formal reasoning. We find that trSAT is undecidable when considering TE as they are commonly studied in the expressiveness community. Furthermore, we identify practical scenarios where trSAT is decidable and establish corresponding complexity bounds. Beyond trivial cases, we find that quantized TE, those restricted by fixed-width arithmetic, lead to the decidability of trSAT due to their limited attention capabilities. However, the problem remains difficult, as we establish scenarios where trSAT is NEXPTIME-hard and others where it is solvable in NEXPTIME for quantized TE. To complement our complexity results, we place our findings and their implications in the broader context of formal reasoning.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 20 of its 34 references that are in the map. First posted on arXiv 28 May 2024.
Builds on
20 of 34 references.
References · 20
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Explainability for Large Language Models: A Surveycited by 333
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2021Thinking Like Transformerscited by 184
- 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 141
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 139
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
- 2021Position Information in Transformers: An Overviewcited by 103
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
8 more
- 2023A Survey of Safety and Trustworthiness of Large Language Models through the Lens of Verification and Validationcited by 93
- 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
- 2020Robustness Verification for Transformerscited by 76
- 2021Towards Robustness Against Natural Language Word Substitutionscited by 69
- 2022A Logic for Expressing Log-Precision Transformerscited by 67
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66
- 2022Fundamental Limits in Formal Verification of Message-Passing Neural Networkscited by 9
- 2021Rigorous Roundoff Error Analysis of Probabilistic Floating-Point Computationscited by 2
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025The Counting Power of Transformerscited by 9
- 2025Transformers are Inherently Succinctcited by 4
- 2026Length Generalization Bounds for Transformerscited by 4
- 2025The Computational Complexity of Satisfiability in State Space Modelscited by 1
- 2026Synthesis and Verification of Transformer Programs (Technical Report)cited by 0
- 2026Synthesis and Verification of Transformer Programs (Technical Report)18 Feb 2026
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2025Transformers are Inherently Succinct22 Oct 2025
- 2025The Computational Complexity of Satisfiability in State Space Models25 Aug 2025
- 2025The Counting Power of Transformers16 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Can Transformers Reason Logically? A Study in SAT Solving
- 2023The Expressive Power of Transformers with Chain of Thought
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers
- 2023Assessing Logical Reasoning Capabilities of Encoder-Only Transformer Models
- 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning
- 2025Exact Expressive Power of Transformers with Padding
- 2026Towards Verifiable Transformers: Solver-Checkable Circuit Explanations
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers