Command Palette
Search for a command to run...
M4LE:大規模言語モデルのための多能力・多範囲・多タスク・多ドメイン長文文脈評価ベンチマーク
M4LE:大規模言語モデルのための多能力・多範囲・多タスク・多ドメイン長文文脈評価ベンチマーク
Wai-Chung Kwan Xingshan Zeng Yufei Wang Yusen Sun Liangyou Li Yuxin Jiang Lifeng Shang Qun Liu Kam-Fai Wong
概要
長大な系列の処理は、大規模言語モデル(LLM)にとって重要かつ不可欠な機能となっている。しかし、長文文脈を扱える能力を評価することは依然として課題である。本稿では、長文文脈評価のための多能力(Multi-ability)・多範囲(Multi-range)・多タスク(Multi-task)・多ドメイン(Multi-domain)ベンチマークである M⁴LE を提案する。M⁴LE は11種類のタスクと12のドメインを網羅する36のNLPデータセットから構成され、包括的な評価基盤を提供する。自然に長文となるタスクが不足している問題に対処するため、短文系列タスクを長文系列シナリオへ変換する自動手法を提案する。これらのシナリオにより、長文文脈内の明示的または意味的な手がかりに基づく単一・複数関連区間の理解と、グローバルな文脈理解という5つの主要な能力についてLLMの長文文脈理解能力を評価する。この自動手法により、入力長1kから8kまで均等に分布したインスタンスを生成できる。11の主要なLLMに対する評価から、以下の点が明らかになった。1)現在のLLMは長文文脈の理解に苦戦しており、特に複数区間の注意が必要なタスクでその傾向が顕著である。2)高性能なLLMほど意味的検索が困難になる。3)長文データで位置補間を用いてファインチューニングしたモデルは、NTK対応スケーリング法を用いたファインチューニング不要のモデルと同等の性能を示す。本ベンチマークは、この難しい分野における今後の研究を促進するために公開する。
One-sentence Summary
CUHK, Huawei Noah's Ark Lab, HKUST, and collaborators propose M4LE⋅, a long-context evaluation benchmark spanning 36 NLP datasets that introduces an automatic short-to-long sequence conversion method to evaluate LLMs across five abilities, revealing their struggles with multi-span attention and semantic retrieval.
Key Contributions
-
Introduces M4LE, a multi-ability, multi-range, multi-task, and multi-domain benchmark for evaluating long-context understanding in LLMs, built from 36 NLP datasets across 11 task types and 12 domains and organized around single-span, multi-span, explicit-hint, semantic-hint, and global-context abilities.
-
Presents an automatic construction method that converts short-sequence NLP tasks into long-context evaluation instances, producing examples evenly distributed from 1k to 8k input length and expanding coverage beyond naturally long datasets.
-
Evaluates 11 prominent LLMs on M4LE and finds that models struggle with tasks requiring multiple-span attention, semantic retrieval is especially difficult for competent models, and fine-tuning on longer text with position interpolation performs comparably to NTK-aware scaling without fine-tuning.
Introduction
Large language models are increasingly used for tasks that require processing long inputs, such as document understanding, summarization, and information extraction, making robust long-context evaluation important for practical deployment. Prior benchmarks like L-Eval and LongBench mainly reuse existing long NLP datasets, which limits task diversity, length control, and coverage of different long-context abilities, while also creating potential data leakage risks. The authors introduce M4LE, a benchmark that constructs long-context evaluation tasks from short NLP datasets and covers five understanding abilities, context lengths from 1K to 8K words, 36 datasets across 11 task types, and multiple domains.
Dataset
-
The authors construct M4LE as an evaluation benchmark for long-context understanding, not as a training dataset. The excerpt does not describe training splits or explicit mixture ratios.
-
Each sample is formatted as a tuple containing:
- Task description
- Context
- Instruction
- Response
-
The benchmark covers five ability categories:
- Explicit single-span understanding, with 10 constructed datasets
- Semantic single-span understanding, with 9 constructed datasets
- Explicit multiple-span understanding, with 4 constructed datasets
- Semantic multiple-span understanding, with 3 constructed datasets
- Global context understanding, with 10 constructed datasets
-
Source datasets are selected from widely used Chinese and English NLP datasets across diverse tasks and domains, including news, Wikipedia, web snippets, books, patents, academic papers, medical texts, textbooks, e-commerce content, and subtitles.
-
Data sources are grouped by task type:
- QA: TriviaQA, NQ-Open, HotpotQA, DRCD, NewsQA, DuoRC, and C3
- Classification: BIGPATENT, MNDS News, THUCNews, and an e-commerce sentiment dataset
- Summarization: Arxiv, Pubmed, BIGPATENT, Booksum, CNNNews, MNDS News, Wikihow, CNewsum, CLTS+, News2016, LCSTS, CEPSUM, and NCLS for bilingual summarization
- NLI: Tasks built from WikiText-103 in English and Wiki2019zh in Chinese
- Translation: Tedtalks, OpenSubtitles, and News commentary, using sentence-level alignments to form longer contexts
- Retrieval: Additional retrieval tasks are constructed from the same sources used for NLI
-
The authors select datasets both for naturally long contexts and for shorter inputs that can be extended into longer contexts through custom construction.
-
To build a test instance for a target length range K, the authors sample N instances from one source dataset. N is determined by dividing K by the median context length of that dataset.
-
They concatenate the sampled context paragraphs into a single Context sequence and attach explicit paragraph identifiers to each paragraph at the beginning.
-
The instruction determines whether the model must locate relevant paragraphs using explicit identifiers or semantic hints.
-
Single-span tasks require information from one paragraph, while multiple-span tasks require information from several disjoint paragraphs.
-
Counting tasks are included in semantic multiple-span tasks to require counting relevant paragraphs.
-
Global context understanding is used when the original instance is already long enough, so the entire context is required for the task.
-
Relevant paragraphs are intentionally distributed uniformly across the context to reduce bias from position effects.
-
Samples are also divided into length buckets to evaluate performance across different context lengths.
-
The dataset is used as a prompt-based benchmark: models receive the task description, long context, and instruction, then must locate the required information and generate the expected response.
Method
The authors leverage a structured evaluation framework in which each sample is defined as a tuple containing a task description, a long context, an instruction, and a target response. To answer correctly, a model must first identify the relevant portions of the context. The framework organizes this requirement along two orthogonal axes: the scope of the relevant evidence and the type of cue used to locate it. The relevant evidence can be a single text segment, multiple text segments, or the entire context, while the cue can be an explicit pointer, such as a paragraph identifier, or a semantic hint that must be inferred from the instruction. Combining these axes yields five targeted abilities: explicit single-span, semantic single-span, explicit multiple-span, semantic multiple-span, and global context understanding. The overview diagram below presents this taxonomy together with the framework’s multi-task, multi-domain, and multi-range design.
The task construction module transforms short-context source examples into controlled long-context evaluation instances. For a desired target length K, the pipeline estimates the number of source samples required as N=K/Lmed, where Lmed denotes the median context length of the source dataset. It then samples N instances, concatenates their contexts into a single sequence, and attaches explicit identifiers to each context block. To reduce positional bias, the relevant segments are distributed throughout the combined input rather than placed only at the beginning or end.
For each ability, the instruction is adapted to the intended retrieval challenge. In explicit single-span tasks, the instruction names one context block directly. In semantic single-span tasks, the instruction describes the content or topic of the target block, requiring the model to match the clue to the correct passage. Explicit multiple-span tasks require handling several disjoint blocks using explicit identifiers, while semantic multiple-span tasks replace identifiers with semantic clues and may introduce counting-style operations that test paragraph-level aggregation. Global context understanding uses the full concatenated context when task completion depends on the entire input. The construction diagram below shows the full workflow, including length checking and resampling when the combined context does not satisfy the target constraint.
Experiment
The study evaluates 11 open and closed LLMs across multiple context-length buckets and task abilities, using M4LE to analyze how performance changes as inputs grow and whether language or supporting-document position affects long-context behavior. Across experiments, all models degrade substantially with longer contexts, with most open-source models falling off more sharply beyond short contexts and the gap to GPT-3.5 increasing, while fine-tuning on longer context offers limited advantage over positional scaling. Multiple-span and semantic retrieval tasks are especially challenging, and ablations show bilingual degradation follows similar patterns when fine-tuning data supports both languages, plus models generally favor information at the beginning or end of contexts rather than the middle.
M4LE is presented as a broader long-context benchmark than the compared baselines, offering wider coverage of tasks, datasets, and domains. It also differs by explicitly supporting multiple context ranges and ability categories rather than relying only on existing long-sequence NLP tasks. M4LE covers more tasks and datasets than the compared benchmarks. It includes both English and Chinese while adding broader domain coverage. It uniquely marks support for multiple ranges and abilities across the listed benchmarks.
The evaluation compares M4LE with existing long-context benchmarks, showing that it provides broader task, dataset, domain, and language coverage. It also validates the benchmark’s distinct support for multiple context ranges and ability categories rather than relying solely on standard long-sequence NLP tasks. Overall, M4LE is positioned as a more comprehensive multilingual long-context evaluation framework.