Multi-word Tokenization for Sequence Compression

Leonidas Gee, Leonardo Rigutini, Marco Ernandes, Andrea Zugarini
2/15/2024
cs.CLcs.LG

No official code found. Best implementation: LeonidasY/fast-vocabulary-transfer (27 stars, Apache-2.0, last commit 2025-01-19).

Abstract

Large Language Models have proven highly successful at modelling a variety of tasks. However, this comes at a steep computational cost that hinders wider industrial uptake. In this paper, we present MWT: a Multi-Word Tokenizer that goes beyond word boundaries by representing frequent multi-word expressions as single tokens. MWTs produce a more compact and efficient tokenization that yields two benefits: (1) Increase in performance due to a greater coverage of input data given a fixed sequence length budget; (2) Faster and lighter inference due to the ability to reduce the sequence length with negligible drops in performance. Our results show that MWT is more robust across shorter sequence lengths, thus allowing for major speedups via early sequence truncation.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[EMNLP 2022/2023] Fast Vocabulary Transfer & Multi-word Tokenization

272PythonNov 15, 20221 years agoApache-2.0

Similar Papers

Cite this paper

@article{gee2024multiword,
  title  = {Multi-word Tokenization for Sequence Compression},
  author = {Leonidas Gee and Leonardo Rigutini and Marco Ernandes and Andrea Zugarini},
  year   = {2024},
  eprint = {2402.09949},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.09949v2}
}

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

Discussion