Capital & Compute

RULER

Benchmark· Long context & retrieval· Checked 2026-06-29

RULER measures the effective context length of a model, as opposed to the advertised one. It runs a battery of synthetic tasks at increasing sequence lengths and reports where performance actually falls off. The consistent finding is that claimed context windows are considerably longer than usable ones, which makes RULER the corrective to a headline specification.

Key facts about the RULER benchmark
What it measuresThe real effective context length of a model by testing retrieval, multi-hop tracing, aggregation and QA at increasing sequence lengths.
Built byNVIDIA (Hsieh, Sun et al.), 2024
Format13 synthetic tasks across 4 categories (retrieval, multi-hop tracing, aggregation, QA), evaluated from 4K to 128K+ tokens
Scoring metricWeighted-average accuracy across tasks and lengths; effective length is the longest length still above threshold
StatusActive
Representative top scoreNot independently confirmed; see the leaderboard
Official leaderboardgithub.com/NVIDIA/RULER

How RULER works

The benchmark contains 13 synthetic tasks in four categories: retrieval, multi-hop tracing, aggregation and question answering. Each is evaluated from 4,000 tokens up past 128,000. The reported figure is a weighted average across tasks and lengths, and the effective length is defined as the longest sequence length at which the model stays above a threshold. Because the tasks are synthetic and regenerable, contamination is close to impossible.

History and current status

NVIDIA researchers introduced RULER in 2024, when models were advertising rapidly growing context windows and needle-in-a-haystack tests were showing near-perfect results that did not match user experience. RULER demonstrated that the popular test was too easy, and the same critique was developed further by HELMET and BABILong.

What the score does not tell you

Synthetic tasks are the source of both its strength and its limitation. Being regenerable makes the benchmark ungameable, but the tasks are artificial: real long-context work involves messy documents and ambiguous questions, not constructed retrieval and aggregation problems. An effective-length number is therefore an upper bound on a specific kind of competence rather than a general guarantee.

This is the general case, not a quirk of one benchmark. For the four failure modes that decide whether any benchmark number means anything, read are AI benchmarks reliable, and for this row in particular, how benchmark contamination inflates scores.

What RULER scores actually mean

RULER does not produce a single headline score so much as a curve, and the useful reading is where that curve falls off. A model advertised with a 128K context window frequently holds accuracy only to 32K or 64K before dropping below threshold, and the effective length is the longest length at which it still passes. That gap between advertised and effective context is the entire point of the benchmark. Because every task is synthetic and regenerable, contamination is close to zero and the numbers are unusually trustworthy. The trade-off is construct validity: retrieval, tracing and aggregation over generated haystacks are cleaner to score than real long-document work but simpler than it.

Who reports RULER, and how to read it

RULER is used widely in academic long-context work and by some model developers, though rarely in launch marketing, where the advertised window is the more attractive number. If a model claims a very large context window with no RULER-style evidence, the effective length is the open question. Building a retrieval pipeline against an advertised window rather than a measured effective length is a common and expensive mistake.

When to weight RULER in a model choice

Consult RULER before designing anything that depends on a long context: retrieval-augmented pipelines, whole-repository prompts, long transcript analysis. The effective-length figure, not the advertised window, is the number to build against, and treating the advertised one as real is a common and expensive mistake, since paying to fill a context that the model cannot use is pure waste. Because the tasks are synthetic, treat a strong RULER result as a necessary rather than sufficient condition: a model that fails here will fail on real long documents, but passing does not guarantee it handles messy ones well.

2024
First released
NVIDIA (Hsieh, Sun et al.)
Active
Status today
As of September 4, 2026
See board
Representative top score
Not independently confirmed

Benchmarks to read alongside this one

RULER: frequently asked questions

What is RULER?
RULER is a 2024 NVIDIA benchmark that measures effective context length using 13 synthetic tasks across retrieval, multi-hop tracing, aggregation and question answering, evaluated from 4,000 tokens to beyond 128,000. It reports the longest length at which a model stays above a performance threshold.
What is effective context length?
It is the longest input a model can actually use reliably, as opposed to the longest it will accept. A model may advertise a million-token window while degrading badly well before that, and RULER exists to locate the point where usable performance ends.
Why is needle-in-a-haystack not enough?
Because finding one distinctive fact in a long document is much easier than reasoning over several scattered facts. Models can score near-perfectly on needle tests and still fail multi-hop tracing or aggregation at the same length, which is what RULER, HELMET and BABILong measure.

Sources

  • Hsieh, Sun, Kriman, Acharya et al. (2024). RULER: What's the Real Context Size of Your Long-Context Language Models? arXiv preprint 2404.06654. arxiv.org/abs/2404.06654
  • NVIDIA. RULER evaluation code and published per-length results. github.com/NVIDIA/RULER

Get each breakdown before it makes the rounds

You get one email when a new source-backed analysis goes live: what AI agents actually cost, which models are worth running, and what the benchmarks really mean. No hype.

No spam. Unsubscribe anytime.

← All 116 benchmarks in the directory