HyperAIHyperAI

Command Palette

Search for a command to run...

Outstanding PaperACL 2024

LLM
기준

M4LE\mathbf{M}^{\mathrm{4}}\mathbf{LE}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)을 포괄하는 장문 평가 벤치마크인 M4LE를 제안한다. M4LE는 36개의 NLP 데이터셋으로 구성되어 있으며, 11가지 유형의 작업과 12가지 도메인을 망라하는 포괄적인 테스트 베드를 제공한다. 자연적으로 긴 시퀀스를 포함하는 작업이 부족한 문제를 해결하기 위해, 짧은 시퀀스 작업을 긴 시퀀스 시나리오로 자동 변환하는 기법을 제안한다. 이 시나리오들은 장문 맥락 내 명시적 또는 의미적 힌트에 기반한 단일 또는 다중 관련 스팬의 이해, 그리고 전역 문맥 이해라는 다섯 가지 핵심 능력을 중심으로 LLM의 장문 맥락 이해 능력을 평가한다. 자동 변환 기법을 통해 입력 길이가 1k에서 8k까지 고르게 분포된 인스턴스를 생성할 수 있었다. 11개의 주요 LLM에 대한 평가 결과, 1) 현재 LLM들은 장문 맥락 이해에 어려움을 겪고 있으며, 특히 다중 스팬 주의가 요구되는 작업에서 그 성능이 저조하다. 2) 성능이 우수한 LLM이라도 의미 기반 검색에는 더 큰 어려움을 보인다. 3) 더 긴 텍스트로 미세 조정하고 위치 보간법을 적용한 모델은, 미세 조정 없이 Neural Tangent Kernel(NTK) 인식 스케일링 기법을 사용한 모델과 유사한 성능을 보인다. 본 벤치마크는 이 어려운 분야의 향후 연구를 장려하기 위해 공개한다.

One-sentence Summary

CUHK, Huawei Noah's Ark Lab, HKUST, and collaborators propose M4LE⋅\mathbf { M } ^ { \mathrm { 4 } } \mathbf { L E } \cdotM4LE⋅, 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 KKK, the pipeline estimates the number of source samples required as N=K/LmedN = K / L_{\mathrm{med}}N=K/Lmed​, where LmedL_{\mathrm{med}}Lmed​ denotes the median context length of the source dataset. It then samples NNN 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.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp