Class-Wise Metric Scaling for Improved Few-Shot Classification
Abstract
Few-shot classification aims to generalize basic knowledge to recognize novel categories from a few samples. Recent centroid-based methods achieve promising classification performance with the nearest neighbor rule. However, we consider that those methods intrinsically ignore per-class distribution, as the decision boundaries are biased due to the diversity of intra-class variances. Hence, we propose a class-wise metric scaling (CMS) mechanism, which can be applied to both training and testing stages. Concretely, metric scalars are set as learnable parameters in the training stage, helping to learn a more discriminative and transferable feature representation. As for testing, we construct a convex optimization problem to generate an optimal scalar vector for refining the nearest neighbor decisions. Besides, we also involve a low-ranking bilinear pooling layer for improved representation capacity, which further provides significant performance gains. Extensive experiments are conducted on a series of feature extractor backbones, datasets, and testing modes, which have shown consistent improvements compared to prior SOTA methods, e.g., we achieve accuracies of 66.64% and 83.63% for 5-way 1-shot and 5-shot settings on the mini-ImageNet, respectively. Under the semi-supervised inductive mode, results are further up to 78.34% and 87.53%, respectively.
Cite
Text
Liu et al. "Class-Wise Metric Scaling for Improved Few-Shot Classification." Winter Conference on Applications of Computer Vision, 2021.Markdown
[Liu et al. "Class-Wise Metric Scaling for Improved Few-Shot Classification." Winter Conference on Applications of Computer Vision, 2021.](https://mlanthology.org/wacv/2021/liu2021wacv-classwise/)BibTeX
@inproceedings{liu2021wacv-classwise,
title = {{Class-Wise Metric Scaling for Improved Few-Shot Classification}},
author = {Liu, Ge and Zhao, Linglan and Li, Wei and Guo, Dashan and Fang, Xiangzhong},
booktitle = {Winter Conference on Applications of Computer Vision},
year = {2021},
pages = {586-595},
url = {https://mlanthology.org/wacv/2021/liu2021wacv-classwise/}
}