mlsanityData to 7 Oct 2026

Less is More: Parameter-Free Text Classification with Gzip

arXiv 2212.09410 ↗First posted 19 Dec 2022cs.CLcited by 7

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  5. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  6. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  7. 2015A large annotated corpus for learning natural language inferencecited by 1,837
  8. 2016Bag of Tricks for Efficient Text Classificationcited by 869
  9. 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 373
  10. 2018Graph Convolutional Networks for Text Classificationcited by 345
  11. 2020A Survey on Text Classification: From Shallow to Deep Learningcited by 80
  12. 2019DocBERT: BERT for Document Classificationcited by 68
4 more
  1. 2018Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanismscited by 53
  2. 2021Effectiveness of Pre-training for Few-shot Intent Classificationcited by 27
  3. 2022Few-Shot Non-Parametric Learning with Deep Latent Variable Modelcited by 5
  4. 2021Text Ranking and Classification using Data Compressioncited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 2; 2025: 1; 2026: 1.

7 papers.