long-context

RULER

Nearing saturation
2024-04-09 → today

Configurable synthetic benchmark that expands needle retrieval into multi-needle, multi-hop tracing, and aggregation tasks.

last updated 2026-08-12

Performance over time

vendor-reported independent
85952026

Baseline: No protocol-comparable human baseline is recorded; the tasks are synthetic model diagnostics.

Overview

RULER asks a direct question: what is the real usable context size of a long-context model? It starts from Needle-in-a-Haystack but expands the test into configurable synthetic tasks with multiple needles, varied needle types, multi-hop tracing, and aggregation. The paper reports that models with nominal 32k+ context windows can still drop sharply as length and task complexity increase.

Task details

RULER generates synthetic contexts at chosen lengths and evaluates a set of representative tasks. The original paper evaluates 17 long-context models on 13 tasks. The key dimensions are sequence length and task complexity, not a fixed natural-language dataset.

Example

A simple RULER item may hide several facts in a long context and ask for one of them. A harder item may require following a chain or aggregating information scattered through the prompt.

Scoring methodology

RULER mostly uses exact answer accuracy, averaged over generated tasks and lengths. The most important report is a curve: accuracy as context length grows. A model that is perfect at 8k but collapses at 64k has not demonstrated a 64k effective context length.

Current README stats

The visual graph on this page shows only the Avg. statistic from the official NVIDIA RULER README snapshot checked on 2026-08-12. That Avg. is the mean accuracy across the 4K, 8K, 16K, 32K, 64K, and 128K result columns for the selected high-scoring rows below. The graph does not show the claimed context length, effective context length, per-length cells, wAvg. (inc), or wAvg. (dec).

ModelClaimed lengthEffective length4K8K16K32K64K128KAvg. shown in graph
Jamba-1.5-large256K>128K96.796.696.496.095.495.196.0
Gemini-1.5-pro1M>128K96.795.896.095.995.994.495.8
Qwen2.5-14B-Instruct-1M1M>128K97.597.194.694.994.992.295.7
Qwen3-235B-A22B128K>128K97.797.296.495.193.390.695.0
Qwen3-14B128K>128K98.097.896.496.194.085.194.6
Jamba-1.5-mini256K>128K95.695.694.894.692.890.093.9
Qwen3-32B128K>128K98.496.096.294.491.885.693.7
EXAONE-4.0-32B128K>128K96.394.993.993.691.788.293.1
Qwen2.5-7B-Instruct-1M1M>128K96.895.393.091.190.484.491.8
GPT-4-1106-preview128K64K96.696.395.293.287.081.291.6

Source: NVIDIA/RULER README.

What it doesn’t measure

RULER does not measure natural-document quality, summarization, legal reasoning, or citation faithfulness. It is a synthetic diagnostic for retrieval, tracing, and aggregation robustness.

Known issues & criticisms

  • Synthetic tasks can be narrower than real document understanding.
  • Generator settings and seeds affect difficulty.
  • A single aggregate score hides the effective-context curve.

Contamination notes

Risk is low when new configurations and seeds are used. Because the generator and default configs are public, published static configurations should not be treated as private tests.

How to run it

git clone https://github.com/NVIDIA/RULER.git
cd RULER

Follow the official repository instructions for model configuration, sequence length, and task selection. Report the generated task set and length grid with any score.

History & lineage

RULER was submitted in April 2024 and accepted at COLM 2024. It explicitly positions vanilla Needle-in-a-Haystack as too superficial and extends it into a broader synthetic long-context evaluation.

Further reading