Neural Normalized Compression Distance and the Disconnect Between Compression and Classification

John Hurwitz, Charles Nicholas, Edward Raff
10/20/2024
cs.LGstat.ML

No confident code implementation found for this paper.

Abstract

It is generally well understood that predictive classification and compression are intrinsically related concepts in information theory. Indeed, many deep learning methods are explained as learning a kind of compression, and that better compression leads to better performance. We interrogate this hypothesis via the Normalized Compression Distance (NCD), which explicitly relies on compression as the means of measuring similarity between sequences and thus enables nearest-neighbor classification. By turning popular large language models (LLMs) into lossless compressors, we develop a Neural NCD and compare LLMs to classic general-purpose algorithms like gzip. In doing so, we find that classification accuracy is not predictable by compression rate alone, among other empirical aberrations not predicted by current understanding. Our results imply that our intuition on what it means for a neural network to ``compress'' and what is needed for effective classification are not yet well understood.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hurwitz2024neural,
  title  = {Neural Normalized Compression Distance and the Disconnect Between Compression and Classification},
  author = {John Hurwitz and Charles Nicholas and Edward Raff},
  year   = {2024},
  eprint = {2410.15280},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.15280v1}
}

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

Discussion