Adaptive Retrieval-Augmented Generation for Conversational Systems

Xi Wang, Procheta Sen, Ruizhe Li, Emine Yilmaz

Introduction

Retrieval-Augmented Generation (RAG) has become a cornerstone for grounding Large Language Models (LLMs) in factual, up-to-date information. However, the common practice of retrieving external knowledge for every turn in a conversation—the "always-on" approach—introduces significant drawbacks. Irrelevant snippets can lead to hallucinations, disrupt conversational flow with overly specific details, and increase computational latency.

Comparison of responses with and without external knowledge augmentation. Irrelevant knowledge can lead to unnatural conversational flow.

The RAGate Framework

To address these issues, this paper introduces RAGate, an adaptive gating mechanism that decides whether to trigger retrieval based on the dialogue context. By treating the decision as a binary classification task, RAGate ensures that external knowledge is only utilized when it is truly necessary for a high-quality response.

The researchers explored three primary implementation variants for the gate:

  1. RAGate-Prompt: Uses LLMs (e.g., Llama-2) in zero-shot or in-context learning modes to reason about the necessity of augmentation.
  2. RAGate-PEFT: Employs Parameter-Efficient Fine-Tuning (QLoRA) on Llama-2-7B to predict the "Augment vs. Not Augment" decision.
  3. RAGate-MHA: A lightweight architecture utilizing a Multi-Head Attention (MHA) encoder to model interactions between context and potential knowledge snippets.
Overview of the RAGate architecture and its three implementation variants: Prompt-based, PEFT-based, and MHA-based.

Experimental Setup and Datasets

The study utilized the KETOD (Knowledge-Enriched Task-Oriented Dialogue) dataset, which spans 16 domains. KETOD is unique because it includes human-annotated labels for turns where external knowledge was deemed necessary (approximately 12.1% of turns). This provided a robust "gold standard" for training and evaluating the gating mechanisms.

Key Insights

  • Confidence and Relevance: A strong correlation exists between model confidence (logit values) and the relevance of retrieved knowledge. Forcing a model to use irrelevant data causes a "confidence dip," increasing the risk of hallucination.
  • Diminishing Returns: The need for RAG is typically highest at the start of a conversation to establish facts. As the dialogue progresses toward refinement, the value of new external knowledge decreases.
  • Domain Sensitivity: "Knowledge-hungry" domains like Travel require more frequent RAG triggers compared to transactional domains like Messaging.

Results and Performance

RAGate-PEFT achieved the highest precision (0.68), while RAGate-MHA provided the best balance of recall. Notably, using RAGate-MHA allowed the system to trigger retrieval for only ~16% of turns compared to an "always-on" baseline. Despite this massive reduction in retrieval, the system maintained comparable BLEU/ROUGE scores and achieved a significantly higher average confidence score (9.30 vs. 8.36).

Conclusion and Future Work

RAGate demonstrates that adaptive retrieval is essential for building reliable and efficient conversational agents. Future research will focus on testing the gate with modern Dense Passage Retrieval (DPR) systems, scaling to frontier models like GPT-4, and developing more diverse benchmarks for augmentation necessity.

Summary updated

BibTeX
@inproceedings{wang2025adaptive,
  author = {Xi Wang and Procheta Sen and Ruizhe Li and Emine Yilmaz},
  title = {{Adaptive Retrieval-Augmented Generation for Conversational Systems}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.30},
}
Figure