atlas

Research map / Architectures and efficiency / Attention and transformers

RAT: Bridging RNN Efficiency and Attention Accuracy via Chunk-based Sequence Modeling

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: State space and recurrent sequence models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RAT, a chunk-based layer that applies intra-chunk recurrence and inter-chunk softmax attention, and a hybrid with sliding-window attention, evaluated by pretraining 1.3B models on FineWeb-Edu.

Problem

Softmax attention is compute-costly for long sequences, while RNNs compress the full history into a fixed-size state that degrades in long contexts and limits precise retrieval.

Approach

Partition the sequence into chunks; apply gated linear recurrence within each chunk for local dependencies and softmax attention over chunk-level keys/values for long-range access. Chunk size interpolates between attention (L=1) and RNN (L=T), and the layer is combined with sliding-window attention in a hybrid.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace full attention with RAT-161.3B model · LongBench QAAvg. F1: 18.2 -> 19.6Helped
Replace full attention with RAT-161.3B model · LongBench code completionAvg. EditSum: 23.9 -> 17.4Hurt
Interleave RAT-16 with sliding-window attention1.3B RAT-16 model · LongBench code completionAvg. EditSum: 21.7 -> 28.2Helped
Interleave RAT-16 with sliding-window attention1.3B RAT-16 model · Commonsense reasoningAvg. accuracy: 56.7 -> 58.0Helped
Interleave RAT-16 with sliding-window attention1.3B RAT-16 model · NarrativeQA summary-only SFTF1: 60.8 -> 63.2No clear effect
Use intra-chunk attention and inter-chunk recurrence instead of the standard RAT arrangement (ablation)RAT-64 · PG19 pretraining, T=16384PPL: 13.34 -> 14.06Hurt
Combine intra-chunk and inter-chunk outputs by addition instead of hierarchical organization (ablation)RAT-64 · PG19 pretraining, T=16384PPL: 13.34 -> 14.4Hurt
Replace standard RAT with dilated attention (ablation)RAT-128 · PG19 pretrainingPPL: 13.44 -> 15.22Hurt
Allocate more parameters to intra-chunk RNN gates rather than inter-chunk query/key projections (ablation)RAT · PG19 book pretrainingPPL: 0.4–0.5Helped
Use chunk-indexed cross-chunk RoPE instead of original RoPE (ablation)RAT · PG19 book pretrainingPPL: 0.3Helped
Increase chunk size from 64 to 256 (ablation)RAT · 200M pretrainingPPL: 13.42 -> 13.72Hurt
Use NoPE instead of RoPE (ablation)RAT-16-SWA · FineWeb-Edu validationPPL: 7.57 -> 7.63Hurt

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu PG19 NarrativeQA QMSum WikiSum RULER

Benchmarks: PIQA ARC-C ARC-E HellaSwag LAMBADA WinoGrande BoolQ LongBench NarrativeQA QMSum WikiSum RULER

Metrics: accuracy perplexity F1 Rouge-L EditSim/EditSum exact match tokens/sec latency

Baselines: Attention RNN Attention-SWA Mamba2 DeltaNet GatedDeltaNet FLASH RNN-Dilated attention

Builds on: flash attention RoPE FLASH dilated attention Mamba2

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy