Evaluating Unsupervised Text Classification: Zero-shot and Similarity-based Approaches

Tim Schopf, Daniel Braun, Florian Matthes
11/29/2022
112 citations
cs.CLcs.AI

Official code: sebischair/Lbl2Vec (185 stars, Python, BSD-3-Clause, last commit 2024-01-31). 1 more implementation below.

Abstract

Text classification of unseen classes is a challenging Natural Language Processing task and is mainly attempted using two different types of approaches. Similarity-based approaches attempt to classify instances based on similarities between text document representations and class description representations.

Show full abstract

Zero-shot text classification approaches aim to generalize knowledge gained from a training task by assigning appropriate labels of unknown classes to text documents. Although existing studies have already investigated individual approaches to these categories, the experiments in literature do not provide a consistent comparison. This paper addresses this gap by conducting a systematic evaluation of different similarity-based and zero-shot approaches for text classification of unseen classes. Different state-of-the-art approaches are benchmarked on four text classification datasets, including a new dataset from the medical domain. Additionally, novel SimCSE and SBERT-based baselines are proposed, as other baselines used in existing work yield weak classification results and are easily outperformed. Finally, the novel similarity-based Lbl2TransformerVec approach is presented, which outperforms previous state-of-the-art approaches in unsupervised text classification. Our experiments show that similarity-based approaches significantly outperform zero-shot approaches in most cases. Additionally, using SimCSE or SBERT embeddings instead of simpler text representations increases similarity-based classification results even further.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
sebischair/Lbl2VecOfficial185PythonBSD-3-Clause2024-01-31
sebischair/Medical-Abstracts-TC-CorpusOfficial41––2024-11-07
sebischair/Lbl2VecOfficial100%
BSD-3-Clause

Lbl2Vec learns jointly embedded label, document and word vectors to retrieve documents with predefined topics from an unlabeled document corpus.

18528PythonJul 18, 20212 years agoBSD-3-Clause
document-embeddingslabel-embeddingsmachine-learningnatural-language-processingnlp+5 more

This repository contains a medical abstracts dataset, describing 5 different classes of patient conditions. The dataset can be used for text classification. [NLPIR 2022]

418Aug 2, 20222 years agoNOASSERTION

Similar Papers

Cite this paper

@article{schopf2022evaluating,
  title  = {Evaluating Unsupervised Text Classification: Zero-shot and Similarity-based Approaches},
  author = {Tim Schopf and Daniel Braun and Florian Matthes},
  year   = {2022},
  eprint = {2211.16285},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.16285}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.16285.svg)](https://codeofpaper.com/paper/2211.16285)

Discussion