DyLex: Incorporating Dynamic Lexicons into BERT for Sequence Labeling

Baojun Wang, Zhao Zhang, Kun Xu, Guang-Yuan Hao, Yuyang Zhang +5 more
9/18/2021
cs.CL

Official code: huawei-noah/noah-research (1,018 stars, Python, last commit 2026-03-20).

Abstract

Incorporating lexical knowledge into deep learning models has been proved to be very effective for sequence labeling tasks. However, previous works commonly have difficulty dealing with large-scale dynamic lexicons which often cause excessive matching noise and problems of frequent updates.

Show full abstract

In this paper, we propose DyLex, a plug-in lexicon incorporation approach for BERT based sequence labeling tasks. Instead of leveraging embeddings of words in the lexicon as in conventional methods, we adopt word-agnostic tag embeddings to avoid re-training the representation while updating the lexicon. Moreover, we employ an effective supervised lexical knowledge denoising method to smooth out matching noise. Finally, we introduce a col-wise attention based knowledge fusion mechanism to guarantee the pluggability of the proposed framework. Experiments on ten datasets of three tasks show that the proposed framework achieves new SOTA, even with very large scale lexicons.

View on arXivView PDF

Code Implementations(1)

Noah Research

1,018317Python, Jupyter NotebookJun 17, 20208 months ago

Similar Papers

Cite this paper

@article{wang2021dylex,
  title  = {DyLex: Incorporating Dynamic Lexicons into BERT for Sequence Labeling},
  author = {Baojun Wang and Zhao Zhang and Kun Xu and Guang-Yuan Hao and Yuyang Zhang and Lifeng Shang and Linlin Li and Xiao Chen and Xin Jiang and Qun Liu},
  year   = {2021},
  eprint = {2109.08818},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.08818}
}

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

Discussion