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

走向统一的基础模型:联合预训练Transformers不成对的图像和文本

Towards a Unified Foundation Model: Jointly Pre-Training Transformers on Unpaired Images and Text

Google Research(谷歌研究院);University of California, Los Angeles(加州大学洛杉矶分校)

Qing Li, Boqing Gong, Yin Cui, Dan Kondratyuk, Xianzhi Du, Ming-Hsuan Yang, Matthew Brown

摘要:

在本文中,我们探讨了建立一个统一的基础模型,可以适应这两个视觉只和文本的任务的可能性。从BERT和ViT出发,我们设计了一个统一的Transformer,它由特定于模态的标记器、共享的Transformer编码器和特定于任务的输出头组成。为了有效地在未配对的图像和文本上联合预训练所提出的模型,我们提出了两种新技术:(i)我们采用单独训练的BERT和ViT模型作为教师,并应用知识蒸馏为联合训练提供额外的,准确的监督信号;(ii)我们提出了一种新的梯度掩蔽策略来平衡图像和文本预训练损失的参数更新。我们通过分别对图像分类任务和自然语言理解任务进行微调来评估联合预训练的Transformer。实验结果表明,所得到的统一基础Transformer在纯视觉和纯文本任务上都表现得非常好,所提出的知识蒸馏和梯度掩蔽策略可以有效地将性能提升到接近单独训练模型的水平。

英文摘要:

In this paper, we explore the possibility of building a unified foundation model that can be adapted to both vision-only and text-only tasks. Starting from BERT and ViT, we design a unified transformer consisting of modality-specific tokenizers, a shared transformer encoder, and task-specific output heads. To efficiently pre-train the proposed model jointly on unpaired images and text, we propose two novel techniques: (i) We employ the separately-trained BERT and ViT models as teachers and apply knowledge distillation to provide additional, accurate supervision signals for the joint training; (ii) We propose a novel gradient masking strategy to balance the parameter updates from the image and text pre-training losses. We evaluate the jointly pre-trained transformer by fine-tuning it on image classification tasks and natural language understanding tasks, respectively. The experiments show that the resultant unified foundation transformer works surprisingly well on both the vision-only and text-only tasks, and the proposed knowledge distillation and gradient masking strategy can effectively lift the performance to approach the level of separately-trained models.

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

↑