KETM:A Knowledge-Enhanced Text Matching method

Kexin Jiang, Yahui Zhao, Guozhe Jin, Zhenguo Zhang, Rongyi Cui
8/11/2023
9 citations
cs.CL
transformer-attention

Official code: 1094701018/KETM (12 stars, Python, last commit 2023-08-11).

Abstract

Text matching is the task of matching two texts and determining the relationship between them, which has extensive applications in natural language processing tasks such as reading comprehension, and Question-Answering systems. The mainstream approach is to compute text representations or to interact with the text through attention mechanism, which is effective in text matching tasks.

Show full abstract

However, the performance of these models is insufficient for texts that require commonsense knowledge-based reasoning. To this end, in this paper, We introduce a new model for text matching called the Knowledge Enhanced Text Matching model (KETM), to enrich contextual representations with real-world common-sense knowledge from external knowledge sources to enhance our model understanding and reasoning. First, we use Wiktionary to retrieve the text word definitions as our external knowledge. Secondly, we feed text and knowledge to the text matching module to extract their feature vectors. The text matching module is used as an interaction module by integrating the encoder layer, the co-attention layer, and the aggregation layer. Specifically, the interaction process is iterated several times to obtain in-depth interaction information and extract the feature vectors of text and knowledge by multi-angle pooling. Then, we fuse text and knowledge using a gating mechanism to learn the ratio of text and knowledge fusion by a neural network that prevents noise generated by knowledge. After that, experimental validation on four datasets are carried out, and the experimental results show that our proposed model performs well on all four datasets, and the performance of our method is improved compared to the base model without adding external knowledge, which validates the effectiveness of our proposed method. The code is available at https://github.com/1094701018/KETM

View on arXivView PDF

Code Implementations(1)

1094701018/KETMOfficial100%

基于知识增强的文本匹配模型

121PythonJun 13, 20233 years ago

Similar Papers

Cite this paper

@article{jiang2023ketma,
  title  = {KETM:A Knowledge-Enhanced Text Matching method},
  author = {Kexin Jiang and Yahui Zhao and Guozhe Jin and Zhenguo Zhang and Rongyi Cui},
  year   = {2023},
  eprint = {2308.06235},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.06235v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.06235.svg)](https://codeofpaper.com/paper/2308.06235)

Discussion