potentialpaper

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

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

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 gold context size\textit{gold context size}, 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., smaller gold contexts consistently degrade model performance and amplify positional sensitivity\textbf{smaller gold contexts consistently degrade model performance and amplify positional sensitivity}, posing a major challenge for agentic systems that must integrate scattered, fine-grained information of varying lengths\textit{varying lengths}. 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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…