MultiTok: Variable-Length Tokenization for Efficient LLMs Adapted from LZW Compression

📅 2024-10-28
🏛️ arXiv.org
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
To address high data redundancy, excessive computational overhead, and low training efficiency in large language model (LLM) training, this paper proposes MultiTok—a variable-length, multi-token tokenization method inspired by LZW lossless compression. Its core innovation lies in the first application of LZW’s dynamic dictionary construction to tokenization: MultiTok identifies frequent n-grams and merges them into composite tokens, thereby compressing sequence length while preserving semantic integrity. MultiTok seamlessly integrates with mainstream architectures (e.g., BERT, GPT-2), accelerates training by 2.5×, reduces input data volume by over 30%, and maintains baseline-level accuracy on standard NLU and language modeling benchmarks. This work introduces a novel, data-compression-driven tokenization paradigm for efficient and scalable LLM training.

Technology Category

Application Category

📝 Abstract
Large language models have drastically changed the prospects of AI by introducing technologies for more complex natural language processing. However, current methodologies to train such LLMs require extensive resources including but not limited to large amounts of data, expensive machinery, and lengthy training. To solve this problem, this paper proposes a new tokenization method inspired by universal Lempel-Ziv-Welch data compression that compresses repetitive phrases into multi-word tokens. With MultiTok as a new tokenizing tool, we show that language models are able to be trained notably more efficiently while offering a similar accuracy on more succinct and compressed training data. In fact, our results demonstrate that MultiTok achieves a comparable performance to the BERT and GPT-2 standards as both a stand-alone tokenizer and an add-on to existing tokenizers while also providing close to 2.5x faster training with more than 30% less training data.
Problem

Research questions and friction points this paper is trying to address.

Large Language Models
Computational Resources
Scalability
Innovation

Methods, ideas, or system contributions that make the work stand out.

MultiTok
LZW Compression
Efficient Training
🔎 Similar Papers
No similar papers found.
Noel Elias
Noel Elias
University of Texas at Austin, Austin, TX, USA
H
H. Esfahanizadeh
Nokia Bell Labs, Murray Hill, NJ, USA
Kaan Kale
Kaan Kale
Undergraduate Student, Bogazici University
S
S. Vishwanath
University of Texas at Austin, Austin, TX, USA
M
Muriel Médard
Massachusetts Institute of Technology (MIT), Cambridge, USA