MultiTok: 可变长度分词用于高效大语言模型,源自LZW压缩
MultiTok: Variable-Length Tokenization for Efficient LLMs Adapted from LZW Compression
AI总结:
本文提出基于LZW压缩的MultiTok分词方法,通过压缩重复短语提升LLM训练效率,实现更高效训练与相似准确率。
摘要:
大型语言模型通过引入更复杂的自然语言处理技术极大地改变了AI的前景。然而,当前训练此类LLM的方法需要大量资源,包括大量数据、昂贵的设备和漫长的训练时间。为了解决这个问题,本文提出了一种新的分词方法,受通用Lempel-Ziv-Welch数据压缩启发,将重复短语压缩成多词标记。使用MultiTok作为新的分词工具,我们展示了语言模型能够显著更高效地训练,同时在更简洁和压缩的训练数据上提供相似的准确性。事实上,我们的结果表明,MultiTok在作为独立分词器和现有分词器的补充时,性能与BERT和GPT标准相当,并且在使用超过30%更少训练数据的情况下,训练速度接近2.5倍快。
英文摘要:
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 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。