potentialpaper

Is Random Attention Sufficient for Sequence Modeling?

Yihe Dong, Lorenzo Noci, Mikhail Khodak, Mufan Li

FoRLM @ NeurIPS 2025

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. The transformer architecture is central to the success of modern Large Language Models (LLMs), in part due to its surprising ability to perform a wide range of tasks -- including mathematical reasoning, memorization, and retrieval -- using only gradient-based learning on next-token prediction. While the core component of a transformer is the self-attention mechanism, we question how much, and which aspects, of the performance gains can be attributed to it. To this end, we compare standard transformers to variants in which either the attention weights or the MLP layers are frozen at initialization. Surprisingly, we find that attention with frozen key and query weights is not only able to form induction heads, but can also perform competitively on language modeling. We formalize this by proving a new expressivity result for transformer models with frozen attention weights. To further isolate the contribution of attention, we design MixiT -- the Mixing Transformer -- an architecture variant with entirely random attention scores, with provably stable signal propagation that overcomes prior depth-wise scaling challenges in random transformers. We use the successes and failures of our spectrum of models to pinpoint the role each main transformer component plays. Our results suggest that the transformer architecture has a built-in inductive bias towards in-context reasoning, as it can form specialized circuits even without learnable attention weights.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
3 Sep 2025FoRLM @ NeurIPS 2025submittedFoRLM @ NeurIPS 2025Accepted—[1]
18 Sep 2025ICLR 2026submittedICLR 2026Rejected—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…