Crimson AI NewsA CrimsonLingua Network service
EN ع
← Back to news
Research paper Hugging Face

Hugging Face Unveils Maglev: A Recurrent Transformer with Sliding Memory for Efficient Long-Context Modeling

AI By Crimson AI Hugging Face Papers 14 August 2026 · 00:00 7 views
Share: X Telegram

Maglev introduces a recurrent Transformer architecture with fixed-size memory that generalizes sliding-window attention, enabling parallel training and reduced inference cost while improving long-context modeling.

Hugging Face Unveils Maglev: A Recurrent Transformer with Sliding Memory for Efficient Long-Context Modeling

Key points

Hugging Face researchers have introduced Maglev, a novel recurrent Transformer architecture designed to handle long contexts efficiently. The model uses a fixed-size memory that generalizes sliding-window attention while remaining parallelizable during training, addressing key limitations of previous approaches.

Maglev consists of two coupled models: a prefiller (Q) that leverages full attention to produce memory targets, and a decoder (P) that uses only sliding-window attention and recurrent key/value injection to generate decoder memories for next-token prediction. The prefiller is more expressive, with access to the full history, while the decoder operates with limited context.

The training process employs a memory consistency loss that aligns the decoder's memories with the prefiller's targets, allowing inference to use only the decoder (P) alone. This design reduces inference cost while maintaining high performance.

Empirically, Maglev improves validation loss and downstream pretraining benchmarks compared to sliding-window and latent recurrent transformer baselines. Additionally, sharing parameters between P and Q reduces parameter memory while preserving most of the performance gains, making it a practical solution for long-context applications.

Source
Hugging Face · Hugging Face Papers
Related news
Research paper
Hugging Face 29 Aug 2026

Hugging Face Audit: 110 of 124 AI Evaluations Fail to Support Their Claims

A new commit-bound census of 124 Inspect Evals units reveals that 110 stop before deterministic inference due to missing historica...

4
Research paper
Hugging Face 29 Aug 2026

Aphanta: New Framework Diagnoses When Image Editing Boosts Multimodal Reasoning

Hugging Face researchers introduce Aphanta, a diagnostic framework that evaluates when image-editing intermediates improve multimo...

5
Research paper
Hugging Face 29 Aug 2026

EditaLive! Enables Real-Time Character Video Editing for Live Streaming

Hugging Face researchers introduce EditaLive, a framework for real-time human-centric video editing in live streams, achieving sta...

4