[论文解读] Knowledge Graph-Augmented Language Models for Knowledge-Grounded Dialogue Generation
SURGE 从知识图谱中检索与上下文相关的子图,将其无偏地编码为语言模型,并使用图-文本对比学习生成具有更高事实保真度的知识驱动对话。
Language models have achieved impressive performances on dialogue generation tasks. However, when generating responses for a conversation that requires factual knowledge, they are far from perfect, due to an absence of mechanisms to retrieve, encode, and reflect the knowledge in the generated responses. Some knowledge-grounded dialogue generation methods tackle this problem by leveraging facts from Knowledge Graphs (KGs); however, they do not guarantee that the model utilizes a relevant piece of knowledge from the KG. To overcome this limitation, we propose SUbgraph Retrieval-augmented GEneration (SURGE), a framework for generating context-relevant and knowledge-grounded dialogues with the KG. Specifically, our SURGE framework first retrieves the relevant subgraph from the KG, and then enforces consistency across facts by perturbing their word embeddings conditioned by the retrieved subgraph. Then, we utilize contrastive learning to ensure that the generated texts have high similarity to the retrieved subgraphs. We validate our SURGE framework on OpendialKG and KOMODIS datasets, showing that it generates high-quality dialogues that faithfully reflect the knowledge from KG.
研究动机与目标
- 在需要外部知识时,激励并解决对话中由大规模语言模型生成的事实不准确问题。
- 开发一个上下文相关的子图检索器,仅选择生成条件所需的相关KG事实。
- 提出一种不变且高效的图编码,将KG信息整合到PLMs中。
- 应用图-文本对比学习,确保生成的回复反映检索到的KG知识。
提出的方法
- 提出 SURGE,它使用基于 GNN 的三元组检索器通过 p_phi(Z|x) 从 KG G 中检索一个上下文相关的子图 Z。
- 通过 SORT(INV(Z)) 和一个与关系相关的扰动 beta,将 Z 以置换不变和关系反转不变的方式编码到 PLM 的嵌入中。
- 通过对检索到的子图进行边缘化的端到端训练,目标函数包含 L_ret,以及在存在金子子图时的监督项 L_sup,以及一个图-文本对比损失 L_cont。
- 引入知识验证问答(KQA)来评估生成知识的事实正确性。
- 在 OpendialKG 和 KOMODIS 上评估 SURGE,显示知识保真度和标准指标的提升。

实验结果
研究问题
- RQ1 learned subgraph retriever 能否为对话生成隔离出上下文相关的 KG 事实?
- RQ2 不变的图编码是否能够在不使计算复杂度膨胀的情况下可靠地将 PLMs 条件化于 KG 结构?
- RQ3 图-文本对比学习是否提高保真度并减少基于知识的对话中的幻觉?
- RQ4 与基线相比,SURGE 在基准 KG 基线对话数据集上的表现如何?
- RQ5 基于 KQA 的评估能否捕捉生成回复的事实正确性?
主要发现
- 带对比学习的 SURGE 变体在 OpendialKG 上的 KQA 分数高于基线(如表 1 的 SURGE(对比))。
- 检索上下文相关子图在 BLEU、ROUGE 和 F1 指标上优于全知识和随机检索基线。
- 不变的图编码满足置换不变性和关系反转不变性,同时保持空间高效。
- 图-文本对比学习提高了检索事实与生成回复之间的一致性,提升 KF1 及相关指标。
- KOMODIS 结果显示 SURGE(本方)在知识驱动生成上的指标优于基线。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。