WOT-Class: Weakly Supervised Open-world Text Classification

Tianle Wang, Zihan Wang, Weitang Liu, Jingbo Shang · DOI

TL;DR

WOT-Class is a novel framework for "open-world" text classification that discovers and labels unknown categories using only a handful of examples from a few known classes. By iteratively clustering documents and mining indicative "class-words," it outperforms existing state-of-the-art methods by over 23% in macro-F1 score across diverse datasets.

What Problem Does This Paper Address?

In traditional text classification, we assume we know all the possible categories (classes) beforehand. Even "weakly supervised" methods, which require very little human labeling, usually need a complete list of class names.

However, in the real world—like an analyst exploring a massive new dump of documents—we often don't have a complete picture. We might know a few categories we're looking for (e.g., "Sports" and "Politics"), but the corpus likely contains many "unknown unknowns" (e.g., "Art" or "Science").

Existing open-world classification methods, mostly developed for computer vision, struggle with text because they often require a large amount of labeled data for known classes or assume that all classes (known and unknown) have a similar number of examples. WOT-Class addresses these gaps by leveraging the unique semantic power of words to discover new categories with minimal human effort.

Figure 1: Weakly Supervised Open-World Text Classification. We aim to cluster text in a corpus, where only a few classes have few-shot supervision and class names known.

Methods

WOT-Class (short for "What Class?") uses an iterative "overestimate-then-refine" strategy. The process follows these key steps:

  1. Initial Overestimation: The model starts by assuming there are many more classes than actually exist (e.g., setting $K=100$). It uses a technique called Entity Set Expansion (specifically CGExpan) to generate a broad list of candidate class names based on the few known ones provided by the user.
  2. Iterative Refinement: This is the core of the framework, consisting of a loop:
  3. Cluster to Class-words: Documents are clustered, and for each cluster, the model identifies "class-words"—keywords that are highly indicative of that specific group.
  4. Ranking and Filtering: A small neural network (MLP) is trained on the few labeled examples to rank these class-words. It also applies a penalty to "generic" words (like "life" or "time") that appear in many clusters.
  5. Cluster Merging: If two clusters share the same top-ranked class-words, they are considered redundant. The model keeps the more "coherent" cluster (where documents are semantically closer) and removes the other.
  6. Re-clustering: The refined class-words are used to update document representations and re-cluster the data.
  7. Final Classification: Once the number of clusters stabilizes, the model treats these clusters as pseudo-labels to train a final, robust BERT-based classifier.
Figure 2: An overview of WOT-Class framework. Given the corpus and a part of labels, we first estimate document representations and construct the initial clusters. And then, we perform an iterative cluster refinement to remove redundant clusters. At the end of each iteration, we will update the document representations and recluster them.

Datasets

The authors evaluated WOT-Class on 7 popular text classification benchmarks, covering news, Q&A, and web ontologies:

  • News: AGNews, 20News, NYT-Small, NYT-Topics, NYT-Locations.
  • Q&A: Yahoo.
  • Ontology: DBpedia.

These datasets were specifically split to have half "seen" classes (with 10 labeled examples each) and half "unseen" classes (zero labels, zero names provided).

Key Insights and Ideas

  • Words as Bridges: The most powerful idea here is using words to bridge the gap between known and unknown. Even if the model doesn't know the name of a new class, it can find words that define it (e.g., finding "Picasso" and "painting" to identify an "Art" cluster).
  • Handling the Long Tail: In open-world scenarios, new classes are often rare (imbalanced). While image-based methods like GCD or ORCA fail when class sizes vary wildly, WOT-Class remains robust because it relies on semantic keyword signals rather than just cluster density.
  • Meaningful Over-segmentation: When the model "overestimates" the number of classes, it often discovers legitimate sub-categories. For example, it might split a general "Artist" class into "Painter" and "Performer," which is often more useful for a human explorer than a single broad category.

Key Results

WOT-Class demonstrated a massive performance leap over existing baselines:

  • Superior Accuracy: It achieved a 23.33% higher average absolute macro-F1 score compared to the best existing methods across all seven datasets.
  • Robustness: In experiments with high class imbalance, WOT-Class's performance dropped by only ~5%, whereas competing methods like GCD and ORCA saw drops of 8-11%.
  • Effective Discovery: Even when baselines were given the correct number of classes as a hint, WOT-Class still outperformed them, proving that its iterative keyword-based clustering is fundamentally better for text than standard self-supervised approaches.

Limitations and Future Work

  • Class Count Mismatch: While WOT-Class is much better at estimating the number of classes than its predecessors, it still tends to predict 2-4 times more classes than the ground truth due to fine-grained discovery.
  • Human-in-the-loop: The authors suggest that because the model provides "class-words" for every discovered group, a human could easily review and merge these clusters, though this wasn't fully automated in the paper.
  • Future Directions: The team aims to reduce supervision even further, perhaps requiring only a high-level "hyper-concept" (like "I want to see different Locations") rather than specific examples.

Summary updated

BibTeX
@inproceedings{wang2023wot,
  author = {Tianle Wang and Zihan Wang and Weitang Liu and Jingbo Shang},
  title = {{WOT-Class: Weakly Supervised Open-world Text Classification}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  doi = {10.1145/3583780.3615109},
}
Figure