Get Started
Home
Topics
Search
Library
6 min read · Evaluation · RAG · Added Oct 8 · Paper published Oct 1, 2026

AGO AI Quality Gate: Evidence-First Release Decisions for Retrieval-Augmented Generation

Source: research paper via Hugging Face Daily Papers
RAG release decisions usually hinge on “average score dipped slightly, ship it?” This gate reframes it as four outcomes including not-evaluable, and gates on Bayesian regression risk per stratum. Key finding: gpt-4.1-nano hit AUROC 0.603 at spotting hallucinations with zero protocol errors—invisibly broken judges demand per-domain validation.

TL;DR

AGO AI Quality Gate decides whether to promote, review, or block a new RAG version by combining a four-state decision model (which treats missing evidence and judge errors as explicit outcomes) with a per-stratum Beta-binomial model regression-risk estimate, and it refuses to trust the LLM-as-a-Judge layer until that judge has been validated against human labels for the specific domain.

Why It Matters

You run a Retrieval-Augmented Generation chatbot for an enterprise client. A new retriever or prompt lands, you re-run your 150-case evaluation set, and the average “faithfulness” score goes from 0.82 to 0.81. Do you ship? Today, most teams eyeball the number and guess. That is the decision this paper is built around: a consultancy (Protom Group) has to sign off on release decisions for client RAG systems, and “the score went down a bit” is not a defensible answer when the client’s compliance team asks why.
The baseline the paper measures itself against is the standard RAG-evaluation stack: tools like RAGAs and ARES that break quality into retrieval and generation sub-scores judged by an LLM, plus benchmarks like RAGBench that grade those judges. The authors argue these produce scores, not decisions, and they identify three gaps that bite in production: evidence is often missing (a judge returns malformed JSON, a trace has no retrieved context), small stratified eval sets make point estimates misleading, and the LLM judge itself is an unvalidated measuring instrument whose reliability does not transfer across domains.

How It Works

AGO is a decision layer wrapped around existing scoring tools. Four pieces matter.
Four-state decisions, not pass/fail. Each test case resolves to promote, manual review, block, or not evaluable. The last state is the key move: if a judge crashed or a context is missing, the case cannot silently count as a pass. Missing evidence can only ever produce not evaluable or manual review, never promote.
Layered scoring. Cheap deterministic checks run first (expected terms present, forbidden phrases absent, right source cited). Then local guardrails fire for PII, secrets, and prompt injection. Only then does the LLM judge score the RAG triad. A critical protocol rule: if the judge returns a non-numeric or out-of-range score, that is a protocol error, not a zero. The case is routed to a human instead of being silently clamped.
Stratified beta-binomial gate. Cases are grouped by category (say, general vs. domain-specific vs. critical questions). For each stratum, pass-rate is modeled as a Beta posterior rather than a point estimate. To compare baseline run A against candidate run B, the gate draws Monte Carlo samples and computes a regression risk: the probability that B’s weighted pass-rate is worse than A’s by more than a tolerance (default 3 percentage points). If that probability exceeds a threshold, the gate blocks or routes to review.
for stratum in strata: post_A[stratum] = Beta(1 + passes_A, 1 + fails_A) post_B[stratum] = Beta(1 + passes_B, 1 + fails_B) p_A = weighted_sum(sample(post_A), weights) p_B = weighted_sum(sample(post_B), weights) rho = mean(p_B < p_A - delta) # regression risk if rho >= 0.80: return "block" elif rho >= 0.40: return "manual review" else: return "promote"
Per-engagement judge validation. Before any judge-based metric is allowed to block a release, the client builds a balanced golden set (100+ cases, both classes present, two annotators) and the judge is scored against it with Cohen’s kappa, Matthews Correlation Coefficient, AUROC, and bootstrap confidence intervals. The judge graduates from “review-only” to “blocking” only when agreement clears a profile-defined floor. Change the judge model and the validation has to be redone.

What They Found

Cheap judges can be invisibly bad. On a stratified sample of 1,200 RAGBench cases, gpt-4.1-nano reached only AUROC 0.603 at detecting non-adherent (hallucinated) answers, barely above chance. gpt-4o reached AUROC 0.783 on the same instances, a gap of +0.180 AUROC and +0.263 MCC with non-overlapping confidence intervals. Crucially, the weak judge produced zero protocol errors and fluent, plausible explanations. Nothing in its surface output revealed the problem.
Even the strong judge is domain-dependent. gpt-4o's per-dataset AUROC ranged from 0.620 (legal contracts) to 0.883 (expert QA). At the deployed 0.8 threshold, MCC ranged from 0.040 to 0.618. On some domains the production operating point is effectively uninformative, even for a frontier model. This is the empirical argument for per-engagement judge validation.
The statistical gate trades throughput for safety. In a 1,000-replicate simulation with three strata and known ground truth, under a true regression the naive gate (promote if candidate pass-rate is within 3pp of baseline) promoted 29.3%–41.8% of regressed candidates across sample sizes N=20–200. AGO’s decision_grade profile promoted 22.2%–35.1%, a consistent reduction at every N. The cost: under no true change, the decision_grade profile sent 23.8%–48.6% of candidates to review or block (false alarms), where the naive gate would have waved them through. Under true improvement, both gates promote at similar high rates.
The authors are careful to flag that RAGBench validates the judge layer only, not the end-to-end gate, and the operating-characteristic study uses synthetic binary outcomes rather than a real paired Bayesian comparison.

What’s Useful

•
If you run RAG evals today and your release decision is “average score crossed a threshold”, the four-state decision model is portable without adopting any of AGO’s statistics. The one change worth making immediately: treat missing retrieved context and malformed judge output as distinct outcomes from “low score”, and route them to a human. The RAGBench results suggest you cannot distinguish these from genuine failures by looking at the judge’s output text.
•
Before trusting any LLM-as-judge metric to gate releases, build a small balanced golden set for your domain and compute MCC with bootstrap confidence intervals. The paper’s N=300 pilot vs. N=1200 full run (where the pilot interval included chance) is a concrete reminder that a few hundred cases is often not enough to distinguish a working judge from a broken one.
•
The regression-risk formulation (probability that the candidate is worse than baseline by more than a tolerance) is worth testing in place of raw score deltas, especially when your eval set is small and stratified. The decision_grade vs. balanced_default comparison shows the review threshold is the main lever for the safety/throughput tradeoff, so you can tune it to your appetite without changing the underlying model.
•
Caveat for anyone wanting to copy the numbers: AGO’s gain over the naive gate was measured on synthetic binary outcomes with known ground truth and independent baseline/candidate runs. Treat the magnitudes as illustrative of the policy’s shape, not as a benchmark score for your setting.

Caveats

The production RAG assessments are proprietary, so the paper never shows AGO improving an actual client release decision end-to-end. The judge-layer validation uses RAGBench reference labels that are themselves LLM-produced (calibrated against humans), so “judge agrees with reference” is a weaker claim than “judge agrees with humans”. The statistical gate models baseline and candidate as independent even when they share items, which the authors note is deliberately conservative (it will over-trigger review rather than silently promote). And context-relevance scoring is excluded from the main comparison because AGO’s definition and RAGBench’s TRACe definition differ, so that dimension is not validated here.
Topics
Evaluation
RAG
NLP
Evaluation
RAG
NLP
Up next in Evaluation
Interlock: From Local Correctness to Task Completion in Long-Horizon Agents
AdaExploreBench: Benchmarking LLM Agents for Proactive Exploration and Test-time Adaptation in Evolving Environments
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
RAG48 episodes
Evaluation209 episodes
NLP145 episodes