gzip + kNN beats neural nets on out-of-domain sentence classification

anpaure · x · 2026-11-17

Citing LukeGessler, anpaure highlights a paper showing that on out-of-domain sentence classification, all neural approaches (Transformer or not) lose to plain kNN over representations from gzip compression.

It dovetails with the observation that compression and language modeling are mathematically intertwined — a trivial compressor can be a surprisingly strong baseline in some settings.

Related event: Plain Compression as Autoregressive Decoder: gzip+kNN Beats Neural Nets(2 posts)→

Original post →

More from Research

Research channel →