1. Transformer Encoder Satisfiability: Complexity and Impact on Formal Reasoning
- Author
-
Sälzer, Marco, Alsmann, Eric, and Lange, Martin
- Subjects
Computer Science - Logic in Computer Science ,Computer Science - Artificial Intelligence ,Computer Science - Computational Complexity ,Computer Science - Machine Learning - Abstract
We analyse the complexity of the satisfiability problem (SAT) for transformer encoders (TE), naturally occurring in formal verification or interpretation tasks. We find that SAT is undecidable when considering TE as they are commonly studied in the expressiveness community. Furthermore, we identify practical scenarios where SAT 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 SAT due to their limited attention capabilities. However, the problem remains difficult, as we establish scenarios where SAT 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.
- Published
- 2024