English

Char2Subword: Extending the Subword Embedding Space Using Robust Character Compositionality

Computation and Language 2021-09-27 v3

Abstract

Byte-pair encoding (BPE) is a ubiquitous algorithm in the subword tokenization process of language models as it provides multiple benefits. However, this process is solely based on pre-training data statistics, making it hard for the tokenizer to handle infrequent spellings. On the other hand, though robust to misspellings, pure character-level models often lead to unreasonably long sequences and make it harder for the model to learn meaningful words. To alleviate these challenges, we propose a character-based subword module (char2subword) that learns the subword embedding table in pre-trained models like BERT. Our char2subword module builds representations from characters out of the subword vocabulary, and it can be used as a drop-in replacement of the subword embedding table. The module is robust to character-level alterations such as misspellings, word inflection, casing, and punctuation. We integrate it further with BERT through pre-training while keeping BERT transformer parameters fixed--and thus, providing a practical method. Finally, we show that incorporating our module to mBERT significantly improves the performance on the social media linguistic code-switching evaluation (LinCE) benchmark.

Keywords

Cite

@article{arxiv.2010.12730,
  title  = {Char2Subword: Extending the Subword Embedding Space Using Robust Character Compositionality},
  author = {Gustavo Aguilar and Bryan McCann and Tong Niu and Nazneen Rajani and Nitish Keskar and Thamar Solorio},
  journal= {arXiv preprint arXiv:2010.12730},
  year   = {2021}
}

Comments

Findings of EMNLP 2020

R2 v1 2026-06-23T19:36:33.381Z