arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.24753

The RAT: A Unified Bayesian Model for RAG Evaluation

Pius von Däniken, Felix Matthias Saaro, Mark Cieliebak, Jan Deriu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Evaluating Retrieval-Augmented Generation (RAG) systems requires assessing not only end-to-end correctness but also how individual components interact and how errors propagate through the pipeline. We introduce a Bayesian evaluation framework that jointly models retrieval success, abstention behavior, and answer correctness, factorized according to the pipeline's information flow. The model distinguishes task success. whether the user received a correct answer, from generator success, whether the generator behaved appropriately given the retrieval outcome. We apply the framework to 27 RAG configurations across three datasets, three retrievers, and three generators, and show that the conditional decomposition reveals substantial behavioral differences between systems that appear equivalent under marginal metrics. We further analyze the annotation allocation problem, demonstrating that retrieval-success annotations are more informative than task-success annotations for estimating policy adherence, and provide an information-theoretic explanation for this asymmetry. Finally, we extend the model to incorporate LLM-as-a-judge annotations as calibrated noisy observations, enabling practitioners to combine limited human judgments with cheaper automated assessments within a unified probabilistic model.

1 The Introduction

Evaluating Retrieval-Augmented Generation (RAG) systems is challenging and often tedious. It is not sufficient to evaluate only the system's end-to-end behavior; each component must be evaluated both in isolation and within the pipeline. Since RAG systems are built in a pipelined approach, errors tend to propagate through the pipeline. If retrieval fails, the generator has no basis for producing a correct answer and

Figure

Figure 1: The dependency structure of the evaluation variables: generator success depends on retrieval success (which governs whether the generator should abstain or answer), abstention behavior, and task success.

should abstain from answering the question. Most benchmarks developed for RAG evaluation consider each component in isolation (Es et al., 2024; Saad-Falcon et al., 2024; Rau et al., 2024), or evaluate generators using adversarial retrieval results (Wang et al., 2024). However, a holistic view of the evaluation that accounts for the dependencies between components is still missing.

A key shortcoming of end-to-end evaluation is that it conflates two distinct notions of success. Task success measures whether the user received a correct answer, whereas generator success measures whether the generator behaved appropriately given the retrieval outcome, i.e., answering when retrieval succeeded and abstaining when it failed. These two quantities can diverge substantially: a generator that never abstains may achieve reasonable task success while systematically violating the desired policy, and two systems with identical task success can exhibit very different behaviors under retrieval failure. To make such distinctions explicit, we need a model that captures the dependencies between retrieval, abstention, and answer correctness.

∗^{*}Equal contribution

We propose a Bayesian evaluation framework that models these dependencies explicitly. Figure 1 illustrates the dependency structure, which shows how these variables interact: retrieval success governs both the abstention decision and the conditions under which task success is meaningful, and generator success is a deterministic function of all three. Casting this as a Bayesian model allows us to propagate uncertainty through the full dependency structure and to handle partially observed data by marginalizing over unobserved variables, which is a practical advantage when some annotations are expensive while others are cheap. The framework is further extended by incorporating LLM-as-a-judge annotations alongside human gold-standard labels, using a calibration model that treats automated judgments as noisy observations of the underlying ground-truth variables (von Däniken et al., 2022, 2024). This allows practitioners to combine small amounts of expensive human annotation with larger volumes of automated judgments in a principled way. We make the following contributions 1^{1}:

• We introduce a Bayesian evaluation model for RAG systems that factorizes the joint distribution over retrieval success, abstention, and task success according to the pipeline’s information flow, and derives generator success as a deterministic variable over these random variables (Section 3).

• We apply the model to 27 RAG configurations (3 retrievers × 3 generators × 3 datasets) and show that the conditional decomposition reveals behavioral differences that marginal metrics conceal, in particular, systems with near-identical task success can differ sharply in policy adherence.

• We analyze the annotation allocation problem: given a fixed budget, we derive and empirically validate which combination of retrieval and task-success annotations minimizes estimation error, and provide an information-theoretic explanation for the observed asymmetry.

• We extend the model to incorporate calibrated LLM-as-a-judge annotations as noisy observations, enabling practitioners to combine human and automated judgments within the same probabilistic framework.

References (27)

  • GPT-4o System Card
  • Saba Sturua, Isabelle Mohr, Mohammad Kalim Akram, Michael Günther, Bo Wang, Markus Krimmel, Feng Wang, Georgios Mastrapas, Andreas Koukounas, Andreas Koukounas, Nan Wang, and Han Xiao. 2024. jina-embeddings-v3: Multilingual embeddings with task LoRA. Preprint, arXiv:2409.10173. (opens arXiv in a new tab)
  • Yixuan Tang and Yi Yang. 2024. Multihop-RAG: Benchmarking retrieval-augmented generation for multi-hop queries. arXiv preprint arXiv:2401.15391. (opens arXiv in a new tab)
  • Abstention is detected via exact string matching: for FEVER, the label NOT_ENOUGH_INFO is matched; for HotpotQA and NQ, the output I DO NOT KNOW is matched
  • >Generator</td></tr><tr><td>Temperature</td><td>0.7</td></tr><tr><td>Max tokens</td><td>512</td></tr><tr><td>Max concurrent requests</td><td>15</td></tr><tr><td>Thinking</td><td>None</td></tr><tr><td colspan=
  • NOT ENOUGH INFO
  • >FEVER</td><td>Dense</td><td>419 (4.19%)</td></tr><tr><td>Hybrid</td><td>453 (4.53%)</td></tr><tr><td>Sparse</td><td>300 (3.00%)</td></tr><tr><td rowspan=
  • For NQ, the rate of partial retrieval is 0%, since each query in this dataset has exactly one relevant document
  • >HQA</td><td>Apt</td><td rowspan=
  • if the documents are sufficient and
  • if the answer is relevant for the given question and
  • However the retrieval judge does not see the generated answer
  • The credible interval width closely tracks the MAE ordering: for $P(G = 1)$, retrieval-focused strategies yield narrower intervals than task-focused ones at every budget level, while for $P(T = 1)$ the pattern reverses
  • Since $R$ is unobserved:
  • With neither observed:
  • \tag {7} $$
  • Only $(R = 1, A = 0)$ leaves $G$ unresolved, where $G = T$
  • \tag {8} $$
  • All configurations start with 100 fully annotated base samples and increase the additional budget
  • The remaining two cells require R:
  • For Apertus: $P(R=1 \mid A=0, T=1) = 0.352$, yielding $H(G \mid A, T) = 0.290$ and $I(G; T \mid A) = 0.200$
  • Since the R-partial component already captures most of the uncertainty (three of four cells resolved), the loss relative to the all-joint strategy is modest
  • Despite receiving the same number of joint samples as Half-Joint-R, this strategy is less effective because the T-partial component contributes less information about G—it leaves two cells unresolved rather than one
  • The only cell left unresolved by $(R, A)$ observations is $(R = 1, A = 0)$, where $G = T$
  • The 100 base samples are insufficient to pin it down, and additional joint samples that directly observe $T$ in the ambiguous cell remain valuable
  • Higher values indicate more informative observations for estimating $P(G = 1)$
  • All outputs were reviewed and validated by the authors