Interpolation-Based Contrastive Learning for Few-Label Semi-Supervised Learning

Xihong Yang, Xiaochang Hu, Sihang Zhou, Xinwang Liu, En Zhu

Abstract

Semi-supervised learning (SSL) methods typically rely on consistency regularization via data augmentation. However, in "few-label" regimes where only a handful of labels per class are available, standard augmentations can cause semantic drift, leading to performance collapse. This paper introduces Interpolation-based Contrastive Learning (ICL-SSL), a novel framework that utilizes dual-path interpolation—at both the image and feature levels—to construct reliable positive pairs for contrastive learning. By enforcing a linearity constraint on the representation space, ICL-SSL effectively pushes decision boundaries away from data points. Experimental results on CIFAR-10/100 and SVHN demonstrate that ICL-SSL significantly outperforms state-of-the-art methods in extreme low-data scenarios.

The Challenge of Semantic Drift

Semi-supervised learning aims to leverage large amounts of unlabeled data alongside a small labeled set. Most current state-of-the-art methods rely on consistency regularization, which assumes that a model's prediction should be invariant to perturbations like random cropping or flipping.

However, the authors identify a critical flaw: semantic information drift. When labels are extremely limited (e.g., 2-3 per class), the model lacks sufficient guidance to distinguish between safe perturbations and those that change an image's meaning. For instance, in the MNIST dataset, a vertical flip can transform a "6" into a "9" or a "2" into a "5". If the model is forced to treat these as the same, it learns incorrect features, causing performance to collapse. Standard algorithms like MixMatch see accuracy drop by nearly half when moving from 25 labels per class to just 3.

Examples of semantic drift where standard augmentations change the digit's identity.

Proposed Method: ICL-SSL

To bypass the risks of destructive data augmentation, the authors propose Interpolation-based Contrastive Learning (ICL-SSL). This method creates reliable "positive pairs" for contrastive learning without relying on risky geometric transformations.

Dual-Path Interpolation

Instead of augmenting a single image, ICL-SSL takes two unlabeled images ($u_i, u_j$) and performs interpolation in two distinct paths:

  1. Image-level Path: The two images are blended in raw pixel space, and the result is passed through the encoder to produce an embedding ($z_{mix}$).
  2. Feature-level Path: The images are passed through the encoder separately, and their resulting embeddings are then blended to create a feature-level mixture ($mix_z$).
The ICL-SSL architecture featuring dual-path interpolation and contrastive loss.

These two vectors ($z_{mix}$ and $mix_z$) are treated as a positive pair. Because both contain a linear combination of the same source images, they share semantic DNA without the risk of identity-changing flips or rotations.

Linearity-Constraint Loss

The framework introduces a novel contrastive loss ($L_c$) that forces the network's embeddings to change linearly between samples. This "linearity constraint" pushes decision boundaries further away from data points, creating a larger margin and a more robust classifier. The final loss is a weighted sum of supervised loss, unsupervised pseudo-label loss, and this new contrastive interpolation loss.

Experimental Results

The performance gains in extreme few-label settings are substantial across standard computer vision benchmarks:

  • CIFAR-10 (2 labels per class): ICL-SSL achieved 88.73% accuracy, outperforming the previous best (CoMatch) by 5.3%.
  • CIFAR-100 (20 labels per class): ICL-SSL reached 14.06%, nearly triple the performance of MixMatch (4.55%) in the same setting.
  • Efficiency: Despite the extra interpolation steps, training time for ICL-SSL is significantly lower than graph-based competitors like CoMatch (193s vs 571s per epoch).

Conclusion

ICL-SSL demonstrates that interpolation is a "safe harbor" for semi-supervised learning when data is scarce. By learning the relationships between samples rather than simple transformation invariance, the model becomes semantic-agnostic and more robust to the noise introduced by standard augmentations. Future work includes scaling the method to larger datasets and expanding the interpolation logic to other domains, such as graph semi-supervised node classification.

Summary updated

BibTeX
@article{yang2022interpolation,
  author = {Xihong Yang and Xiaochang Hu and Sihang Zhou and Xinwang Liu and En Zhu},
  title = {{Interpolation-Based Contrastive Learning for Few-Label Semi-Supervised Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
  doi = {10.1109/tnnls.2022.3186512},
}
Figure