Lune

ACL Findings2023

"Low-Resource" Text Classification: A Parameter-Free Classification Method with Compressors

Zhiying Jiang, Matthew Y. R. Yang, Mikhail Tsirlin, Raphael Tang, Yiqin Dai, Jimmy Lin

Abstract

Deep neural networks (DNNs) are often used for text classification due to their high accuracy.However, DNNs can be computationally intensive, requiring millions 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, lightweight, and universal in text classification: a combination of a simple compressor like gzip with a k-nearest-neighbor classifier.Without any training parameters, our method achieves results that are competitive with non-pretrained deep learning methods on six in-distribution datasets.It even outperforms BERT on all five OOD datasets, including four low-resource languages.Our method also excels in the few-shot setting, where labeled data are too scarce to train DNNs effectively.Code is available at https://github.com/bazingagin/npc_gzip.Compressor Compressor Compressor concat NCD distance

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Proxy Compression for Language Modeling cites Language Modeling Is Compression
  • In-context Autoencoder for Context Compression in a Large Language Model cites Language Modeling Is Compression
  • Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMs cites LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression
  • LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression cites In-context Autoencoder for Context Compression in a Large Language Model
  • LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression cites Language Modeling Is Compression
  • Language Modeling Is Compression cites Few-Shot Non-Parametric Learning with Deep Latent Variable Model
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Language Modeling Is CompressionGrégoire Delétang, Anian Ruoss, Paul-Ambroise Duquenne, Elliot Catt et al.ICLR 2024 · 243 citations
  2. In-context Autoencoder for Context Compression in a Large Language ModelTao Ge, Jing Hu, Lei Wang, Xun Wang et al.ICLR 2024 · 158 citations
  3. LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt CompressionHuiqiang Jiang, Qianhui Wu, Xufang Luo, Dongsheng Li et al.ACL 2024 · 59 citations
  4. Proxy Compression for Language ModelingLin Zheng, Li Xinyu, Qian Liu, Xiachong Feng et al.ICML 2026 · 3 citations
  5. Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMsZhiwei Cao, Qian Cao, Yu Lu, Ningxin Peng et al.ACL 2024 · 3 citations

Builds on5

  1. Document Ranking with a Pretrained Sequence-to-Sequence ModelRodrigo Nogueira, Zhiying Jiang, Ronak Pradeep, Jimmy LinEMNLP Findings 2020 · 469 citations
  2. KinyaBERT: a Morphology-aware Kinyarwanda Language ModelAntoine Nzeyimana, Andre Niyongabo RubungoACL 2022 · 45 citations
  3. Effectiveness of Pre-training for Few-shot Intent ClassificationHaode Zhang, Yuwei Zhang, Li-Ming Zhan, Jiaxin Chen et al.EMNLP Findings 2021 · 40 citations
  4. Cluster & Tune: Boost Cold Start Performance in Text ClassificationEyal Shnarch, Ariel Gera, Alon Halfon, Lena Dankin et al.ACL 2022 · 27 citations
  5. Few-Shot Non-Parametric Learning with Deep Latent Variable ModelZhiying Jiang, Yiqin Dai, Ji Xin, Ming Li et al.NeurIPS 2022 · 6 citations

Related papers

  1. Test-Time Steering for Lossless Text Compression via Weighted Product of ExpertsQihang Zhang, Muchen Li, Ziao Wang, Renjie Liao et al.EMNLP Findings 2025
  2. Bag-of-Words vs. Graph vs. Sequence in Text Classification: Questioning the Necessity of Text-Graphs and the Surprising Strength of a Wide MLPLukas Galke, Ansgar ScherpACL 2022
  3. L3TC: Leveraging RWKV for Learned Lossless Low-Complexity Text CompressionJunxuan Zhang, Zhengxue Cheng, Yan Zhao, Shihao Wang et al.AAAI 2025 · 8 citations
  4. Discrete Latent Variable Representations for Low-Resource Text ClassificationShuning Jin, Sam Wiseman, Karl Stratos, Karen LivescuACL 2020 · 12 citations
  5. ACT: an Attentive Convolutional Transformer for Efficient Text ClassificationPengfei Li, Peixiang Zhong, Kezhi Mao, Dongzhe Wang et al.AAAI 2021 · 47 citations
Dusk over the sea between two cliffs drawn in fine vertical lines