arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.04996cs.CL
收藏

Mixture-of-Transformers:一种面向多模态基础模型的稀疏可扩展架构

Mixture-of-Transformers: A Sparse and Scalable Architecture for Multi-Modal Foundation Models

Stanford University(斯坦福大学);AI at Meta(Meta AI)

Weixin Liang, Lili Yu, Liang Luo, Srinivasan Iyer, Ning Dong, Chunting Zhou, Gargi Ghosh, Mike Lewis, Wen-tau Yih, Luke Zettlemoyer, Xi Victoria Lin

AI总结:

本文提出 Mixture-of-Transformers(MoT),通过按模态解耦非嵌入参数实现稀疏多模态 Transformer,在文本、图像和语音任务中以显著更低的 FLOPs 和挂钟时间达到或超越稠密基线性能。

摘要:

大语言模型(LLMs)的发展已扩展至能够在统一框架内处理文本、图像和语音的多模态系统。与纯文本 LLMs 相比,训练这些模型需要显著更大的数据集和计算资源。为应对扩展性挑战,我们提出 Mixture-of-Transformers(MoT),这是一种稀疏的多模态 Transformer 架构,可显著降低预训练计算成本。MoT 按模态解耦模型的非嵌入参数——包括前馈网络、注意力矩阵和层归一化——从而在全输入序列上进行全局自注意力的同时实现模态特定处理。我们在多种设置和模型规模下评估 MoT。在 Chameleon 7B 设置(自回归文本和图像生成)中,MoT 仅使用 55.8% 的 FLOPs 即可达到与稠密基线相当的性能。当扩展至包含语音时,MoT 仅使用 37.2% 的 FLOPs 即可达到与稠密基线相当的语音性能。在 Transfusion 设置中,文本和图像以不同目标进行训练,一个 7B MoT 模型以三分之一的 FLOPs 达到与稠密基线相当的图像模态性能,而一个 760M MoT 模型在关键图像生成指标上优于 1.4B 稠密基线。系统性能分析进一步凸显了 MoT 的实际优势:在 47.2% 的挂钟时间内达到稠密基线的图像质量,在 75.6% 的挂钟时间内达到文本质量(在配备 NVIDIA A100 GPU 的 AWS p4de.24xlarge 实例上测量)。

英文摘要:

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).

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

↑