arXiv Machine Learning

Transformer Heads Looking for Order

The paper demonstrates that a single-head, single-layer transformer cannot determine whether a bit sequence is ordered, whereas a two-head, single-layer transformer can. This distinction is shown under a model where transformers include an output MLP. The study provides a concrete example of how increasing the number of heads can enhance a transformer’s computational capability.

arXiv AI
Oct 28

An Algebra of Transformers

The paper "An Algebra of Transformers" proposes a formal algebraic framework for reasoning about transformer models, building on functional decomposition results. It introduces atomic actions based on these decompositions, along with sequential and parallel composition, recursion for feedback, and abstraction for hidden layers. This marks the first logical modeling attempt for transformers, enabling verification of transformer‑based applications.

By Yong Wang, Zhiyan Wang, Hexiao Kang
arXiv Machine Learning
5d ago

Implementing Binary Transformers with Approximate Memories with Permutation Invariance Enabled Selective (PIES) Protection

The paper evaluates the reliability of binary Transformers, specifically BERT, when stored in approximate memory that introduces bit errors. It finds that significant accuracy loss only occurs at high bit error rates (5–10%). To mitigate this, the authors propose a Permutation Invariance Enabled Selective (PIES) protection scheme that selectively safeguards critical weights, achieving near‑full performance recovery at high error rates with much lower overhead than traditional error‑correcting codes.

By Zhen Gao, Xiao Yin, Kexin Liang, Pedro Reviriego, Shanshan Liu, Fabrizio Lombardi
arXiv AI
Sep 10

Parity, Sensitivity, and Transformers

arXiv:2602.05896v3 Announce Type: replace-cross Abstract: Understanding what neural architectures can and cannot compute is a central challenge in the theory of AI. One of the fundamental problems in...

By Alexander Kozachinskiy, Tomasz Steifer, Przemys{\l}aw Wa{\l}\c{e}ga
arXiv Machine Learning
Aug 11

How Many Different Outputs Can a Transformer Generate?

arXiv:2605. 22223v2 Announce Type: replace Abstract: We study how we can leverage only a handful of characteristics of a transformer's architecture to closely predict the number of different sequences it can output, both qualitatively and quantitatively.

By Maxime Meyer, Mario Michelessa, Caroline Chaux, Vincent Y. F. Tan
arXiv Machine Learning
Oct 5

Fixed Universal Transformers

The paper introduces fixed universal transformers, which are transformers with immutable internal parameters that can emulate any transformer within a specified class by encoding the target model’s description into the input embedding. The authors provide explicit sparse constructions that achieve universality when the embedding dimension is large enough, and demonstrate that universality is generic—randomly initialized transformers are almost surely universal. Empirical tests on parenthesis balancing and multi‑hop reasoning tasks support the theory, suggesting that a transformer’s expressive power largely stems from its input representation rather than its learned weights.

By Jingwen Liu, Alexandr Andoni, Daniel Hsu