arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.00949cs.CV
收藏

用于Few-Shot图像分类的匹配特征集

Matching Feature Sets for Few-Shot Image Classification

Université Laval(拉瓦尔大学);Google Brain Canada(谷歌加拿大大脑团队);Mila(米拉研究所)

Arman Afrasiyabi, Hugo Larochelle, Jean-François Lalonde, Christian Gagné

摘要:

在图像分类中,通常的做法是训练深度网络以提取每个输入图像的单个特征向量。Few-Shot分类方法也大多遵循这一趋势。在这项工作中,我们偏离了这个既定的方向,而是提出为每个图像提取特征向量集。我们认为,一个基于集合的表示本质上建立了一个更丰富的表示图像从基类,随后可以更好地转移到Few-Shot类。为此,我们建议调整现有的特征提取器,以从图像中生成特征向量集。我们的方法,被称为SetFeat,嵌入浅自我注意力机制内现有的编码器架构。注意力模块是轻量级的,因此我们的方法导致编码器具有与其原始版本大致相同的参数数量。在训练和推断期间,使用集合到集合匹配度量来执行图像分类。我们提出的架构和指标的有效性是通过在标准的Few-Shot数据集上进行彻底的实验来证明的-即miniImageNet,tieredImageNet和CUB -在1次和5次拍摄的情况下。在所有情况下,除了一个,我们的方法优于国家的最先进的。

英文摘要:

In image classification, it is common practice to train deep networks to extract a single feature vector per input image. Few-shot classification methods also mostly follow this trend. In this work, we depart from this established direction and instead propose to extract sets of feature vectors for each image. We argue that a set-based representation intrinsically builds a richer representation of images from the base classes, which can subsequently better transfer to the few-shot classes. To do so, we propose to adapt existing feature extractors to instead produce sets of feature vectors from images. Our approach, dubbed SetFeat, embeds shallow self-attention mechanisms inside existing encoder architectures. The attention modules are lightweight, and as such our method results in encoders that have approximately the same number of parameters as their original versions. During training and inference, a set-to-set matching metric is used to perform image classification. The effectiveness of our proposed architecture and metrics is demonstrated via thorough experiments on standard few-shot datasets -- namely miniImageNet, tieredImageNet, and CUB -- in both the 1- and 5-shot scenarios. In all cases but one, our method outperforms the state-of-the-art.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑