paper-with-me

Papers

Multilingual Needle in a Haystack: Investigating Long-Context Behavior of Multilingual Large Language Models

2024-08-19 · Amey Hengle, Prasoon Bajpai, Soham Dan, Tanmoy Chakraborty

While recent large language models (LLMs) demonstrate remarkable abilities in responding to queries in diverse languages, their ability to handle long multilingual contexts is unexplored. As such, a systematic evaluation of the long-context capabilities of LLMs in multilingual settings is crucial, specifically in the context of information retrieval. To address this gap, we introduce the MultiLingual Needle-in-a-Haystack (MLNeedle) test, designed to assess a model's ability to retrieve relevant information (the needle) from a collection of multilingual distractor texts (the haystack). This test serves as an extension of the multilingual question-answering task, encompassing both monolingual and cross-lingual retrieval. We evaluate four state-of-the-art LLMs on MLNeedle. Our findings reveal that model performance can vary significantly with language and needle position. Specifically, we observe that model performance is the lowest when the needle is (i) in a language outside the English language family and (ii) located in the middle of the input context. Furthermore, although some models claim a context size of $8k$ tokens or greater, none demonstrate satisfactory cross-lingual retrieval performance as the context length increases. Our analysis provides key insights into the long-context behavior of LLMs in multilingual settings to guide future evaluation protocols. To our knowledge, this is the first study to investigate the multilingual long-context behavior of LLMs.

📄 PDF Abstract BibTeX arXiv:2408.10151

Code (1)

AmeyHengle/multilingual-needle-in-a-haystack 공식 구현 pytorch

Tasks

8kInformation RetrievalQuestion AnsweringRetrieval

Similar Papers 제목 키워드 기반

Multimodal Needle in a Haystack: Benchmarking Long-Context Capability of Multimodal Large Language Models

2024-06-17 · Hengyi Wang, Haizhou Shi, Shiwei Tan, Weiyi Qin 외

Multimodal Large Language Models (MLLMs) have shown significant promise in various applications, leading to broad interest from researchers and practitioners alike. However, a comprehensive evaluation of their long-conte…

BenchmarkingHallucinationImage Retrieval+4

NoLiMa: Long-Context Evaluation Beyond Literal Matching

2025-02-07 · Ali Modarressi, Hanieh Deilamsalehy, Franck Dernoncourt, Trung Bui 외

Recent large language models (LLMs) support long contexts ranging from 128K to 1M tokens. A popular method for evaluating these capabilities is the needle-in-a-haystack (NIAH) test, which involves retrieving a "needle" (…

Can LLMs reason over extended multilingual contexts? Towards long-context evaluation beyond retrieval and haystacks

2025-04-17 · Amey Hengle, Prasoon Bajpai, Soham Dan, Tanmoy Chakraborty

Existing multilingual long-context benchmarks, often based on the popular needle-in-a-haystack test, primarily evaluate a model's ability to locate specific information buried within irrelevant texts. However, such a ret…

Epistemic ReasoningLarge Language ModelRetrievalRetrieval-augmented Generation

One ruler to measure them all: Benchmarking multilingual long-context language models

2025-03-03 · Yekyung Kim, Jenna Russell, Marzena Karpinska, Mohit Iyyer

We present ONERULER, a multilingual benchmark designed to evaluate long-context language models across 26 languages. ONERULER adapts the English-only RULER benchmark (Hsieh et al., 2024) by including seven synthetic task…

8kAllBenchmarking

RepoQA: Evaluating Long Context Code Understanding

2024-06-10 · Jiawei Liu, Jia Le Tian, Vijay Daita, Yuxiang Wei 외

Recent advances have been improving the context windows of Large Language Models (LLMs). To quantify the real long-context capabilities of LLMs, evaluators such as the popular Needle in a Haystack have been developed to …

Code Search