Exploiting Word Semantics to Enrich Character Representations of Chinese Pre-trained Models

Wenbiao Li, Rui Sun, Yunfang Wu
7/13/2022
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Most of the Chinese pre-trained models adopt characters as basic units for downstream tasks. However, these models ignore the information carried by words and thus lead to the loss of some important semantics. In this paper, we propose a new method to exploit word structure and integrate lexical semantics into character representations of pre-trained models. Specifically, we project a word's embedding into its internal characters' embeddings according to the similarity weight. To strengthen the word boundary information, we mix the representations of the internal characters within a word. After that, we apply a word-to-character alignment attention mechanism to emphasize important characters by masking unimportant ones. Moreover, in order to reduce the error propagation caused by word segmentation, we present an ensemble approach to combine segmentation results given by different tokenizers. The experimental results show that our approach achieves superior performance over the basic pre-trained models BERT, BERT-wwm and ERNIE on different Chinese NLP tasks: sentiment classification, sentence pair matching, natural language inference and machine reading comprehension. We make further analysis to prove the effectiveness of each component of our model.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2022exploiting,
  title  = {Exploiting Word Semantics to Enrich Character Representations of Chinese Pre-trained Models},
  author = {Wenbiao Li and Rui Sun and Yunfang Wu},
  year   = {2022},
  eprint = {2207.05928},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.05928v1}
}

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/2207.05928.svg)](https://codeofpaper.com/paper/2207.05928)

Discussion