Auto-GDA: Automatic Domain Adaptation for Efficient Grounding Verification in Retrieval-Augmented Generation

Tobias Leemann, Periklis Petridis, Giuseppe Vietri, Dionysis Manousakas, Aaron Roth, Sergul Aydore

Checking if Retrieval-Augmented Generation (RAG) outputs are hallucinated is traditionally a slow and expensive process. It often relies on massive Large Language Models (LLMs) because faster, lightweight models struggle to adapt to domain-specific RAG data.

To solve this, researchers have introduced Auto-GDA (Automatic Generative Domain Adaptation), an automated framework that generates high-quality synthetic training data to adapt lightweight models to new domains without requiring human labels. The resulting models match the accuracy of massive LLMs like GPT-4o but run 10x faster.

The Problem: The "Domain Gap" in Grounding Verification

While RAG helps ground LLM responses in external documents, hallucinations still occur. To prevent these from reaching users, systems use "grounding verification"—checking if the generated text is logically entailed by the retrieved documents.

Prompting an LLM (like GPT-4) to perform this check is highly accurate but far too slow and expensive for real-time inference. Alternatively, you can use lightweight Natural Language Inference (NLI) models (like DeBERTa). However, these smaller models suffer a massive performance drop when applied to real-world RAG data. RAG inputs are long, complex, and come from highly specific knowledge bases that the NLI models never saw during training.

Performance vs Inference Time

Bridging this "domain gap" usually requires fine-tuning the model on labeled data from the target domain. But in practice, manually labeling RAG outputs for every new use case is prohibitively expensive. Auto-GDA was designed to adapt lightweight models to unseen domains using only unlabeled target data.

Methods: The Auto-GDA Pipeline

Auto-GDA is an unsupervised pipeline that creates high-quality synthetic training data to fine-tune lightweight NLI models. Instead of relying on manual heuristics, Auto-GDA automates the generation and filtering process through an iterative loop.

Auto-GDA Pipeline

The framework operates in several key steps:

  1. Initial Generation: It uses an LLM with few-shot prompting to generate initial claims (both factually grounded and intentionally hallucinated) based on unlabeled target documents.
  2. Weak Labeling: A slower, more accurate "teacher" model evaluates these claims and assigns an "entailment certainty" score (a soft confidence label).
  3. Augmentation: To increase dataset diversity, the system applies label-preserving mutations (e.g., LLM rephrasing, paraphrasing, sentence deletion). Crucially, it updates the certainty scores of these new sentences using logical rules rather than re-evaluating the whole document.
  4. Smart Selection: Instead of random filtering, Auto-GDA uses a discrete optimization objective to pick the best samples. It selects data that closely resembles the target domain, has high label certainty, and is currently difficult for the lightweight model to predict.
  5. Fine-tuning: The lightweight base model is fine-tuned on this curated synthetic dataset.

Key Insights

  • The Student Surpasses the Teacher: The lightweight model fine-tuned on Auto-GDA data frequently outperformed the "teacher" model used to assign the initial weak labels. Because Auto-GDA's selection objective rigorously filters out uncertain samples, the final training data is actually cleaner than the teacher's average output.
  • Synthetic Data > Traditional UDA: Standard Unsupervised Domain Adaptation (UDA) techniques (which try to align feature distributions mathematically) barely moved the needle for NLI tasks. Generating targeted synthetic data proved vastly more effective.
  • Augmentation Requires Strict Filtering: Blindly augmenting synthetic data actually hurt model performance by introducing noisy labels. Augmentation only worked when paired with Auto-GDA's rigorous selection criteria to weed out corrupted samples.

Key Results

The framework was evaluated on realistic RAG datasets covering summarization and Question Answering (QA), including RAGTruth, SummEdits, and LFQA-Verification.

  • LLM-Level Performance: The best Auto-GDA fine-tuned model (DeBERTaV2) achieved an average ROC-AUC score of 0.878 across the benchmarks, effectively matching the performance of GPT-4o (0.883).
  • Massive Speedup: The Auto-GDA models achieved this state-of-the-art accuracy while operating at roughly 10% of the inference latency of GPT-4o.
  • Closing the Gap: By comparing the baseline model to a hypothetical model trained on actual human-labeled data, the authors found that Auto-GDA successfully closes 96% of the domain adaptation gap using purely synthetic data.

Limitations and Future Work

While highly effective, Auto-GDA assumes you have a representative corpus of the target domain's retrieved documents readily available to generate claims from. If the knowledge base is too massive, techniques like passage clustering might be needed first. Additionally, the adaptation process currently creates a model specialized for one specific domain. Future work should explore adapting a single efficient model to multiple domains simultaneously without performance degradation, as well as evaluating the impact of this verification model within a complete, end-to-end RAG pipeline.

Summary updated

BibTeX
@inproceedings{leemann2025auto,
  author = {Tobias Leemann and Periklis Petridis and Giuseppe Vietri and Dionysis Manousakas and Aaron Roth and Sergul Aydore},
  title = {{Auto-GDA: Automatic Domain Adaptation for Efficient Grounding Verification in Retrieval-Augmented Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=w5ZtXOzMeJ},
}
Figure