[论文解读] I2DFormer: Learning Image to Document Attention for Zero-Shot Image Classification
I2DFormer 通过联合学习图像与文档嵌入,使用新颖的 Image to Document (I2D) Attention 将 patch 与 document words 对齐,从而在 AWA2、CUB、FLO 上实现零样本和广义零样本学习的最先进的无监督语义嵌入,而不需要属性词汇表。
Despite the tremendous progress in zero-shot learning(ZSL), the majority of existing methods still rely on human-annotated attributes, which are difficult to annotate and scale. An unsupervised alternative is to represent each class using the word embedding associated with its semantic class name. However, word embeddings extracted from pre-trained language models do not necessarily capture visual similarities, resulting in poor zero-shot performance. In this work, we argue that online textual documents, e.g., Wikipedia, contain rich visual descriptions about object classes, therefore can be used as powerful unsupervised side information for ZSL. To this end, we propose I2DFormer, a novel transformer-based ZSL framework that jointly learns to encode images and documents by aligning both modalities in a shared embedding space. In order to distill discriminative visual words from noisy documents, we introduce a new cross-modal attention module that learns fine-grained interactions between image patches and document words. Consequently, our I2DFormer not only learns highly discriminative document embeddings that capture visual similarities but also gains the ability to localize visually relevant words in image regions. Quantitatively, we demonstrate that our I2DFormer significantly outperforms previous unsupervised semantic embeddings under both zero-shot and generalized zero-shot learning settings on three public datasets. Qualitatively, we show that our method leads to highly interpretable results where document words can be grounded in the image regions.
研究动机与目标
- 以在线文档作为丰富的视觉描述,推动用于 ZSL 的无监督语义嵌入。
- 开发一个跨模态框架,将图像与文档在共享嵌入空间中对齐。
- 通过 patch-to-word 的 I2D Attention 模块从嘈杂的文档中提炼判别性的视觉词。
- 产生高度可解释、有据可查的嵌入,并展示对未见类别的泛化能力。
提出的方法
- 使用双流 Transformer:一个图像 Transformer F 和一个文档 Transformer G,具有维度为 r 的共享嵌入空间。
- I2D Global:通过将 f_CLS(x) 和 g_CLS(d) 投影到联合空间来学习全局的图像–文档嵌入,并计算 s(x,d) = f_CLS(x) · g_CLS(d)。
- I2D Attention:在图像 patch 的嵌入 f_p(x) 与文档单词嵌入 g_t(d) 之间计算跨模态注意力 A(x,d),以产生 patch 感知的表示;从注意后的 patch 特征推导局部得分 s_local(x,d)。
- 使用交叉熵损失 L_CLS 和 L_local 进行训练,以最大化正确的图像–文档对之间的兼容性并促进判别性的局部关联。
- 文档嵌入(I2DEmb)在没有图像级语言监督的情况下学习,但通过视觉输入进行锚定,从而与任何 ZSL 模型进行下游 ZSL。
实验结果
研究问题
- RQ1描述对象类别的嘈杂在线文档能否被转换为可视化对齐、具判别性的嵌入以用于零样本分类?
- RQ2将图像 patch 与文档单词连接起来的跨模态注意力是否比仅全局对齐提升 ZSL 性能?
- RQ3所学习的文档嵌入是否对未见类别具有可解释性并可在图像区域中进行锚定?
主要发现
- I2DFormer 在 ZSL 和 GZSL 设置下,一贯优于以往的无监督语义嵌入,覆盖 AWA2、CUB 和 FLO。
- I2D Attention 模块相较仅使用 I2DGlobal 取得显著提升(在关键数据集的 ZSL/GZSL 上相对提升为 8–16 个百分点)。
- 所学习的文档嵌入(I2DEmb)在无监督语义嵌入中达到 SOTA,例如 ZSL:AWA2 约 76.4%,CUB 约 45.4%,FLO 约 40.0%。
- 在 GZSL 中,I2DFormer 取得了具有竞争力的调和均值,特别是在 FLO 上(约 51.5%)。
- 定性分析表明模型将具判别性的文档词锚定到特定的图像区域,从而实现对未见类别的视觉属性的可解释定位。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。