Abstract
MEGClass is a novel framework for "extremely" weakly supervised text classification that requires only class names (e.g., "Politics," "Science") to label massive datasets. By jointly modeling words, sentences, and documents in a mutually reinforcing loop, it effectively filters out "red herring" keywords and outperforms existing methods, especially on long-form text and complex, fine-grained categories.
Introduction: The Challenge of Minimal Supervision
In the world of NLP, labeling data is the ultimate bottleneck. Traditional supervised learning requires thousands of human-annotated examples. While "weakly supervised" methods eased this by using a few "seed words" per class, "extremely weakly supervised" methods aim for the gold standard: using only the class surface names themselves.
The primary challenge is that words are often ambiguous. For example, a news article about "Education" might contain many "Political" keywords like "legislature" or "bill." Existing models often treat different levels of text—words, sentences, and documents—independently. This leads to "inter-granularity disagreements," where a model might misclassify an entire document because a few sentences contain strong keywords from a different category.
MEGClass aims to solve this by letting these different levels of granularity "talk" to each other to resolve contradictions through a mutually-enhancing framework.
The MEGClass Framework
MEGClass operates through a multi-stage pipeline designed to refine raw text into high-quality training data without human labels.
1. Class Distribution Estimation
Instead of assigning a hard "yes/no" label immediately, the model estimates a probability distribution for each document. It introduces a class-discriminativeness metric to weight sentences. A sentence like "he hit a home run" is weighted heavily for "Sports," while a vague sentence like "the player got the ball" is down-weighted because it could apply to many classes.
2. Contextualized Representations
The model uses a multi-head self-attention network to learn document embeddings. This allows the model to understand how sentences relate to one another, helping it realize that a "political" sentence in an "education" article is actually providing context for the education topic rather than defining the document's primary class.
3. Iterative Feedback
This is the "mutual enhancement" core. The model identifies the most "confident" documents (those with a very narrow class distribution) and uses them to update its internal definition of what each class looks like at the word level.
4. Classifier Fine-Tuning
Finally, the highest-confidence documents are used as a "pseudo-training set" to fine-tune a standard pre-trained transformer (like BERT), allowing the model to generalize to unseen data.
Evaluation and Key Results
The authors evaluated MEGClass on seven diverse benchmark datasets, covering various lengths and label complexities, including Yelp (Sentiment), 20News, and NYT (Topic, Location, and Fine-grained categories).
- State-of-the-Art Performance: MEGClass outperformed competitive baselines (like X-Class and ClassKG) across nearly all datasets.
- Superiority in Complexity: The gains were most significant in long-document datasets and fine-grained classification. For example, on the 20News-Fine dataset, MEGClass achieved a Macro-F1 score of 64.24, significantly higher than the next best baseline at 58.5.
- Efficiency: Unlike graph-based methods (ClassKG) which can take over 40 hours to run on certain datasets, MEGClass typically finished in under 2 hours, making it much more practical for real-world engineering pipelines.
Discussion and Future Work
One of the most effective ideas in MEGClass is the use of "soft labels" and the "gap" between class similarities to quantify sentence importance. By retaining a distribution during intermediate steps, the model avoids "locking in" early errors, allowing the iterative loop to correct initial misclassifications.
However, the model can still be tripped up by homonyms in class names (e.g., "Cosmos" referring to a soccer team vs. astronomy). Future work will involve better handling of nested categories (hierarchical classification) and more sophisticated disambiguation methods to ensure class names are interpreted in the correct domain context.
Summary updated