aiqbench analysis
This research provides a rigorous logical characterization of encoder-decoder transformers, revealing that their autoregressive token generation is ultimately periodic and can be described without recursion using counting propositional logic. By establishing these formal bounds on floating-point implementations with soft attention, the study offers fundamental theoretical insights into the structural limitations and capabilities of foundational LLM architectures.
Encoder-Decoder Transformers: Logical Characterizations and Periodicity
arXiv:2605.07705v2 Announce Type: replace-cross Abstract: We give logical characterizations of encoder-decoder transformers, the foundational architecture for LLMs that also sees use in various settings that benefit from cross-attention, in the practical setting of floating-point numbers and soft attention. First, we characterize such transformers via a new temporal logic that extends propositional logic with a counting global modality over the encoder input and a past modality over the decoder input, as well as via a type of distributed automata. We consider three frameworks: with and without a final softmax step in the transformer, and in the setting where each model generates tokens via autoregression. Second, we show that both autoregressive transformers and sentences of counting propositional logic - the fragment of the previous logic obtained by omitting the past modality - recognize exactly the commutative star-free languages. Finally, we find that the sequences of tokens the transformers generate are ultimately periodic (and each token appears in the period at most once). This allows us to characterize autoregressive transformers via sentences of counting propositional logic that generate tokens without autoregression, i.e., we can effectively eliminate recursion from the transformers.
Abstract:We give logical characterizations of encoder-decoder transformers, the foundational architecture for LLMs that also sees use in various settings that benefit from cross-attention, in the practical setting of floating-point numbers and soft attention. First, we characterize such transformers via a new temporal logic that extends propositional logic with a counting global modality over the encoder input and a past modality over the decoder input, as well as via a type of distributed automata. We consider three frameworks: with and without a final softmax step in the transformer, and in the setting where each model generates tokens via autoregression. Second, we show that both autoregressive transformers and sentences of counting propositional logic - the fragment of the previous logic obtained by omitting the past modality - recognize exactly the commutative star-free languages. Finally, we find that the sequences of tokens the transformers generate are ultimately periodic (and each token appears in the period at most once). This allows us to characterize autoregressive transformers via sentences of counting propositional logic that generate tokens without autoregression, i.e., we can effectively eliminate recursion from the transformers.
Logic in Computer Science (cs.LO); Artificial Intelligence (cs.AI)
F.4.1; F.1.1; I.2.0
arXiv:2605.07705 [cs.LO]
(or arXiv:2605.07705v2 [cs.LO] for this version)
https://doi.org/10.48550/arXiv.2605.07705 Focus to learn more arXiv-issued DOI via DataCite
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Full text under the publisher's open licence · 282 words
Related coverage
[AINews] High Taste Testers Ep. 1
Latent Space · Oct 17, 2026

Lattice-Based Cryptography Explained
Quantum Zeitgeist · Aug 15, 2026
Celene's thoughts on consciousness
LessWrong · Jun 12, 2026

[AINews] Meta Muse Wonder & Wonder Full: MSL’s Claude 5.5-tier Frontier Model
Latent Space · Oct 13, 2026