Language Modeling Is Compression
2023/09/19 by Grégoire Delétang, Anian Ruoss, Delétang, Grégoire +22 · 12 voices · 49 citations
Computer Science · #Natural Language Processing Techniques #Topic Modeling #Speech Recognition and Synthesis
paper · pdf · doi:10.48550/arxiv.2309.10668
Abstract
It has long been established that predictive models can be transformed into lossless compressors and vice versa. Incidentally, in recent years, the machine learning community has focused on training increasingly large and powerful self-supervised (language) models. Since these large language models exhibit impressive predictive capabilities, they are well-positioned to be strong compressors. In this work, we advocate for viewing the prediction problem through the lens of compression and evaluate the compression capabilities of large (foundation) models. We show that large language models are powerful general-purpose predictors and that the compression viewpoint provides novel insights into scaling laws, tokenization, and in-context learning. For example, Chinchilla 70B, while trained primarily on text, compresses ImageNet patches to 43.4% and LibriSpeech samples to 16.4% of their raw size, beating domain-specific compressors like PNG (58.5%) or FLAC (30.3%), respectively. Finally, we show that the prediction-compression equivalence allows us to use any compressor (like gzip) to build a conditional generative model.
Cited by
Discussions
- Sorry! Wrong URL. I have seen this done a few different places and ways and the one I was actually thinking of was the gzip experiments of arxiv.org/abs/2309.10668 [bsky, 16 points, 1 comments]
- Related previous work. arxiv.org/abs/2309.10668 [bsky, 12 points, 0 comments]
- Language Modeling Is Compression [hn, 5 points, 0 comments]
- Language Modeling Is Compression [hn, 3 points, 1 comments]
- they compare gzip, png and other compression algos directly to LLMs and other transformers in this paper if you've never seen it: arxiv.org/abs/2309.10668 fun read [bsky, 3 points, 0 comments]
- (none of this is to say the supremely clever zip file isn't *useful*. But it is a *problem* that the SotA seems to require keeping a huge part of the training corpus, and *imo* indicative that the sto [bsky, 1 points, 0 comments]
- I think you are slowly coming to the insight. Now try to lose your narrow explanation of compression. And again, here is the google paper about this; arxiv.org/abs/2309.10668 [bsky, 0 points, 1 comments]
- This article explores AI advancements and implications, highlighting potential benefits and challenges. It emphasizes the importance of ethics and responsible AI development as the technology evolves. [bsky, 0 points, 0 comments]
- I've long believed that intelligence is compression. This paper supports that thesis: arxiv.org/pdf/2309.106.... [bsky, 0 points, 0 comments]
- The related work section of this paper from last year is quite useful. Prediction vs compression, effects of tokenization, etc…
arxiv.org/pdf/2309.10668 [bsky, 0 points, 1 comments]
- arxiv.org/abs/2309.10668 [bsky, 0 points, 0 comments]
- "Consequently, we showed that the optimal model size is inextricably linked to the dataset size and cannot be scaled without limit." arxiv.org/pdf/2309.106... [bsky, 0 points, 0 comments]
Related