Average Attention Transformers and Arithmetic Circuits

📅 2026-05-06
📈 Citations: 0
Influential: 0
📄 PDF
📝 Abstract
We analyse the computational power of transformer encoders as sequence-to-sequence functions on vectors. We show that average hard attention can be used to simulate arithmetic circuits if they are given as an input to an encoder. The circuit families that can be simulated this way have constant depth while using unbounded addition, binary multiplication and sign gates. The transformers we use have arithmetic circuits instead of feed-forward networks. With typical average attention the functions they compute are also computed by the same class of circuit families. Our results hold for transformers over the reals, rationals and any ring in between the two.
Problem

Research questions and friction points this paper is trying to address.

Average Attention Transformers
Arithmetic Circuits
Computational Power
Sequence-to-Sequence Functions
Circuit Simulation
Innovation

Methods, ideas, or system contributions that make the work stand out.

Average Attention
Arithmetic Circuits
Transformer Encoders
Sequence-to-Sequence Functions
Computational Power
🔎 Similar Papers
No similar papers found.
L
Lena Ehrmuth
Institute for Theoretical Computer Science, Leibniz University Hanover, Hanover, Germany
L
Laura Strieker
Institute for Theoretical Computer Science, Leibniz University Hanover, Hanover, Germany