[Paper Review] X-Class: Text Classification with Extremely Weak Supervision
X-Class proposes a novel framework for text classification using only class names as supervision, leveraging BERT-based adaptive representations and clustering to generate high-quality pseudo-labeled training data. It achieves state-of-the-art performance on 7 benchmark datasets, outperforming seed-driven weakly supervised methods despite requiring no seed words or labeled examples beyond class names.
In this paper, we explore text classification with extremely weak supervision, i.e., only relying on the surface text of class names. This is a more challenging setting than the seed-driven weak supervision, which allows a few seed words per class. We opt to attack this problem from a representation learning perspective -- ideal document representations should lead to nearly the same results between clustering and the desired classification. In particular, one can classify the same corpus differently (e.g., based on topics and locations), so document representations should be adaptive to the given class names. We propose a novel framework X-Class to realize the adaptive representations. Specifically, we first estimate class representations by incrementally adding the most similar word to each class until inconsistency arises. Following a tailored mixture of class attention mechanisms, we obtain the document representation via a weighted average of contextualized word representations. With the prior of each document assigned to its nearest class, we then cluster and align the documents to classes. Finally, we pick the most confident documents from each cluster to train a text classifier. Extensive experiments demonstrate that X-Class can rival and even outperform seed-driven weakly supervised methods on 7 benchmark datasets. Our dataset and code are released at https://github.com/ZihanWangKi/XClass/ .
Motivation & Objective
- To address text classification under extremely weak supervision, where only class names are provided as supervision, without any seed words or labeled documents.
- To develop a representation learning framework that adapts document embeddings to user-specified class names, enabling clustering to align with desired classification objectives.
- To demonstrate that high-quality pseudo-training data can be generated automatically from clustering, enabling strong performance with minimal human annotation.
- To establish a benchmark for extremely weak supervision in text classification across diverse data types and class categories (topics, locations, sentiments).
Proposed method
- Estimate class representations by iteratively adding the most similar word to each class until inconsistency arises, forming class-oriented representations.
- Use a tailored mixture of class attention mechanisms to compute document representations as a weighted average of contextualized word representations from BERT.
- Initialize clustering (e.g., Gaussian Mixture Models) using prior assignments of documents to their nearest class based on initial representations.
- Cluster documents into K clusters (K = number of classes), preserving cluster-to-class alignment via initial priors.
- Select the most confident documents from each cluster to form a pseudo-labeled training set for fine-tuning a supervised classifier like BERT.
- Train a final text classifier on the pseudo-labeled data, leveraging pre-trained language models for strong generalization.
Experimental results
Research questions
- RQ1Can text classification be effectively performed using only class names as supervision, without any seed words or labeled examples?
- RQ2How can document representations be made adaptive to user-specified class names to improve clustering alignment with desired classification objectives?
- RQ3Can clustering-based pseudo-labeling generate high-quality training data that enables strong performance in zero-shot or few-shot settings?
- RQ4How does the performance of the proposed method compare to seed-driven weakly supervised methods when no human-provided seeds are available?
Key findings
- X-Class outperforms seed-driven weakly supervised methods on 7 benchmark datasets, including WeSTClass and ConWea, despite requiring no seed words.
- On the NYT-Small dataset, X-Class-Hier achieved 92.66 micro-F1 and 80.92 macro-F1 for fine-grained classification, outperforming X-Class-End and other baselines.
- X-Class demonstrates robustness even when class names appear only once in the corpus, unlike methods that rely on frequent or varied context of class names.
- The method achieves strong performance across diverse data types, including news and reviews, and various class types such as topics, locations, and sentiments.
- X-Class shows consistent and stable performance across multiple datasets, indicating its generalization capability under extremely weak supervision.
- The framework is effective even in hierarchical classification settings, where fine-grained class similarities vary significantly.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.