Estimating Optimal Context Length for Hybrid Retrieval-augmented Multi-document Summarization

Adithya Pratapa, Teruko Mitamura
4/17/2025
cs.CL

No official code found. Best implementation: adithya7/hybrid-rag (4 stars, MIT, last commit 2025-04-18).

Abstract

Recent advances in long-context reasoning abilities of language models led to interesting applications in large-scale multi-document summarization. However, prior work has shown that these long-context models are not effective at their claimed context windows. To this end, retrieval-augmented systems provide an efficient and effective alternative. However, their performance can be highly sensitive to the choice of retrieval context length. In this work, we present a hybrid method that combines retrieval-augmented systems with long-context windows supported by recent language models. Our method first estimates the optimal retrieval length as a function of the retriever, summarizer, and dataset. On a randomly sampled subset of the dataset, we use a panel of LLMs to generate a pool of silver references. We use these silver references to estimate the optimal context length for a given RAG system configuration. Our results on the multi-document summarization task showcase the effectiveness of our method across model classes and sizes. We compare against length estimates from strong long-context benchmarks such as RULER and HELMET. Our analysis also highlights the effectiveness of our estimation method for very long-context LMs and its generalization to new classes of LMs.

View on arXivView PDF

Code Implementations(1)

adithya7/hybrid-ragCommunity100%
MIT

Code for the preprint "Estimating Optimal Context Length for Hybrid Retrieval-augmented Multi-document Summarization"

40Shell, PythonApr 16, 20251 years agoMIT

Similar Papers

Cite this paper

@article{pratapa2025estimating,
  title  = {Estimating Optimal Context Length for Hybrid Retrieval-augmented Multi-document Summarization},
  author = {Adithya Pratapa and Teruko Mitamura},
  year   = {2025},
  eprint = {2504.12972},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.12972v1}
}

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/2504.12972.svg)](https://codeofpaper.com/paper/2504.12972)

Discussion