FSL-Rectifier: Rectify Outliers in Few-Shot Learning via Test-Time Augmentation
Yunwei Bai, Ying Kiat Tan, Shiming Chen, Yao Shu, Tsuhan Chen
TL;DR
This work addresses generalization challenges in few-shot learning by mitigating outlier effects at test time. It introduces FSL-Rectifier, a training-free framework composed of an image combiner, a neighbour selector, and an augmentor, enabling test-time sample augmentation and embedding averaging to pull representations toward class centroids. The authors provide theoretical support via margin-based generalization bounds and empirical evidence on Animals and Mammals datasets, showing consistent improvements for multiple trained FSL models. The approach leverages a pretrained image translator to generate test-class samples by blending general shape with class-specific style, and uses neighbor selection to ensure quality augmentations, resulting in practical gains without additional training data or fine-tuning. Overall, FSL-Rectifier offers a viable, analysis-backed method for reducing outlier impact in FSL without retraining models."
Abstract
Few-shot learning (FSL) commonly requires a model to identify images (queries) that belong to classes unseen during training, based on a few labelled samples of the new classes (support set) as reference. So far, plenty of algorithms involve training data augmentation to improve the generalization capability of FSL models, but outlier queries or support images during inference can still pose great generalization challenges. In this work, to reduce the bias caused by the outlier samples, we generate additional test-class samples by combining original samples with suitable train-class samples via a generative image combiner. Then, we obtain averaged features via an augmentor, which leads to more typical representations through the averaging. We experimentally and theoretically demonstrate the effectiveness of our method, obtaining a test accuracy improvement proportion of around 10\% (e.g., from 46.86\% to 53.28\%) for trained FSL models. Importantly, given a pretrained image combiner, our method is training-free for off-the-shelf FSL models, whose performance can be improved without extra datasets nor further training of the models themselves. Codes are available at https://github.com/WendyBaiYunwei/FSL-Rectifier-Pub.
