Augmentation Learning for Semi-Supervised Classification

Tim Frommknecht, Pedro Alves Zipf, Quanfu Fan, Nina Shvetsova, Hilde Kuehne · DOI

Abstract

Semi-supervised learning (SSL) often relies on consistency regularization, where data augmentation plays a pivotal role. However, standard augmentation policies like RandAugment are typically optimized for natural image datasets like ImageNet and may fail in specialized domains. This paper presents a method for learning domain-specific augmentation policies using bi-level optimization. By integrating Differential Automatic Data Augmentation (DADA) into the FixMatch framework, the authors demonstrate that tailored augmentations significantly improve performance on non-standard datasets such as satellite imagery and sketches.

Introduction

Data augmentation is a cornerstone of modern computer vision, enabling models to learn invariant features. In SSL, where labeled data is scarce, "strong" augmentations are used to enforce consistency across different views of unlabeled data. Yet, the "one-size-fits-all" approach of using ImageNet-tuned policies (e.g., RandAugment) is problematic for domains like satellite imagery or sketches, where certain transformations might destroy semantic information. For example, in satellite imagery, color might be a critical feature for identifying land use; a heavy color-jittering augmentation could be counterproductive. Conversely, for sketches, color is non-existent, and shape distortions might be more vital.

Methodology

The researchers combine the SSL framework FixMatch with a meta-learning approach called DADA (Differential Automatic Data Augmentation) to let the data speak for itself by meta-learning the optimal augmentation policy for any specific domain.

Bi-Level Optimization

The training happens in two alternating steps:

  1. Model Weight Update: Update the model weights to minimize classification loss.
  2. Augmentation Parameter Update: The system creates a "shadow" copy of the model, trains it using a sampled augmentation policy, and then evaluates it on a separate validation set. It then uses the gradient of that validation performance to "reward" or "punish" specific augmentations.

Policy Sharpening

After the augmentation learning phase, the authors apply a Softmax sharpening step. This uses a temperature parameter ($T$) to make the learned weights more "opinionated," ensuring the model frequently uses the most successful sub-policies rather than a uniform mix.

Multi-Augmentation ($n$)

They investigate applying multiple learned sub-policies to a single image ($n > 1$), allowing for more complex transformations when the domain requires it.

Experimental Setup

The authors specifically chose datasets that deviate from the "natural image" statistics of ImageNet to serve as a stress test for whether automated augmentation learning can outperform manual defaults:

  • EuroSAT: Satellite imagery covering 10 classes of landscapes (e.g., forest, residential).
  • Sketch10: A subset of the DomainNet dataset consisting of black-and-white sketches across 10 categories.

Key Insights and Results

The proposed method consistently outperformed the original FixMatch (which uses RandAugment):

  • Sketch10: Achieved 68.18% accuracy, compared to 66.77% for standard FixMatch.
  • EuroSAT: Achieved 94.98% accuracy, compared to 94.56% for standard FixMatch.

The Failure of Defaults

On the EuroSAT dataset, the authors found that standard "strong" augmentations (RandAugment) actually performed worse than simple weak augmentations. This confirms that blindly applying ImageNet-tuned policies can be harmful in specialized domains.

The Role of Sharpening and Complexity

The impact of the sharpening temperature was significant; without it, learned weights were too similar. By "sharpening" the distribution, the model focused on the best augmentations, leading to a significant accuracy boost (up to 2.8% on Sketch10). Additionally, the optimal number of augmentations ($n$) was found to be domain-dependent: satellite images reached peak accuracy with just one augmentation ($n=1$), while sketches benefited from stacking four ($n=4$).

Conclusion

Moving beyond static, hand-crafted augmentation policies is essential for applying SSL to diverse real-world domains. While bi-level optimization introduces some computational overhead due to the "shadow" model training, the performance gains on specialized datasets like EuroSAT and Sketch10 demonstrate the value of automated, domain-specific augmentation learning. Future work may involve expanding the search space beyond the initial 15 operations to include transformations tailored to non-visual data like hyperspectral or medical signals.

Summary updated

BibTeX
@inproceedings{frommknecht2022augmentation,
  author = {Tim Frommknecht and Pedro Alves Zipf and Quanfu Fan and Nina Shvetsova and Hilde Kuehne},
  title = {{Augmentation Learning for Semi-Supervised Classification}},
  booktitle = {GCPR},
  year = {2022},
  doi = {10.1007/978-3-031-16788-1\_6},
}
Figure