What was tested
The standard long-context test of the time was needle-in-a-haystack: hide one fact in a long text and ask for it back. Models aced it, and context windows on model cards climbed past 100K tokens. NVIDIA's researchers argued that finding one planted fact is the easiest thing a reader does, and built RULER to test the rest of reading.
RULER runs 13 synthetic tasks in four categories: retrieval with varied and multiple needles, multi-hop tracing (following a chain of references across the text), aggregation (collecting what is spread across the whole input), and question answering with distractors. Because the tasks are generated, the same test can be run at 4K, 8K, 16K, 32K, 64K and 128K tokens, and a model's score can be watched as the input grows. The authors evaluated 17 long-context models and report an effective length for each: the longest input at which performance stays satisfactory, set against the length the model claims.
What they found
| Model | Claimed context | Effective length | Average score at 128K |
|---|---|---|---|
| Gemini-1.5-Pro | 1M | beyond 128K | — |
| GPT-4 (1106 preview) | 128K | 64K | 81.2 |
| Llama-3.1-70B | 128K | 64K | 66.6 |
Every model in the study claimed a context of 32K tokens or more. Only half of them maintained satisfactory performance at 32K. Nearly all of them scored near-perfectly on the plain needle test while dropping sharply on the fuller task set as length grew.
The gap between the claim and the measurement was often two times or more. GPT-4 scored 96.6 at 4K tokens and 81.2 at 128K, and its 128K claim measured as 64K effective. Gemini-1.5-Pro was the exception in the authors' table, holding an effective length beyond the 128K the benchmark tested.
The authors also note that a bigger claimed window did not, by itself, predict a bigger effective one. Gemini-1.5-Pro, the largest claim in the table, was the exception that held up longest; most other models measured out at half their claim or less under the fuller task set.
What it means for the stacks
RULER is the second independent source in this pool for the same conclusion Lost in the Middle reached from position experiments: advertised context and usable context are different numbers. Stack seats for long contracts and documents carry an effective-length expectation taken from measurements like these, and jobs longer than a seat's evidence supports get split rather than stuffed.
Retrieval is the floor, not the ceiling. A model that finds a planted sentence has shown the easiest reading skill. Seats that summarize, compare or answer across a whole document need the tracing and aggregation categories, which is where RULER's scores fall fastest.
Synthetic tests have a known limit, and the authors state it themselves: generated tasks trade realism for control. The pool uses RULER for the length curve, and the contract benchmarks in this series for what happens on real legal text. Neither substitutes for the other.
Sources
Hsieh, Sun, Kriman et al., "RULER: What's the Real Context Size of Your Long-Context Language Models?," COLM 2024. Paper: arxiv.org/abs/2404.06654. Benchmark code and full results tables: github.com/NVIDIA/RULER.
Scores in this summary come from the paper and the authors' published results table. RULER is maintained by NVIDIA, which also sells models; the benchmark, its code and its raw results are public, and the headline finding runs against the marketing of long-context models generally, including large ones.
Dejargon