Assessing the Importance of Frequency versus Compositionality for Subword-based Tokenization in NMT

Benoist Wolleb, Romain Silvestri, Giorgos Vernikos, Ljiljana Dolamic, Andrei Popescu-Belis
6/2/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Subword tokenization is the de facto standard for tokenization in neural language models and machine translation systems. Three advantages are frequently cited in favor of subwords: shorter encoding of frequent tokens, compositionality of subwords, and ability to deal with unknown words. As their relative importance is not entirely clear yet, we propose a tokenization approach that enables us to separate frequency (the first advantage) from compositionality. The approach uses Huffman coding to tokenize words, by order of frequency, using a fixed amount of symbols. Experiments with CS-DE, EN-FR and EN-DE NMT show that frequency alone accounts for 90%-95% of the scores reached by BPE, hence compositionality has less importance than previously thought.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{wolleb2023assessing,
  title  = {Assessing the Importance of Frequency versus Compositionality for Subword-based Tokenization in NMT},
  author = {Benoist Wolleb and Romain Silvestri and Giorgos Vernikos and Ljiljana Dolamic and Andrei Popescu-Belis},
  year   = {2023},
  eprint = {2306.01393},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.01393v3}
}

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

Discussion