Abstract
OTMatch is a novel semi-supervised learning (SSL) framework that incorporates inter-class semantic relationships through Optimal Transport (OT). By moving beyond standard cross-entropy loss and leveraging the model's internal weights to define class similarities, OTMatch mitigates overconfidence and misclassification errors common in low-label regimes.
Introduction
Semi-supervised learning (SSL) aims to leverage a small amount of labeled data alongside a large pool of unlabeled data. A dominant approach is pseudo-labeling, where a model generates predictions for unlabeled samples to serve as targets for further training. However, this method often suffers from overconfidence; in low-label settings, a model may confidently assign incorrect labels. Standard cross-entropy (CE) loss exacerbates this by treating all misclassifications equally, failing to account for semantic similarities between classes (e.g., confusing a "dog" with a "cat" vs. a "ship").
Methods
OTMatch addresses these issues by integrating an Optimal Transport-based loss function into existing SSL pipelines, such as FreeMatch.
The framework consists of several key components:
- Semantic Distribution Matching: OTMatch treats predictions and pseudo-labels as probability distributions to be aligned via OT, rather than forcing a match to a single "hard" label.
- Bootstrapped Cost Matrix: The "cost" of misclassification is dynamically derived from the model's classification head. By calculating similarities between class weight vectors, the model learns that confusing semantically related classes (like "car" and "truck") should incur a lower penalty.
- Dynamic Updates: This cost matrix is updated throughout training using an Exponential Moving Average (EMA), allowing the model to refine its understanding of class relationships as it converges.
- Computational Efficiency: The authors demonstrate that under SSL conditions, the OT loss can be computed in $O(K)$ time, where $K$ is the number of classes, ensuring minimal overhead compared to standard CE loss.
Key Results
OTMatch was evaluated across various benchmarks in computer vision and natural language processing.
As shown in the table above, OTMatch consistently outperforms state-of-the-art methods like FixMatch, FlexMatch, and FreeMatch. Notably, on CIFAR-10 with only 10 labeled images, OTMatch achieved an error rate of 4.89%, a significant improvement over FreeMatch's 8.07%. On ImageNet, it achieved a Top-1 accuracy of 39.29%, surpassing previous benchmarks.
Beyond quantitative metrics, qualitative analysis via hierarchical clustering revealed that OTMatch successfully discovers semantic hierarchies—grouping "living things" (birds, dogs, horses) and "vehicles" (planes, trucks, ships) separately—without explicit supervision.
Conclusion and Future Work
OTMatch provides a mathematically rigorous yet efficient way to inject semantic awareness into SSL. While currently focused on classification, future work could extend this OT-based approach to more complex tasks like object detection or segmentation. Additionally, initializing the cost matrix with pre-trained embeddings like CLIP could potentially accelerate early-stage training.
Summary updated