Abstract
Avey is a novel language modeling architecture that eliminates both self-attention and recurrence. By decoupling sequence length from context width through a ranker and a neural processor, Avey achieves linear scaling and exceptional long-context extrapolation. Despite being trained on a 512-token window, Avey maintains near-perfect recall on 64k-token tasks, offering a scalable and efficient alternative to Transformers and State Space Models.
Introduction
The Transformer architecture has revolutionized AI but suffers from a "quadratic bottleneck," where computational costs grow exponentially with sequence length ($O(N^2)$). While alternatives like State Space Models (SSMs) or linear attention offer better scaling, they often struggle to match Transformer performance or fail to generalize to contexts significantly longer than their training data.
Avey addresses these challenges by introducing a middle ground: an architecture that is parallelizable, scales linearly during inference, and demonstrates remarkable extrapolation capabilities to massive sequence lengths without retraining.
The Avey Architecture
Avey splits the language modeling task into two distinct components: the Ranker and the Neural Processor.
The Ranker
Instead of attending to every previous token, the Ranker partitions input into contiguous "splits." It employs a MaxSim operator—a technique from Information Retrieval—to identify the top-$k$ most relevant splits for the current token. This selective mechanism allows the model to ignore irrelevant data in long documents, significantly reducing overhead.
The Neural Processor
The Neural Processor acts as the generation engine, consisting of three primary units:
- Enricher: A position-wise network that expands token features to capture nuanced information.
- Contextualizer: An embedding-wise network using dynamic parameterization and gating (inspired by gMLP) to compute interactions between the current token and the Ranker-selected splits.
- Fuser: Integrates contextualized features with raw features via Partial-Embedding Bypassing to maintain representational diversity.
Experimental Evaluation
The authors trained Avey on 100 billion tokens of the FineWeb dataset. Evaluation focused on standard NLP benchmarks (e.g., ARC, HellaSwag) and long-context capabilities using the RULER suite, specifically Single Needle-In-A-Haystack (S-NIAH) tests.
Long-Range Performance
The most significant result is Avey's ability to extrapolate. While trained on a tiny 512-token window, Avey achieved 97.8% accuracy on 64k-token Needle-In-A-Haystack tests.
In contrast, competing architectures like Mamba and RWKV-7 saw performance drop to near 0% when exceeding their training context. Avey also remains competitive with optimized "Transformer++" baselines at the 1.5B parameter scale on short-range tasks.
Key Insights and Efficiency
- Decoupling Sequence and Context: By separating sequence length from context width, Avey breaks the quadratic tie, theoretically allowing for "infinite" context.
- Inference Speed: Avey achieves a lower Time to First Token (TTFT) than Transformers or SSMs, making it ideal for real-time applications.
- Selectivity over Mixing: The success of the Ranker suggests that selecting relevant information is more effective for long-range dependencies than the "mixing" approach used in traditional linear attention.
Conclusion and Future Work
Avey represents a promising shift in foundational architecture, proving that high-performance language modeling is possible without the overhead of self-attention. Future research will explore Avey’s performance in other modalities (image, audio), its potential for bidirectional representations, and further engineering optimizations to fully realize its theoretical speed advantages.
Summary updated