[论文解读] Chameleon: Mixed-Modal Early-Fusion Foundation Models
Chameleon 是一系列早期融合、基于标记的多模态模型,从头开始训练,能够处理图像与文本的交错序列,在视觉-语言任务上达到最先进的水平,并在纯文本任务上表现强劲,在长形式混合模态生成方面尤为突出。
We present Chameleon, a family of early-fusion token-based mixed-modal models capable of understanding and generating images and text in any arbitrary sequence. We outline a stable training approach from inception, an alignment recipe, and an architectural parameterization tailored for the early-fusion, token-based, mixed-modal setting. The models are evaluated on a comprehensive range of tasks, including visual question answering, image captioning, text generation, image generation, and long-form mixed modal generation. Chameleon demonstrates broad and general capabilities, including state-of-the-art performance in image captioning tasks, outperforms Llama-2 in text-only tasks while being competitive with models such as Mixtral 8x7B and Gemini-Pro, and performs non-trivial image generation, all in a single model. It also matches or exceeds the performance of much larger models, including Gemini Pro and GPT-4V, according to human judgments on a new long-form mixed-modal generation evaluation, where either the prompt or outputs contain mixed sequences of both images and text. Chameleon marks a significant step forward in a unified modeling of full multimodal documents.
研究动机与目标
- 开发一个统一的、早期融合的多模态模型,能够对任意交错的图像与文本序列进行推理和生成。
- 在大规模上稳定基于标记的混合模态学习的训练与对齐。
- 在视觉-语言任务上展示最先进的性能,同时在纯文本基准测试上保持竞争力。
- 展示在长篇混合模态生成和人工评估的开放式任务中的能力。
提出的方法
- 通过一个新的512x512图像分词器将图像表示为离散令牌,从8192的代码本中生成1024个令牌。
- 在大规模的交错文本、图像和代码数据上从头开始训练一个统一的Transformer模型(约10T令牌)。
- 应用诸如查询键归一化(QK-Norm)和范数重排序等架构创新,以在混合模态设置中稳定训练。
- 使用两阶段的预训练数据混合及阶段性重点(第一阶段大规模无监督数据,第二阶段更高质量数据)和z-loss正则化来控制softmax对数。
- 通过跨类别的有监督微调数据(SFT)进行微调(Text、Code、Visual Chat、Image Generation、Interleaved Generation、Safety),以对齐能力与安全性。
- 开发一个定制的推理管线,用于流式交错生成,具备模态感知掩蔽和逐标记控制。

实验结果
研究问题
- RQ1一个单一的、早期融合的基于标记的模型是否能够联合对图像和文本的混合序列进行推理和生成?
- RQ2需要哪些训练与架构调整来稳定大规模的混合模态学习?
- RQ3混合模态模型在视觉-语言任务和长篇生成方面,与专门的多模态模型或纯文本模型相比,表现如何?
- RQ4在跨越多样模态进行有监督微调后,安全性与对齐结果如何?
主要发现
- Chameleon-34B 在视觉问答和图像描述基准上实现了最先进的性能。
- 与 Mixtral 8x7B 和 Gemini-Pro 相比,Chameleon 在常识推理和阅读理解任务上达到或超过纯文本基准。
- 在长篇混合模态生成的人类评估中,Chameleon-34B 在偏好率上显著优于 Gemini-Pro 和 GPT-4V(60.4% 对 Gemini-Pro,51.6% 对 GPT-4V)。
- Chameleon 展示了在单一模型中进行非平凡的图像生成,并支持开放的多模态文档建模。
- 该模型扩展到34B参数,具备稳定的训练策略,并在若干基准上达到与更大模型相当的性能。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。