DENIAHL: In-Context Features Influence LLM Needle-In-A-Haystack Abilities

Hui Dai, Dan Pechi, Xinyi Yang, Garvit Banga, Raghav Mantri
11/28/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: ameliadai/DENIAHL (0 stars, last commit 2024-12-07).

Abstract

The Needle-in-a-haystack (NIAH) test is a general task used to assess language models' (LMs') abilities to recall particular information from long input context. This framework however does not provide a means of analyzing what factors, beyond context length, contribute to LMs' abilities or inabilities to separate and recall needles from their haystacks. To provide a systematic means of assessing what features contribute to LMs' NIAH capabilities, we developed a synthetic benchmark called DENIAHL (Data-oriented Evaluation of NIAH for LLM's). Our work expands on previous NIAH studies by ablating NIAH features beyond typical context length including data type, size, and patterns. We find stark differences between GPT-3.5 and LLaMA 2-7B's performance on DENIAHL, and drops in recall performance when features like item size are increased, and to some degree when data type is changed from numbers to letters. This has implications for increasingly large context models, demonstrating factors beyond item-number impact NIAH capabilities.

View on arXivView PDF

Code Implementations(1)

ameliadai/DENIAHLCommunity100%

DENIAHL: In-Context Features Influence LLM Needle-In-A-Haystack Abilities

00PythonNov 24, 20241 years ago

Similar Papers

Cite this paper

@article{dai2024deniahl,
  title  = {DENIAHL: In-Context Features Influence LLM Needle-In-A-Haystack Abilities},
  author = {Hui Dai and Dan Pechi and Xinyi Yang and Garvit Banga and Raghav Mantri},
  year   = {2024},
  eprint = {2411.19360},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.19360v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.19360.svg)](https://codeofpaper.com/paper/2411.19360)

Discussion