Compression Represents Intelligence Linearly

Yuzhen Huang, Jinghan Zhang, Zifei Shan, Junxian He
4/15/2024
cs.CLcs.AIcs.IT

No official code found. Best implementation: hkust-nlp/llm-compression-intelligence (149 stars, MIT, last commit 2024-09-20).

Abstract

There is a belief that learning to compress well will lead to intelligence. Recently, language modeling has been shown to be equivalent to compression, which offers a compelling rationale for the success of large language models (LLMs): the development of more advanced language models is essentially enhancing compression which facilitates intelligence. Despite such appealing discussions, little empirical evidence is present for the interplay between compression and intelligence. In this work, we examine their relationship in the context of LLMs, treating LLMs as data compressors. Given the abstract concept of "intelligence", we adopt the average downstream benchmark scores as a surrogate, specifically targeting intelligence related to knowledge and commonsense, coding, and mathematical reasoning. Across 12 benchmarks, our study brings together 31 public LLMs that originate from diverse organizations. Remarkably, we find that LLMs' intelligence -- reflected by average benchmark scores -- almost linearly correlates with their ability to compress external text corpora. These results provide concrete evidence supporting the belief that superior compression indicates greater intelligence. Furthermore, our findings suggest that compression efficiency, as an unsupervised metric derived from raw text corpora, serves as a reliable evaluation measure that is linearly associated with the model capabilities. We open-source our compression datasets as well as our data collection pipelines to facilitate future researchers to assess compression properly.

View on arXivView PDF

Code Implementations(1)

MIT

Official github repo for the paper "Compression Represents Intelligence Linearly" [COLM 2024]

1497Shell, PythonApr 8, 20242 years agoMIT

Similar Papers

Cite this paper

@article{huang2024compression,
  title  = {Compression Represents Intelligence Linearly},
  author = {Yuzhen Huang and Jinghan Zhang and Zifei Shan and Junxian He},
  year   = {2024},
  eprint = {2404.09937},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.09937v2}
}

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

Discussion