Bidirectional Semantic Matching with Deep Contextualized Word Embedding for Chinese Sentence Matching

Kunxun Qi, Jianfeng Du, Qiqi Ou, Linxi Jin, Jinglan ZhongCCKS Tasks 2018

Abstract

Sentence matching is a fundamental task in natural language processing, essential for applications such as paraphrase identification and question answering. This paper describes an improved approach for Chinese sentence matching based on the Bilateral Multi-Perspective Matching (BiMPM) framework. By incorporating deep contextualized word embeddings (ELMo) and refining the interaction mechanisms, the proposed model effectively captures semantic nuances and context-dependent meanings. Experimental results on the CCKS 2018 dataset demonstrate that the model achieves an F1-score of 84.6% on the test set, outperforming several strong baselines and highlighting the value of interaction-based encoding and contextualized representations.

1. Introduction

Determining the semantic relationship between two sentences is a core challenge in NLP. Historically, two primary frameworks have dominated: classical encoding, which processes sentences independently, and interaction-based encoding, which utilizes attention to model word-level relationships between pairs. Traditional static embeddings like Word2vec often struggle with polysemy and out-of-vocabulary (OOV) words, especially in Chinese where word boundaries are not explicitly marked. This work addresses these limitations by leveraging ELMo embeddings and a refined BiMPM architecture.

2. Methodology

The proposed architecture integrates several layers to process and match sentence pairs effectively, as illustrated in the following diagram:

Architecture of the proposed bidirectional semantic matching model, illustrating the flow from word/character representations to the final prediction layer.

2.1 Contextualized Representations

The model replaces static word vectors with ELMo (Embeddings from Language Models), which are trained on a large Chinese Wikipedia corpus. ELMo provides dynamic embeddings that vary based on the surrounding context. To further enhance robustness against segmentation errors, a character-level BiLSTM is integrated into the representation layer.

2.2 Refined Matching Layer

The core of the model is the matching layer, which compares the context-aware representations of the two sentences. The authors focused on three primary mechanisms:

  • Full-Matching: Compares each word in one sentence against the final hidden state of the other.
  • Attentive-Matching: Compares a word against a weighted average of all words in the opposing sentence.
  • Max-Attentive-Matching: Compares a word against the most similar word in the other sentence.

The max-pooling matching mechanism from the original BiMPM was omitted to streamline computation and focus on the most effective interaction types.

2.3 Ensemble Strategy

To improve generalization, the authors employed an ensemble strategy. The model was trained using different optimization algorithms (Adam and Adadelta), and a voting mechanism was used to aggregate their predictions, providing a noticeable performance boost.

3. Results and Discussion

The model was evaluated on the CCKS 2018 dataset, which contains 100,000 training pairs. The performance was compared against a variety of baseline models.

Performance comparison of the proposed model against classical and attention-based encoding frameworks on the CCKS 2018 validation set.

As shown in the results table, the proposed model significantly outperforms classical encoding frameworks like BCNN and SWEMs. Within the attention-based category, the model achieves superior performance compared to ESIM and the standard BiMPM. The ensemble "Vote" model reached the highest validation F1-score of 86.2% and accuracy of 86.1%. On the hidden test set, the model maintained a strong F1-score of 84.6%, ranking fifth in the CCKS 2018 competition.

4. Conclusion

This research demonstrates that combining deep contextualized embeddings with sophisticated interaction layers significantly improves Chinese sentence matching. The use of ELMo effectively addresses the limitations of static embeddings, while the refined BiMPM architecture captures critical inter-sentence relationships. While newer Transformer-based architectures like BERT have since become standard, this work highlights the enduring importance of multi-perspective matching and contextualized representations in NLP.

Summary updated

BibTeX
@inproceedings{qi2018bidirectional,
  author = {Kunxun Qi and Jianfeng Du and Qiqi Ou and Linxi Jin and Jinglan Zhong},
  title = {{Bidirectional Semantic Matching with Deep Contextualized Word Embedding for Chinese Sentence Matching}},
  booktitle = {CCKS Tasks},
  year = {2018},
}
Figure