An Automated Compatibility Judge for Model Migrations in RAG Systems
Year: 2026
Type: preprint
Abstract: When you upgrade the foundation model in a production RAG system, you need to know if the answers changed in ways that matter. Manual review doesn't scale. A production system serves more query patterns than a reviewer covers, and spot checks miss small differences. This paper presents an automated judge that scores a migration on three dimensions: semantic similarity (embedding cosine), structural similarity (ROUGE-L), and factual consistency (NLI entailment with DeBERTa-v3-large fine-tuned on MNLI). To separate real drift from run-to-run noise, the judge runs a one-sided equivalence test per query with a Bonferroni correction at α = 0.05/n. Its output is a Green, Yellow, or Red tier for a CI/CD gate. I tested it on 40 queries in two domains, healthcare and technical documentation, with six Amazon Nova model pairs on Amazon Bedrock. Every tier upgrade classified Red. Every downgrade classified Green. In a 5-query pilot on Claude and Nova models, a minor version upgrade came out Green and a cross-family swap came out Red. The paper also covers where the judge fails: high embedding similarity hides factual differences, the threshold choice moves the results, and scores depend on the embedding model underneath. Code and data are available at https://github.com/aws-samples/sample-bedrock-knowledge-base-drift-detection.
Author: Seeryada, Guruprasad
Institution: Amazon (United States)
Language: English
Topic: Topic Modeling
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7238755555
Cites:
Cited by:
Related to:
