New AI training method helps LLMs find middle facts
Researchers from Microsoft, Peking University, and Xi'an Jiaotong University developed INformation-INtensive (IN2) training to reduce the "lost-in-the-middle" problem in LLMs. Applied to Mistral-7B, the method produced FILM-7B and improved long-context performance while preserving short-context ability.
A large context window can look powerful on paper, but it does not guarantee that a language model uses every part of that window equally well. Researchers from Microsoft, Peking University, and Xi'an Jiaotong University are targeting one of the clearest weaknesses in long-context AI: the "lost-in-the-middle" problem.
“This is a routine research advance improving LLM reliability rather than clearly increasing danger or degrading human judgment.”Why it scores Neutral
Their approach, called INformation-INtensive (IN2) training, is designed to teach large language models that important information may appear anywhere inside a long context, not only near the start or end.
Why the middle of a prompt can disappear
The "lost-in-the-middle" phenomenon describes a pattern in which LLMs handle information near the beginning and end of a long context better than information placed in the middle. That matters because many useful AI workflows depend on reviewing large amounts of material, including long documents, code, and structured data.
According to the researchers, the issue may come from an unintended position bias created during training. In pre-training, models learn by predicting the next token from nearby tokens. In fine-tuning, system instructions often appear at the beginning of the context and strongly shape the model's final response.
Together, those habits can make the model behave as if the most important information is usually placed at the edges of the prompt. The result is a long-context model that may still miss relevant material when it sits in the middle.
This is a practical reliability problem. If a model is asked to evaluate a large body of data, users need it to search across the full context, not simply lean toward the most visible positions.
How IN2 training changes the signal
IN2 training uses synthetic question-answer data to make the position of important information less predictable. The method fills a long context of 4K-32K tokens with many short segments of 128 tokens. Questions then target information located in those randomly placed segments.
The point is direct: the model repeatedly sees that the answer may be buried anywhere in the context. This gives the training process a different signal from one where early instructions or nearby text dominate the task.
The researchers used two question types. One asks for details from a single segment. The other requires information from multiple segments to be combined and inferred.
That distinction is important because long-context work is not only about finding one hidden fact. Real tasks often require connecting scattered pieces of evidence and producing an answer that reflects more than one part of the input.
From Mistral-7B to FILM-7B
The researchers applied IN2 to Mistral-7B. The resulting model is called FILM-7B, short for FILl-in-the-Middle.
They then tested it on three new extraction tasks built for long contexts. Those tests covered different context types, including document, code, and structured data. They also covered several search patterns: forward, backward, and bidirectional.
The reported results show that IN2 significantly reduces the "lost-in-the-middle" weakness of the original Mistral model. FILM-7B also performs strongly despite being much smaller than proprietary models such as GPT-4 Turbo with 128K.
In the source results, FILM-7B reaches comparable or even more robust performance than those proprietary models in some areas. At the same time, the researchers do not present the problem as fully solved. GPT-4 Turbo remains the strongest model in the context benchmarks, even though it also has problems with long contexts.
FILM-7B also improved on real-world long-context tasks. The source points to summarizing long texts, answering questions about long documents, and reasoning about multiple documents. The model maintained its ability to handle short-context tasks as well.
What better testing needs to measure
The researchers also criticize the widely used "Needle in the Haystack" test. Their concern is that it can misrepresent long-context ability because it relies on familiar document-like context and simplified forward information retrieval.
That matters because a benchmark can shape how people understand model capability. If a test mostly checks whether a model can retrieve a simple item in a familiar format, it may not reveal how the same model behaves across less convenient context styles or search directions.
To address that gap, the researchers propose VAL probing as a more suitable evaluation approach. The source describes VAL as covering different context styles and retrieval patterns, giving a more thorough view of contextual performance.
The larger lesson is that long context should not be judged only by how much text a model can accept. The harder question is whether the model can use the relevant information wherever it appears.
What this means for long-context AI
IN2 training is a data-driven attempt to reduce a specific weakness in LLM behavior. Rather than changing the user-facing promise of long context, it changes what the model sees during training: important facts placed throughout the context, paired with questions that require attention to those facts.
For users, the stakes are straightforward. Long-context models are often expected to summarize, compare, extract, and reason across large inputs. If they overweight the beginning and end, their answers can be incomplete even when the needed information is present.
The reported FILM-7B results suggest that targeted training can make a smaller model more reliable in these scenarios. But the source also makes clear that the "lost-in-the-middle" problem remains open. Better training helps, and better benchmarks may help reveal where models still fail.
Read next