CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characters

Hicham El Boukkouri, Olivier Ferret, Thomas Lavergne, Hiroshi Noji, Pierre Zweigenbaum +1 more
10/20/2020
189 citations
cs.CL
transformer-attention

Official code: helboukkouri/character-bert (199 stars, Python, Apache-2.0, last commit 2026-05-23).

Abstract

Due to the compelling improvements brought by BERT, many recent representation models adopted the Transformer architecture as their main building block, consequently inheriting the wordpiece tokenization system despite it not being intrinsically linked to the notion of Transformers. While this system is thought to achieve a good balance between the flexibility of characters and the efficiency of full words, using predefined wordpiece vocabularies from the general domain is not always suitable, especially when building models for specialized domains (e.g., the medical domain).

Show full abstract

Moreover, adopting a wordpiece tokenization shifts the focus from the word level to the subword level, making the models conceptually more complex and arguably less convenient in practice. For these reasons, we propose CharacterBERT, a new variant of BERT that drops the wordpiece system altogether and uses a Character-CNN module instead to represent entire words by consulting their characters. We show that this new model improves the performance of BERT on a variety of medical domain tasks while at the same time producing robust, word-level and open-vocabulary representations.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Main repository for "CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characters"

19946Python, ShellOct 20, 20206 months agoApache-2.0

Similar Papers

Cite this paper

@article{boukkouri2020characterbert,
  title  = {CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characters},
  author = {Hicham El Boukkouri and Olivier Ferret and Thomas Lavergne and Hiroshi Noji and Pierre Zweigenbaum and Junichi Tsujii},
  year   = {2020},
  eprint = {2010.10392},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.10392}
}

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

Discussion