CalibrateMix: Guided-Mixup Calibration of Image Semi-Supervised Models

Mehrab Mustafy Rahman, Jayanth Mohan, Tiberiu Sosea, Cornelia Caragea

Introduction

Modern deep neural networks are notoriously overconfident, often assigning high probability to incorrect predictions. This "calibration" issue is particularly problematic in Semi-Supervised Learning (SSL). SSL frameworks typically rely on "pseudo-labeling," where the model generates labels for unlabeled data to expand its training set. When a model is overconfident about an incorrect guess, it creates a dangerous feedback loop that reinforces errors.

While "mixup"—the linear interpolation of image pairs and their labels—is a common regularization technique, applying it randomly in SSL can be counterproductive. Mixing two unreliable pseudo-labels often spreads "label noise," degrading performance. To address this, we present CalibrateMix, a novel guided-mixup strategy designed to improve calibration and accuracy in SSL.

Methodology: Guided Mixup

CalibrateMix replaces random sample selection with a targeted approach based on training dynamics and sample difficulty.

1. Difficulty Tracking

Instead of relying on instantaneous confidence scores, CalibrateMix monitors the learning history of each sample. It utilizes Area Under the Margin (AUM) for labeled data and a proposed Average Pseudo Margin (APM) for unlabeled data. High margins indicate "easy-to-learn" samples (likely correct), while low margins identify "hard-to-learn" or ambiguous samples.

2. Targeted Pairing

CalibrateMix enforces a specific pairing structure to optimize learning:

  • Easy Labeled + Hard Unlabeled: A reliable labeled "anchor" is mixed with an ambiguous unlabeled sample to introduce controlled uncertainty.
  • Hard Labeled + Easy Unlabeled: This pairs a challenging ground-truth case with a high-quality pseudo-label, forcing the model to refine its decision boundaries.

3. Dissimilarity-Based Selection

To maximize regularization, the algorithm selects the most dissimilar samples (measured by cosine similarity) within the difficulty categories. This diversity prevents overfitting and encourages smoother decision boundaries in the feature space.

Experimental Results

The effectiveness of CalibrateMix was evaluated across diverse benchmarks, including CIFAR-10/100, STL-10, and large-scale datasets like ImageNet and WebVision.

Comprehensive analysis of CalibrateMix: (a, b) show the reduction in Expected Calibration Error (ECE); (c) displays the reduction in pseudo-label impurity over epochs; (d) illustrates common mislabeling pitfalls in standard SSL.

Key findings include:

  • Calibration Improvement: On CIFAR-100 (25 labels/class), CalibrateMix reduced the Expected Calibration Error (ECE) by 8.51% when integrated with FixMatch.
  • Accuracy Gains: Beyond calibration, the method improved the error rate by 1.54% on CIFAR-100 and showed robust gains on the higher-resolution STL-10 dataset.
  • Scalability: On the noisy WebVision dataset, CalibrateMix improved ECE by nearly 2% compared to FlexMatch, demonstrating its efficacy in real-world scenarios with inherent label noise.

Conclusion

CalibrateMix addresses the fundamental challenge of overconfidence in semi-supervised learning. By intelligently pairing samples based on their learning difficulty and dissimilarity, it breaks the error-reinforcement cycle of pseudo-labeling. As a "plug-and-play" module, it offers a versatile solution for enhancing the reliability and performance of state-of-the-art SSL models.

Summary updated

BibTeX
@inproceedings{rahman2026calibratemix,
  author = {Mehrab Mustafy Rahman and Jayanth Mohan and Tiberiu Sosea and Cornelia Caragea},
  title = {{CalibrateMix: Guided-Mixup Calibration of Image Semi-Supervised Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i30.39696},
}
Figure