Skip to main content
QUICK REVIEW

[论文解读] ConvMAE: Masked Convolution Meets Masked Autoencoders

Peng Gao, Teli Ma|arXiv (Cornell University)|May 8, 2022
Advanced Neural Network ApplicationsComputer Science被引用 52
一句话总结

ConvMAE 将多尺度混合卷积–Transformer 编码器与屏蔽卷积和分块掩蔽相结合,以实现高效的自掩码自编码和多尺度特征学习,在分类、检测、分割和视频任务中提升性能。

ABSTRACT

Vision Transformers (ViT) become widely-adopted architectures for various vision tasks. Masked auto-encoding for feature pretraining and multi-scale hybrid convolution-transformer architectures can further unleash the potentials of ViT, leading to state-of-the-art performances on image classification, detection and semantic segmentation. In this paper, our ConvMAE framework demonstrates that multi-scale hybrid convolution-transformer can learn more discriminative representations via the mask auto-encoding scheme. However, directly using the original masking strategy leads to the heavy computational cost and pretraining-finetuning discrepancy. To tackle the issue, we adopt the masked convolution to prevent information leakage in the convolution blocks. A simple block-wise masking strategy is proposed to ensure computational efficiency. We also propose to more directly supervise the multi-scale features of the encoder to boost multi-scale features. Based on our pretrained ConvMAE models, ConvMAE-Base improves ImageNet-1K finetuning accuracy by 1.4% compared with MAE-Base. On object detection, ConvMAE-Base finetuned for only 25 epochs surpasses MAE-Base fined-tuned for 100 epochs by 2.9% box AP and 2.2% mask AP respectively. Code and pretrained models are available at https://github.com/Alpha-VL/ConvMAE.

研究动机与目标

  • 激励并开发一种自监督学习框架,利用混合卷积–Transformer 主干用于掩码自编码。
  • 设计一种高效的掩蔽策略,在保持 MAE 效率的同时实现多尺度特征学习。
  • 提供一个多尺度解码器和监督,使编码器输出与下游任务(如检测和分割)更好地对齐。
  • 演示 ConvMAE 在图像分类、对象检测、语义分割和视频理解中的有效性。

提出的方法

  • 提出一个混合卷积–Transformer 编码器,包含三个阶段,前两个阶段是卷积(5x5 深度可分卷积),第三阶段基于 Transformer,产生多尺度嵌入 E1、E2、E3。
  • 引入一种分块掩蔽策略,掩蔽后期令牌(大约可见令牌约 25%),并将掩膜逐步上采样至更早的阶段,使屏蔽卷积防止信息泄露。
  • 在早期阶段应用屏蔽卷积以避免泄露并保持预训练–微调的一致性差距。
  • 通过多尺度解码器对多尺度编码器特征进行上采样和融合,利用步幅卷积聚合 E1、E2、E3,并进行线性融合,形成用于屏蔽补丁重建的解码器输入。
  • 使用与 MAE 相同的重建目标(重建被掩蔽的补丁),但配合多尺度解码器和用于检测/分割头的任务导向微调适配。
  • 通过在 Mask-RCNN 的对象检测中使用多尺度特征(E1–E4)进行微调,以及在 UperNet 的语义分割中,提供下游任务的适配,并在效率上进行调整(如第三阶段的全局注意力受限)。

实验结果

研究问题

  • RQ1具有分块掩蔽和屏蔽卷积的混合卷积–Transformer 主干能否产生比 MAE 更好的自监督表征?
  • RQ2多尺度特征监督与解码是否提升下游任务(如检测和分割)的性能?
  • RQ3掩蔽策略、屏蔽卷积和卷积核大小如何影响预训练效率和下游迁移?
  • RQ4ConvMAE 能否在保持 MAE 效率的同时降低预训练–微调差异并加速收敛?

主要发现

  • ConvMAE-Base 将 ImageNet-1K 微调准确率比 MAE-Base 提升 1.4%。
  • 在 COCO 2017 上使用 Mask-RCNN,ConvMAE-Base 微调 25 个 epoch,达到 53.2% APbox 和 47.1% APmask,超过 MAE-Base(50.3% APbox,44.9% APmask),训练时间更长。
  • 在 ADE20K 使用 UperNet,ConvMAE-Base 获得 51.7% mIoU,较 MAE-Base 提升 3.6 个百分点。
  • ConvMAE 采用分块掩蔽和屏蔽卷积,保持 MAE 效率的同时实现多尺度表征。
  • ConvMAE 相较于 MAE 展现更快的收敛,在 ImageNet 微调 58 个 epoch 和 COCO 检测在类似预算下 16 个 epoch 时就超越 MAE。
  • VideoConvMAE 的扩展在 Kinetics-400 与 Something-Something-v2 预算下,微调准确率优于 VideoMAE。

阅读本论文

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

在 Nubint 中阅读本论文

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