TL;DR
The paper introduces Avey, a novel foundational language model architecture that completely abandons both self-attention and recurrence. By pairing an internal sequence ranker with a dynamically parameterized neural processor, Avey decouples sequence length from context width, enabling a model trained on a tiny 512-token window to seamlessly extrapolate to 64k tokens and significantly outperform Transformers and State Space Models (SSMs) on long-range tasks.
What Problem Does This Paper Address?
While Transformers dominate modern AI, their core mechanism—self-attention—suffers from a well-known flaw: its computational and memory costs grow quadratically ($O(N^2)$) with sequence length. This makes processing long documents or extended conversations incredibly expensive.
To fix this, researchers have turned to linear attention models or recurrent architectures like State Space Models (SSMs, e.g., Mamba). However, these alternatives often sacrifice training parallelism, struggle to scale effectively, or suffer from "signal dilution," where crucial information gets lost over long sequences. The authors of this paper ask a radical question: Can we build a highly effective language model that uses neither attention nor recurrence?
Methods
Avey achieves this by separating the task of finding relevant information from the task of processing it. It consists of two primary components:
- The Ranker: This internal module breaks the input sequence into equal-sized token splits. It uses a
MaxSimoperator (a technique borrowed from Information Retrieval) to calculate pairwise similarities between the current split and all preceding splits. It then selects, normalizes, and weights the top-$k$ most relevant historical splits to pass along.
- The Neural Processor: This attention-free, recurrence-free block processes the selected splits through three distinct units:
- Enricher: A position-wise neural network that expands embedding features to capture nuanced token distinctions. It uses a partial-embedding bypassing mechanism to send a portion of raw features directly to the end of the block, preventing the model's representations from becoming too uniform (over-smoothing).
- Contextualizer: An embedding-wise network that uses dynamic parameterization (a gating mechanism inspired by gMLP) to handle cross-token interactions based on cosine similarities.
- Fuser: A position-wise network that integrates the contextualized features with the bypassed raw features, projecting them back to the original embedding dimension.
Datasets
- Training: All models were trained using the FineWeb dataset (specifically the
sample-100BTsubset). Ablations and tuning were performed on a 145M-parameter setup trained on 10B tokens, while final evaluations used models trained on a 100B-token budget. - Short-Range Evaluation: Standard zero-shot NLP benchmarks including ARC-E, ARC-C, HellaSwag, PIQA, OBQA, SIQA, and Winogrande.
- Long-Range Evaluation: The Single Needle-In-A-Haystack (S-NIAH-1 and S-NIAH-2) benchmark suites from RULER, which test a model's ability to retrieve a specific piece of information hidden inside massive bodies of distractor text.
Key Insights and Ideas
- Decoupling Length from Width: By separating sequence length from context width, Avey doesn't need a massive training context window to handle long sequences at inference time.
- The Power of More Candidates: Remarkably, Avey’s performance on long-context retrieval often improves as the sequence length grows. Because the sequence is longer, the ranker has a larger pool of historical splits to choose from, allowing it to surface more contextually relevant information.
- Not a RAG Component: Although the ranker acts like a retrieval mechanism, it is entirely internal and operates only on the sequence already present in the input. It introduces no external database dependencies or retrieval I/O latency.
- Ultra-low Latency (TTFT): Because the ranker is only invoked once per forward pass, Avey achieves a significantly lower Time to First Token (TTFT) during inference compared to Transformers, Mamba, and RWKV-7.
Key Results
The authors evaluated Avey against Transformer++, Mamba, and RWKV-7 across three scales: 153M, 496M, and 1.52B parameters.
- Short-Range Benchmarks: Avey performs comparably to the baseline models, proving that its attention-free design doesn't compromise standard language understanding capabilities.
- Long-Range Extrapolation: This is where Avey dominates. Despite being trained on a context window of only 512 tokens, Avey successfully generalized to a 64k-token haystack.
As shown in the Needle-in-a-Haystack tests, Transformer++ completely collapses outside its 2k training window. Mamba and RWKV-7 degrade significantly as the sequence lengthens. Meanwhile, Avey maintains near-perfect accuracy up to 64k tokens, outperforming Mamba and RWKV-7 on the strict S-NIAH-2 numerical recall task by average margins of 85.25% and 23.6%, respectively.
Limitations and Future Work
- Modality Constraints: The scope of the paper is strictly limited to text; the authors have not yet tested Avey on images, audio, or genomic data.
- Autoregressive Only: Avey was only evaluated on causal language modeling, leaving its ability to produce bidirectional representations (like BERT) an open question.
- Training Efficiency: While Avey is highly efficient at inference time, its training time complexity remains asymptotically quadratic ($O(N^2d)$) due to the ranker matching splits. The authors note that their current implementation is slower in practice than highly optimized Transformers and requires further engineering to optimize.
Summary updated