LongGenBench: Long-context Generation Benchmark

Xiang Liu, Peijie Dong, Xuming Hu, Xiaowen Chu
10/5/2024
cs.CLcs.AI

No official code found. Best implementation: Dominic789654/LongGenBench (25 stars, last commit 2024-10-08).

Abstract

Current long-context benchmarks primarily focus on retrieval-based tests, requiring Large Language Models (LLMs) to locate specific information within extensive input contexts, such as the needle-in-a-haystack (NIAH) benchmark. Long-context generation refers to the ability of a language model to generate coherent and contextually accurate text that spans across lengthy passages or documents. While recent studies show strong performance on NIAH and other retrieval-based long-context benchmarks, there is a significant lack of benchmarks for evaluating long-context generation capabilities. To bridge this gap and offer a comprehensive assessment, we introduce a synthetic benchmark, LongGenBench, which allows for flexible configurations of customized generation context lengths. LongGenBench advances beyond traditional benchmarks by redesigning the format of questions and necessitating that LLMs respond with a single, cohesive long-context answer. Upon extensive evaluation using LongGenBench, we observe that: (1) both API accessed and open source models exhibit performance degradation in long-context generation scenarios, ranging from 1.2% to 47.1%; (2) different series of LLMs exhibit varying trends of performance degradation, with the Gemini-1.5-Flash model showing the least degradation among API accessed models, and the Qwen2 series exhibiting the least degradation in LongGenBench among open source models.

View on arXivView PDF

Code Implementations(1)

Source code for the paper "LongGenBench: Long-context Generation Benchmark"

251Shell, PythonOct 8, 20242 years ago

Similar Papers

Cite this paper

@article{liu2024longgenbench,
  title  = {LongGenBench: Long-context Generation Benchmark},
  author = {Xiang Liu and Peijie Dong and Xuming Hu and Xiaowen Chu},
  year   = {2024},
  eprint = {2410.04199},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.04199v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.04199.svg)](https://codeofpaper.com/paper/2410.04199)

Discussion