Skip to main content
QUICK REVIEW

[论文解读] A Universal Representation Transformer Layer for Few-Shot Image Classification

Lu Liu, William L. Hamilton|arXiv (Cornell University)|Jun 21, 2020
Domain Adaptation and Few-Shot Learning参考文献 24被引用 55
一句话总结

URT 元学习将一个通用的、多领域的主干表示转换为任务自适应表示,用于小样本分类,在 Meta-Dataset 上实现了最先进的性能,并具备高效推理。

ABSTRACT

Few-shot classification aims to recognize unseen classes when presented with only a small number of samples. We consider the problem of multi-domain few-shot image classification, where unseen classes and examples come from diverse data sources. This problem has seen growing interest and has inspired the development of benchmarks such as Meta-Dataset. A key challenge in this multi-domain setting is to effectively integrate the feature representations from the diverse set of training domains. Here, we propose a Universal Representation Transformer (URT) layer, that meta-learns to leverage universal features for few-shot classification by dynamically re-weighting and composing the most appropriate domain-specific representations. In experiments, we show that URT sets a new state-of-the-art result on Meta-Dataset. Specifically, it achieves top-performance on the highest number of data sources compared to competing methods. We analyze variants of URT and present a visualization of the attention score heatmaps that sheds light on how the model performs cross-domain generalization. Our code is available at https://github.com/liulu112601/URT.

研究动机与目标

  • 激发并解决来自多数据源的未见类别的多领域小样本分类问题。
  • 提出一种可学习的机制,通过对领域特定主干网络的注意力来自适应通用表示到具体任务。
  • 证明对主干网络组合进行元学习相较于手工特征选择能提升跨域泛化。
  • 展示在 Meta-Dataset 上的最新性能,并分析注意力模式以解释跨域加权。

提出的方法

  • 介绍使用点积自注意力来对m个预训练领域主干进行加权与组合的通用表示变换层(URT)。
  • 使用来自类别支持集的查询和来自主干后表示的键,对任务中的每个类别进行类别级注意力表示。
  • 支持单头和多头的URT变体;多头输出连接成表示,并包含正则化项以使注意力头多样化。
  • 端到端训练URT,使用原型网络损失,在适应后的表示空间中利用类别原型对查询进行分类。
  • 在URT处理前对主干输出进行归一化以考虑向量范数的差异。
  • 可选地将 FiLM 调制的主干网络(pf 主干)进行比较,展示URT在不同主干族上的优势。

实验结果

研究问题

  • RQ1一个Transformer风格的URT层是否可以通过学习对通用表示进行加权和组合来提升跨域小样本分类?
  • RQ2URT中的注意力头是否能对已见和未见域产生可解释的领域特定加权?
  • RQ3在使用不同主干训练范式(如FiLM-modulated backbones)时,URT 的提升是否仍然存在?

主要发现

ILSVRCOmniglotAircraftBirdsTexturesDrawFungiFlowerTraffic SignsMSCOCO平均排名
MAML37.8 ± 1.083.9 ± 1.076.4 ± 0.762.4 ± 1.164.1 ± 0.859.7 ± 1.133.5 ± 1.179.9 ± 0.842.9 ± 1.329.4 ± 1.18.0
ProtoNet44.5 ± 1.179.6 ± 1.171.1 ± 0.967.0 ± 1.065.2 ± 0.864.9 ± 0.940.3 ± 1.186.9 ± 0.746.5 ± 1.039.9 ± 1.17.3
ProtoMAML46.5 ± 1.182.7 ± 1.075.2 ± 0.869.9 ± 1.068.3 ± 0.866.8 ± 0.942.0 ± 1.288.7 ± 0.752.4 ± 1.141.7 ± 1.15.4
CNAPs52.3 ± 1.088.4 ± 0.780.5 ± 0.672.2 ± 0.958.3 ± 0.772.5 ± 0.847.4 ± 1.086.0 ± 0.560.2 ± 0.942.6 ± 1.15.1
BOHB-E55.4 ± 1.177.5 ± 1.160.9 ± 0.973.6 ± 0.872.8 ± 0.761.2 ± 0.944.5 ± 1.190.6 ± 0.657.5 ± 1.051.9 ± 1.04.4
TaskNorm50.6 ± 1.190.7 ± 0.683.8 ± 0.674.6 ± 0.862.1 ± 0.774.8 ± 0.748.7 ± 1.089.6 ± 0.667.0 ± 0.743.4 ± 1.03.8
SUR56.3 ± 1.193.1 ± 0.585.4 ± 0.771.4 ± 1.071.5 ± 0.881.3 ± 0.663.1 ± 1.082.8 ± 0.770.4 ± 0.852.4 ± 1.12.5
SimpleCNAPS58.6 ± 1.191.7 ± 0.682.4 ± 0.774.9 ± 0.867.8 ± 0.877.7 ± 0.746.9 ± 1.090.7 ± 0.573.5 ± 0.746.2 ± 1.12.4
URT55.7 ± 1.094.4 ± 0.485.8 ± 0.676.3 ± 0.871.8 ± 0.782.5 ± 0.663.5 ± 1.088.2 ± 0.669.4 ± 0.852.2 ± 1.11.6
  • URT在Meta-Dataset上确立了新的最先进水平,在与之竞争的方法中数据源数量最多时表现最佳。
  • 相较于SUR,URT将推理时间减少超过10倍(在V100上每任务0.04s对0.43s)。
  • 双头URT学习互补的注意力模式:一个头关注同域主干,另一个混合相关域;未见域则混合多种主干以增强鲁棒性。
  • 与SUR相比,URT在若干数据集上取得提升,同时不牺牲其他数据集的性能;在表1中,URT在多个数据源上优于SUR。
  • 使用FiLM调制的主干(URT-pf)在若干数据集上普遍优于SUR-pf,表明对不同主干族的鲁棒性。
  • 消融研究显示键(keys)和来自支持集的查询的重要性,以及多头带来的性能提升。

更好的研究,从现在开始

从论文设计到论文写作,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。