Introduction
Large Language Models (LLMs) often exhibit "hallucinations," generating fluent but factually incorrect responses. This occurs because LLMs primarily rely on statistical patterns learned during pre-training rather than external, verifiable facts. To address this, researchers from KAIST and AITRICS proposed SURGE (SUbgraph Retrieval-augmented GEneration), an end-to-end framework that anchors dialogue generation in structured Knowledge Graphs (KGs). SURGE retrieves context-relevant subgraphs and integrates them into language models using structure-aware encoding and contrastive learning.
Challenges in Knowledge-Grounded Dialogue
Existing approaches to grounding dialogue in KGs face two significant hurdles:
- The Relevance Gap: Standard retrieval methods often pull all facts within a certain radius of a mentioned entity. Analysis of the OpendialKG dataset reveals that approximately 87.4% of 1-hop facts are irrelevant to the specific conversation context. This noise distracts the model, leading to factual errors.
- The Modality Gap: There is a fundamental mismatch between the sequential nature of text and the structured nature of graphs. Simple "flattening" of graph triplets into text strings is inefficient and loses the rich relational information inherent in the graph structure.
The SURGE Framework
The SURGE framework introduces three core components to bridge these gaps:
1. Context-Relevant Subgraph Retriever
Instead of exhaustive retrieval, SURGE employs a Graph Neural Network (GNN) to identify and score the most relevant triplets (subject-relation-object). This retriever is latent and trained end-to-end with the generator, allowing it to learn which facts are most useful for dialogue without explicit supervision.
2. Invariant and Efficient Graph Encoding
To process graph data within a Transformer architecture, SURGE uses a novel encoding method that is both permutation and relation-inversion invariant. Rather than adding extra tokens, it applies a learnable affine transformation to the word embeddings of entities, effectively "perturbing" them based on their graph neighborhood. This ensures the model understands that "A wrote B" and "B was written by A" represent the same factual relationship.
3. Graph-Text Contrastive Learning
To enforce consistency between the retrieved knowledge and the generated response, SURGE utilizes a contrastive loss. This objective aligns the vector representations of the generated text and the retrieved subgraph in a shared embedding space. If the model ignores the provided facts in favor of internal hallucinations, it is penalized.
Experimental Setup and Evaluation
The framework was evaluated on two major benchmarks: OpendialKG (15,000 dialogues) and KOMODIS (7,500 movie-related dialogues).
Beyond standard linguistic metrics like BLEU and ROUGE, the authors introduced a new metric: Knowledge-verifying Question Answering (KQA). KQA uses an extractive QA model to verify if the generated response contains the specific "gold" entity from the KG, providing a more accurate measure of factuality than word-overlap metrics.
Results and Discussion
SURGE consistently outperformed state-of-the-art baselines such as DiffKG and EARL.
- Factuality: On OpendialKG, SURGE achieved a KQA F1 score of 57.70, significantly higher than the "All Knowledge" baseline (50.60).
- Fluency and Consistency: Human evaluations confirmed that SURGE produces responses that are more informative, consistent, and fluent than previous methods.
The results demonstrate that "less is more" in knowledge retrieval; focusing on a small, high-quality subgraph reduces noise and improves generation quality.
Conclusion and Future Work
SURGE represents a significant step toward more reliable and factually grounded chatbots. While currently limited by the search space of entities mentioned in the dialogue and the accuracy of entity linking, future work could extend this framework to larger-scale models and more complex retrieval scenarios. By aligning structured knowledge with unstructured text, SURGE provides a robust path forward for the next generation of conversational AI.
Summary updated