[论文解读] CM3: A Causal Masked Multimodal Model of the Internet
CM3 是一类在网页数据的大规模超文本和图像标记上训练的因果掩码生成模型家族,能够实现零样本和微调的单模态与跨模态任务,包括图像生成、描述、摘要,以及实体链接。
We introduce CM3, a family of causally masked generative models trained over a large corpus of structured multi-modal documents that can contain both text and image tokens. Our new causally masked approach generates tokens left to right while also masking out a small number of long token spans that are generated at the end of the string, instead of their original positions. The casual masking object provides a type of hybrid of the more common causal and masked language models, by enabling full generative modeling while also providing bidirectional context when generating the masked spans. We train causally masked language-image models on large-scale web and Wikipedia articles, where each document contains all of the text, hypertext markup, hyperlinks, and image tokens (from a VQVAE-GAN), provided in the order they appear in the original HTML source (before masking). The resulting CM3 models can generate rich structured, multi-modal outputs while conditioning on arbitrary masked document contexts, and thereby implicitly learn a wide range of text, image, and cross modal tasks. They can be prompted to recover, in a zero-shot fashion, the functionality of models such as DALL-E, GENRE, and HTLM. We set the new state-of-the-art in zero-shot summarization, entity linking, and entity disambiguation while maintaining competitive performance in the fine-tuning setting. We can generate images unconditionally, conditioned on text (like DALL-E) and do captioning all in a zero-shot setting with a single model.
研究动机与目标
- 推动从包含文本、超链接和图像的丰富、结构化多模态网页文档中学习。
- 研发一种混合的因果掩码目标,使其能够在填充任务中实现从左到右的生成并具备双向上下文。
- 展示在文本单模态与多模态任务中零样本与少量样本能力,包括图像生成与描述。
- 在摘要、实体链接与实体消歧等任务上评估 CM3,并分析伸缩性与伦理考量。
提出的方法
- 引入一种因果掩码目标,按从左到右生成标记,同时对字符串末尾生成的长跨段进行掩码。
- 在包含结构化 HTML 文本和 VQVAE-GAN 图像标记的近太字节级多模态数据上训练 CM3,保持文档顺序。
- 训练多种模型规模(125M、800M、2.7B、13B 参数),并主要在下游任务上评估 CM3-Medium 与 CM3-Large。
- 通过 VQVAE-GAN 将图像表示为离散标记,并包含超文本结构以实现文本-图像联合建模。
- 使用零样本提示来执行图像生成、填充、描述和跨模态任务,提示语利用类 HTML 的文档结构。
- 讨论训练设置,包括数据预处理、标记化、序列长度、优化和扩展性等考量。
实验结果
研究问题
- RQ1单一模型如何在多模态文档上下文的条件下学习生成和填充文本与图像标记?
- RQ2因果掩码多模态模型在摘要、实体链接,以及图像生成/描述方面能够达到哪些零样本与少样本能力?
- RQ3引入超文本结构和图像标记如何影响跨模态迁移与提示策略?
主要发现
- CM3 在单模态与多模态任务中实现零样本和少样本能力,包括在无需特定任务微调的情况下进行图像生成和描述。
- CM3 在零样本摘要、实体链接和实体消歧方面设定了新的状态-of-the-art,并受益于训练数据中的超文本结构。
- 通过提示进行的无条件和条件化图像生成表明,CM3 可以用在网页/维基数据上训练的单一模型近似 DALL-E 风格的功能。
- CM3-Large 在 MS-COCO FID 指标上逼近公认的图像生成模型的性能,同时使用的数据量显著更少。
- 对 CM3 进行微调在 GLUE 风格基准上取得有竞争力或最先进的结果,表明即使使用因果掩码目标也拥有强大的可迁移表示。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。