Roll with the Punches: Expansion and Shrinkage of Soft Label Selection for Semi-supervised Fine-Grained Learning

Yue Duan, Zhen Zhao, Lei Qi, Luping Zhou, Yinghuan Shi

Introduction

Semi-supervised learning (SSL) has emerged as a critical paradigm for training deep neural networks when labeled data is scarce. Most state-of-the-art SSL frameworks, such as FixMatch, rely on pseudo-labeling, where the model generates "hard" (one-hot) labels for unlabeled data based on high-confidence predictions. While effective for coarse-grained classification (e.g., distinguishing a car from a dog), this approach often falters in Fine-Grained Visual Classification (FGVC).

In FGVC, the differences between classes—such as specific bird species or mushroom types—are extremely subtle. Hard pseudo-labeling forces the model to commit to a single class, even when it is uncertain. If the model makes an incorrect high-confidence prediction, this error is reinforced during training, leading to "confirmation bias" and degraded performance. To address this, the authors propose SoC (Soft Label Selection with Confidence-Aware Clustering), a framework that utilizes flexible "soft" labels to better capture the semantic ambiguities inherent in fine-grained data.

The SoC Framework

The core philosophy of SoC is to "roll with the punches" by selecting a subset of likely classes rather than a single hard label. This approach is governed by two competing objectives: Expansion and Shrinkage.

Overview of the SoC pipeline, illustrating the flow from unlabeled data to soft label selection via class transition tracking and clustering.

Expansion and Shrinkage Objectives

The Expansion Objective aims to ensure that the ground-truth class is included within the selected soft label. By selecting a cluster of semantically similar classes, the model remains robust even if its top prediction is slightly off. Conversely, the Shrinkage Objective prevents the soft label from becoming overly noisy by excluding highly unlikely classes. This is theoretically equivalent to entropy minimization, encouraging the model to produce more certain predictions over time.

Class Transition Tracking (CTT)

To identify which classes are semantically related without requiring external metadata, SoC employs Class Transition Tracking (CTT). CTT monitors how the model’s predictions for a specific unlabeled image oscillate during training. If the model frequently switches its prediction between two classes, CTT infers a high degree of semantic similarity between them. This information is used to build a similarity matrix, which then guides the clustering process.

Confidence-Aware $k$ Selection

The number of classes included in the soft label, denoted as $k$, is dynamically adjusted based on the model's prediction confidence. When the model is highly confident, $k$ is small, emphasizing shrinkage and precision. When confidence is low, $k$ increases, emphasizing expansion and safety. This dynamic balancing allows the model to adapt its learning strategy to the difficulty of each individual sample.

Experimental Results

SoC was evaluated on two challenging benchmarks for semi-supervised fine-grained learning: Semi-Aves (200 bird species) and Semi-Fungi (200 mushroom species). These datasets are characterized by significant class imbalance and the presence of out-of-distribution (OOD) unlabeled data, making them far more representative of real-world scenarios than standard datasets like CIFAR-10.

Performance comparison between SoC and FixMatch on Semi-Aves and Semi-Fungi datasets, showing test accuracy relative to training iterations and pseudo-label accuracy.

As shown in the figures above, SoC consistently outperforms the hard-label baseline, FixMatch, across both datasets. Notably, SoC maintains superior test accuracy even when its pseudo-label accuracy is lower than that of FixMatch. This suggests that providing the model with a "neighborhood" of correct answers is more beneficial for fine-grained tasks than forcing a single, potentially incorrect choice.

On Semi-Aves, SoC achieved a Top-1 accuracy of 31.3% (training from scratch), compared to 28.1% for FixMatch. On Semi-Fungi, the improvement was even more pronounced, with SoC reaching 39.4% accuracy against FixMatch's 32.2%. When combined with self-supervised pre-training (MoCo), SoC's performance on Semi-Fungi further improved to 47.2%.

Discussion and Conclusion

The success of SoC highlights the limitations of hard pseudo-labeling in complex classification tasks. By leveraging the information contained in prediction oscillations and balancing expansion with shrinkage, SoC provides a more robust framework for semi-supervised fine-grained learning. While SoC introduces some computational overhead due to the $k$-medoids clustering step, the authors demonstrate that this cost is minimal relative to the overall training time. Ultimately, SoC demonstrates that in the face of fine-grained ambiguity, a flexible approach to labeling is the key to superior model performance.

Summary updated

BibTeX
@inproceedings{duan2024roll,
  author = {Yue Duan and Zhen Zhao and Lei Qi and Luping Zhou and Lei Wang and Yinghuan Shi},
  title = {{Roll with the Punches: Expansion and Shrinkage of Soft Label Selection for Semi-supervised Fine-Grained Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i10.29068},
}
Figure