CLJul 16, 2024

NeedleBench: Evaluating LLM Retrieval and Reasoning Across Varying Information Densities

Peking U
arXiv:2407.11963v313 citationsh-index: 34Has Code
Originality Incremental advance
AI Analysis

This provides a targeted tool for evaluating and improving LLMs' long-context capabilities, addressing limitations in existing methods, though it is incremental as it builds on prior evaluation frameworks.

The authors tackled the problem of evaluating large language models' long-context retrieval and reasoning by introducing NeedleBench, a synthetic framework that embeds key data points at varying depths, and found that recent reasoning models struggle with continuous retrieval in information-dense scenarios, even at shorter contexts.

The capability of large language models to handle long-context information is crucial across various real-world applications. Existing evaluation methods often rely either on real-world long texts, making it difficult to exclude the influence of models' inherent knowledge, or introduce irrelevant filler content to artificially achieve target lengths, reducing assessment effectiveness. To address these limitations, we introduce NeedleBench, a synthetic framework for assessing retrieval and reasoning performance in bilingual long-context tasks with adaptive context lengths. NeedleBench systematically embeds key data points at varying depths to rigorously test model capabilities. Tasks are categorized into two scenarios: information-sparse, featuring minimal relevant details within extensive irrelevant text to simulate simple retrieval tasks; and information-dense (the Ancestral Trace Challenge), where relevant information is continuously distributed throughout the context to simulate complex reasoning tasks. Our experiments reveal that although recent reasoning models like Deepseek-R1 and OpenAI's o3 excel in mathematical reasoning, they struggle with continuous retrieval and reasoning in information-dense scenarios, even at shorter context lengths. We also characterize a phenomenon termed 'under-thinking', where models prematurely conclude reasoning despite available information. NeedleBench thus provides critical insights and targeted tools essential for evaluating and improving LLMs' long-context capabilities. All resources are available at OpenCompass: https://github.com/open-compass/opencompass.

Code Implementations2 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes