Skip to main content
QUICK REVIEW

[Paper Review] The Short Text Matching Model Enhanced with Knowledge via Contrastive Learning

Liu, Ruiqiang, Qiqiang Zhong|arXiv (Cornell University)|Apr 8, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes KSTM, a short text matching model that enhances semantic representation by integrating contrastive learning with external knowledge via generated complementary sentences and a knowledge graph. By leveraging SimBERT to generate context-aware complements and using contrastive learning to align original and complementary sentence embeddings, the model achieves state-of-the-art performance on Chinese short text matching benchmarks, outperforming prior methods by up to 2.58% in F1 score.

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.

Motivation & Objective

  • To address the challenge of semantic ambiguity and lack of context in short text matching, especially in advertising search and recommendation systems.
  • To improve model performance by effectively integrating external knowledge without introducing noise from irrelevant or low-quality knowledge sources.
  • To enhance sentence encoding through contrastive learning that aligns original and complementary sentences in embedding space.
  • To construct a knowledge graph using keywords and HowNet to enrich semantic representation with structured knowledge.
  • To validate the effectiveness of each component—complementary sentences, contrastive learning, and knowledge graphs—through ablation studies.

Proposed method

  • A fine-tuned SimBERT model generates complementary sentences for input short texts using internal UC and Quark browser search data to ensure contextual relevance.
  • Contrastive learning is applied between the original sentence and its generated complement as positive pairs, with other samples in the batch as negative pairs.
  • Keywords are extracted from original sentences and used to retrieve top-k related knowledge words from the HowNet knowledge base.
  • A knowledge graph is constructed using retrieved knowledge words and encoded via a graph neural network to integrate structured knowledge into the model.
  • The final model combines contrastive learning loss and binary cross-entropy loss to jointly optimize sentence encoding and matching performance.
  • Ablation studies are conducted to evaluate the contribution of each component: contrastive learning, complementary sentences, and knowledge graph integration.

Experimental results

Research questions

  • RQ1How does contrastive learning between original and generated complementary sentences improve short text matching performance?
  • RQ2To what extent does incorporating external knowledge via a knowledge graph enhance semantic representation in short text matching?
  • RQ3How does the use of keyword-based knowledge retrieval reduce noise compared to word-by-word retrieval?
  • RQ4What is the relative contribution of complementary sentences versus knowledge graphs in improving model accuracy and F1 score?
  • RQ5How does the model perform on datasets with varying levels of intent-based matching complexity?

Key findings

  • The KSTM model achieves state-of-the-art performance on both the BQ and LCQMC Chinese short text matching datasets, with an F1 score of 90.20 on LCQMC and 88.44 on BQ.
  • Removing contrastive learning leads to a 0.94% drop in F1 score on BQ and a 1.4% drop on LCQMC, indicating its role in refining semantic representations.
  • Eliminating the knowledge graph results in a 2.56% F1 drop on BQ and a 3.35% drop on LCQMC, showing its significant contribution, especially in intent-sensitive tasks.
  • Replacing complementary sentences with original sentences in contrastive learning reduces F1 by 2.94% on BQ and 4.1% on LCQMC, highlighting the value of contextually generated complements.
  • The model performs better on LCQMC than BQ when components are removed, suggesting that intent-based matching benefits more from external knowledge.
  • Ablation analysis confirms that knowledge graph integration and complementary sentence generation have a greater positive impact than contrastive learning alone, particularly in low-vocabulary, ambiguous scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.