Multi-word Tokenization for Sequence Compression
Preprint
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.Keywords
All Related Versions
- Version 1, 2024-02-15, ArXiv
- Version 2, 2024-04-05, ArXiv
- Published version: , 612.
This publication has 8 references indexed in Scilit:
- LexGLUE: A Benchmark Dataset for Legal Language Understanding in English2022
- Pre-tokenization of Multi-word Expressions in Cross-lingual Word Embeddings2020
- MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- BIGPATENT: A Large-Scale Dataset for Abstractive and Coherent Summarization2019
- Phrase-Based & Neural Unsupervised Machine Translation2018
- SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing2018
- Development of a benchmark corpus to support the automatic extraction of drug-related adverse effects from medical case reportsJournal of Biomedical Informatics, 2012