cs.AISep 22, 2026

Transformer Heads Looking for Order

Authors: Jasper van DoornmalenAlexander KozachinskiyCorinna MathwieserTomasz SteiferFelipe UrrutiaJosé VerschaePrzemysław Andrzej Wałȩga

Abstract

In this note, we show that the problem of checking, whether a sequence of bits is ordered, is not doable by 1-head 1-layer transformers but is doable by a 2-head 1-layer transformer. Unlike similar previous results, our results assume the model where transformers have an output MLP.

Explore similar work

CardsList
  1. Incremental Learning of Sparse Attention Patterns in Transformers

    Feb 22, 2026Oğuz Kaan Yüksel, Rodrigo Alvarez Lucendo, Nicolas FlammarionTransformer AttentionTransformer Architectures