Hard Attention Transformers and BSS-Machines
Lena Ehrmuth
NeurIPS page · OpenReview · Open on the map
Category: Interpretability & Model Adaptation › Transformer Length and Memory Scaling · Type: theory · Keywords: hard attention transformers, recursive transformers, computational equivalence, BSS-machines, theoretical computer science
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Attention Replacement and Stabilization
Summary
The paper introduces recursive transformers with hard attention and circuit activation functions, proving their computational equivalence to established algebraic models of computation, and extends the result to linear BSS-machines with degree-2 branching when using feedforward networks.
Explained to a 5-year-old
We made a new kind of computer brain that builds ideas step by step without breaking them into tiny pieces. It uses a special way of focusing on one thing at a time, like looking at only one picture. We proved that this brain can do the same things as some old math ideas about how computers solve problems. If we use a different kind of thinking inside, it still works but in a simpler way. This helps us understand how to design computers that think more like we do.
Explained to a 5-year-old, longer
Imagine a computer brain that creates a story by adding one idea after another, without splitting the ideas into small pieces. It uses a special focusing method where it picks only one thing to look at each step, like choosing a single path. This focusing is called hard attention because it selects just one option instead of spreading attention everywhere. The researchers showed that this kind of brain can solve problems that are as powerful as some old math models of computing. They also discovered that if the brain uses a different kind of thinking inside, like simple calculators, it still works but in a simpler way. By linking these ideas, we can better understand how modern AI models relate to the mathematics of computation. This connection helps us design future computer systems that are both powerful and easier to analyze. The work also clarifies how continuous vector generation fits into the broader theory of what computers can do. It provides a bridge between neural network research and classic theoretical computer science. Ultimately, this research opens new avenues for building smarter, more reliable AI that aligns with rigorous mathematical foundations.
For a technical reader
The paper defines a transformer variant that produces continuous vector sequences using circuit activation functions and hard attention, and proves its computational equivalence to a known algebraic model of computation. When feedforward networks replace the circuit activations, the equivalence extends to a linear variant with degree-2 branching. This theoretical result bridges modern neural architectures with classical computation models, offering insights into the expressive power of hard-attention transformers.
Problem
There is a need to formally understand how transformer architectures that use deterministic attention and continuous vector generation compare to classical models of computation, and to characterize their computational power.
Method
The authors define a new class of continuous-output transformer models that generate sequences of vectors using circuit activation functions and hard attention, and they analyze their computational power by relating them to a known algebraic model of computation. When the transformers employ feedforward networks, the analysis extends to a linear variant with degree-2 branching.
Results
The approach shows that the transformer variant with hard attention and circuit activation functions is computationally equivalent to a known algebraic model of computation, and that using feedforward networks yields equivalence to a linear variant with degree-2 branching.
Contributions
The paper presents a new class of continuous-output transformer models with hard attention and circuit activation functions, and provides theoretical results linking them to established algebraic models of computation, including both the general and linear cases.
Limitations and assumptions
The results hold for ordered ring extensions of the integers and assume the use of circuit activation functions or feedforward networks as specified.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction