Skip to main content
QUICK REVIEW

[Paper Review] Scaling Laws for Generative Mixed-Modal Language Models

Armen Aghajanyan, Lili Yu|arXiv (Cornell University)|Jan 10, 2023
Topic ModelingComputer Science7 citations
TL;DR

This paper derives scaling laws for mixed-modal generative language models that jointly model text, speech, images, code, and more, including an interaction term that captures competition or synergy between modalities; it validates the laws across 250+ experiments and a 30B parameter speech-text model.

ABSTRACT

Generative language models define distributions over sequences of tokens that can represent essentially any combination of data modalities (e.g., any permutation of image tokens from VQ-VAEs, speech tokens from HuBERT, BPE tokens for language or code, and so on). To better understand the scaling properties of such mixed-modal models, we conducted over 250 experiments using seven different modalities and model sizes ranging from 8 million to 30 billion, trained on 5-100 billion tokens. We report new mixed-modal scaling laws that unify the contributions of individual modalities and the interactions between them. Specifically, we explicitly model the optimal synergy and competition due to data and model size as an additive term to previous uni-modal scaling laws. We also find four empirical phenomena observed during the training, such as emergent coordinate-ascent style training that naturally alternates between modalities, guidelines for selecting critical hyper-parameters, and connections between mixed-modal competition and training stability. Finally, we test our scaling law by training a 30B speech-text model, which significantly outperforms the corresponding unimodal models. Overall, our research provides valuable insights into the design and training of mixed-modal generative models, an important new class of unified models that have unique distributional properties.

Motivation & Objective

  • Understand how model size, data, and modality interactions affect performance in mixed-modal generative models.
  • Extend uni-modal neural scaling laws to multiple modalities with an additive interaction term.
  • Provide practical guidelines for hyperparameter choices in multi-modal settings when uni-modal optima are known.
  • Characterize emergent training phenomena and their relation to modality interactions.

Proposed method

  • Train a single discrete language model over tokens representing seven modalities (Text, Image, Image-Text, Speech, Speech-Text, Code, Molecules).
  • Use Hoffmann et al. (2022) unified scaling-law parameterization with an additive interaction term to model modality contributions and interactions.
  • Conduct over 250 experiments spanning seven modalities and model sizes from 8M to 30B, with 5-100B tokens.
  • Derive empirical observations linking scaling-law parameters to training behaviors such as stability and coordinate-ascent dynamics.
  • Validate scaling laws by training a 30B speech-text model and comparing to unimodal baselines.
Figure 1: Single modality training curves for 100B tokens across a wide range of model sizes. Different modalities exhibit wildly different training dynamics.
Figure 1: Single modality training curves for 100B tokens across a wide range of model sizes. Different modalities exhibit wildly different training dynamics.

Experimental results

Research questions

  • RQ1What is the form of the scaling law when multiple modalities are trained together?
  • RQ2How do modality interactions (competition vs. synergy) influence optimal data, model size, and training dynamics?
  • RQ3Can mixed-modal scaling laws predict regimes where modalities compete away vs. synergize during training?
  • RQ4What practical hyperparameter guidelines arise from the combined modality scaling terms?
  • RQ5Do mixed-modal models with large-scale training outperform corresponding unimodal models on multi-modal tasks?

Key findings

  • Identified a mixed-modal scaling law with an additive interaction term that captures competition and synergy between modalities.
  • Observed emergent coordinate-ascent style training where optimization naturally alternates between modalities.
  • Provided guidelines for selecting key hyperparameters based on the interaction terms when unimodal optima are known.
  • Showed that a 30B speech-text model significantly outperforms corresponding unimodal models.
  • Demonstrated that the interaction term accurately predicts regimes where modality competition is reduced or eliminated (e.g., Speech and Text).
  • Reported empirical phenomena linking scaling-law parameters to training stability and optimal batch sizes.
Figure 2: Empirical scaling properties across both data and model size scale for the uni-modal setting.
Figure 2: Empirical scaling properties across both data and model size scale for the uni-modal setting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.