Skip to main content
QUICK REVIEW

[论文解读] The Short Text Matching Model Enhanced with Knowledge via Contrastive Learning

Liu, Ruiqiang, Qiqiang Zhong|arXiv (Cornell University)|Apr 8, 2023
Topic ModelingComputer Science被引用 3
一句话总结

本文提出KSTM,一种短文本匹配模型,通过结合对比学习与外部知识,利用生成的互补句子和知识图谱来增强语义表征。通过利用SimBERT生成上下文感知的互补句子,并采用对比学习对齐原始句子与互补句子的嵌入表示,该模型在中文短文本匹配基准上实现了最先进性能,F1分数相比之前方法最高提升2.58%。

ABSTRACT

In recent years, short Text Matching tasks have been widely applied in the fields ofadvertising search and recommendation. The difficulty lies in the lack of semantic information and word ambiguity caused by the short length of the text. Previous works have introduced complement sentences or knowledge bases to provide additional feature information. However, these methods have not fully interacted between the original sentence and the complement sentence, and have not considered the noise issue that may arise from the introduction of external knowledge bases. Therefore, this paper proposes a short Text Matching model that combines contrastive learning and external knowledge. The model uses a generative model to generate corresponding complement sentences and uses the contrastive learning method to guide the model to obtain more semantically meaningful encoding of the original sentence. In addition, to avoid noise, we use keywords as the main semantics of the original sentence to retrieve corresponding knowledge words in the knowledge base, and construct a knowledge graph. The graph encoding model is used to integrate the knowledge base information into the model. Our designed model achieves state-of-the-art performance on two publicly available Chinese Text Matching datasets, demonstrating the effectiveness of our model.

研究动机与目标

  • 为解决广告搜索与推荐系统中短文本匹配存在的语义歧义与上下文缺失问题。
  • 通过有效整合外部知识,避免引入无关或低质量知识源带来的噪声,提升模型性能。
  • 通过对比学习对齐原始句子与互补句子在嵌入空间中的表示,增强句子编码能力。
  • 利用关键词与HowNet构建知识图谱,以结构化知识丰富语义表征。
  • 通过消融实验验证每个组件——互补句子、对比学习与知识图谱集成——的贡献。

提出的方法

  • 使用内部UC与Quark浏览器搜索数据微调SimBERT模型,为输入短文本生成上下文相关的互补句子。
  • 将原始句子与其生成的互补句子作为正样本对,与其他批次中的样本作为负样本对,应用对比学习。
  • 从原始句子中提取关键词,并利用HowNet知识库检索与之相关的top-k知识词。
  • 使用检索到的知识词构建知识图谱,并通过图神经网络编码,将结构化知识整合至模型中。
  • 最终模型联合优化句子编码与匹配性能,结合对比学习损失与二元交叉熵损失。
  • 通过消融实验评估各组件的贡献:对比学习、互补句子生成与知识图谱集成。

实验结果

研究问题

  • RQ1原始句子与生成的互补句子之间的对比学习在多大程度上提升了短文本匹配性能?
  • RQ2通过知识图谱引入外部知识在多大程度上增强了短文本匹配中的语义表征?
  • RQ3与逐字检索相比,基于关键词的知识检索在多大程度上降低了噪声?
  • RQ4互补句子与知识图谱在提升模型准确率与F1分数方面,各自贡献如何?
  • RQ5当数据集的意图匹配复杂度不同时,模型表现如何?

主要发现

  • KSTM模型在BQ与LCQMC中文短文本匹配数据集上均达到最先进性能,LCQMC数据集F1得分为90.20,BQ数据集为88.44。
  • 移除对比学习后,BQ数据集F1下降0.94%,LCQMC数据集下降1.4%,表明其在优化语义表征方面具有关键作用。
  • 移除知识图谱后,BQ数据集F1下降2.56%,LCQMC数据集下降3.35%,表明其贡献显著,尤其在意图敏感任务中。
  • 在对比学习中用原始句子替代互补句子,BQ数据集F1下降2.94%,LCQMC数据集下降4.1%,凸显上下文生成互补句子的价值。
  • 当各组件被移除时,模型在LCQMC上的表现优于BQ,表明意图匹配任务更受益于外部知识。
  • 消融分析确认,知识图谱集成与互补句子生成的正向影响大于仅依赖对比学习,尤其在低词汇量、语义模糊场景中。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。