Organizations: Department of Electrical and Computer Engineering, Duke University Pratt School of Engineering, Durham, North Carolina, United States · Birla Institute of Technology & Science Pilani, Hyderabad, India · School of Industrial and Systems Engineering, Georgia Institute of Technology, Atlanta, Georgia, United States · Department of Surgery, Department of Anesthesiology, Duke University School of Medicine, Durham, North Carolina, United States
Reference-free judges are increasingly used not only to evaluate retrieval-augmented generation (RAG) systems but to guide their training. We align RAG generators with GRPO and GDPO on inexpensive lexical proxies of the criteria these judges score, and show that this does not reliably improve answer quality and instead produces outputs that game the judges. We report three findings. First, lower score coverage: RAGAS Faithfulness returns no score for 28-41% of answers from heavily copying policies, versus 4-7% of base answers to the same questions, so its averages cover a smaller share of those answers. Second, a controlled result: in a 2x2 factorial over six matched seeds, a saturating format penalty increased verbatim context copying (copy rate 0.99, versus 0.27 for cleaning alone), so a common anti-gaming fix can make copying worse. Third, an audit against independent ground truth: on PubMedQA, counting only answers a policy states itself, policies trained with the pipeline's own trainer average 0.21 accuracy against 0.51 for base, and higher copying is associated with lower accuracy (r = -0.74 across twelve retrained policies), although a reference-free judge would rate the copied outputs as highly faithful. Tagged question-echo leaves accuracy intact, so not all judge gaming is equally harmful. The copy attack recurs across three model families, a general-domain benchmark, and the reward weightings we tested that credit answer-context overlap, and it reproduces at 100% on papers published after each model's training cutoff. Accuracy is lost where copying displaces the answer; where the policy states an answer first, the answer survives and the harm is output pollution. Judge scores should be audited before they guide training.
Figures & tables
Claim
Eval set
Model(s)
Metric / test
C1 score coverage (28–41% vs 4–7%)
small+scaled KG
Llama-3.1-8B
RAGAS unscored rate; McNemar
C2 penalty increases copying
KG60
Llama GDPO
copy rate, 2×2 , 6 matched seeds
C3 higher copying, lower accuracy
PubMedQA (500)
base + 18 trained policies
strict and judge-assisted accuracy
Second domain
BoolQ (500)
base/GRPO
accuracy + copy rate
Reward weighting
PubMedQA
GRPO variants
copy rate, output length
Cross-model
small KG (22 answerable)
Qwen, Mistral
copy-rate delta
Table 1. Claim-to-experiment map: which result each claim rests on.
Arm (corpus)
Aligned arm
Base, same questions
GRPO (scaled)
20/49 (41%)
2/49 (4%)
GRPO (small)
20/57 (35%)
4/57 (7%)
DPO (small)
15/54 (28%)
4/54 (7%)
DPO (scaled)
8/54 (15%)
2/54 (4%)
GDPO (small)
2/60 (3%)
4/60 (7%)
GDPO (scaled)
3/64 (5%)
3/64 (5%)
Table 2. RAGAS Faithfulness coverage on KG questions: answers that received no score, out of those attempted, for each aligned arm and for the base model on the same questions.
Metric
Copying → faithfulness
Echo → relevance
MiniCheck (NLI)
fooled (small corpus, +0.33 )
–
G-Eval faithfulness
fooled (small corpus, +0.22 )
–
RAGAS Faithfulness
lower coverage (28–41% unscored)
–
RAGAS ResponseRelevancy
–
fooled (scaled corpus, +0.058 )
G-Eval relevance
–
echo-insensitive; residual inflation
BERTScore (reference-based)
inflated ( +0.03 to +0.07 )
not significant
Table 3. Metric outcomes by attack mechanism (Holm-adjusted within comparison families). Three metrics are inflated by copying and one loses coverage.
Arm
Clean?
Penalty?
Copy rate
no defense
✗
✗
0.543 (seed-noisy)
clean-only
✓
✗
0.266
penalty-only
✗
✓
0.994
both (full defense)
✓
✓
1.000
Table 4. Anti-gaming factorial (GDPO, KG questions). The tag penalty alone, and not the cleaning, reproduces the full defense’s copy rate.
Configuration
Strict
Judge-assisted
Copy rate
base
0.506
0.632
0.34
Original runs
GRPO
–
0.466
1.00
GDPO
–
0.689
0.21–0.52
Replication
GRPO, pipeline trainer, no defense
0.203
0.547
0.87
Table 5. Accuracy and copy rate on PubMedQA (means over three training seeds; base is greedy decoding). Strict accuracy counts only a label the output states itself; judge-assisted accuracy also accepts a label inferred by the scorer. Strict accuracy is reported for base and the replication. The pipeline trainer uses conciseness weight 0.1 ; the standalone implementation uses weight 0.2 .
Reward
Copy rate
Words
ROUGE-L only (overlap)
0.999
167
0.4 ROUGE-L +0.4 F1 +0.2 conc. (default)
0.655
147
0.5 ROUGE-L +0.5 F1
0.672
22
F1 vs. ground truth only
0.357
21
Table 6. Copy rate and median output length on PubMedQA under alternative GRPO reward weightings (three training seeds, length pooled over their outputs; base 0.34 , 13 words). Copying tracks the answer–context overlap (ROUGE-L) term.
Reward hacking studies how AI systems exploit imperfect objectives and how to detect, measure, and prevent behavior that scores well but misses intent.
Volume-based accuracy rewards retrieval-augmented generation (RAG) systems for guessing: a system that answers everything outscores one that declines when its knowledge base cannot support an answer. Building on the confidence-target analysis of Kalai et al. (2025), we present a penalty-aware evaluation framework for deployed RAG products, combining (i) asymmetric scoring (correct +1, wrong -4, abstain 0), (ii) knowledge-gap canaries, questions whose answers are verifiably absent from the knowledge base, so that any answer constitutes ungrounded generation from parametric memory, and (iii) a failure-attribution pipeline that separates retrieval, generation, and abstention-policy failures. Applying the framework to three commercial RAG systems and a no-retrieval baseline on SimpleQA-Verified (1,000 questions x 3 repeats, graded blind by a cross-family three-judge panel with 98.9% unanimity), we find that accuracy when answering is closely clustered across systems (97.0-98.0%), while canary violation rates differ roughly sixfold (16.7% vs. 98.1%). The systems are separated less by what they answer correctly than by whether they answer at all when they should not, and penalty-aware scoring reorders the volume-based ranking accordingly; the reordering is stable across penalty settings from k=1 to k=9. All code, configurations, transcripts, and judge votes are released for independent audit.
LLM-as-a-judge evaluation is widely used for retrieval-augmented generation (RAG), but reusing the same model family as both generator and judge makes self-leniency difficult to identify. We introduce Eval-Pair Matrix, a controlled meta evaluation protocol for source-grounded RAG. Starting from GaRAGe questions and grounding passages, we induce one hidden answer-causal contradiction per record, generate answers from perturbed passages with GPT, Grok, and Gemini models, and then use the same models as blind judges to evaluate each answer against the original passages. The experiment contains 300 core records, 897 labeled generator outputs, and 2,683 judge verdicts in a crossed 3 x 3 matrix; the primary analysis uses 275 fully validated records. Instead of comparing diagonal and off-diagonal cells across different answers, we estimate same-model effects by pairing judges on the exact same candidate answer. This changes the interpretation: diagonal and off diagonal F1 are similar, and the paired same-model recall effect is near zero (-0.5 pp; 95% cluster bootstrap CI [-2.7, +1.7]). The only robust paired gap is lower matching-judge flagging for answers that avoided the induced claim (-4.3 pp). A targeted human evaluation finds that reviewed apparent false positives are alternate source-error detections, mistakes in labeling whether the induced claim was adopted, or unclear cases; none were adjudicated as genuine false alarms. The lesson is methodological: RAG judge studies should report full matrices, answer-paired effects, behavior strata, and label-task alignment.
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) and 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.
Pius von Däniken, Felix Matthias Saaro, Mark Cieliebak +1
Centre for Artificial Intelligence ZHAW School of Engineering