Abstract
Imbalanced text classification remains a significant challenge, primarily due to "difficult samples"—minority class instances that semantically overlap with the majority class. This paper introduces MISO (Mutual Information constrained Semantically Oversampling), a framework that identifies and re-embeds these tricky samples. By leveraging mutual information to disentangle overlapping features and generating synthetic "anchor instances," MISO shifts minority representations into non-overlapping semantic regions. Experimental results across six diverse datasets demonstrate that MISO consistently outperforms state-of-the-art baselines, achieving significant gains in classification performance and semantic separation.
Introduction
In real-world text classification tasks, such as spam detection or sentiment analysis, datasets are often heavily skewed. While standard classifiers struggle with this imbalance, the root cause is frequently the presence of difficult samples. These are minority class instances that share surface-level features—such as syntax or specific n-grams—with the majority class.
For instance, a negative movie review stating, "The beauty of Miami couldn't save this film," might be misclassified as positive because "beauty of Miami" is a phrase common in the majority (positive) class. These samples reside in an "overlapping semantic region," making it difficult for models to establish a clear decision boundary.
Methodology: The MISO Framework
The authors propose MISO, a framework designed to generate "anchor instances" that guide the model toward better representations of difficult samples. The architecture consists of three core components:
1. Semantic Fusion Module (SFM)
The SFM employs a multi-head attention mechanism to identify "entangled" semantics—features of a minority sample that closely resemble the majority class. An adaptive "temperature" parameter controls the search breadth for these similarities, ensuring precise identification of overlapping features.
2. Mutual Information (MI) Loss
The MI loss acts as a separator. It is designed to minimize the mutual information between entangled representations and the majority class (decoupling) while maximizing it with the minority class (injecting). This process effectively pushes the representation out of the semantic "danger zone" where classes overlap.
3. Coupled Adversarial Generator (CAG)
The CAG is an encoder-decoder setup equipped with discriminators. It transforms the disentangled semantic representations into actual text (anchor instances). These anchors preserve the core meaning of the original difficult sample but are strategically shifted into a non-overlapping semantic region, providing the backbone network (e.g., XLNet or BERT) with clearer training signals.
Experimental Setup
MISO was evaluated on six diverse datasets with varying imbalance ratios (IR):
- Opin-Rank: Hotel and car reviews.
- SMS Spam: Mobile spam detection.
- Toutiao: Chinese news (highly imbalanced at 1:122).
- Yelp.P, IMDB, AG_News: Sampled at 1% and 5% minority ratios to test performance under extreme sparsity.
Results and Discussion
Performance Gains
MISO achieved state-of-the-art performance, outperforming strong baselines like XLNet, ADASYN, and MixText by an average of 2.7% across all experimental setups. Notably, in extremely sparse scenarios like AG_News (1%), MISO provided a 3.5% improvement, demonstrating its ability to generate high-quality training data from minimal samples.
Semantic Re-embedding
The framework successfully moved difficult samples into non-overlapping regions at an average rate of 13.7%. Unlike traditional oversampling methods (e.g., SMOTE) that often produce "gibberish," MISO's "anchor instances" act as high-quality synthetic neighbors that help the backbone network learn the proper boundaries of the minority class.
Qualitative Analysis
Case studies indicate that MISO generates semantically meaningful text. For example, in a Yelp review, it learned to replace surface-level descriptors like "it was late" with sentiment-rich anchors like "these guys were rude," effectively capturing the underlying intent while avoiding majority-class overlap.
Conclusion
MISO represents a paradigm shift from simply increasing data quantity to improving data quality through strategic re-embedding. By disentangling overlapping features and generating semantically grounded anchors, it provides a robust solution for imbalanced text classification. Future work may explore integrating these re-embedding capabilities directly into backbone architectures to reduce the computational overhead of the adversarial generation step.
Summary updated