Rare Words: A Major Problem for Contextualized Embeddings and How to Fix It by Attentive Mimicking

Abstract

Pretraining deep neural network architectures with a language modeling objective has brought large improvements for many natural language processing tasks. Exemplified by BERT, a recently proposed such architecture, we demonstrate that despite being trained on huge amounts of data, deep language models still struggle to understand rare words. To fix this problem, we adapt Attentive Mimicking, a method that was designed to explicitly learn embeddings for rare words, to deep language models. In order to make this possible, we introduce one-token approximation, a procedure that enables us to use Attentive Mimicking even when the underlying language model uses subword-based tokenization, i.e., it does not assign embeddings to all words. To evaluate our method, we create a novel dataset that tests the ability of language models to capture semantic properties of words without any task-specific fine-tuning. Using this dataset, we show that adding our adapted version of Attentive Mimicking to BERT does substantially improve its understanding of rare words.

Cite

Text

Schick and Schütze. "Rare Words: A Major Problem for Contextualized Embeddings and How to Fix It by Attentive Mimicking." AAAI Conference on Artificial Intelligence, 2020. doi:10.1609/AAAI.V34I05.6403

Markdown

[Schick and Schütze. "Rare Words: A Major Problem for Contextualized Embeddings and How to Fix It by Attentive Mimicking." AAAI Conference on Artificial Intelligence, 2020.](https://mlanthology.org/aaai/2020/schick2020aaai-rare/) doi:10.1609/AAAI.V34I05.6403

BibTeX

@inproceedings{schick2020aaai-rare,
  title     = {{Rare Words: A Major Problem for Contextualized Embeddings and How to Fix It by Attentive Mimicking}},
  author    = {Schick, Timo and Schütze, Hinrich},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2020},
  pages     = {8766-8774},
  doi       = {10.1609/AAAI.V34I05.6403},
  url       = {https://mlanthology.org/aaai/2020/schick2020aaai-rare/}
}