Evaluating the ability of large language models (LLMs) to process lengthy contexts is critical, especially for retrieving query-relevant information embedded within them. We introduce Sequential-NIAH, a benchmark specifically designed to evaluate the capability of LLMs to extract sequential information items (known as \emph{needles}) from long contexts. The benchmark includes three needle generation pipelines: synthetic-temporal, real-temporal, and real-logical orders, with context lengths ranging from 8K to 128K, which comprises 14,000 samples (2,000 for testing). To facilitate the evaluation of this benchmark, we trained an evaluation model that assesses the correctness of LLM responses by comparing their completeness and sequential consistency against the ground truth, which provides a more reliable evaluation metric than GPT-4 or Claude. We conducted experiments on six well-known LLMs, revealing that even the best-performing model achieved a maximum accuracy of only 63.50% on test set of this benchmark. Further analysis highlights the growing challenges posed by increasing the context length or the number of needles, underscoring substantial room for improvement of LLMs. Additionally, noise analysis validates the reliability and challenge of the benchmark, making Sequential-NIAH an important reference for advancing research on long text information extraction capabilities of LLMs.
Hidden in the Haystack: Smaller Needles are More Difficult for LLMs to Find
Center for Alzheimer’s Disease and Related Dementias, NIA, NIH(阿尔茨海默病及相关痴呆症研究中心,国家老龄化研究所,国家卫生研究院);DataTecnica LLC(DataTecnica公司);Johns Hopkins University(约翰霍普金斯大学);Laboratory of Neurogenetics, NIA, NIH(神经遗传学实验室,国家老龄化研究所,国家卫生研究院)
U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystack
Shanghai Research Institute for Intelligent Autonomous Systems, Tongji University(同济大学上海智能自主系统研究院);School of Computer Science, Fudan University(复旦大学计算机科学技术学院);College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics(南京航空航天大学人工智能学院);College of Design and Innovation, Tongji University(同济大学设计与创新学院)
NeedleInATable: Exploring Long-Context Capability of Large Language Models towards Long-Structured Tables
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
NeMo: Needle in a Montage for Video-Language Understanding
The Chinese University of Hong Kong(香港中文大学);Phoenix TV(凤凰电视台);Stanford University(斯坦福大学);University of Liverpool(利物浦大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)
Beyond Homogeneous Attention: Memory-Efficient LLMs via Fourier-Approximated KV Cache
School of Computer Science, Fudan University(复旦大学计算机科学学院);Shanghai Innovation Institute(上海创新研究院);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Shanghai AI Lab(上海AI实验室)
Needle in a Haystack: An Analysis of High-Agreement Workers on MTurk for Summarization
New York University(纽约大学);ADAPT Centre, DCU(都柏林城市大学ADAPT中心);IBM Research(IBM研究院);Google(谷歌);Google Research(谷歌研究院);Yale University(耶鲁大学);trivago N.V.(途易集团);University of Edinburgh(爱丁堡大学);Allen Institute for AI(艾伦人工智能研究所)
SABlock: Semantic-Aware KV Cache Eviction with Adaptive Compression Block Size
School of Computer Science and Technology, University of Science and Technology of China(计算机科学与技术学院,科学技术大学);Suzhou Institute for Advanced Research, University of Science and Technology of China(苏州先进研究院,科学技术大学)
PaceLLM: Brain-Inspired Large Language Models for Long-Context Understanding
School of Information Science and Technology, Fudan University(复旦大学信息科学与技术学院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);The Chinese University of Hong Kong(香港中文大学)
Looking for a Needle in a Haystack: A Comprehensive Study of Hallucinations in Neural Machine Translation
Instituto de Telecomunicações(电信研究所);Instituto Superior Técnico(高等技术学院);LUMLIS (Lisbon ELLIS Unit)(LUMLIS(里斯本ELLIS单元));University of Edinburgh(爱丁堡大学);Unbabel(Unbabel公司)
A Controllable Examination for Long-Context Language Models
University of Edinburgh(爱丁堡大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Nanjing University(南京大学);Alibaba Group(阿里巴巴集团);University of Amsterdam(阿姆斯特丹大学)
SEGMENT+: Long Text Processing with Short-Context Language Models
Fudan University(复旦大学);Columbia University(哥伦比亚大学);MYbank, Ant Group(蚂蚁集团MYbank);School of Computer Science, Fudan University(复旦大学计算机科学学院);School of Data Science, Fudan University(复旦大学数据科学学院)