SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.02694 · ICLR · 2024

HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughly

Danqi Chen, Moshe Wasserblat, Ke Ding, Tianyu Gao, Howard Yen, Minmin Hou, Daniel Fleischer, Peter Izsak

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.02694.json · badge: /api/ran/2410.02694.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
princeton-nlp/helmet canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
call_api Ran
ran; our contract draft was wrong, not the code
princeton-nlp/helmet/model_utils.py
code served (permissive licence) · get_code("38db855956f81312")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
import time
from typing import Callable

logging.basicConfig(level=logging.INFO)

def successful_api_func():
    """A mock API function that succeeds on first call."""
    return {"status": "success", "data": [1, 2, 3]}

def rate_limited_api_func():
    """A mock API function that raises rate limit error."""
    raise Exception("Rate limit exceeded: quota exceeded")

def flaky_api_func():
    """A mock API function that fails then succeeds."""
    if not hasattr(flaky_api_func, 'attempt_count'):
        flaky_api_func.attempt_count = 0
    flaky_api_func.attempt_count += 1
    if flaky_api_func.attempt_count < 2:
        raise Exception("Temporary connection error")
    return {"status": "success", "data": "recovered"}

ARGS = {
    "func": successful_api_func,
    "limit": 5,
    "pause": 10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
drop_duplicates Ran
ran; our contract draft was wrong, not the code
princeton-nlp/helmet/data.py
code served (permissive licence) · get_code("a1c6d58c63360286")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Dataset. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from datasets import Dataset

torch.manual_seed(0)

# Create a small dataset with duplicate and unique IDs
data_dict = {
    'id': [1, 2, 1, 3, 2, 4],
    'text': ['a', 'b', 'c', 'd', 'e', 'f'],
    'value': [10, 20, 30, 40, 50, 60]
}

# Use Hugging Face Dataset which has the select() method
data = Dataset.from_dict(data_dict)

ARGS = {
    'data': data,
    'key': 'id'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
filter_contexts Ran
ran; our contract draft was wrong, not the code
princeton-nlp/helmet/data.py
code served (permissive licence) · get_code("1ee449115f223102")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import copy

# Construct sample data matching the function's expectations
data = [
    {
        'ctxs': [
            {
                'has_answer': True,
                'text': 'This is the first context with an answer',
                'title': 'First Title'
            },
            {
                'has_answer': False,
                'text': 'This context has no answer',
                'title': 'Second Title'
            }
        ],
        'question': 'What is the answer?'
    },
    {
        'ctxs': [
            {
                'has_answer': True,
                'text': 'Another valid context',
                'title': 'Another Title'
            }
        ],
        'question': 'Another question?'
    },
    {
        'ctxs': [
            {
                'has_answer': False,
                'text': 'No answer here',
                'title': 'Title with no answer'
            }
        ],
        'question': 'Will this be filtered?'
    }
]

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_chat Ran
ran; our contract draft was wrong, not the code
princeton-nlp/helmet/model_utils.py
code served (permissive licence) · get_code("dc4b61a869a286a0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function takes a message string and optional system_message string
# It formats them into a list of dicts with 'role' and 'content' keys
# No complex objects are needed - just strings

ARGS = {
    'message': 'Hello, how are you today?',
    'system_message': 'You are a helpful assistant.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_answer Ran
ran; our contract draft was wrong, not the code
princeton-nlp/helmet/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from zihangtian/HAPS, is pointer only (licence: NONE) · get_code("6c668580324cfd97")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zihangtian/HAPS, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

remove_citations Ran
ran; our contract draft was wrong, not the code
princeton-nlp/helmet/utils.py
code served (permissive licence) · get_code("5df8b525aada9853")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def remove_citations(sent):
    return re.sub('\\[\\d+', '', re.sub(' \\[\\d+', '', sent)).replace(' |', '').replace(']', '')

ARGS = {
    'sent': 'This is a sample sentence [1 with citations [2 and more [3 text.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
f1_score Not yet run
unverified (harvested, no recorded run)
princeton-nlp/helmet/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from Clement25/SharedLLM, is pointer only (licence: NONE) · get_code("27f9fcd2b79fea52")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Clement25/SharedLLM, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_longproc_data_for_helmet Not yet run
unverified (harvested, no recorded run)
princeton-nlp/helmet/longproc_addon/longproc_helmet_loader.py
code served (permissive licence) · get_code("5b86524ce23021f4")
How it ran

no invocation recorded.

load_qa Not yet run
unverified (harvested, no recorded run)
princeton-nlp/helmet/data.py
code served (permissive licence) · get_code("360f43aa5807a7e1")
How it ran

no invocation recorded.

tokenize Not yet run
unverified (harvested, no recorded run)
princeton-nlp/helmet/model_utils.py
code served (permissive licence) · get_code("7257aebb0f11407a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 3 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
normalize_answer 133 other papers
93 dated earlier, 5 the same month, 34 later, 1 undated · 1 only as an assembly brick
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 130 more not named here
f1_score 19 other papers
15 dated earlier, 4 later
1809.09600 (2018-09)
HOTPOTQA: A Dataset for Diverse, Explainable Multi-hop Question Answering
1905.05460 (2019-05)
Cognitive Graph for Multi-Hop Reading Comprehension at Scale
1911.02896 (2019-11)
Contextualized Sparse Representations for Real-Time Open-Domain Question Answering
and 16 more not named here
remove_citations 7 other papers
4 dated earlier, 3 later
2305.14627 (2023-05)
Enabling Large Language Models to Generate Text with Citations
2311.07838 (2023-11)
LLatrieval: LLM-Verified Retrieval for Verifiable Generation
2402.04315 (2024-02)
Training Language Models to Generate Text with Citations via Fine-grained Rewards
and 4 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Many benchmarks exist for evaluating long-context language models (LCLMs), yet developers often rely on synthetic tasks such as needle-in-a-haystack (NIAH) or an arbitrary subset of tasks. However, it remains unclear whether these benchmarks reflect the diverse downstream applications of LCLMs, and such inconsistencies further complicate model comparison. We investigate the underlying reasons behind these practices and find that existing benchmarks often provide noisy signals due to limited coverage of applications, insufficient context lengths, unreliable metrics, and incompatibility with base models. In this work, we introduce HELMET (How to Evaluate Long-context Models Effectively and Thoroughly), a comprehensive benchmark encompassing seven diverse, application-centric categories. We also address several issues in previous benchmarks by adding controllable lengths up to 128K tokens, model-based evaluation for reliable metrics, and few-shot prompting for robustly evaluating base models. Consequently, we demonstrate that HELMET offers more reliable and consistent rankings of frontier LCLMs. Through a comprehensive study of 59 LCLMs, we find that (1) synthetic tasks like NIAH do not reliably predict downstream performance; (2) the diverse categories in HELMET exhibit distinct trends and low correlations with each other; and (3) while most LCLMs achieve perfect NIAH scores, open-source models significantly lag behind closed ones when tasks require full-context reasoning or following complex instructions-the gap widens as length increases. Finally, we recommend using our RAG tasks for fast model development, as they are easy to run and better predict other downstream performance; ultimately, we advocate for a holistic evaluation across diverse tasks. 1

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.02694")
get_code_for_paper("2410.02694")
have("2410.02694")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.02694.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.02694.svg)](https://syntology.ai/paper/2410.02694)

Connect an agent — have() is free.