Skip to main content
QUICK REVIEW

[论文解读] PeCo: Perceptual Codebook for BERT Pre-training of Vision Transformers

Xiaoyi Dong, Jianmin Bao|arXiv (Cornell University)|Nov 24, 2021
Advanced Neural Network ApplicationsComputer Science参考文献 64被引用 32
一句话总结

PeCo 引入通过感知损失学习的感知视觉代码本,以引导 Vision Transformers 的 BERT 风格预训练,在下游任务的迁移性能上比 BEiT 和 MAE 更强。

ABSTRACT

This paper explores a better prediction target for BERT pre-training of vision transformers. We observe that current prediction targets disagree with human perception judgment.This contradiction motivates us to learn a perceptual prediction target. We argue that perceptually similar images should stay close to each other in the prediction target space. We surprisingly find one simple yet effective idea: enforcing perceptual similarity during the dVAE training. Moreover, we adopt a self-supervised transformer model for deep feature extraction and show that it works well for calculating perceptual similarity.We demonstrate that such learned visual tokens indeed exhibit better semantic meanings, and help pre-training achieve superior transfer performance in various downstream tasks. For example, we achieve $ extbf{84.5\%}$ Top-1 accuracy on ImageNet-1K with ViT-B backbone, outperforming the competitive method BEiT by $ extbf{+1.3\%}$ under the same pre-training epochs. Our approach also gets significant improvement on object detection and segmentation on COCO and semantic segmentation on ADE20K. Equipped with a larger backbone ViT-H, we achieve the state-of-the-art ImageNet accuracy ( extbf{88.3\%}) among methods using only ImageNet-1K data.

研究动机与目标

  • 为遮蔽图像建模激励一个与人类感知对齐的预测目标。
  • 引入一个感知损失,通过 VQ-VAE 学习离散视觉代码本。
  • 证明感知 token 更具语义意义的表示。
  • 展示在图像分类、目标检测和语义分割上的迁移改进。

提出的方法

  • 使用 VQ-VAE 将图像转换为具有可学习代码本的离散视觉 token,大小为 K=8192。
  • 结合来自自监督 ViT (MoCo v3) 的多尺度特征计算的感知损失来训练 VQ-VAE 的编码器/量化器。
  • 在感知 codebook token 上应用类似 BERT 的遮蔽图像建模目标,其中分类器预测被遮蔽的 token ID。
  • 使用 PeCo token 和标准遮蔽策略对 ViT backbones (ViT-B/16, ViT-L, ViT-H) 进行预训练。
  • 在下游任务上进行微调:ImageNet-1K 分类、COCO 目标检测和 ADE20K 语义分割。

实验结果

研究问题

  • RQ1感知相似性为基础的 tokenization 是否能比像素基或 DALL·E 基的 tokenization 学到更具语义的表示?
  • RQ2感知代码本是否能提高 ViT 模型在分类、检测和分割任务上的迁移性能?
  • RQ3在相似的预训练设置与数据约束下,PeCo 与 BEiT 和 MAE 的对比如何?

主要发现

  • PeCo 在 ViT-B 上达到 84.5% 的 Top-1 准确率,优于 BEiT 相同 800 轮预训练的 1.3%。
  • 使用更大的 backbone ViT-H,PeCo 仅使用 ImageNet-1K 数据就达到 ImageNet-1K 的 88.3% Top-1,达到该设定的最先进水平。
  • PeCo 在 COCO 目标检测和 ADE20K 语义分割上相对于此前自监督方法显示出显著提升。
  • 轻量化的 tokenizer 变体在降低编码成本的同时保持了有竞争力的性能。
  • 使用感知损失学习的码本所学的码词在语义意义方面表现更强,体现在线性探测与重建分类结果的提升。

阅读本论文

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

在 Nubint 中阅读本论文

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