Mixture-of-Transformers: A Sparse and Scalable Architecture for Multi-Modal Foundation Models
该论文提出了Mixture-of-Transformers(MoT),一种稀疏且可扩展的多模态基础模型架构,通过解耦不同模态的非嵌入参数并保留全局自注意力机制,显著降低了预训练的计算成本。
更新于 2024-11-09。作者:Weixin Liang、Lili Yu、Liang Luo、Srinivasan Iyer、Ning Dong、Chunting Zhou、Gargi Ghosh、Mike Lewis、Wen-tau Yih、Luke Zettlemoyer、Xi Victoria Lin。
中文摘要
大型语言模型(LLMs)的发展已扩展到能够在一个统一框架内处理文本、图像和语音的多模态系统。与仅处理文本的LLMs相比,训练这些模型需要显著更大的数据集和计算资源。为了解决规模化的挑战,我们引入了混合Transformer(MoT),这是一种稀疏的多模态Transformer架构,它可以显著降低预训练的计算成本。MoT通过模式解耦模型的非嵌入参数——包括前馈网络、注意力矩阵和层归一化——使模式特定的处理能够通过全局自注意力在整个输入序列上进行。我们跨越多个设置和模型规模对MoT进行了评估。在Chameleon 7B设置(自回归文本和图像生成)中,MoT仅使用55.8%的浮点运算次数就匹配了密集基线模型的表现。当扩展到包括语音时,MoT仅使用37.2%的浮点运算次数就达到了与密集基线模型相当的语音性能。在Transfusion设置中,文本和图像使用不同的目标进行训练,一个7B的MoT模型在仅使用三分之一浮点运算次数的情况下匹配了密集基线模型的图像模式性能,而一个760M的MoT模型在关键图像生成指标上优于一个1.4B的密集基线模型。系统分析进一步突出了MoT的实用优势,在47.2%的CPU时间内达到了密集基线模型的图像质量,在75.6%的CPU时间内达到了文本质量(在AWS p4de.24xlarge实例上使用NVIDIA A100 GPU进行测量)。
英文摘要
The development of large language models (LLMs) has expanded to multi-modal systems capable of processing text, images, and speech within a unified framework. Training these models demands significantly larger datasets and computational resources compared to text-only LLMs. To address the scaling challenges, we introduce Mixture-of-Transformers (MoT), a sparse multi-modal transformer architecture that significantly reduces pretraining computational costs. MoT decouples non-embedding parameters of the model by modality -- including feed-forward networks, attention matrices, and layer normalization -- enabling modality-specific processing with global self-attention over the full input sequence. We evaluate MoT across multiple settings and model scales. In the Chameleon 7B setting (autoregressive text-and-image generation), MoT matches the dense baseline's performance using only 55.8\% of the FLOPs. When extended to include speech, MoT reaches speech performance comparable to the dense baseline with only 37.2\% of the FLOPs. In the Transfusion setting, where text and image are trained with different objectives, a 7B MoT model matches the image modality performance of the dense baseline with one third of the FLOPs, and a 760M MoT model outperforms a 1.4B dense baseline across key image generation metrics. System profiling further highlights MoT's practical benefits, achieving dense baseline image quality in 47.2\% of the wall-clock time and text quality in 75.6\% of the wall-clock time (measured on AWS p4de.24xlarge instances with NVIDIA A100 GPUs).
解读
一句话总结
该论文提出了Mixture-of-Transformers(MoT),一种稀疏且可扩展的多模态基础模型架构,通过解耦不同模态的非嵌入参数并保留全局自注意力机制,显著降低了预训练的计算成本。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:多模态基础模型的训练需要大量的数据集和计算资源,且不同模态之间存在优化挑战。 • 现有方案不足:现有的多模态模型在处理多模态数据时,往往需要大量的计算资源,且难以解决不同模态之间的优化冲突。 • 研究目标:提出一种稀疏且可扩展的多模态基础模型架构,以降低预训练的计算成本,同时保持模型性能。
问题2:论文的核心创新点是什么?
• 技术创新:提出了一种名为Mixture-of-Transformers(MoT)的稀疏多模态transformer架构,通过解耦不同模态的非嵌入参数(如前馈网络、注意力矩阵和层归一化),实现模态特定的处理。 • 方法改进:在MoT架构中,每个模态都使用独立的参数集,包括前馈网络、注意力矩阵和层归一化,从而提高了模型的效率和可扩展性。 • 优势:与现有方法相比,MoT在保持相同计算结构的情况下,显著降低了预训练的计算成本。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:在Chameleon和Transfusion等多个多模态设置中,MoT模型在保持相同性能的同时,使用更少的FLOPs。 • 性能提升:在Chameleon 7B设置中,MoT模型的性能与密集基线相当,但FLOPs使用量仅为55.8%;在Transfusion设置中,MoT模型在图像生成方面的性能优于密集基线。 • 对比结果:与基线方法相比,MoT在多个实验中都显示出更高的效率和性能。
问题4:这个研究的实际应用价值是什么?
• 应用场景:MoT架构可以应用于需要处理多模态数据的各种应用,如内容创作、跨模态翻译等。 • 实施建议:MoT架构可以作为一种高效的预训练方法,用于构建多模态基础模型。 • 局限与展望:MoT架构目前主要应用于预训练阶段,未来可以探索其在下游任务中的应用。
来源
机器可读索引:llms.txt