CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation

Jonathan H. Clark, Dan Garrette, Iulia Turc, John Wieting
3/11/2021
cs.CLcs.LG

Official code: google-research/language (1,820 stars, Apache-2.0, last commit 2026-04-21).

Abstract

Pipelined NLP systems have largely been superseded by end-to-end neural modeling, yet nearly all commonly-used models still require an explicit tokenization step. While recent tokenization approaches based on data-derived subword lexicons are less brittle than manually engineered tokenizers, these techniques are not equally suited to all languages, and the use of any fixed vocabulary may limit a model's ability to adapt. In this paper, we present CANINE, a neural encoder that operates directly on character sequences, without explicit tokenization or vocabulary, and a pre-training strategy that operates either directly on characters or optionally uses subwords as a soft inductive bias. To use its finer-grained input effectively and efficiently, CANINE combines downsampling, which reduces the input sequence length, with a deep transformer stack, which encodes context. CANINE outperforms a comparable mBERT model by 2.8 F1 on TyDi QA, a challenging multilingual benchmark, despite having 28% fewer model parameters.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Shared repository for open-sourced projects from the Google AI Language team.

1,820364C++, CSSOct 16, 20186 months agoApache-2.0
machine-learningnatural-language-processingresearch

Similar Papers

Cite this paper

@article{clark2021canine,
  title  = {CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation},
  author = {Jonathan H. Clark and Dan Garrette and Iulia Turc and John Wieting},
  year   = {2021},
  eprint = {2103.06874},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.06874}
}

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

Discussion