用指令微调让大模型同时懂图文并生成图像,效果惊艳。
MetaMorph: Multimodal Understanding and Generation via Instruction Tuning
- 通过指令微调教大模型预测文本和连续视觉标记
- 少量生成数据即可激活图像生成能力,理解与生成相互促进
- 适合想用大模型做多模态生成的开发者
本文提出视觉-预测指令微调(VPiT),一种简单有效的视觉指令微调扩展方法,使预训练大语言模型能快速转化为统一的自回归模型,同时生成文本和视觉标记。VPiT 教导模型从图文混合输入序列中预测离散文本标记和连续视觉标记,该序列以指令跟随格式构建。实证研究揭示了几个有趣现象:(1) 图像生成能力是视觉理解提升的自然副产品,仅需少量生成数据即可高效解锁;(2) 虽然理解与生成互惠,但理解数据对两者均有更强促进作用。基于这些发现,我们训练了 MetaMorph 模型,在视觉理解和生成任务上均达到竞争力表现。在图像生成方面,MetaMorph 可利用大模型预训练获得的世界知识与推理能力,克服其他生成模型的常见失败模式。结果表明,大模型可能具备强大的“先验”视觉能力,仅通过简单的指令微调过程即可高效适配于视觉理解与生成。
原文摘要 · Abstract (English)
In this work, we propose Visual-Predictive Instruction Tuning (VPiT) - a simple and effective extension to visual instruction tuning that enables a pretrained LLM to quickly morph into an unified autoregressive model capable of generating both text and visual tokens. VPiT teaches an LLM to predict discrete text tokens and continuous visual tokens from any input sequence of image and text data curated in an instruction-following format. Our empirical investigation reveals several intriguing properties of VPiT: (1) visual generation ability emerges as a natural byproduct of improved visual understanding, and can be unlocked efficiently with a small amount of generation data; (2) while we find understanding and generation to be mutually beneficial, understanding data contributes to both capabilities more effectively than generation data. Building upon these findings, we train our MetaMorph model and achieve competitive performance on both visual understanding and generation. In visual generation, MetaMorph can leverage the world knowledge and reasoning abilities gained from LLM pretraining, and overcome common failure modes exhibited by other generation models. Our results suggest that LLMs may have strong "prior" vision capabilities that can be efficiently adapted to both visual understanding and generation with a relatively simple instruction tuning process.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。