arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.03580cs.CVcs.AIcs.LG
收藏

卷积网络的BERT设计:稀疏和层次掩蔽建模

Designing BERT for Convolutional Networks: Sparse and Hierarchical Masked Modeling

Peking University(北京大学);Bytedance Inc.(字节跳动公司);University of Oxford(牛津大学)

Keyu Tian, Yi Jiang, Qishuai Diao, Chen Lin, Liwei Wang, Zehuan Yuan

摘要:

我们确定并克服了将BERT风格的预训练或掩码图像建模的成功扩展到卷积网络(convnets)的两个关键障碍:(i)卷积运算无法处理不规则的随机掩蔽输入图像;(ii)BERT预训练的单尺度性质与convnet的分层结构不一致。对于(i),我们将未掩蔽的像素视为3D点云的稀疏体素,并使用稀疏卷积进行编码。这是稀疏卷积首次用于2D掩码建模。对于(ii),我们开发了一个分层解码器来从多尺度编码特征重建图像。我们的方法称为Sparse masKed modeling(SparK),它是通用的:它可以直接用于任何卷积模型,而无需修改主干。我们在经典(ResNet)和现代(ConvNeXt)模型上验证了它:在三个下游任务上,它以类似的大幅度(约+1.0%)超过了最先进的对比学习和基于transformer的掩码建模。在目标检测和实例分割方面的改进更为显著(高达+3.5%),验证了所学习特征的强大可移植性。我们还通过在更大的模型上观察到更多的增益来发现其有利的缩放行为。所有这些证据都揭示了在convnets上进行生成式预训练的前景。代码和模型在https://github.com/keyu-tian/SparK上发布。

英文摘要:

We identify and overcome two key obstacles in extending the success of BERT-style pre-training, or the masked image modeling, to convolutional networks (convnets): (i) convolution operation cannot handle irregular, random-masked input images; (ii) the single-scale nature of BERT pre-training is inconsistent with convnet's hierarchical structure. For (i), we treat unmasked pixels as sparse voxels of 3D point clouds and use sparse convolution to encode. This is the first use of sparse convolution for 2D masked modeling. For (ii), we develop a hierarchical decoder to reconstruct images from multi-scale encoded features. Our method called Sparse masKed modeling (SparK) is general: it can be used directly on any convolutional model without backbone modifications. We validate it on both classical (ResNet) and modern (ConvNeXt) models: on three downstream tasks, it surpasses both state-of-the-art contrastive learning and transformer-based masked modeling by similarly large margins (around +1.0%). Improvements on object detection and instance segmentation are more substantial (up to +3.5%), verifying the strong transferability of features learned. We also find its favorable scaling behavior by observing more gains on larger models. All this evidence reveals a promising future of generative pre-training on convnets. Codes and models are released at https://github.com/keyu-tian/SparK.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑