arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.16280cs.CV
收藏

MonoFormer:一个同时用于扩散和自回归的Transformer

MonoFormer: One Transformer for Both Diffusion and Autoregression

Baidu VIS(百度VIS);University of Technology Sydney(悉尼科技大学)

Chuyang Zhao, Yuxing Song, Wenhao Wang, Haocheng Feng, Errui Ding, Yifan Sun, Xinyan Xiao, Jingdong Wang

AI总结:

提出MonoFormer,通过共享一个Transformer同时处理自回归和扩散任务,在保持文本生成能力的同时实现与当前最先进方法相当的图像生成性能。

摘要:

现有大多数多模态方法针对基于自回归的离散文本生成和基于扩散的连续视觉生成使用独立的骨干网络,或者通过将视觉数据离散化以对文本和视觉生成均使用自回归从而共享同一骨干网络。在本文中,我们提出研究一个简单的想法:在自回归和扩散之间共享一个Transformer。其可行性主要来自两个方面:(i) Transformer已成功应用于扩散模型进行视觉生成,以及(ii) 针对自回归和扩散的Transformer训练非常相似,区别仅在于扩散使用双向注意力掩码,而自回归使用因果注意力掩码。实验结果表明,我们的方法实现了与当前最先进方法相当的图像生成性能,同时保持了文本生成能力。该项目公开于https://monoformer.github.io/。

英文摘要:

Most existing multimodality methods use separate backbones for autoregression-based discrete text generation and diffusion-based continuous visual generation, or the same backbone by discretizing the visual data to use autoregression for both text and visual generation. In this paper, we propose to study a simple idea: share one transformer for both autoregression and diffusion. The feasibility comes from two main aspects: (i) Transformer is successfully applied to diffusion for visual generation, and (ii) transformer training for autoregression and diffusion is very similar, and the difference merely lies in that diffusion uses bidirectional attention mask and autoregression uses causal attention mask. Experimental results show that our approach achieves comparable image generation performance to current state-of-the-art methods as well as maintains the text generation capability. The project is publicly available at https://monoformer.github.io/.

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

↑