A new research paper introduces ReFINE, a reinforcement learning framework designed to fix a critical weakness in AI models: their inability to maintain coherent memory over long sequences.
Traditional language models predict one word at a time, but this approach struggles when the model needs to understand an entire paragraph or document. ReFINE instead uses a "next-sequence prediction" objective, forcing the model to predict whole blocks of text at once. This trains the AI to maintain semantic coherence across longer passages.
The system identifies the most informative, high-entropy points in a text to generate rollouts and assigns rewards based on how closely the prediction matches the actual next sequence. Experiments show that ReFINE significantly boosts performance on question-answering and information retrieval tasks. The method works at every stage of an AI's life — from mid-training to on-the-fly adaptation at test time.
This could be a step toward AI that actually remembers what it read earlier in a conversation or document, a long-standing challenge in the field.