Abstract
Semi-supervised domain generalization (SSDG) is a powerful framework for leveraging abundant unlabeled data across domains when labeled samples are scarce. However, current SSDG methods struggle significantly under long-tailed class distributions—a common reality in practical applications like medical imaging. We introduce IMaX, a method based on the InfoMax principle that maximizes mutual information between features and latent labels. By employing Tsallis $\alpha$-entropy, IMaX mitigates the class-balance bias inherent in standard entropy measures, allowing for robust performance across arbitrary class distributions. Empirical results on histology and ophthalmology datasets demonstrate that IMaX consistently enhances state-of-the-art SSDG frameworks.
The Challenge of Long-Tailed Distributions in SSDG
Domain Generalization (DG) aims to build models that perform well on unseen test distributions. Semi-Supervised Domain Generalization (SSDG) makes this more practical by utilizing a small set of labeled data alongside a large pool of unlabeled data from multiple source domains.
A critical yet overlooked limitation in current SSDG research is the assumption of balanced class distributions. In real-world scenarios, particularly in medical diagnostics, data is often "long-tailed": a few common classes have many samples, while rare conditions have very few. Existing SSDG methods often fail here because their internal regularization (like Shannon entropy) implicitly forces the model to predict all classes with equal probability, leading to poor performance on imbalanced data.
The IMaX Method
To address this, we propose IMaX (Information Maximization). IMaX is a plug-and-play loss function designed to be integrated into existing semi-supervised frameworks. It is grounded in the "InfoMax" principle, which seeks to maximize the Mutual Information (MI) between input features and predicted labels.
The IMaX objective consists of three primary components:
- Supervised Loss: Standard cross-entropy applied to the limited labeled data.
- Pseudo-Labeling Consistency: A loss term that encourages stable predictions on unlabeled data across different augmentations.
- Marginal Regularization via $\alpha$-Entropy: Instead of standard Shannon entropy, which has a strong bias toward uniform class distributions, we utilize Tsallis $\alpha$-entropy.
By adjusting the $\alpha$ parameter, the model's expectation of class balance is "relaxed." This prevents the model from collapsing into a single-class predictor while avoiding the "uniformity trap" that penalizes the model for correctly identifying rare classes in a long-tailed distribution. As seen in the sensitivity analysis, the optimal $\alpha$ varies by dataset (e.g., $\alpha=1.5$ for histology vs. $\alpha=2.0$ for retina).
Experimental Evaluation
We evaluated IMaX on two challenging medical imaging tasks:
- Histology (ESCA): Patch-level classification across four hospitals (11 classes).
- Ophthalmology (Retina): Diabetic retinopathy grading across four distinct datasets (5 classes).
In both cases, we simulated realistic long-tailed distributions to test the robustness of the models.
Key Results and Insights
Our experiments show that IMaX provides a consistent performance boost across various semi-supervised strategies (e.g., FixMatch, StyleMatch) and state-of-the-art SSDG trainers like FBCSA.
As shown in the results, IMaX (FBCSA+Ours) significantly outperforms the baseline as the "imbalance factor" increases. In low-label settings (e.g., 5 samples per class), IMaX improved baseline accuracy by up to 7.3%. The method demonstrates remarkable stability; while standard methods see sharp performance declines as the tail of the distribution grows longer, IMaX maintains high accuracy.
Conclusion and Future Work
IMaX offers a mathematically rigorous and model-agnostic solution to the problem of class imbalance in semi-supervised domain generalization. By moving beyond the uniformity bias of Shannon entropy, it enables more reliable deployment of AI in fields where data is naturally imbalanced.
Future work will focus on automating the selection of the $\alpha$ hyperparameter based on observed data distributions and extending the IMaX framework to more complex tasks such as semantic segmentation and object detection.
Summary updated