Patching Leaks in the Charformer for Efficient Character-Level Generation

Lukas Edman, Antonio Toral, Gertjan van Noord
5/27/2022
cs.CL

Official code: Leukas/PatchingGBST (4 stars, Python, last commit 2022-05-27).

Abstract

Character-based representations have important advantages over subword-based ones for morphologically rich languages. They come with increased robustness to noisy input and do not need a separate tokenization step.

Show full abstract

However, they also have a crucial disadvantage: they notably increase the length of text sequences. The GBST method from Charformer groups (aka downsamples) characters to solve this, but allows information to leak when applied to a Transformer decoder. We solve this information leak issue, thereby enabling character grouping in the decoder. We show that Charformer downsampling has no apparent benefits in NMT over previous downsampling methods in terms of translation quality, however it can be trained roughly 30% faster. Promising performance on English--Turkish translation indicate the potential of character-level models for morphologically-rich languages.

View on arXivView PDF

Code Implementations(1)

40PythonMay 27, 20224 years ago

Similar Papers

Cite this paper

@article{edman2022patching,
  title  = {Patching Leaks in the Charformer for Efficient Character-Level Generation},
  author = {Lukas Edman and Antonio Toral and Gertjan van Noord},
  year   = {2022},
  eprint = {2205.14086},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14086}
}

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

Discussion