Saved in:
Bibliographic Details
Main Authors: Hurwitz, John, Nicholas, Charles, Raff, Edward
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.15280
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914980863934464
author Hurwitz, John
Nicholas, Charles
Raff, Edward
author_facet Hurwitz, John
Nicholas, Charles
Raff, Edward
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_15280
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Neural Normalized Compression Distance and the Disconnect Between Compression and Classification
Hurwitz, John
Nicholas, Charles
Raff, Edward
Machine Learning
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.
title Neural Normalized Compression Distance and the Disconnect Between Compression and Classification
topic Machine Learning
url https://arxiv.org/abs/2410.15280