Benchmarks · Long context & retrieval
RULER
A model's 'effective context length' — the longest input it can actually use while holding accuracy above a fixed threshold — rather than the context length it claims to support.
NVIDIAReleased 9 April 2024Live
A model’s system card might advertise a million-token context window, but RULER exists to ask whether it actually uses that whole window well. Built by researchers at NVIDIA, it extends the basic needle-in-a-haystack idea into 13 synthetic tasks across four categories — plain retrieval with configurable noise and multiple needles, multi-hop variable tracking, aggregation over the entire input, and long-document question answering — run at sequence lengths from 4,000 tokens up past a million. Instead of reporting raw accuracy, RULER derives an “effective context length”: the longest input a model can handle while staying close to its own short-context performance.
The result at launch was a wide gap between advertised and effective context. Of the 17 models tested in the original 2024 paper, Gemini 1.5 Pro held up best, with an effective length above 128,000 tokens, while several open-weight models claiming 32,000-token windows fell apart well before that point — one, LongAlpaca-13B, dropped below 4,000 despite an advertised 32,000-token capacity. The paper’s headline finding was that near-perfect scores on the simplest single-needle retrieval task said almost nothing about a model’s ability to reason over the same length of text once the task required tracking multiple facts or chains of references.
RULER’s public leaderboard was later updated with newer models — by August 2024 Jamba-1.5-large and Gemini-1.5-pro both cleared 95% weighted accuracy with effective lengths above 128,000 tokens — and the benchmark is still cited as a standard, harder alternative to plain retrieval tests when labs discuss real usable context length rather than the number printed on a model’s context-window specification.
The set
13 synthetic tasks across four categories (needle-in-a-haystack retrieval with configurable noise and multiple needles, multi-hop variable tracking, aggregation over the whole context, and long-context question answering adapted from SQuAD and HotpotQA), each run at a range of sequence lengths from 4,000 to over a million tokens. A model's effective length is the longest tested length at which its performance stays within a set margin of a short-context baseline.
Example
A single-needle probe from the paper's own task template: filler essays contain the planted sentences 'One of the special magic numbers for long-context is: 12345.' and 'One of the special magic numbers for large-model is: 54321.', and the model is asked 'What is the special magic number for long-context mentioned in the provided text?' (Answer: 12345).arxiv.org
Where it stands
The public leaderboard tracked mainly 2024-era models at launch; RULER remains widely cited as a stricter alternative to plain needle-in-a-haystack retrieval, but a reliably sourced up-to-date leaderboard position for current 2025-26 frontier models was not available at the time of writing.
How the top score changed hands
- April 2024Gemini 1.5 Proeffective length >128KBest of 17 models evaluated in the launch paper; the worst-performing model tested (LongAlpaca-13B) fell below 4K despite a claimed 32K context.
- August 2024Jamba-1.5-large / Gemini-1.5-pro95.7% / 95.5% weighted average, effective length >128KFrom the project's public leaderboard following AI21's Jamba 1.5 release; most models claiming 128K+ context still degraded well before their advertised limit.