AI
Novel training method ReFINE boosts long-context performance in fast weight language models
Researchers propose sequence-level prediction and reinforcement learning to better align how fast weight architectures are trained with how they perform over extended contexts.
Fast weight architectures are emerging as a compelling alternative to standard transformers for processing long sequences of text. Rather than storing key-value pairs for every token processed so far (the traditional KV-cache approach), these models maintain a compact, fixed-size memory that updates recurrently. Yet a fundamental mismatch has persisted in how they're developed: they're trained using the same next-token prediction (NTP) objective as conventional transformers, even though their design fundamentally relies on evolving memory to support predictions down the line.
Closing the training-architecture gap#
Researchers recently proposed a solution to this mismatch through next-sequence prediction (NSP), which extends NTP from single-token to multi-token supervision. The key insight is that fast weight models need to learn how to build and maintain memory states that sustain coherent, multi-token sequences—not just optimize for the very next word in isolation.
To implement NSP at scale, the team developed ReFINE (Reinforced Fast weIghts via Next sEquence prediction). The approach strategically selects informative positions in the training data based on prediction uncertainty, generates multi-token continuations from those points, assigns rewards based on sequence quality, and applies Group Relative Policy Optimization (GRPO) to refine the model's weights.
Versatility across the training pipeline#
One of ReFINE's practical strengths is its flexibility. The method can be applied mid-training (during initial pre-training), in post-training stages (after the base model is complete), or even at test time—allowing models to adapt to new contexts on the fly.
Empirical validation#
Experiments on two model scales—LaCT-760M and DeltaNet-1.3B—demonstrated consistent gains over supervised fine-tuning with traditional NTP. Performance improvements were measured across:
- Needle-in-a-haystack retrieval tasks, which test the ability to find specific information buried in vast context
- Long-context question answering, where models must synthesize understanding across extended passages
- Diverse benchmarks from LongBench, a comprehensive evaluation suite for long-context capabilities
The results suggest ReFINE provides an effective framework for tailoring how fast weight models learn, potentially unlocking their full potential for real-world long-context reasoning and retrieval tasks.

