Preprint
Large Language Models

Mixture of Transformers

Weixin Liang, Lili Yu, Liang Luo, Srinivasan Iyer, Ning Dong, Chunting Zhou, Gargi Ghosh, Mike Lewis, Wen-Tau Yih, Luke S. Zettlemoyer, X. Lin
November 7, 2024257 citations

257

Citations

35

Influential Citations

—

Venue

2024

Year

Abstract

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

Analysis

Why This Paper Matters

Multimodal large language models (LLMs) that process text, images, and speech are becoming increasingly capable, but their training demands enormous datasets and computational resources. This scaling challenge limits who can develop and experiment with such models, concentrating capability in a few well-resourced organizations. Mixture-of-Transformers (MoT) directly addresses this by introducing a sparse architecture that significantly reduces pretraining costs without sacrificing performance.

The core insight of MoT is to decouple non-embedding parameters by modality—feed-forward networks, attention matrices, and layer normalization—while still allowing global self-attention over the entire input sequence. This design enables modality-specific processing while preserving cross-modal interactions, a balance that is often difficult to achieve. By reducing FLOPs to 55.8% for text-and-image generation and 37.2% for speech compared to dense baselines, MoT demonstrates that substantial efficiency gains are possible in multimodal pretraining.

Given the growing interest in efficient AI and the high citation count (257) shortly after publication, this work is likely to influence both research and practice in multimodal model development. It provides a concrete architectural recipe that others can build upon, potentially lowering the barrier to entry for multimodal LLM research.

Technical Contributions

  • Modality-specific parameter decoupling: MoT splits feed-forward networks, attention matrices, and layer normalization into separate groups per modality, reducing computation by activating only the relevant parameters for each token's modality.
  • Global self-attention: Unlike some sparse approaches that isolate modalities, MoT maintains full self-attention across the entire sequence, ensuring that information can flow between modalities.
  • Sparse activation: The architecture is sparse in the sense that not all parameters are used for every token, leading to computational savings during both training and inference.
  • Generality across settings: The method is evaluated in three distinct settings—Chameleon (autoregressive text-image), speech-extended, and Transfusion (different objectives for text and image)—demonstrating broad applicability.
  • System-level efficiency: Beyond FLOP reductions, the paper reports wall-clock time improvements on standard hardware (AWS p4de.24xlarge with A100 GPUs), showing practical benefits.

Results

The empirical results are compelling. In the Chameleon 7B setting, MoT matches the dense baseline's performance using only 55.8% of the FLOPs. When speech is added, MoT achieves comparable speech performance with just 37.2% of the FLOPs. In the Transfusion setting, a 7B MoT model matches the image modality performance of the dense baseline with one third of the FLOPs, and a smaller 760M MoT model even outperforms a 1.4B dense baseline on key image generation metrics. System profiling further shows that MoT reaches dense baseline image quality in 47.2% of the wall-clock time and text quality in 75.6% of the wall-clock time, confirming that FLOP savings translate to real-world speedups.

Significance

MoT represents a meaningful step toward more efficient multimodal pretraining. By demonstrating that sparse, modality-aware architectures can match dense baselines at a fraction of the computational cost, it opens avenues for reducing the environmental and financial barriers to developing advanced multimodal models. The approach is likely to inspire further research into sparse architectures and could be integrated into future multimodal systems, especially as the demand for processing diverse modalities continues to grow. However, the paper's evaluation is limited to specific settings and model scales, and broader adoption will depend on validating these gains across a wider range of tasks and larger models.