This paper explores a critical but often overlooked dimension of Long-Context Language Models (LCLMs): the tug-of-war between what a model "knows" (its internal parametric knowledge) and what it "sees" (the external context provided in a prompt).
TL;DR
Researchers have discovered that as context length increases, LLMs rely more heavily on their internal parametric knowledge, which can lead to conflicts if the provided text contradicts what the model already knows. To measure this, they introduced the Hybrid Needle-in-a-Haystack (Hybrid NIAH) test, revealing a surprising trade-off: techniques that improve a model's ability to retrieve information from long text can actually suppress its ability to use its own internal knowledge.
What Problem Does This Paper Address?
Current benchmarks for long-context models, like the popular "Needle-in-a-Haystack" (NIAH) test, focus almost exclusively on extrinsic retrieval—the model's ability to find a specific fact buried in a mountain of irrelevant text. However, in the real world, models don't just retrieve; they synthesize.
The authors argue that we are ignoring parametric recall—the knowledge the model internalized during its initial training. As context windows expand to hundreds of thousands of tokens, the "noise" of the haystack increases. The paper addresses a fundamental question: How does this internal knowledge influence the model's performance in long-context scenarios, and do our current methods for extending context windows inadvertently break the model's "internal brain"?
Methods
The researchers developed a two-pronged approach to investigate this relationship:
- Knowledge Alignment Analysis: They tested models in scenarios where the external context either aligned with or contradicted the model's internal knowledge.
- Hybrid NIAH Framework: Unlike the standard NIAH, which gives the model the "needle" to look for, the Hybrid NIAH requires a two-step process:
- Step 1 (Parametric Recall): The model must use its internal knowledge to identify a target (e.g., "Who wrote The Stranger?").
- Step 2 (Extrinsic Retrieval): The model must then find a specific detail about that author hidden within a long context.
- Positional Encoding Comparison: They compared standard Rotary Positional Embeddings (RoPE) with STRING, a state-of-the-art method designed to improve long-context retrieval, to see how these architectural choices affect the balance between internal and external knowledge.
Datasets
- I-WhoQA (New): A curated dataset derived from WhoQA. It filters for entities where the model has a single, unambiguous internal answer. It includes subsets for Parametric (context matches internal knowledge), Conflict (context contradicts internal knowledge), and Irrelevant (context is unrelated).
- HotpotQA: Used to create more realistic scenarios where context appears relevant but may not support the correct answer.
- PaulGrahamEssays: Used as the "haystack" (filler text) for the NIAH tests.
Key Insights and Ideas
- The Long-Context Dependency: As the context length grows, models become more likely to fall back on their internal knowledge. If the text says "The Earth is flat" but the model knows it's a sphere, the model is more likely to ignore the text and say "sphere" as the document gets longer.
- The Retrieval-Recall Trade-off: This is the paper's most striking finding. Methods like STRING, which are "tuned" to be better at finding needles in haystacks, actually make the model worse at using its internal knowledge. They create a bias toward the external context, even when that context is irrelevant or misleading.
- Scaling Disparities: Not all model families scale the same way. The Qwen-2.5 family showed a near-linear improvement in integrating both internal and external knowledge as model size increased. In contrast, the Llama-3.1 family struggled to leverage internal knowledge effectively in long-context settings, even at the 70B parameter scale.
Key Results
- Performance Gap: On Llama-3.1-8B, the performance gap between "aligned" and "conflicting" knowledge reached up to 10 points, suggesting a heavy reliance on internal knowledge as context extends.
- Hybrid NIAH Difficulty: The Hybrid NIAH is significantly harder than the standard version. For example, while models might score near 100% on standard NIAH, their scores can drop by 25% or more on the Hybrid version when "random facts" are added as interference.
- The "Refusal" Phenomenon: Larger Qwen models (14B and 72B) exhibited a strange behavior: they would initially "refuse" to answer (claiming the info wasn't there) but then successfully retrieve the answer if allowed to generate more tokens. This suggests a conflict in the attention mechanism that resolves over the course of the generation.
Limitations and Future Work
The authors acknowledge that while they've identified the "refusal" behavior in Qwen models, the exact cause—likely related to chunked attention mechanisms—requires deeper investigation.
Future work should focus on developing LCLM architectures that can dynamically weigh internal vs. external knowledge based on the reliability of the context. The paper serves as a call to action for the research community to move beyond simple retrieval benchmarks and toward evaluations that reflect the complex, dual-knowledge nature of how LLMs actually function.
Summary updated