Skip to main content
QUICK REVIEW

[Paper Review] Negative sampling in semi-supervised learning

John Chen, Vatsal Shah|arXiv (Cornell University)|Nov 12, 2019
Domain Adaptation and Few-Shot LearningComputer Science47 references5 citations
TL;DR

This paper introduces NS³L, a simple, fast, and easily tunable semi-supervised learning method that enhances existing SSL algorithms by adding a negative sampling loss. By leveraging unlabeled data to contrastively penalize low-probability classes, NS³L improves performance across CIFAR10, CIFAR100, SVHN, and STL10, outperforming vanilla VAT and MixMatch even with minimal hyperparameter tuning.

ABSTRACT

We introduce Negative Sampling in Semi-Supervised Learning (NS3L), a simple, fast, easy to tune algorithm for semi-supervised learning (SSL). NS3L is motivated by the success of negative sampling/contrastive estimation. We demonstrate that adding the NS3L loss to state-of-the-art SSL algorithms, such as the Virtual Adversarial Training (VAT), significantly improves upon vanilla VAT and its variant, VAT with Entropy Minimization. By adding the NS3L loss to MixMatch, the current state-of-the-art approach on semi-supervised tasks, we observe significant improvements over vanilla MixMatch. We conduct extensive experiments on the CIFAR10, CIFAR100, SVHN and STL10 benchmark datasets.

Motivation & Objective

  • To develop a simple, fast, and easily tunable semi-supervised learning method that improves performance using unlabeled data.
  • To address the challenge of high labeling cost in deep learning by leveraging unlabeled data effectively without complex model modifications.
  • To demonstrate that adding a negative sampling loss can significantly enhance state-of-the-art SSL algorithms like VAT and MixMatch.
  • To provide an interpretable and robust method that requires limited hyperparameter tuning while maintaining high performance.

Proposed method

  • NS³L introduces a new loss function that penalizes low-probability classes predicted by the model for unlabeled data.
  • For each unlabeled sample, the model's output probabilities are thresholded using a hyperparameter T; classes with probability below T are treated as negative samples.
  • The NS³L loss is computed as the negative log-likelihood of these low-probability classes, encouraging the model to assign higher confidence to the correct class.
  • The NS³L loss is combined with existing SSL objectives such as cross-entropy, VAT, or MixMatch loss, forming a joint optimization objective.
  • The method is designed to be modular and easily integrated into any existing SSL framework with minimal computational overhead.
  • Hyperparameters include threshold T for selecting negative classes and λ₁ for weighting the NS³L loss relative to other losses.

Experimental results

Research questions

  • RQ1Can a simple, modular loss function based on negative sampling improve performance in semi-supervised learning?
  • RQ2How does NS³L perform when combined with state-of-the-art SSL methods like VAT and MixMatch?
  • RQ3What is the sensitivity of NS³L to hyperparameters T and λ₁ across different datasets and settings?
  • RQ4Does NS³L provide consistent improvements across diverse benchmarks such as CIFAR10, CIFAR100, SVHN, and STL10?

Key findings

  • NS³L improves test error by 0.6% over Pseudo-Labeling and Entropy Minimization when added to VAT on CIFAR100 with 10,000 labeled samples.
  • On CIFAR10 with 4,000 labeled samples, NS³L combined with VAT reduces test error to 3.38% ± 0.08, outperforming vanilla VAT and MixMatch.
  • On SVHN with 250 labeled samples, MixMatch + NS³L achieves 3.38% ± 0.08 test error, improving upon MixMatch’s 3.75% ± 0.09.
  • On STL10 with 1,000 labeled samples, MixMatch + NS³L reduces test error to 21.74% ± 0.33, compared to MixMatch’s 22.20% ± 0.89.
  • The optimal threshold T ≈ 0.04 is empirically stable across datasets with 10 classes, indicating robustness to T variation.
  • NS³L is computationally efficient, with NS³L alone running more than 2x faster than VAT due to reduced forward/backward passes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.