Skip to main content
QUICK REVIEW

[Paper Review] FlatMatch: Bridging Labeled Data and Unlabeled Data with Cross-Sharpness for Semi-Supervised Learning

Zhuo Huang, Li Shen|arXiv (Cornell University)|Oct 25, 2023
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

FlatMatch proposes a novel semi-supervised learning method that minimizes cross-sharpness between a worst-case model (adversarially perturbed) and the original model to align learning dynamics between labeled and unlabeled data. By leveraging unlabeled data to stabilize and improve generalization on labeled data, FlatMatch achieves state-of-the-art performance across multiple SSL benchmarks with improved training stability and generalization, especially under low-label regimes.

ABSTRACT

Semi-Supervised Learning (SSL) has been an effective way to leverage abundant unlabeled data with extremely scarce labeled data. However, most SSL methods are commonly based on instance-wise consistency between different data transformations. Therefore, the label guidance on labeled data is hard to be propagated to unlabeled data. Consequently, the learning process on labeled data is much faster than on unlabeled data which is likely to fall into a local minima that does not favor unlabeled data, leading to sub-optimal generalization performance. In this paper, we propose FlatMatch which minimizes a cross-sharpness measure to ensure consistent learning performance between the two datasets. Specifically, we increase the empirical risk on labeled data to obtain a worst-case model which is a failure case that needs to be enhanced. Then, by leveraging the richness of unlabeled data, we penalize the prediction difference (i.e., cross-sharpness) between the worst-case model and the original model so that the learning direction is beneficial to generalization on unlabeled data. Therefore, we can calibrate the learning process without being limited to insufficient label information. As a result, the mismatched learning performance can be mitigated, further enabling the effective exploitation of unlabeled data and improving SSL performance. Through comprehensive validation, we show FlatMatch achieves state-of-the-art results in many SSL settings.

Motivation & Objective

  • To address the mismatched generalization performance between labeled and unlabeled data in semi-supervised learning, where labeled data converge faster but with unstable, sharp loss landscapes.
  • To improve generalization by leveraging the richness of unlabeled data to calibrate learning on labeled data, overcoming label scarcity limitations.
  • To bridge the gap between labeled and unlabeled data training by enforcing consistent learning performance through a novel cross-sharpness regularization.
  • To develop a method that enhances model robustness and stability without relying solely on instance-wise consistency or pseudo-labeling.

Proposed method

  • FlatMatch introduces a worst-case model by applying adversarial perturbations to the original model parameters, simulating failure cases to identify unstable regions in the loss landscape.
  • It computes cross-sharpness as the prediction difference between the worst-case model and the original model on unlabeled data, which acts as a regularization term.
  • The method minimizes this cross-sharpness to encourage agreement between the original and worst-case models on unlabeled data, thereby improving generalization and stabilizing training.
  • An efficient variant, FlatMatch-e, uses exponential moving average (EMA) to approximate the worst-case model, reducing computational cost while preserving performance.
  • The approach is compatible with existing SSL frameworks and can be easily integrated into standard training pipelines without architectural changes.

Experimental results

Research questions

  • RQ1Can aligning learning dynamics between labeled and unlabeled data improve generalization in semi-supervised learning?
  • RQ2Does minimizing cross-sharpness between a worst-case model and the original model lead to flatter loss landscapes and better generalization?
  • RQ3Can unlabeled data be used to stabilize and improve learning on labeled data, even when labels are scarce?
  • RQ4How does the proposed method compare in stability, efficiency, and accuracy to existing SOTA SSL methods?

Key findings

  • FlatMatch achieves state-of-the-art performance on multiple SSL benchmarks, including CIFAR-10 and CIFAR-100, under various label settings, outperforming existing methods like FixMatch and FreeMatch.
  • The method produces significantly flatter loss landscapes on labeled data compared to FixMatch, as evidenced by smoother 2D contours and 1D loss curves, indicating improved generalization.
  • Training stability is enhanced, as shown by a significantly lower gradient norm throughout training, particularly when compared to FreeMatch.
  • The hyperparameter ρ controlling perturbation magnitude has a strong impact on performance, with optimal performance at ρ = 0.1; values above 0.25 cause significant degradation.
  • The efficient variant FlatMatch-e reduces computational cost per iteration while maintaining high accuracy, demonstrating that EMA-based approximation is both effective and efficient.

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.