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

Improving Few-Shot Learning using Composite Rotation based Auxiliary Task

Pratik Mazumder, Pravendra Singh, Vinay P. Namboodiri

Abstract

Few-shot learning (FSL) aims to recognize novel object categories from a very limited number of labeled examples. A major challenge in FSL is learning robust feature representations that generalize beyond the training set. This paper proposes the Composite Rotation based Auxiliary Task (CRAT), a self-supervised learning technique that enhances feature extraction. By training a model to predict both global image rotations and independent rotations of internal image patches, CRAT forces the network to learn granular, structural features rather than relying on global statistics. Experimental results across multiple benchmarks, including mini-ImageNet and tiered-ImageNet, demonstrate that CRAT consistently improves classification accuracy over standard self-supervised baselines.

Introduction

Deep learning models typically require vast amounts of labeled data to achieve high performance. In contrast, humans can learn to identify new objects after seeing only one or two instances. Few-Shot Learning (FSL) seeks to bridge this gap. The primary bottleneck in FSL is feature representation; if a network only learns features specific to its training classes, it fails to generalize to "novel" classes.

To address this, researchers often employ self-supervised auxiliary tasks where labels are automatically generated from the data. A common task is predicting image rotation (e.g., 0°, 90°, 180°, 270°). However, standard rotation tasks can be "cheated" by models focusing on global pixel statistics rather than understanding object parts. The authors argue that a more complex geometric task is needed to force the model to understand the internal structure of objects.

Methods: Composite Rotation (CRAT)

The authors introduce Composite Rotation (CRAT), a more challenging auxiliary task designed to break spatial symmetry and encourage the learning of semantic parts.

The Transformation Process

CRAT transforms an image using two layers of rotation:

  1. Outer Rotation: The entire image is rotated by 0°, 90°, 180°, or 270°.
  2. Inner Rotation: The image is split vertically into two halves. Each half is then independently rotated by either 0° or 180°.

This combination results in 16 distinct pseudo-classes (4 outer rotations × 2 left-patch rotations × 2 right-patch rotations).

The 16 composite rotation transformations used in CRAT, organized by outer rotation (A: 0°, B: 90°, C: 180°, D: 270°) and internal patch flips.

Multi-Task Learning

The network is trained using a multi-task objective. It simultaneously learns the standard classification task (using labeled data) and the CRAT auxiliary task (predicting which of the 16 transformations was applied). This approach was integrated into two popular FSL frameworks: RFS (Rethinking Few-Shot) and BF3S (Boosting Few-Shot). By requiring the model to identify which half of an image was flipped while the whole image was rotated, the model is compelled to learn the detailed orientation and structure of object parts.

Experimental Results

The approach was evaluated on four standard FSL benchmarks: mini-ImageNet, tiered-ImageNet, CIFAR-FS, and FC-100.

Performance Gains

CRAT consistently outperformed baseline methods across all datasets. For instance, on the mini-ImageNet 1-shot task, RFS + CRAT achieved 68.44% accuracy, a significant improvement over the baseline RFS (64.82%). On tiered-ImageNet, 1-shot accuracy improved from 71.52% to 73.45%.

Key Insights

  • Breaking Spatial Bias: Simple rotation preserves relative pixel distances. CRAT breaks this symmetry, forcing the model to learn "semantic parts" because it can no longer rely on fixed global coordinates.
  • Optimal Complexity: The authors found that splitting the image into four quarters (creating 1,024 classes) made the task too difficult, actually hurting performance. The 16-class split represents a "Goldilocks" level of difficulty.
  • Improved Attention: Class Activation Maps (CAM) revealed that CRAT-trained models focus more tightly on discriminative object regions rather than background elements compared to models trained with simple rotation.

Conclusion and Future Work

CRAT provides a simple yet effective geometric auxiliary task that significantly boosts few-shot classification performance. It outperforms more complex self-supervised methods like SimCLR in FSL contexts, proving that geometric tasks are well-suited for learning structural features.

Future work may explore non-fixed subdivisions (e.g., based on object boundaries) or investigate the method's efficacy in domains where orientation is less defined, such as satellite or medical imaging. Additionally, while the authors used random sampling of transformations to maintain efficiency, further optimization of the task-sampling strategy could yield even better results.

Summary updated

BibTeX
@inproceedings{mazumder2021improving,
  author = {Pratik Mazumder and Pravendra Singh and Vinay P. Namboodiri},
  title = {{Improving Few-Shot Learning using Composite Rotation based Auxiliary Task}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00270},
}
Figure