Less is More: Parameter-Free Text Classification with Gzip
Not on the map. Why?
Abstract (arXiv)
Deep neural networks (DNNs) are often used for text classification tasks as they usually achieve high levels of accuracy. However, DNNs can be computationally intensive with billions of parameters and large amounts of labeled data, which can make them expensive to use, to optimize and to transfer to out-of-distribution (OOD) cases in practice. In this paper, we propose a non-parametric alternative to DNNs that's easy, light-weight and universal in text classification: a combination of a simple compressor like gzip with a k-nearest-neighbor classifier. Without any training, pre-training or fine-tuning, our method achieves results that are competitive with non-pretrained deep learning methods on six in-distributed datasets. It even outperforms BERT on all five OOD datasets, including four low-resource languages. Our method also performs particularly well in few-shot settings where labeled data are too scarce for DNNs to achieve a satisfying accuracy.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 16 of its 42 references that are in the map. First posted on arXiv 19 Dec 2022.
Builds on
16 of 42 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2016Bag of Tricks for Efficient Text Classificationcited by 869
- 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 373
- 2018Graph Convolutional Networks for Text Classificationcited by 345
- 2020A Survey on Text Classification: From Shallow to Deep Learningcited by 80
- 2019DocBERT: BERT for Document Classificationcited by 68
4 more
- 2018Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanismscited by 53
- 2021Effectiveness of Pre-training for Few-shot Intent Classificationcited by 27
- 2022Few-Shot Non-Parametric Learning with Deep Latent Variable Modelcited by 5
- 2021Text Ranking and Classification using Data Compressioncited by 3
Built on by
Citing papers per year: 2023: 3; 2024: 2; 2025: 1; 2026: 1.
7 papers.
- 2024Training LLMs over Neurally Compressed Textcited by 16
- 2023In-Context Learning Dynamics with Random Binary Sequencescited by 13
- 2023The Hyperdimensional Transform for Distributional Modelling, Regression and Classificationcited by 2
- 2023Compressor-Based Classification for Atrial Fibrillation Detectioncited by 0
- 2024ZIP-FIT: Embedding-Free Data Selection via Compression-Based Alignmentcited by 0
- 2025Context Steering: A New Paradigm for Compression-based Embeddings by Synthesizing Relevant Information Featurescited by 0
- 2026Tiny, Hardware-Independent, Compression-based Classificationcited by 0
- 2026Tiny, Hardware-Independent, Compression-based Classification6 Mar 2026
- 2025Context Steering: A New Paradigm for Compression-based Embeddings by Synthesizing Relevant Information Features20 Aug 2025
- 2024ZIP-FIT: Embedding-Free Data Selection via Compression-Based Alignment23 Oct 2024
- 2024Training LLMs over Neurally Compressed Text4 Apr 2024
- 2023The Hyperdimensional Transform for Distributional Modelling, Regression and Classification14 Nov 2023
- 2023In-Context Learning Dynamics with Random Binary Sequences26 Oct 2023
- 2023Compressor-Based Classification for Atrial Fibrillation Detection25 Aug 2023