Automated Evaluation of Retrieval-Augmented Language Models with Task-Specific Exam Generation

Gauthier Guinet, Behrooz Omidvar-Tehrani, Anoop Deoras, Laurent Callot
2/12/2026

No official code found. Best implementation: amazon-science/auto-rag-eval (92 stars, Apache-2.0, last commit 2024-06-13).

Abstract

We propose a new method to measure the task-specific accuracy of Retrieval-Augmented Large Language Models (RAG). Evaluation is performed by scoring the RAG on an automatically-generated synthetic exam composed of multiple choice questions based on the corpus of documents associated with the task. Our method is an automated, cost-efficient, interpretable, and robust strategy to select the optimal components for a RAG system. We leverage Item Response Theory (IRT) to estimate the quality of an exam and its informativeness on task-specific accuracy. IRT also provides a natural way to iteratively improve the exam by eliminating the exam questions that are not sufficiently informative about a model's ability. We demonstrate our approach on four new open-ended Question-Answering tasks based on Arxiv abstracts, StackExchange questions, AWS DevOps troubleshooting guides, and SEC filings. In addition, our experiments reveal more general insights into factors impacting RAG performance like size, retrieval mechanism, prompting and fine-tuning. Most notably, our findings show that choosing the right retrieval algorithms often leads to bigger performance gains than simply using a larger language model.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code repo for the ICML 2024 paper "Automated Evaluation of Retrieval-Augmented Language Models with Task-Specific Exam Generation"

9215Shell, PythonMay 20, 20242 years agoApache-2.0
evaluationgenaillmmachine-learning

Cite this paper

@article{guinet2026automated,
  title  = {Automated Evaluation of Retrieval-Augmented Language Models with Task-Specific Exam Generation},
  author = {Gauthier Guinet and Behrooz Omidvar-Tehrani and Anoop Deoras and Laurent Callot},
  year   = {2026},
  eprint = {2405.13622},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.13622},
  journal = {ICML 2024 2024}
}

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

Discussion