Hacker News new | ask | show | jobs
Language Modeling Is Compression [pdf] (proceedings.iclr.cc)
93 points by gmays 9 hours ago
9 comments

3Blue1Brown has a wonderful 3-part series on Compression & Intelligence.

After watching these, I found it interesting seeing OpenAI's recent "Perplexity and Intelligence" blog post [1] use the term compressor/compression four times.

https://openai.com/index/perplexity-and-intelligence/

Perplexity and cross entropy are commonly understood as compression measures:

https://d2l.ai/chapter_mdl-information-theory/mdl-coding-com...

There is some tension between the concept of compression and the fact that emergent capabilities only presented themselves upon hitting extraordinary scale. It doesn't seem reasonable to say all those additional parameters were necessary to store the additional reasoning and logic capabilities that weren't coherent at smaller scale. Something about the sparsity is enabling the richness of the behavior necessary to generate what we recognize as intelligence. In some ways I see this as the fundamental tension between symbolic and non-symbolic AI : symbolic presumes the world is reducible in some way where non-symbolic doesn't require that. It models complexity as it is. You can say that is still compression but I think it's twisting the concept.
Wonderful paper. As to the relationship between compression and prediction they describe in the article, I think it's cleaner to define prediction as "compression + simulation" (you need to generalize the underlying pattern and then simulate it through the rules you generalized).

We've been researching how to use an information-compression-centric definition of intelligence to encode arbitrary levels of intelligence directly into data (which has high economic potential in producing training data for frontier models): https://gertlabs.com/blog/decompressible-oracle-generators

It largely solves the problem of making verifiable problems that are actually hard for frontier models in a principled way (vs just making the problem take more steps or making the prompt messy), but the question becomes: are there two forms of compression? Can backpropagation compress the ability to compress information into a transformer (the holy grail), and if so, can decompressible oracle generators encode that ability directly with enough examples, rather than just the emergent structure in the simulated payloads?

It seems perfectly logical to me that a model trained on one language would work on another, its effectiveness scaling with how similar the rules and presentation of the second language are to the first.

Since storage and code is just a machine-readable language it makes sense that if it can be rendered as a sequence of "words" with relatively predictable relationships to one another, it can be operated on just like any other language. I guess that doesn't necessarily identify it as compression per se but the two concepts are very close.

3blue1green does a multi part presentation on this. The key component he pulls out is that early testing with text+zip compression predicted the ratios of text compression into the language families.

That is, the closer a language family was, the higher the compression ratio they could share since dynamic compression uses dictionaries, and a shared dictionary allows better compression.

It was surprising at that time, but it goes into LLMs because it's been clear they're lossy compression and training them seems akin to building a compression dictionary.

Obviously LLMs are suprising in and of themselves, but the amount of parallel maths are pretty surprising in isolation, especially if you pull the full intelligence = compression.

3blue1brown :)
Is any intelligence compression? If I observe that "F=ma", or "pizza tastes good", isn't that an act of compressing innumerable phenomena into a short statement? Isn't Einstein the avatar of intelligence because his feats of compression like a matter energy equivalence?
I would recommend 3Blue1Brown for an introduction to what people mean by the word "compression":

https://www.youtube.com/watch?v=l6DKRf-fAAM&list=PLQjjvQ4fxJ...

And the book:

"Data-Driven Science and Engineering: Machine Learning, Dynamical Systems, and Control" (Steven L. Brunton, J. Nathan Kutz)

https://www.amazon.com/dp/1009098489/

The physics informed models are actually more interesting, and accessible to regular academics.

"Intelligence" is an imprecise definition, and an LLM does not need to clear some arbitrary threshold to help users or cause actual harm. Best of luck =3

I'd say knowledge or wisdom is compression. If you follow a long reasoning or train of thought and you arrive to a conclusion, that's intelligence for me. If you then recall that reasoning and go from the start to the end in a single step, that's compression/knowledge/wisdom.

Compression/knowledge/wisdom makes you travel faster because you know the shortcuts. Intelligence makes you able to open new paths.

The problem with that argument is that anything fits the definition of intelligence. Get from point A to point B? Intelligence. Get there faster? Compression/knowledge/wisdom.

You could say “yes, that is intelligence.” But what about evolution? Evolving from species A to species B is impressive. But is it intelligence? By that argument you’d have to say yes, even though evolution is a process devoid of intelligence.

I’m not sure where to go with this, just that there’s something to it.

Prediction is compression*

but yes at some point the philosphical analogies become extremely vacuous that it feels like I'm reading ancient Greek texts talking about accident/essence, dressed up in 21st century language.

It's similar to how people will apply Darwinism/survivorship bias to everything - it's technically true and permeates everything but at some point you don't actually get anything out of it.

So something like compressing the proof e.g. of the Riemann Hypothesis into a prompt that says: "Prove that all the zeros lie on x=1/2 line" is intelligence.

Basically the ability of the model to predict the proof isn't unlike the ability of a video compressor to predict the next frame. The better the prediction, the better the compression, the more "intelligent" the predictor is.

I have thought about this as a result of what we have seen in the competitions in this area. Hutter Prize, ARC-AGI-3 and modded-nanogpt have all in the last year gone from people making algorithmic improvements to people just maximizing the amount of inference you can do with your allocated compute on your allocated hardware. And the latter seems to matter much much more.

The 8MB leap after 10 years of minimal increments to the Hutter Prize came from overtraining a small transformer offline and then making it run on CPU fast enough to work with the competition. Both top solutions to ARC-AGI-3 are generating 5000 tokens/s on RTX 6000 with Qwen3.8-Next, and said that no RL or algorithmic improvements helped as much as improving inference.

So in some sense I feel like it's compression, but it's really messy, and scaling search in this compression is what provides most bang for the buck. Very Bitter-lesson-pilled, I don't know if this is just it.

Compression ratio is not usually measured including the decompressor code because the latter is usually a small constant. Otherwise it's trivially obvious to compress anything into "0 bytes" by including a giant blob that just so happens to contain the entire file and then some.

The claim that a 70B parameter model obtains a better lossless compression ratio than PNG / FLAC implies one of:

1. the residuals are stored within the model itself which, from a legal standpoint, would constitute derivative work

2. there exists a much better compression algorithm within the model; if this is the case, then it should be possible to produce an equivalent decompression algorithm that can reproduce the original data without accessing the model weights

What a breeze from the past, I haven’t read about chinchilla models in a while, cool paper!
published in 2023