2000 character limit reached
Probability Distributions Computed by Hard-Attention Transformers
Published 31 Oct 2025 in cs.CL | (2510.27118v1)
Abstract: Most expressivity results for transformers treat them as language recognizers (which accept or reject strings), and not as they are used in practice, as LLMs (which generate strings autoregressively and probabilistically). Here, we characterize the probability distributions that transformer LLMs can express. We show that making transformer language recognizers autoregressive can sometimes increase their expressivity, and that making them probabilistic can break equivalences that hold in the non-probabilistic case. Our overall contribution is to tease apart what functions transformers are capable of expressing, in their most common use-case as LLMs.
Paper Prompts
Sign up for free to create and run prompts on this paper.