Skip to main content
QUICK REVIEW

[论文解读] PyramidCLIP: Hierarchical Feature Alignment for Vision-language Model Pretraining

Yuting Gao, Jinfeng Liu|arXiv (Cornell University)|Apr 29, 2022
Multimodal Machine Learning ApplicationsComputer Science被引用 42
一句话总结

PyramidCLIP 引入用于图像和文本的分层输入金字塔,以在多个语义层面对齐视觉与语言元素,采用软化的负样本,在多项视觉-语言任务上取得了最新的SOTA结果。

ABSTRACT

Large-scale vision-language pre-training has achieved promising results on downstream tasks. Existing methods highly rely on the assumption that the image-text pairs crawled from the Internet are in perfect one-to-one correspondence. However, in real scenarios, this assumption can be difficult to hold: the text description, obtained by crawling the affiliated metadata of the image, often suffers from the semantic mismatch and the mutual compatibility. To address these issues, we introduce PyramidCLIP, which constructs an input pyramid with different semantic levels for each modality, and aligns visual elements and linguistic elements in the form of hierarchy via peer-level semantics alignment and cross-level relation alignment. Furthermore, we soften the loss of negative samples (unpaired samples) so as to weaken the strict constraint during the pre-training stage, thus mitigating the risk of forcing the model to distinguish compatible negative pairs. Experiments on five downstream tasks demonstrate the effectiveness of the proposed PyramidCLIP. In particular, with the same amount of 15 million pre-training image-text pairs, PyramidCLIP exceeds CLIP on ImageNet zero-shot classification top-1 accuracy by 10.6%/13.2%/10.0% with ResNet50/ViT-B32/ViT-B16 based image encoder respectively. When scaling to larger datasets, PyramidCLIP achieves the state-of-the-art results on several downstream tasks. In particular, the results of PyramidCLIP-ResNet50 trained on 143M image-text pairs surpass that of CLIP using 400M data on ImageNet zero-shot classification task, significantly improving the data efficiency of CLIP.

研究动机与目标

  • 解决网页抓取图像-文本对中的语义不匹配和相互兼容性问题。
  • 提出一个面向两种模态的分层输入金字塔以实现多层对齐。
  • 在预训练阶段弱化负样本以降低未配对样本的严格惩罚。
  • 在多项下游任务中展示最先进的零-shot 与检索性能。

提出的方法

  • 构建双金字塔:全局与局部视觉视图以及基于 ROI 的细粒度对象表示;对于文本,提供原始字幕、摘要字幕以及基于对象-属性的描述。
  • 通过对比全局文本与摘要文本以及局部文本与原始文本,在两种编码器之间进行对等层级的语义对齐。
  • 通过额外的正样本对,将基于 ROI 的对象关系与相应的文本描述进行跨层关系对齐,引入跨层关系对齐。
  • 在 InfoNCE 损失中应用软化的交叉熵目标,以降低语义相似的未配对样本的影响。
  • 在 ViT 主干中集成 LeFF(Locally-enhanced Feed-Forward)以改善局部上下文建模;使用对象-属性检测器提供 ROI 特征和 T_OA 描述。
  • 使用 143M 图像-文本对进行训练(YFCC15M-V2 + LAION99M 子集),覆盖三种主干变体(PyramidCLIP-ResNet50、PyramidCLIP-ViT-B32、PyramidCLIP-ViT-B16)。

实验结果

研究问题

  • RQ1分层视觉和文本输入上的多层语义对齐是否可以超越标准的一对一配对假设来提升视觉-语言预训练的效果?
  • RQ2通过软化负样本并引入跨层关系是否能缓解网页整理数据中的语义不匹配与相互兼容性问题?
  • RQ3使用不同的图像编码器和数据规模时,PyramidCLIP 对零-shot 分类、检索与迁移任务的下游收益是什么?
  • RQ4基于 ROI 的对象级信息如何贡献于跨层对齐和整体性能?
  • RQ5与传统的 CLIP 类方法相比,分层方法在中等规模和大规模预训练数据集上是否更具数据效率?

主要发现

  • 在大规模数据上训练时,PyramidCLIP 在若干下游任务上实现了最新的零-shot 和检索结果。
  • 在 15M 的预训练对上,PyramidCLIP 在 ImageNet 零-shot 分类上相对于 ResNet50、ViT-B32 和 ViT-B16 编码器,超出 CLIP 显著的提升。
  • 在 143M 数据上,PyramidCLIP 在零-shot ImageNet 分类方面超过了在 400M 数据上训练的 CLIP,显示出更高的数据效率。
  • 负样本的软化目标(对比损失中的标签平滑)以及三层语义金字塔对性能提升有显著贡献。
  • 基于 ROI 的对象关系通过跨层对齐整合提供额外监督,提升包括目标检测与分割在内的下游性能。
  • 消融结果显示每个组件(同级对齐、跨层全局/局部对齐、LeFF、软化)均对 ImageNet 零-shot 精度的提升有贡献。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。