HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

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

Hicham El Boukkouri; Olivier Ferret; Thomas Lavergne; Hiroshi Noji; Pierre Zweigenbaum; Junichi Tsujii

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

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). 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.

Code Repositories

helboukkouri/character-bert
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
clinical-concept-extraction-on-2010-i2b2vaCharacterBERT (base, medical)
Exact Span F1: 89.24
drug-drug-interaction-extraction-on-ddiCharacterBERT (base, medical)
Micro F1: 80.38
natural-language-inference-on-mednliCharacterBERT (base, medical)
Accuracy: 84.95
relation-extraction-on-chemprotCharacterBERT (base, medical)
Micro F1: 73.44
semantic-similarity-on-clinicalstsCharacterBERT (base, medical, ensemble)
Pearson Correlation: 85.62

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characters | Papers | HyperAI