﻿# Original LongBench evaluation: task-specific metrics and length slices

Keep the original bilingual LongBench tasks separate from LongBench v2 and inspect metric dispatch, prompt truncation and per-task outputs.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/data-guide-longbench-task-length-slices/
Language: en

## The original suite is heterogeneous

LongBench's original research evaluates English and Chinese long-context tasks, including question answering, summarization, synthetic tasks and code completion. These require different outputs and cannot be understood as repeated instances of one universal answer format.

Record the selected task configurations. A model that is strong at extracting a short answer may behave differently when summarizing a long document or continuing code. A single average hides those distinctions unless the task-level results remain available.

## Metric dispatch belongs to the task contract

The released evaluation code maps dataset names to different scoring functions, including language-specific answer and summary metrics, classification, retrieval and code similarity. Routing every output through a convenient generic metric changes the experiment.

Keep the scorer revision and preprocessing with the predictions. Inspect how answers are extracted and whether the model's extra explanation affects that metric. A well-written response can still violate a short-answer format, while a high string-based score does not establish every aspect of substantive correctness.

## Length is measured under a representation

Document length and the model's actual tokenized prompt are not interchangeable. Tokenizers, wrappers and reserved output space affect whether the input fits the tested configuration. If truncation occurs, the model may no longer receive the evidence assumed by the benchmark record.

Report the length policy and retained context. A failure after discarding the relevant middle of a document answers a different question from failure on a fully provided document. Conversely, successful input acceptance alone does not establish useful long-context understanding.

## Original files now sit beside a newer benchmark

The current author repository hosts LongBench v2 at its root and moves original-suite files under a dedicated LongBench directory. The curator's Hub location also redirects from the older organization name. Use actual files and revisions rather than relying on an old root-level example.

The newer benchmark is related but has a different task construction. Do not mix its multiple-choice results with the original suite's task-specific metrics under an unqualified LongBench label.

## Slice before explaining an aggregate

A proposed report preserves dataset configuration, language, length policy, model wrapper and metric per task. Review missing outputs and resource failures separately from incorrect answers so an execution limit is not confused with a language-understanding error.

This article runs no long-context evaluation and states no current model ranking. It explains how the original suite supports a bounded comparison when its heterogeneous tasks remain visible, rather than treating one average as the effective context window of every workload.

## Primary references

[Original LongBench paper](https://arxiv.org/abs/2308.14508).

[Original LongBench metric dispatch](https://raw.githubusercontent.com/THUDM/LongBench/main/LongBench/eval.py).

[Current LongBench author repository](https://github.com/THUDM/LongBench).

[Current curator LongBench dataset](https://huggingface.co/datasets/zai-org/LongBench).

Related explanations: [Provided context and prior knowledge](/journal/parametric-retrieved-knowledge-conflict/); [Grounding metric boundaries](/journal/ragas-retrieval-faithfulness-metric-boundaries/).
