# Reinforced Fast Weights via Next-Sequence Prediction

*Hee Seung Hwang, Xindi Wu, Sanghyuk Chun, Zhiwei Deng, Olga Russakovsky*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154908) · [OpenReview](https://openreview.net/forum?id=A1sw6FviPQ) · [alphaXiv](https://www.alphaxiv.org/abs/2602.16704) · [Open on the map](../papers.html#p154908)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Attention Optimization and Retrieval](../pgroup/693.md) · Type: new method · Keywords: fast weight architectures, next-sequence prediction, reinforcement learning, long-context modeling, Group Relative Policy Optimization

Areas: [Memory](../areas/memory.md) › Memory mechanisms › Memory Augmentation; [Long Context](../areas/longcontext.md) › Long-context mechanisms › Long-context memory

## Summary
ReFINE introduces next-sequence prediction and reinforcement learning to improve long-context modeling in fast weight architectures.

## Explained to a 5-year-old
Some computers read long stories and keep a small memory to remember what happened before. Right now they are only taught to guess the very next word, which makes the story sometimes forgetful. The researchers gave them a new game where they try to guess whole sentences at once, using that memory. They pick important moments to play, make many guesses, and get points for making the story make sense. This helps the computers understand longer stories better, like finding a hidden needle in a haystack.

## Explained to a 5-year-old, longer
Some computers read long books and need to remember what happened a long time ago. To do this, they use a special kind of memory that is small but can be updated as they read. Usually, these computers are only taught to guess the next single word, like filling in one blank. This works okay for short texts, but when the story is very long, they often forget the earlier parts. The researchers noticed that the memory could help the computer think ahead, but the training didn't use it that way. So they created a new way to train the computers that makes them guess whole sentences at once. This new training looks at the whole memory and tries to make the next few words sound right together. The computers are guided by a game where they get points for making the story coherent. They choose important moments in the text to practice, like when they are most unsure. Then they make many possible continuations, and the best ones get rewarded. This helps the computer keep track of long passages and answer questions about them later. As a result, the computers can find hidden information, answer questions, and do better on many long-text tasks.

## For a technical reader
The paper points out that fast-weight architectures, which replace the transformer’s KV-cache with a small recurrent memory, are trained with the standard next-token prediction loss, which only supervises immediate predictions. This mismatch limits the model’s ability to generate coherent multi-token continuations from its memory. The authors introduce a sequence-level objective called next-sequence prediction that encourages the model to produce longer, coherent outputs directly from its memory state. They optimize this objective with a reinforcement-learning scheme that selects informative tokens, generates rollouts, assigns sequence-level rewards, and uses a group-relative policy optimizer. Experiments on two large fast-weight models show consistent gains on needle-in-a-haystack retrieval, long-context QA, and the LongBench benchmark, demonstrating the framework’s versatility across training stages.

## Problem
Models that maintain a recurrent memory for long contexts are trained with token-level prediction objectives that only supervise the immediate next token, limiting their ability to generate coherent multi-token continuations from memory.

## Method
The approach extends next-token prediction to a sequence-level objective that encourages coherent multi-token continuations from the recurrent memory, selects informative tokens via prediction entropy, generates rollouts, assigns sequence-level rewards, and optimizes using a group relative policy optimization algorithm.

## Results
The approach consistently outperforms NTP-based supervised fine-tuning on needle-in-a-haystack retrieval, long-context question answering, and LongBench tasks.

## Contributions
The paper identifies a mismatch between fast weight memory and token-level training, proposes a sequence-level next-sequence prediction objective, and introduces a reinforcement learning optimization scheme that improves long-context modeling across multiple tasks.

## Research questions this paper is counted under

- [How can we balance coverage and efficiency in long-term memory to support accurate reasoning and coherent generation?](../q/574.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154908)
