Hidden in the Haystack: Smaller Needles are More Difficult for LLMs to Find
Owen Bianchi, Mathew J. Koretsky, Tanay Nayak, Maya Willey, Chelsea X Alvarado, Adi Asija, Nicole Kuznetsov, Michael Nalls, Faraz Faghri, Daniel Khashabi
ICLR 2026 submission
Abstract. Large language models (LLMs) face significant challenges with needle-in-a-haystack tasks, where relevant information (the needle) must be drawn from a large pool of irrelevant context (the haystack). Previous studies have highlighted positional bias and distractor quantity as critical factors affecting model performance, yet the influence of , the length of the answer-containing document, has received little attention. We present the first systematic study of gold context size in long-context question answering, spanning three diverse benchmarks (general knowledge, biomedical reasoning, and mathematical reasoning), eleven state-of-the-art LLMs (including recent reasoning models), and more than 150K controlled runs. Our experiments reveal that LLM performance drops sharply when the gold context is shorter, i.e., , posing a major challenge for agentic systems that must integrate scattered, fine-grained information of . This effect persists under rigorous confounder analysis: even after controlling for gold document position, answer token repetition, gold-to-distractor ratio, distractor volume, and domain specificity, gold context size remains a decisive, independent predictor of success. Our work provides clear insights to guide the design of robust, context-aware LLM-driven systems.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…