Don’t Pay Attention

Mohammad Hammoud, Devang Acharya · Submission to ICLR 2026 · Withdrawn

TL;DR

Avey is a new foundational autoregressive language model architecture that completely discards both self-attention and recurrence. By pairing an internal token ranker with a dynamically parameterized neural processor, Avey decouples context width from sequence length—allowing a model trained on just 512 tokens to generalize effectively to sequences up to 64,000 tokens on needle-in-a-haystack tasks.

What Problem Does This Paper Address?

Modern Large Language Models (LLMs) are nearly synonymous with the Transformer architecture. However, the self-attention mechanism at the heart of Transformers scales quadratically ($O(N^2)$) in time and memory with sequence length $N$, severely constraining context windows.

While linear attention models (e.g., RetNet, RWKV) and State Space Models (SSMs, such as Mamba) offer linear-time scaling, they rely on recurrent state updates. Compressing long historical contexts into a fixed-size hidden state often causes information loss, and their sequential nature limits training parallelism. The authors ask: Can we process arbitrarily long sequences effectively without relying on either self-attention or recurrent state compression?

Methods

Avey replaces attention and recurrence with a two-part framework:

  1. In-Sequence Ranker: The ranker divides an input sequence into contiguous, equal-sized token splits (default split size $S = 64$). Prior to predicting the next token, the ranker compares the current split to all preceding splits using a MaxSim late-interaction operator (popularized by ColBERT in Information Retrieval). The top-$k$ ($k = 7$) most relevant splits are retrieved, normalized, and weighted by their similarity scores. Importantly, the ranker operates entirely internally (it is not external RAG) and runs only once per forward/backward pass.

  2. Autoregressive Neural Processor: A multi-layer feedforward network that processes the selected splits alongside the current split (total context width $C = S(k + 1) = 512$ tokens):

  3. Enricher: A position-wise layer expanding each token embedding's dimension by $4\times$ using a $\text{ReLU}^2$ activation to learn expressive intra-feature representations.

  4. Partial-Embedding Bypassing: Splitting the expanded representation: $50\%$ (the "head") bypasses directly to the fuser to retain unadulterated token identity and avoid over-smoothing, while the remaining $50\%$ (the "tail") enters the contextualizer.
  5. Contextualizer: An embedding-wise network that models token interactions across the chosen context. Inspired by gMLP, it applies dynamic parameterization via pairwise cosine similarities $(V \odot \mathcal{N}(Z_{tr})\mathcal{N}(Z_{tr})^\top)$ and element-wise gating without using softmax, Q/K/V projections, or associative kernel mixing.
  6. Fuser: Merges the bypassed and contextualized features and projects them back to the base embedding dimension $d$.
Input Sequence ──► [ Ranker (MaxSim) ] ──► Top-k Splits (Weighted)
                                                  │
                                                  ▼
                         ┌──────────────────────────────────────────────┐
                         │ Neural Processor Layer                       │
                         │                                              │
                         │   Input Embedding (d)                        │
                         │            │                                 │
                         │       [ Enricher ] (4x expansion)            │
                         │        /        \                            │
                         │   Head (50%)   Tail (50%)                    │
                         │       │             │                        │
                         │   (Bypass)   [ Contextualizer ]              │
                         │       │      (Gated + Dynamic Param)         │
                         │        \        /                            │
                         │        [ Fuser ]                             │
                         │            │                                 │
                         │   Output Embedding (d)                       │
                         └──────────────────────────────────────────────┘

Datasets

  • Pretraining: Pretrained on the FineWeb dataset (specifically the 100-billion-token sample subset sample-100BT) using the GPT-2 p50k_base tokenizer.
  • Short-Range Evaluation: Zero-shot downstream accuracy across seven NLP benchmarks: ARC-Easy, ARC-Challenge, HellaSwag, PIQA, OpenBookQA (OBQA), Social IQa (SIQA), and Winogrande via EleutherAI's LM Evaluation Harness.
  • Long-Range Evaluation: The Single Needle-In-A-Haystack benchmark suite from RULER, specifically S-NIAH-1 (pass-key retrieval) and S-NIAH-2 (numerical value retrieval in distractors) tested up to 64k token lengths.

Key Insights and Ideas

  • Decoupling Context Width from Sequence Length: Transformers force the context window to match the sequence length. Avey decouples them: the neural processor only ever contextualizes $C = 512$ tokens at a time, but the ranker allows it to selectively target splits from any point across thousands of tokens.
  • The "Larger Haystack Advantage": Counterintuitively, Avey’s retrieval accuracy often increases on longer haystacks. Because a longer sequence provides a richer candidate pool for the ranker, Avey selects higher-quality relevant splits while filtering out distractor noise.
  • Eliminating Softmax Attention: The contextualizer avoids softmax normalization and value mixing. Instead, dynamic pairwise weights act as an input-dependent feature gate, proving that full attention matrices are not strictly necessary for competitive language modeling.

Key Results

  • Long-Context Extrapolation (S-NIAH): While Transformer++, Mamba, and RWKV-7 were trained on 2,048-token contexts and collapsed to near-zero accuracy once inputs exceeded their training windows, Avey (trained on just a 512-token context) achieved $97.8\%$ on S-NIAH-1 and $68.8\%$ on S-NIAH-2 at 64k haystack lengths (0.5B model size).
  • Standard NLP Benchmarks (100B Tokens):
  • Small (~150M): Avey scored 42.32%, outperforming Transformer++ (41.72%) and matching RWKV-7 (42.48%) and Mamba (42.73%).
  • Medium (~500M): Avey scored 46.82%, slightly beating Transformer++ (46.65%) while trailing Mamba (48.23%) and RWKV-7 (48.00%).
  • Large (~1.5B): Avey attained 51.53%, trailing Transformer++ (52.54%), Mamba (53.12%), and RWKV-7 (53.17%).
  • Inference Latency: Avey demonstrated significantly lower empirical Time to First Token (TTFT) across prompt lengths up to 128k tokens compared to Transformer++, Mamba, and RWKV-7 on an NVIDIA H200 GPU.

Limitations and Future Work

  • Training Wall-Clock Speed: While Avey possesses an asymptotic training complexity of $O(N^2 d)$ and linear per-token inference, unoptimized custom kernels make its current training implementation slower in practice than highly engineered Transformer baselines (like FlashAttention).
  • Fixed Context Window Scaling: Context width was kept fixed at 512 tokens across all scales; the authors note that larger parameter models likely require scaling the context width and split parameters to match Transformer performance at the 1.5B+ scale.
  • Modalities and Contextual Types: Evaluated strictly on autoregressive text generation; bidirectional representations (BERT-style) and multimodal inputs (vision, audio) remain unexplored.

Summary updated

BibTeX
@misc{hammoud2025dont,
  author = {Mohammad Hammoud and Devang Acharya},
  title = {{Don’t Pay Attention}},
  year = {2025},
  eprint = {2506.11305},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.11305},
}
Figure