FLAT: Few-Shot Learning via Autoencoding Transformation Regularizers
Abstract
Few-shot learning (FSL) aims to recognize novel categories with minimal labeled examples. However, models often overfit to the semantic space of base classes, failing to generalize to unseen concepts. This paper introduces FLAT (Few-shot Learning via Autoencoding Transformations), a regularization framework that improves feature robustness through an unsupervised transformation-decoding task. By forcing the model to reconstruct random projective transformations applied to images, FLAT encourages the exploration of a broader feature space. Evaluations on miniImageNet and CUB-200-2011 show that FLAT significantly improves performance over standard baselines and state-of-the-art meta-learning approaches, particularly in challenging cross-dataset scenarios.
Introduction
The primary challenge in Few-Shot Learning is category generalization: training on base classes (e.g., dog breeds) to recognize novel classes (e.g., wolves) from just one or five examples. Existing methods, such as meta-learning and standard data augmentation, often struggle with complexity or limited feature exploration. Meta-learning can be difficult to optimize, while naive data augmentation is limited; aggressive transformations can lead to "unrealistic" features that degrade supervised classification performance. FLAT addresses this gap by using transformations as an unsupervised regularizer, allowing the model to learn intrinsic visual structures without being constrained by class labels.
Methods
The FLAT framework employs a two-branch architecture during the pre-training phase. One branch processes the original image, while the other processes a version subjected to a random projective transformation. The model is optimized for two simultaneous tasks: supervised classification of base classes and unsupervised transformation decoding.
A dedicated decoder network takes feature representations from both branches to estimate the parameters of the applied transformation. This process forces the encoder to understand geometric consistency, expanding the feature space to better accommodate novel categories. Unlike standard augmentation, which might discard transformed images that lose their class-specific identity, FLAT uses these transformations to provide a rich signal about the underlying visual manifold.
Following pre-training, the model utilizes weight imprinting for few-shot adaptation. Classifier weights for novel classes are initialized using the mean feature vectors of the provided examples, followed by fine-tuning. This combination of robust pre-training and efficient adaptation allows the model to leverage the broad feature space learned during the AET phase.
Datasets
FLAT was evaluated on three key benchmarks to test its generalization capabilities:
- CUB-200-2011: A fine-grained dataset featuring 200 bird species, requiring the model to distinguish between very similar visual concepts.
- miniImageNet: A standard FSL benchmark with 100 classes derived from ImageNet, providing a more general object recognition challenge.
- Cross-Dataset Scenario: A transfer learning task where the model is pre-trained on miniImageNet and evaluated on CUB-200-2011. This setup specifically tests the model's resilience to significant domain shifts.
Results
FLAT consistently outperformed state-of-the-art methods across all benchmarks. On miniImageNet (1-shot), it achieved 59.88% accuracy, significantly surpassing MAML (48.70%) and the strong "Imprinting+FT" baseline (57.40%). In the cross-dataset transfer (miniImageNet to CUB), FLAT reached 67.69% in the 5-shot setting, a 2.1% relative improvement over the best-performing baseline.
Key insights from the results include:
- Unsupervised Exploration: Transformation decoding allows the model to explore variations in the feature space not strictly tied to base categories, preventing "blindness" to features critical for novel classes.
- Mitigating Overfitting: While standard models often see a decline in novel-class accuracy as base-class training continues, FLAT stabilizes this process, allowing for continued learning of useful features.
- Universality: The strong performance in cross-dataset scenarios suggests the learned features are more universal and less prone to domain-specific overfitting.
Conclusion
FLAT provides a simple yet effective regularization strategy for few-shot learning. By leveraging projective transformations in an autoencoding setup, it enhances the model's ability to generalize to novel categories across diverse datasets. The framework demonstrates that unsupervised geometric tasks can significantly enrich the feature representations learned during supervised pre-training. Future work may explore the impact of non-rigid transformations and the integration of FLAT into more complex meta-learning architectures.
Summary updated