Hugging Face announced the release of HELMET, a benchmark for evaluating long‑context language models (LCLMs). The benchmark evaluates 59 recent LCLMs across diverse tasks such as retrieval‑augmented generation, citation generation, and summarization, with input lengths ranging from 8K to 128K tokens. HELMET uses model‑based evaluations and human studies to improve reliability over traditional n‑gram metrics. The authors highlight that performance varies across tasks and that open‑source models lag behind proprietary ones on complex tasks.
Contact: hyen@cs.princeton.edu Paper: https://arxiv.org/abs/2410.02694 Website: https://princeton-nlp.github.io/HELMET Code & Data: https://github.com/princeton-nlp/HELMET
Since we first released HELMET last October, there has been more development on long-context language models than ever before, and we are thrilled to see the adoption of HELMET by the community, such as Microsoft's Phi-4 and AI21's Jamba 1.6 . After the initial release, we have added more models to our evaluation suite and conducted additional analyses. We are excited to share our new results and present HELMET at ICLR 2025!
In this blog, we will describe the construction of HELMET, our key findings, and how practitioners can use HELMET to differentiate between various LCLMs in future research and applications. Finally, we will conclude with a quickstart guide for using HELMET with HuggingFace.
However, with longer context windows, previous natural language benchmarks (e.g., Scrolls ) are no longer suitable for evaluating LCLMs. Consequently, perplexity and synthetic tasks (e.g., needle-in-a-haystack) emerged as the most popular evaluation metrics for recent LCLMs, but they often do not reflect real-world performance . Model developers may also evaluate on other arbitrary datasets, which complicates model comparisons. Furthermore, existing benchmarks for LCLMs may show confusing and counterintuitive results, making it difficult to understand the strengths and weaknesses of different models (Figure 1).
A common practice for evaluating long-context language models is to use perplexity or synthetic tasks, such as needle-in-a-haystack (NIAH). However, recent works have shown that perplexity does not correlate well with downstream performance ( Fang et al., 2024 ). In Figure 2, we show that synthetic tasks like NIAH do not correlate with real-world performance, but the more complex synthetic tasks achieve higher correlation with real-world tasks.
Diverse coverage : HELMET includes a diverse set of tasks, such as retrieval-augmented generation with real retrieval passages, generation with citations, and summarization. We carefully select datasets with naturally long contexts that reflect real-world applications. These datasets are complemented with reliable evaluation settings, such as model-based evaluations and human studies.
We support APIs from OpenAI, Anthropic, Google, and TogetherAI. Please refer to the instructions in our repo .
From summarizing numerous legal documents to learning new tasks on the fly, long-context language models (LCLMs) have immense potential to change the way we use and interact with language models. Language models have been limited by their context window, which is around 2K to 8K tokens (e.g., ChatGPT , Llama-2/3 ). Recently, model developers have been constantly increasing the context window of their models, with recent models like GPT-4o , Claude-3 , and Gemini-1.5 supporting context windows of up to millions of tokens.
In this work, we propose HELMET (How to Evaluate Long-Context Models Effectively and Thoroughly), a comprehensive benchmark for evaluating LCLMs that improves upon existing benchmarks in several ways— diversity, controllability, and reliability . We evaluate 59 recent LCLMs and find that it is crucial to evaluate models across diverse applications to understand their capabilities and frontier LCLMs are still limited on complex tasks.
With the development of LCLMs across both industry and the open-source community, it is crucial to have a reliable method for evaluating and comparing these models. However, current models are often evaluated on different benchmarks (Table 1).
Reliable, comprehensive benchmarks like HELMET enable developers to assess LCLMs beyond synthetic metrics, guiding model improvements and deployment decisions in the AI industry.