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

Noel Elias, Homa Esfahanizadeh, Kaan Kale, Sriram Vishwanath, Muriel Medard
10/28/2024
cs.CLcs.ITcs.LG

No official code found. Best implementation: noelkelias/multitok (5 stars, last commit 2025-10-11).

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.

View on arXivView PDF

Code Implementations(1)

noelkelias/multitokCommunity100%

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

51PythonJul 17, 20241 years ago

Similar Papers

Cite this paper

@article{elias2024multitok,
  title  = {MultiTok: Variable-Length Tokenization for Efficient LLMs Adapted from LZW Compression},
  author = {Noel Elias and Homa Esfahanizadeh and Kaan Kale and Sriram Vishwanath and Muriel Medard},
  year   = {2024},
  eprint = {2410.21548},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.21548v2}
}

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

Discussion