HyperAIHyperAI

Command Palette

Search for a command to run...

LLM
Benchmarks

M⁴LE : une banque d'évaluation multi-aptitudes, multi-portées, multi-tâches et multi-domaines en contexte long pour les grands modèles de langage

Wai-Chung Kwan Xingshan Zeng Yufei Wang Yusen Sun Liangyou Li Yuxin Jiang Lifeng Shang Qun Liu Kam-Fai Wong

Résumé

La gestion de longues séquences est devenue une caractéristique essentielle des grands modèles de langage (LLM). Toutefois, l'évaluation de leur capacité à traiter des contextes longs demeure un défi. Cet article introduit M4LE, une banque d'évaluation en contexte long de type multi-aptitudes, multi-portées, multi-tâches et multi-domaines. Elle englobe 36 jeux de données en TALN, couvrant 11 types de tâches et 12 domaines, offrant ainsi un terrain de test exhaustif. Pour remédier à la rareté de tâches comportant naturellement de longues séquences, nous proposons une approche automatique de conversion de tâches à séquences courtes en scénarios à séquences longues. Ces scénarios évaluent la compréhension en contexte long des LLM à travers cinq aptitudes clés : la compréhension de segments pertinents uniques ou multiples dans des contextes longs à partir d'indices explicites ou sémantiques, ainsi que la compréhension globale du contexte. Cette approche automatique permet de générer des instances uniformément réparties sur une plage de longueurs d'entrée allant de 1k à 8k tokens. Notre évaluation de 11 LLM de premier plan révèle que : 1) les LLM actuels peinent à comprendre les contextes longs, en particulier lorsque les tâches nécessitent une attention sur plusieurs segments ; 2) la récupération sémantique est plus difficile pour les LLM compétents ; 3) les modèles affinés sur des textes plus longs avec interpolation positionnelle obtiennent des performances comparables à ceux utilisant des méthodes de mise à l'échelle sensibles au noyau tangent neuronal (NTK) sans affinage. Nous rendons cette banque d'évaluation publiquement accessible afin d'encourager les recherches futures dans ce domaine exigeant.

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.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp