---
title: "L-Eval — paper by An et al. (2024) — summary and ideas"
description: "L-Eval tests how well language systems use long documents and how answer length affects agreement between automated scores and…"
canonical: "https://research.elamur.ai/free/en/papers/an-2024-l-eval-instituting-standardized-evaluation/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/an-2024-l-eval-instituting-standardized-evaluation/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / L-Eval: Instituting Standardized Evaluation for Long Context Language Models

# L-Eval: Instituting Standardized Evaluation for Long Context Language Models

Paper · 2024 · Chenxin An, Shansan Gong, Ming Zhong et al.

**Authors:** [Chenxin An](https://md.research.elamur.ai/free/en/authors/chenxin-an/), [Shansan Gong](https://md.research.elamur.ai/free/en/authors/shansan-gong/), [Ming Zhong](https://md.research.elamur.ai/free/en/authors/ming-zhong/), [Xingjian Zhao](https://md.research.elamur.ai/free/en/authors/xingjian-zhao/), [Mukai Li](https://md.research.elamur.ai/free/en/authors/mukai-li/), [Jun Zhang](https://md.research.elamur.ai/free/en/authors/jun-zhang/), [Lingpeng Kong](https://md.research.elamur.ai/free/en/authors/lingpeng-kong/) and [Xipeng Qiu](https://md.research.elamur.ai/free/en/authors/xipeng-qiu/) · **Year:** 2024 · **Venue:** Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **8** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/an-2024-l-eval-instituting-standardized-evaluation/cited-by/) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.acl-long.776/)
- [PDF](https://aclanthology.org/2024.acl-long.776.pdf)
- [DOI 10.18653/v1/2024.acl-long.776](https://doi.org/10.18653/v1/2024.acl-long.776)

## Summary

A system can accept a long document and still overlook the passage that answers a question, lose track of what the reader asked for, or fail to combine information from different parts of the text. L-Eval makes those failures easier to study. It is an [evaluation benchmark](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) for systems that take long inputs, with 20 subtasks, 508 long documents, and more than 2,000 human-labeled question–answer pairs. The materials include lecture transcripts, fiction, financial calls, academic papers, and Python programs. Some tasks have a definite answer, such as the output of a program. Others ask for a written response, such as a summary of the parts of a meeting relevant to a particular decision.

The paper treats scoring as part of the research problem. An answer can be correct and still receive a low score from a metric that counts shared words or phrases, especially when the benchmark answer is brief and the system gives a detailed explanation. The authors test a simple change called Length-Instruction-Enhanced evaluation, or LIE. They tell the answering system how many words the reference answer contains. On **Natural Questions**, Claude-100k’s F-1 score rises from 9.84 to 57.76 with that instruction. In a separate study using 85 open-ended questions, agreement between the ROUGE-L ranking and the average human ranking rises from 0.5 to 0.8 on Kendall’s τ, a measure of ranking agreement. GPT-4 judging reaches 1.0 after length prompting on that comparison.

The benchmark compares 16 commercial and open-source systems. GPT-4-32k leads the reported closed-ended comparison, while Claude-100k leads the open-ended comparison judged by GPT-4. Human and automated judges show a larger gap between the tested commercial and open-source systems than word-overlap scores suggest. Extending the context of open-source systems helps on several closed-ended tasks, but some extended systems produce more unhelpful answers to open-ended prompts when the input grows. The experiments also find that a change to how positions are represented can make topics easier to find while making math problems with worked examples harder to solve. Taken together, the results distinguish the amount of text a system can accept, the work it can do with that text, and the ability of a scoring procedure to recognize a good answer.

## Deep dive: L-Eval: Instituting Standardized Evaluation for Long Context Language Models

L-Eval tests how well language systems use long documents and how answer length affects agreement between automated scores and human judgments. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a longer input makes possible

Many of the benchmarks the authors discuss were designed around short prompts. In the examples they cite from code, mathematics, and broad subject knowledge, most test samples contain fewer than 4k tokens. A token is a unit of text as divided up by the system’s tokenizer. It can be a word, part of a word, or another text element. A context limit determines how many such units a system can process in an input. A short benchmark can be demanding in its own right while leaving much of a longer context window unused. Success on its questions supplies little evidence about whether adding more text helps when the evidence itself is long.

A long document introduces several distinct demands. A question might concern an identifiable detail buried in a transcript. It might require combining definitions and examples from a course before deciding which choices are valid. A meeting summary might require following one proposal through several speakers and omitting exchanges about unrelated business. Those inputs could be similar in length while placing different demands on [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/), [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/), and [summarization](https://md.research.elamur.ai/free/en/topics/summarization/). A benchmark that concentrates on one type of response will mostly reveal how systems handle that particular combination of document, instruction, and answer.

The authors describe Scrolls and ZeroScrolls as important steps towards explicitly testing long inputs. In their account, those suites concentrate on summarization and questions that call for an answer composed in the system’s own words. Typical task averages are below 16k tokens. L-Eval’s authors want a broader spread of document lengths, subject areas, and question types. They also want more tasks with answers that can be checked directly. Such tasks give the study a way to measure performance without having to decide how much detail an acceptable prose answer should include.

#### A design change and a test of its consequences

The paper situates that goal alongside work on making [language models](https://md.research.elamur.ai/free/en/concepts/language-model/) process longer sequences. Long inputs increase computational demands in both training and inference, the stage at which a trained system produces an answer. Some of the earlier work changes the attention mechanism, which controls how information at different positions contributes to processing the input. Other approaches divide the text into chunks and carry information from previous chunks into the processing of the next one. These approaches address how a long sequence can be processed with the resources available.

A separate line of work concerns position. If a system has been trained on sequences of a particular length, processing a longer sequence means handling positions outside the range it typically encountered. The paper discusses approaches that put more emphasis on nearby text, as well as approaches that modify the representation of position. Among the latter are position interpolation and NTK-aware scaling, both discussed in connection with rotary position embeddings, or RoPE. The benchmark gives the authors a way to check whether the ability to process these extended positions carries over to a specific task. [RoFormer](https://md.research.elamur.ai/free/en/papers/su-2021-roformer-enhanced-transformer-rotary-position/)

The paper also distinguishes L-Eval from earlier ways to assess sequence processing. Long Range Arena uses classification problems, and CAB compares efficient attention designs on accuracy and efficiency. In language experiments, researchers have also used perplexity on long passages. Perplexity measures how well a system predicts the text it is given, with lower values indicating that the observed text was less surprising to the predictor. The authors cite prior work questioning how reliably perplexity reflects the ability to use distant information in a downstream task. Predicting a passage and answering a question about how its parts fit together place different demands on the system. L-Eval evaluates the response to an explicit instruction. [Long Range Arena](https://md.research.elamur.ai/free/en/papers/tay-2020-long-range-arena-benchmark-efficient/)

#### Why a reference answer can be hard to use

A definite answer and an acceptable written answer present different grading problems. For a true-or-false question, the expected response can be identified in advance. For a summary or an explanation, different responses can be accurate while using different wording, covering different secondary details, or giving the same point at different levels of specificity. A reference remains useful because it shows what the question was intended to elicit. Its wording and length also create a particular target for a metric based on overlap.

The authors describe earlier long-context benchmarks as relying heavily on such metrics. ROUGE, for example, compares a generated answer with a reference by matching units of text. An n-gram is a sequence of adjacent units, such as a word or a pair of words, used to make that comparison. The paper cites earlier work on the limits of overlap-based assessment and on having another language system judge an answer. It adapts judging to long inputs, where supplying the complete source to a judge can be impractical. That leaves the judge with the task instruction and reference as its main evidence, which changes what it can verify. [ROUGE](https://md.research.elamur.ai/free/en/papers/lin-2004-rouge-package-automatic-evaluation-summaries/) · [Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena](https://md.research.elamur.ai/free/en/papers/zheng-2023-judging-llm-judge-mt-bench/)

L-Eval therefore standardizes several choices at once. It specifies the source materials and the instructions, separates tasks by the kind of answer they admit, and compares ways of assessing the open-ended responses. The authors discuss concurrent evaluations such as LongBench and S3Eval in terms of differences in task coverage and scoring. The distinctive question they pursue is how confidently a score can distinguish between systems that have both been asked to work with long documents. That question depends on the demands of the prompt and the evidence available to the scorer as much as it depends on the nominal context window.

### The method, step by step

#### Start with the task a reader would perform

An L-Eval item pairs material to read with an instruction and an expected answer. The material may be a document, a group of documents, a conversation, a program, or worked examples that precede a new problem. The instruction defines what to do with that input. The reference provides the standard for scoring, whether it is a set of correct options or a prose answer. Several questions can share a long document while requiring different evidence or different kinds of reading. A benchmark count of documents consequently describes a different part of the collection from a count of instructions.

The authors first separate closed-ended tasks from open-ended tasks. In the closed-ended group, the expected answer takes a form that can generally be checked directly. The group includes multiple-choice comprehension, true-or-false judgments, and deducing the final output of a program. The open-ended group includes composing answers to questions, giving feedback on papers, and producing summaries. A useful open-ended answer needs to satisfy the request and preserve the relevant content, which can be expressed in several ways. The scoring approach follows that difference.

How an L-Eval task goes from document to score The steps in order.

#### Write new questions where coverage is thin

The authors create 4 tasks from scratch, contributing 378 query–response pairs. These additions target settings that the authors consider underrepresented, including tasks whose answers are easy to grade in spite of the amount of reading involved. The new tasks draw on advanced lectures, science fiction, Python source, and corporate earnings calls. Their construction differs because the expected answer comes from a different kind of evidence in each setting. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/)

For Coursera, the authors work through courses on data science and machine learning and turn video subtitles into long lecture inputs. Subtitles from a week of course material can be combined into one lecture. The authors write choices and answers themselves. A question about adapting to the communication expectations of a new team, for instance, asks the reader to select several compatible actions. It is designed so that recognizing one plausible choice is insufficient for full credit. The other choices must be evaluated in light of the lecture and the wording of the question.

SFiction asks whether the system can keep track of which world a question concerns. The authors select stories whose premises depart from ordinary physical or factual expectations. They can then pose related true-or-false questions about the story and about the real world. A proposition about reaching the center of the Earth, for example, has a different answer under the fictional conditions described in the document. The two questions test whether the system can use the source when asked about the story and use factual knowledge when asked about reality. The distinction matters because a system that freely invents events might sometimes agree with the fictional answer by chance. The task’s combined score reflects both kinds of judgment.

For CodeU, the input contains Python code and the question asks for the program’s final output. Some functions come from NumPy and others come from a string-processing codebase that the authors build. Descriptive names are replaced with generic operation labels throughout the code. This makes a recognizable function name less useful as a shortcut to its behavior. The intended work is to locate the relevant definitions, follow which functions are called, and determine how the successive operations affect the result. The authors execute the code to establish the reference outputs. Human work therefore goes into structuring the programs and selecting functions, while the expected answer comes from what the program actually does.

LongFQA fills a different gap. The authors seek lengthy financial inputs because the earlier financial question-answering data they discuss, including FinQA, use short contexts. They collect public earnings call transcripts from company investor relations materials and write questions about what the calls disclose. A question about management’s restructuring actions can require a response that brings several related points together. The answer belongs to the open-ended group because the relevant actions can be described in different wording. [FinQA](https://md.research.elamur.ai/free/en/papers/chen-2021-finqa-dataset-numerical-reasoning-over/)

#### Change existing instructions to test different skills

The authors re-annotate 5 public datasets. This gives them a way to change what an item asks the system to do without replacing all the underlying material. For GSM(16-shot), they start from 100 problems in GSM8k and put worked solutions before each test problem. The worked solutions are examples in the prompt, so the system can use their style and reasoning when answering the new problem. This is [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/). Of the 16 examples, 8 come from a collection of worked prompts and 8 are written by the authors for selected problems. The worked reasoning makes the prompt long even though the test question itself can be short. [Training Verifiers to Solve Math Word Problems](https://md.research.elamur.ai/free/en/papers/cobbe-2021-training-verifiers-solve-math-word/)

On QuALITY, the authors retain multiple-choice reading questions and add instructions that are meant to require broader coverage of a story. An ordinary question about a character’s choice may be answerable from the passage describing that choice. Asking who speaks the longest piece of dialogue requires identifying and comparing candidate passages before assigning the speaker. Other new questions ask for a count across the story or for information in the longest sentence. The authors use automatic methods to locate source sentences and annotate the expected answers by hand. The added items stress global reading within a dataset that also contains questions about particular passages.

TopicRet changes a task that originally asked for the first topic in a long conversation. The authors add requests for the second and third topics, which demand discrimination among discussions beyond the opening. A response is expected to identify the requested topic, rather than offer a broad recap of the conversation. The change is related to prior work on the effect of evidence position. A system can handle material at the beginning or end of a prompt more readily than material farther inside it. TopicRet uses order within a conversation as a concrete way to make that distinction testable. [Lost in the Middle](https://md.research.elamur.ai/free/en/papers/liu-2023-lost-middle-language-models-use/)

Openreview and SPACE show how varying the instruction can change an open-ended task even when the source is held fixed. For Openreview, the authors select papers with well-written reviews and ask for an abstract, a related-work section, or feedback with questions and suggestions. The requested form changes what a satisfactory response should cover. For SPACE, they use collections of hotel reviews and introduce requests covering different aspects of the guest experience. A broad overview and a question about a specific aspect of a stay give different roles to the same observations. The authors use GPT-4 with examples to construct review-summarization instructions. For the academic task, the paper frames feedback as help for authors revising work and discourages its use by peer reviewers.

#### Verify that the evidence supports the reference

The remaining 11 tasks come from existing sources and go through additional selection and cleaning. The authors use Claude-100k to screen items by asking it to produce an answer and identify supporting material. A substantial disagreement with the reference, or a response indicating that the answer cannot be inferred, triggers manual review. A person then decides whether to correct the reference or discard the item. The screening response serves as a reason to examine the question. The final decision depends on reviewing its evidence.

The specific problems vary across datasets. In NarrativeQA, some questions name a central character who does not appear in the document supplied to answer the question. In Qasper, the authors remove unanswerable items and extractive versions of answers, and investigate cases where identical questions have contradictory references. In Natural Questions, they group questions answerable from the same Wikipedia document and remove duplicates. These changes matter especially for long-context assessment. An answer that cannot be found because the relevant material is absent would otherwise look like a failure to read a long input. [NarrativeQA](https://md.research.elamur.ai/free/en/papers/kocisky-2018-narrativeqa-reading-comprehension-challenge/) · [Natural Questions](https://md.research.elamur.ai/free/en/papers/kwiatkowski-2019-natural-questions-benchmark-question-answering/)

Other selections preserve a feature of the source task. QMSum contributes meeting questions chosen because a simple retrieval approach would have difficulty answering them. CUAD contributes contract questions that ask for relevant text, while MultiDoc2Dial contributes dialogue grounded in multiple documents. GovReport and BigPatent ask for summaries of long individual texts. Multi-News uses several news inputs as the basis for a combined account. The sources give L-Eval both local evidence problems, such as identifying a clause, and tasks that require selecting material across a whole input. [Multi-News](https://md.research.elamur.ai/free/en/papers/fabbri-2019-multi-news-large-scale-multi/)

The authors check agreement during the annotation of the newly created datasets. Three doctoral students participate in this stage. Fleiss’s kappa, a measure of how much agreement remains after accounting for agreement expected by chance, is 0.712 for Coursera and 0.775 for SFiction. The two figures refer to agreement about the task labels. They come from a different procedure than the later human study, in which evaluators judge the quality of generated answers. CodeU uses execution to establish the outputs for its reference answers.

#### Generate responses with and without a length target

The benchmark uses task-specific prompt templates. When an input exceeds the budget for a condition, the authors truncate the document from the right, keeping the beginning. That rule has a concrete consequence. Two systems can receive the same question but see different amounts of the document. A longer budget may preserve information the shorter condition loses. Some comparisons also put a system designed for a longer context under a shorter cap, so the document allowance has to be read separately from the system’s name.

For open-ended requests, the authors test ordinary prompting and length-instruction prompting. In the latter condition, they count the reference answer’s words and include that count in the request. If the reference is a 50-word summary, for instance, the prompt asks the system to respond in 50 words. The procedure supplies an intended level of detail to the answering system and leaves it to produce the content. It takes place before generation, so the resulting answer can differ in content as well as length. LIE does not require further training for the system to use that instruction.

The length difference reported with some experiments can be written as follows.

```
ΔL = Lgen − Lref
```

Here ΔL is the difference between the generated and reference lengths, Lgen is the generated answer’s length, and Lref is the reference answer’s length. The subtraction sign indicates that a positive value means a longer generated answer and a negative value means a shorter one. These answer-length comparisons concern words. The input budgets reported elsewhere are in tokens. Providing a word count for an answer and changing how many input tokens a system can read are separate interventions.

#### Score definite answers and assess prose

For the exam-style evaluation, the authors describe an exact-match scheme. A correct answer receives its allotted share of the total percentage score. The weight for an individual question under that scheme is given by the following rule.

```
q = 100 / N
```

Here q is the question’s full-credit weight in percentage points, 100 is the total available percentage score, and N is the number of questions. The slash denotes division. The general scheme has task-specific rules. The Coursera appendix describes awarding a quarter of the available points when an answer falls short of selecting all correct choices. SFiction averages performance on questions about the fictional source and questions about reality. Those details matter when reading an accuracy column as a measure of a specific task.

For open-ended evaluation, the authors compare lexical scores, human ratings, and pairwise judging. F-1 is used for question-answering tasks and balances how much of the generated wording matches the reference with how much of the reference appears in the generation. ROUGE variants are used for summarization. ROUGE-L, abbreviated R-L in the results, looks at a shared sequence of text units in their original order, allowing units between the matches. Both measurements are sensitive to how a system distributes its answer across relevant terms, explanations, and wording that the reference omits. They give the authors a relatively economical way to score many outputs.

Human evaluators assign a score from 1 to 5. At the low end, the answer is unhelpful for the question. At intermediate levels, it can be partly correct or contain useful information alongside errors and omissions. At the high end, it is comparable in quality to a good human response. Evaluators are given a reference and see outputs without the system name. They practice on a NarrativeQA document that the authors have scored and receive feedback before the main work. The authors generate answers under both prompting conditions for this study and use greedy decoding, which takes the most strongly preferred next token at each generation step.

In pairwise judging, an evaluator sees two answers and compares them using the instruction and the reference. The usual comparison answer is from Turbo-16k-0613. Full inputs are generally too long to include in the judging prompt alongside the comparison, so the judge is told to withhold credit for elaborations it cannot corroborate from the reference. The authors also change the order of the answers and repeat the comparison to reduce the influence of their positions. The benchmark reports the resulting comparisons as win rates, with ties recorded. The scoring comparison with human judgments uses Kendall’s τ, a coefficient that increases as pairs of systems appear in the same relative order. A high value shows agreement in rankings. It leaves room for disagreement about individual responses.

#### Set up the positional scaling tests

The benchmark includes systems whose context was extended by changing how positions are represented. The appendix gives the rotary frequencies used as the starting point for the NTK-aware variants. In the original setting the frequency for an indexed component has this form.

```
θₙ = 10000^(−2n/d)
```

Here θₙ is the rotary frequency at index n. The index identifies the frequency component, and d is the dimension of an attention head, one of the components that process relationships among positions. The number 10,000 is the original RoPE base as written in this expression. The caret indicates exponentiation, the minus sign negates the exponent, and 2 multiplies n before division by d. Changing the base changes the progression of frequencies that encode position.

The fixed form of NTK-aware scaling changes that base according to the desired increase in context length.

```
B = 10,000 × t^(d/(d − 2))
```

Here B is the adjusted base, 10,000 is the original base, t is the scale-up factor relative to the pretraining context, and d is the attention-head dimension. The multiplication sign combines the original base with the powered scale factor. The caret raises t to the exponent given by d divided by d minus 2. The appendix reports using t = 8 in its fixed-scaling experiments, after observing that t = 4 could still yield random tokens on input of length 16k.

The dynamic version chooses the scale factor using the input actually presented.

```
t = L / l
```

Here t is the scale-up factor, L is the current input length, and l is the pretraining context length. Both lengths concern the sequence presented to the system or used in training. Substituting this scale factor into the rule for B gives the paper’s dynamic form. Its two additional variants change the quantity used in place of t.

```
Bbias = 10,000 × (L/l + 1)^(d/(d − 2))
```

Here Bbias is the base for the bias variant, L is the input length, l is the pretraining length, and d is the head dimension. The plus sign adds the bias of 1 to the ratio before that quantity is raised to the exponent. The original base 10,000 then multiplies the result.

```
Bweighted = 10,000 × (L/l × 2)^(d/(d − 2))
```

Here Bweighted is the base for the weighted variant, L and l give the input and pretraining lengths, and d is the head dimension. The factor 2 multiplies the length ratio inside the parentheses. The rescaled ratio is raised to the same exponent and multiplied by 10,000. These variants change frequencies at inference time. A separate comparison uses a position-interpolation baseline further trained on long dialogues. The authors release the L-Eval data, evaluation code, and generated outputs.

### Experiments and results

#### What the baseline systems were given

The baseline study covers 4 commercial systems and 12 open-source counterparts. The commercial conditions include Claude-100k, GPT-4-32k, and the short and long Turbo variants. The open-source side includes pretrained Llama versions, chat-tuned variants, systems further tuned with position interpolation, and settings based on NTK-aware scaling without further training. Other baselines include Chatglm2, XGen, and MPT. Some rows in the result tables are different input conditions for the same system. A comparison between rows can therefore concern a change in document allowance even when it uses the same trained weights. [GPT-4 Technical Report](https://md.research.elamur.ai/free/en/papers/openai-2023-gpt-4-technical-report/) · [LLaMA](https://md.research.elamur.ai/free/en/papers/touvron-2023-llama-open-efficient-foundation-language/) · [Llama 2](https://md.research.elamur.ai/free/en/papers/touvron-2023-llama-2-open-foundation-fine/)

Document lengths are measured with the Llama2 tokenizer. The closed-ended CodeU inputs, for example, average 31,575 tokens and reach 36,509 tokens in the longest input listed for that task. NarrativeQA averages 62,335 tokens, with a maximum of 210,541 tokens in the dataset table. At a shorter end of the collection, the TOEFL task averages 3,907 tokens. These are lengths of benchmark materials. The input actually presented can be shorter because the experiment imposes a cap and truncates the source. This distinction is especially important when a task depends on an end-of-document event or on a function defined outside the retained segment. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/)

For the retrieval comparison, the authors divide material into 1k-token chunks and use a retriever to select 4 pieces for the short Turbo system. The sparse method is BM25, which selects using textual matches. The dense method uses OpenAI Ada embeddings, which represent text numerically for similarity search. Both methods change what the answerer sees. With retrieval, it receives selected chunks, potentially drawing on material from different parts of the source. In the longer Turbo condition, it receives a longer contiguous input up to the applicable cap. [Information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/)

#### Closed-ended tasks

GPT-4-32k obtains the highest reported average in the main closed-ended table, with 73.11 accuracy. Claude1.3-100k follows at 65.97 and Turbo-16k-0613 scores 60.73. The table’s average summarizes its displayed task columns. TopicRet is also closed-ended but has a separate analysis, because cutting a conversation down to fit a short window can remove the topic the system is meant to retrieve.

Average accuracy of selected systems on the L-Eval closed-ended comparison GPT-4-32k leads the comparison, and the long Turbo input scores above both retrieval-assisted Turbo settings.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| GPT-4-32k (this paper) | 73.11 |
| Claude1.3-100k | 65.97 |
| Turbo-16k-0613 | 60.73 |
| AdaEmb-Turbo-4k-0613 | 49.73 |
| BM25-Turbo-4k-0613 | 49.65 |

The averages combine tasks of markedly different difficulty. GPT-4-32k reaches 96.00 accuracy on the GSM math task and 82.17 on QuALITY. Its score on CodeU is 25.55, the strongest displayed result for that task, against 17.77 for Claude1.3-100k and 12.22 for Turbo-16k-0613. A top average thus coexists with considerable difficulty following enough of a long program to deduce its output. On Coursera, GPT-4-32k scores 75.58, compared with 63.51 for the longer Turbo condition. Reading the results by task shows where the leaders diverge and where they both handle the supplied material more successfully.

The retrieval comparison has a particularly clear task-level example in GSM. Both retrieval-assisted Turbo conditions score 23.00 while Turbo-16k-0613 scores 84.00. The prompt contains worked examples intended to guide solution of a new problem. A search for chunks similar to that problem may return some useful material, but the selection protocol does not preserve the prompt as a sequence of demonstrations. Coursera gives a different pattern. BM25-assisted Turbo scores 63.80, close to the long Turbo system’s 63.51. The authors observe that lectures frequently contain definitions and explanatory passages that are amenable to retrieval. The results distinguish that setting from one in which the ordering or completeness of a long prompt is part of its function.

#### Open-ended judgments

The primary GPT-4 judging comparison uses 96 questions from the open-ended portion of L-Eval. The paired answers are shown in both orders, giving 96×2 judging rounds. The reference system in the comparison is Turbo-16k-0613, which has a reported win rate of 50.00 against itself. Claude1.3-100k leads the comparison with a win rate of 60.94, followed by GPT-4-32k at 54.16. The short Turbo condition scores 39.83. Both retrieval methods score above the short condition in this comparison, with 46.84 for Ada embeddings and 44.01 for BM25.

GPT-4 judged win rates against Turbo-16k on the L-Eval open-ended subset Claude leads the open-ended comparison, and retrieval moves the short Turbo system closer to the reference system.

**The numbers**

| System or setting | win rate % |
| --- | --- |
| Claude1.3-100k (this paper) | 60.94 |
| GPT-4-32k | 54.16 |
| Turbo-16k-0613 | 50.00 |
| AdaEmb-Turbo-4k-0613 | 46.84 |
| BM25-Turbo-4k-0613 | 44.01 |
| Turbo-4k-0613 | 39.83 |

These win rates reflect responses judged relative to a particular opponent and under a particular reference-based judging protocol. A rate above the self-comparison baseline means the judge preferred the system overall once the tied outcomes were taken into account. Claude’s lead comes from the open-ended comparison, where the authors emphasize longer input materials and tasks requiring broad coverage of the context. The closed-ended average measures a different collection of requests. The rankings can therefore differ even when the same systems appear in both experiments.

Among the open-source settings, Llama2-13b-chat with a 4k input cap scores 42.44 in the GPT-4 comparison. Longchat-13b-16k and Vicuna1.5-13b-16k each score 34.11. The greater input allowance of the extended systems comes with changes in their training or positional representation, and their results are specific to those configurations. In this judged subset, access to more material does not ensure that a response will satisfy the request as well as an answer from the shorter baseline.

GPT-3.5 also judges open-ended outputs. Its aggregate comparison covers the 96-question set as well as the 85 questions used for human evaluation. It gives Claude1.3-100k a win rate of 58.68 and GPT-4-32k a rate of 56.32 against the same Turbo reference. The broad ordering of those leading systems is shared by the two judges, while the details change. For instance, Ada embeddings and BM25 receive 45.36 and 45.30 with GPT-3.5, a closer comparison than with GPT-4. The paper’s account of a larger advantage for dense retrieval in open-ended tasks fits the GPT-4 comparison. The alternative judge makes the measured size of that advantage less stable.

#### Human ratings and overlap scores

The human comparison uses 85 questions drawn from 12 long documents. Three annotators evaluate responses from 7 systems on the 1 to 5 scale. The paper reports a Fleiss’s kappa of 0.66 and a system-level Kendall’s τ of 1.0 for agreement among evaluators. Agreement on the overall ordering can coexist with disagreements about the exact level of specific outputs. That difference is relevant because the automatic-metric study asks principally whether systems are ranked in a similar order.

In the length-instructed condition of this human study, Claude-100k receives an average human rating of 4.04 and Turbo-16k-0613 receives 3.58. Yet the overlap results favor Turbo for these two systems. It scores 27.99 on F-1 and 32.93 on ROUGE-L, compared with Claude’s 26.39 and 31.57. The GPT-4 judge on this subset gives Claude 60.88 and Turbo 50.00, ordering them as the people do. This example gives substance to the authors’ claim about the evaluation gap. Two systems can have broadly similar overlap scores while human readers and a pairwise judge find a clearer difference in the quality of their answers.

The full open-ended results show why it is worth retaining the individual task columns alongside such findings. For the Natural Questions portion of the full F1 comparison, BM25-assisted Turbo scores 53.73, the dense retrieval condition scores 49.66, and Turbo-16k-0613 scores 45.90. On LongFQA, the direct long-input system scores 45.36, compared with 40.79 for BM25 and 39.69 for the dense retriever. Those figures concern overlap in particular datasets, while the win rates concern judged quality on a smaller and more varied question set. Both comparisons inform the analysis, with different evidence behind their rankings.

### What the ablations show

#### An answer-length instruction changes the measurement

The paper’s clearest prompt comparison generates answers with and without the reference word count. Claude-100k on Natural Questions shows the largest illustrative change in the paper’s discussion. Its answers exceed the reference by a reported length difference of 135 in the ordinary condition and 1 in the length-instructed condition. F-1 rises sharply as the lengths converge, while the GPT-4 judged score for the same dataset falls from 56.19 to 51.00. That combination matters. The length target makes the reference and answer more comparable under lexical matching, while the judge gives the new answer a lower score. The results are consistent with much of the F-1 improvement coming from the change in response granularity.

Natural Questions F-1 with and without the L-Eval length instruction Length prompting improves lexical overlap in both systems, with a much larger change for Claude.

**The numbers**

| System or setting | F-1 |
| --- | --- |
| Claude-100k without length instruction | 9.84 |
| Claude-100k with length instruction (this paper) | 57.76 |
| Chatglm2-32k without length instruction | 31.45 |
| Chatglm2-32k with length instruction | 37.94 |

The same intervention can matter in different ways across tasks. For the SPACE review summaries, Claude’s ROUGE-L goes from 15.43 to 18.61, and its GPT-4 judged score goes from 45.65 to 61.40. For NarrativeQA, the F-1 score goes from 10.39 to 19.09, while the judge’s score goes from 68.96 to 57.77. A word budget can make an otherwise diffuse answer more responsive. It can also reduce the space for explanation. A change in overlap alone cannot distinguish those outcomes, which is why the paper compares metrics against judgments on the same generated outputs.

The ranking analysis across the 85 open-ended questions shows improved agreement with human ratings after length prompting. ROUGE-L moves from 0.5 to 0.8 on Kendall’s τ, and the GPT-4 evaluator reaches 1.0. The authors also compare rankings from human readers, both automated judges, and lexical metrics. Their visualization shows less disagreement among those rankings when the system is given a target length. The result concerns the tested systems and both prompting conditions. A benchmark that supplies an expected length is measuring responses to a more specific instruction than one that leaves the scope open.

The human scores illustrate that the intervention changes the task facing the answerer as well as the behavior of the scorer. For Claude-100k, the mean human score is 3.08 with ordinary prompting and 4.04 with length instructions. For Llama2-13b-chat, the corresponding scores are 2.31 and 3.15. The target can direct a system toward the level of detail human graders expect. The paper’s comparison therefore captures both a reduction in the overlap penalty for mismatched answer lengths and any changes in substantive answer quality induced by the instruction.

#### A longer context helps some instructions more than others

Comparisons among the open-source systems show gains on several closed-ended tasks after context extension and further tuning. For instance, Vicuna1.5-13b-16k scores 53.96 on QuALITY and 68.40 on TOEFL, while Llama2-13b-chat scores 42.57 and 60.96. The open-ended judging result discussed earlier orders the two the other way around. To investigate why, the authors examine outputs that fail to follow the requested task closely enough to be useful.

They split the analyzed test cases into a short-input portion and a portion with sequences longer than 4k. For Turbo-16k, the number of invalid outputs stays small on both sides of the split. For Vicuna1.5-16k, invalid outputs increase substantially in the longer portion. The human ratings tell a related story. With length instructions, Vicuna’s 7b extended system receives 125 ratings at Level-1 and Longchat’s 7b extended system receives 113, compared with 41 for Llama2-13b-chat. Those are counts of ratings pooled across annotators. They describe a concentration of unhelpful answers, beyond a general shift in average quality.

The authors suggest that closed-ended question styles may be more familiar from training. The format can make it easier to recognize the instruction and provide an answer of the requested kind. The appendix describes extended open-source systems as doing better at conventional document summaries than at requests to summarize from a particular perspective. A generic summary can be well formed and still omit what the reader wanted. The pattern across task types supports the interpretation that instruction following is part of the difficulty. The comparisons leave training data, tuning procedures, and the input allowance entangled, so familiarity with a format remains an explanation proposed by the authors.

#### Retrieval depends on what needs to be retained

The retrieval study offers a comparison between selected evidence and a longer contiguous stretch of the source. A passage containing the definition asked about in a lecture can supply much of the evidence needed. A question about the final state of a program can require a caller, a function definition elsewhere, and another operation that alters the result. A retriever may identify relevant text but leave out a dependency needed to complete the answer. This difference fits the strong showing for the retrieval baselines on some lecture questions and their weak performance on CodeU and GSM.

The authors also note cases where lexical scores for retrieval-assisted summaries are similar to or higher than those for long-input summaries. They suggest that a retrieved paragraph sometimes already resembles a summary. That can be enough to cover many of the terms in the reference. In other cases, the selected passages omit the evidence the request calls for, and the answer reports that the information is unavailable. These observations give a qualified account of the aggregate comparisons. The quality of the result depends on the retriever’s ability to identify what the question requires and on the distribution of that evidence through the source.

The contrast between retrieval and a larger direct input is particularly visible where the answer requires a global operation. Counting sentences calls for coverage of the whole document. Identifying a topic by its place in a conversation requires enough of that conversation to reconstruct the order of discussion. A set of relevant excerpts can contain the wording of a topic while dropping the material that establishes its position in the sequence. This is why an accurate search result and a sufficient context for answering can come apart, even when both concern ostensibly relevant passages.

#### Positional changes favor retrieval and reasoning differently

The authors vary the RoPE base and compare topic retrieval with math problems accompanied by lengthy demonstrations. They describe retrieval accuracy as improving over the sweep from 20k to 160k, with performance appearing to level off once the base reaches 60k. Math performance trends in the opposite direction as the base increases. The math problems require following a worked-example prompt and producing a solution, whereas TopicRet scores the ability to name a requested topic from a long dialogue. The comparison shows that tuning a positional setting for better access on one of these tasks can yield a setting that is worse on the other.

A second scaling analysis truncates Coursera inputs at different lengths and compares the dynamic rule, its bias and weighted variants, and a fine-tuned position-interpolation baseline. The bias variant performs best in the range between 4k and 8k input tokens, while the weighted variant is more robust at 16k. Varying the cap here changes how much lecture text the system receives. Varying the scaling rule changes how it represents positions in that text. The results show an interaction between those choices. A rule that performs well at one input length can lose its advantage when the sequence becomes longer.

Two changes to task construction also show why the benchmark includes more than one kind of length test. The dialogue task distinguishes the systems more effectively when they retrieve the second and third topics, because the first topic is too easy to retrieve to tell the systems apart reliably. In GSM, the authors compare prompts with 8 and 16 worked examples. Turbo-16k-0613 rises from 79% accuracy with the shorter set to 84% with the longer one. The added examples were selected and annotated by the authors, so the comparison changes both the amount of demonstration and its content. Together these experiments show how the placement and role of added material can matter more than the amount of text alone.

### Limitations

#### Limits the authors identify

The paper’s formal limitations discussion focuses on contamination. If documents or question–answer pairs were included in training data, a system may recognize material that the benchmark is intended to present as a reading task. Such overlap can inflate measured performance and weaken its value as evidence of generalization. Adding documents that postdate training can help for a particular comparison. Those documents can later enter another training collection. The authors discuss renewing the benchmark with newly annotated long-context material and emphasize the cost of doing that repeatedly. The paper offers no contamination audit that establishes the training exposure of the compared systems.

The open-ended evaluation also has practical limits that the authors report directly. Each human annotator spends around 30 hours assessing the 85 questions across 7 systems, about 4 working days. In the authors’ preliminary GPT-4 judging experiment across 4 datasets, the cost is $125. They consequently use a selected 96-question subset for the main GPT-4 judged comparison. These constraints explain the division of labor in the results. Lexical metrics cover more of the benchmark, while human and GPT-4 judgments provide more intensive assessment on subsets.

A long input can also be impractical to give to the judge in full. The paper’s instruction to discount details unsupported by the reference reduces the risk of favoring a longer response just because it contains more specifics. The judge’s effective source of evidence is still the reference and instruction. If two answers differ on a detail absent from the reference, the judge has limited means of establishing which is grounded in the document. That is a constraint on what the reported win rates can measure even when answer order is balanced.

#### Limits visible in the setup

The stated context window, the actual input budget, and the amount of evidence visible to the system are different quantities. Right truncation can remove material needed for an answer, especially on a task where a relevant event, function, or passage occurs late in the source. The authors acknowledge the force of this problem in TopicRet by excluding short-context systems from the corresponding overall comparison. Elsewhere, a score under truncation reflects both how well the system used its input and whether crucial material survived. A nominally long-context baseline can also be evaluated with a shorter cap in an individual experiment, as happens for the MPT condition in the main closed-ended table.

For similar reasons, the closed-ended and open-ended leaders provide evidence about benchmark performance under their respective settings. They do not isolate the causal benefit of a particular context window. The systems differ in their training and adaptation, the documents differ across the task groups, and the scorers rely on different evidence. On the open-ended side, Claude’s high score is compatible with an advantage from seeing more of the source, as the authors propose. Quantifying the role of that advantage would require holding the rest of the system and task fixed while varying what the answerer sees.

LIE gives every system a comparable signal about how much detail the reference contains. The target is information available to the benchmark designer because the reference already exists. A real user may specify a budget for a summary, but a natural question can leave the intended answer length implicit. Results with the exact reference length describe how well the systems answer when given that additional guidance. In particular, the change from ordinary to length-instructed evaluation cannot be read solely as a correction on the scoring side. The system generates a new answer, and that response can change in content and organization.

The correlation study also has a limited unit of analysis. A Kendall’s τ of 1.0 for the GPT-4 evaluator in the length-instructed condition describes agreement with the human ordering on that study. The human panel consists of specialist annotators, and its comparison covers the selected questions and systems. It leaves open whether the same ordering would hold on different documents, across a different set of baselines, or among readers using different criteria for a good answer. Agreement over systems can conceal individual judgment errors, including source details the automated judge cannot verify.

The retrieval results apply to the specific short Turbo configuration, chunking strategy, and pair of retrievers the authors test. More fundamentally, the comparison changes both the quantity and arrangement of the text the answerer sees. A selected passage could recover a late detail that direct truncation would discard. The same selection could break a sequence of demonstrations or omit a step needed for reconstruction. The paper identifies concrete examples of each pattern. Its aggregate differences establish the tradeoff for this setup, without resolving how other methods of selecting and arranging evidence would score.

Finally, the benchmark spans source types and instructions that put different demands on the answering system. A low CodeU score could arise from failing to find a definition, misunderstanding an operation, or losing track of the program state. An invalid summary could reflect trouble with the instruction, relevant evidence, or generation of the requested form. The benchmark records the outcome and, through its task contrasts and follow-up analyses, gives evidence about plausible causes. Establishing the source of every error would require a finer-grained inspection of the reasoning and evidence used in individual answers.

### What came after

[HELMET](https://md.research.elamur.ai/free/en/papers/yen-2024-helmet-evaluate-long-context-language/) takes up the same broad evaluation problem in its own right. Its stated subject is how to evaluate long-context systems effectively and thoroughly. L-Eval provides a point of comparison because it makes thoroughness concrete in two ways, through varied reading demands and through comparisons of scoring procedures. The link between the papers is the design of an evaluation that distinguishes capabilities across long inputs. The citation establishes that connection without specifying which L-Eval datasets, prompts, or judging choices HELMET uses.

[Bridging Context Gaps](https://md.research.elamur.ai/free/en/papers/liu-2024-bridging-context-gaps-leveraging-coreference/) focuses on a particular problem within long-context understanding. [Coreference resolution](https://md.research.elamur.ai/free/en/concepts/coreference-resolution/) connects mentions that refer to the same person, object, or other entity. An answer can depend on recognizing that a later pronoun or description refers to something introduced much earlier, even when the two passages are both visible. The later work’s stated approach is to use coreference resolution to address such gaps. Its connection to L-Eval is at the level of the reading problem. L-Eval tests behavior over extended sources, while the later work identifies a linguistic relation that can be used to improve understanding across those sources. The citation does not establish a result on any particular L-Eval task.

[Llama Scope](https://md.research.elamur.ai/free/en/papers/he-2024-llama-scope-extracting-millions-features/) addresses [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) by extracting features from Llama-3.1-8B with sparse autoencoders. A feature analysis concerns the internal representation of information. L-Eval measures the answers produced when a system is asked to select or combine information in a long input. The two projects thus concern different levels of analysis that can meet in a study of long-context behavior. The citation identifies L-Eval as part of the later paper’s scientific context. It does not establish whether the feature analysis used L-Eval outputs or tested the benchmark’s findings on answer length, retrieval, or positional scaling.

## Cite

Cite as Chenxin An, Shansan Gong, Ming Zhong, Xingjian Zhao, Mukai Li, Jun Zhang, Lingpeng Kong and Xipeng Qiu. 2024. L-Eval: Instituting Standardized Evaluation for Long Context Language Models. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2024.acl-long.776](https://doi.org/10.18653/v1/2024.acl-long.776)

```bibtex
@inproceedings{an2024l,
  title = {{L-Eval: Instituting Standardized Evaluation for Long Context Language Models}},
  author = {Chenxin An, Shansan Gong, Ming Zhong, Xingjian Zhao, Mukai Li, Jun Zhang, Lingpeng Kong and Xipeng Qiu},
  booktitle = {Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.776},
  url = {https://doi.org/10.18653/v1/2024.acl-long.776}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
