NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Task Augmentation by Rotating for Meta-Learning

Jialin Liu, Fei Chao, Chih-Min LinarXiv 2020

Introduction

Few-shot learning aims to enable models to recognize novel objects from minimal examples. This is typically achieved through meta-learning, where models "learn to learn" by training on numerous small tasks (e.g., distinguishing between five specific bird species). However, the diversity of these training tasks often acts as a bottleneck. While traditional data augmentation (Image Aug) increases the number of images, it does not increase the number of classes, which can lead to overfitting on the limited base categories. This paper introduces Task Augmentation (Task Aug), which expands the class space by treating rotated images as entirely new categories.

Task Augmentation by Rotating

The core innovation lies in the systematic expansion of the training class set. For every original class in the dataset, three additional "novel" classes are generated by rotating all constituent images by 90°, 180°, and 270°.

Visual representation of class expansion where rotated versions of images are treated as distinct novel classes.

By effectively quadrupling the number of available classes, the number of possible $N$-way task combinations increases exponentially. This significantly enriches the training signal, forcing the meta-learner to extract more robust and discriminative features that generalize better to truly unseen data.

Probabilistic Sampling and Annealing

To integrate these novel classes effectively, the authors employ a probabilistic sampling strategy. During task generation, a class is selected from the rotated set with probability $p$. To prevent the model from being overwhelmed by "unnatural" rotated data early in training, $p$ is linearly annealed from 0 to a maximum value ($p_{max}$) over the first $T$ training tasks. Furthermore, $p_{max}$ is typically kept between 0.25 and 0.5 to ensure the model maintains a primary focus on the features of upright, natural images.

Key Insights and Results

The researchers evaluated Task Aug on standard benchmarks including miniImageNet, CIFAR-FS, and FC100. The method consistently outperformed both baselines and standard rotation-based image augmentation.

Comparison of Task Augmentation against standard Image Augmentation and baseline on CIFAR-FS, highlighting the performance peak at p_max = 0.5.

Image Aug vs. Task Aug

A critical finding is that treating a rotated image as a new class is substantially more effective than treating it as a variation of the same class. While standard Image Aug (keeping labels identical) often leads to marginal gains or even performance degradation at high rotation probabilities, Task Aug provides a consistent accuracy boost of 2% to 5%. This suggests that the "minimum unit" of meta-learning is the task, and increasing task diversity is more impactful than simply increasing image volume.

State-of-the-Art Performance

When combined with ensemble learning—averaging predictions from models at different training stages—Task Aug achieved state-of-the-art results at the time of publication. For instance, on miniImageNet 5-way 1-shot, the R2-D2 backbone with Task Aug reached 65.95% accuracy, a significant improvement over the 60.57% baseline. These gains were consistent across various base learners, including ProtoNets and MetaOptNet-SVM.

Conclusion and Limitations

Task Augmentation by Rotating offers a simple yet powerful way to overcome the class-diversity bottleneck in meta-learning. While highly effective, the authors note that as class diversity increases, the capacity of the feature-extracting "backbone" (e.g., ResNet-12) may become a limiting factor. Future research may explore larger models to fully exploit this diversity, as well as more complex transformations beyond simple rotations to further expand the boundaries of task diversity.

Summary updated

BibTeX
@misc{liu2020task,
  author = {Jialin Liu and Fei Chao and Chih-Min Lin},
  title = {{Task Augmentation by Rotating for Meta-Learning}},
  year = {2020},
  eprint = {2003.00804},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.00804},
}
Figure