← Back to article

Equation 9 · Adapters, Native Pretraining, and Unified Tokens: The Main Multimodal Architectures, Compared

What does this equation mean?

Lseq=−∑t=1Tlog⁡pθ ⁣(zt∣z<t),zt∈{0,1,…,V−1}\mathcal{L}_{\text{seq}} = -\sum_{t=1}^{T} \log p_\theta\!\left(z_t \mid z_{<t}\right), \qquad z_t \in \{0, 1, \dots, V-1\}

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

Inputs and operations-sum_t=1^T log p_θ(z_t mid z_<t), qquad z_t in 0, 1, dots, V-1
Result or conditionL_seq
How to read the two sides of this formula. Follow the article passage for the meaning of each quantity.

This equation states a bound: one expression must stay on the indicated side of the other under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

Lseq\mathcal{L}_{\text{seq}}

Symbol L_seq

LsL_seq is part of the quantity the equation computes from the expression on the right.

Understand this part →

tt

Symbol t

t appears in the bound of this sum. The bound states where the repeated operation starts, ends, or which values it includes.

Understand this part →

TT

Symbol T

T appears in the bound of this sum. The bound states where the repeated operation starts, ends, or which values it includes.

Understand this part →

pθp_\theta

Symbol p_θ

p_θ is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

ztz_t

Symbol z_t

allowed to denote.

Understand this part →

z<tz_{<t}

Symbol z_<t

z_<t is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

VV

Symbol V

V is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
subtraction

subtraction

Subtract the following term or group from the preceding one. A leading minus marks a negative quantity.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

superscript

superscript

A raised number can be a power. When it is a label or bound, it selects a case or the upper limit of a sum; the formula’s structure distinguishes these uses.

Understand this part →

See an illustrated explanation →
t=1t=1

Starting index or lower bound: t=1

This label says where the repeated addition, multiplication, or accumulation starts. Read its value or condition together with the article’s description of the index.

Understand this part →

TT

Ending index or upper bound: T

This label says where the repeated addition, multiplication, or accumulation stops. It sets the last term or end of the range.

Understand this part →

How to interpret it

Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

Meta’s Chameleon commits to the same principle at a much larger scale and is candid that stability, not capability, was the hard engineering problem. It describes itself as “a family of early-fusion token-based mixed-modal models” that interleaves image and text tokens in one sequence, generating either kind at any position, and its authors state directly that this “requires a stable training approach from inception, an alignment recipe, and an architectural parameterization tailored for the early-fusion, token-based, mixed-modal setting” [ 7 ] . The paper documents the failure mode this addresses concretely: without a query-key normalisation step controlling the growth of attention logits,…
Read the full surrounding passage
Meta’s Chameleon commits to the same principle at a much larger scale and is candid that stability, not capability, was the hard engineering problem. It describes itself as “a family of early-fusion token-based mixed-modal models” that interleaves image and text tokens in one sequence, generating either kind at any position, and its authors state directly that this “requires a stable training approach from inception, an alignment recipe, and an architectural parameterization tailored for the early-fusion, token-based, mixed-modal setting” [ 7 ] . The paper documents the failure mode this addresses concretely: without a query-key normalisation step controlling the growth of attention logits, Chameleon-7B diverges after roughly 20 percent of a single training epoch, a failure the authors attribute to the softmax operation behaving badly across tokens of very different entropy once image and text tokens share one sequence [ 7 ] . The 34-billion-parameter variant needed a second, distinct intervention — reordering where layer normalisation sits within the transformer block — and both model sizes were trained with an added z-loss regularisation term penalising drift in the softmax normaliser [ 7 ] . The reported scale is substantial on its own terms: 4.4 trillion tokens, with the 7-billion-parameter run consuming roughly 856,000 GPU-hours and the 34-billion-parameter run roughly 4.28 million GPU-hours [ 7 ] . Meta’s earlier CM3 model is the more modest ancestor of the same idea, treating structured web documents — text, hyperlinks and VQVAE-encoded image tokens — as one causally-masked token stream so that a single model can perform captioning, zero-shot text-to-image generation and entity-linking without task-specific heads [ 8 ] . The same cross-entropy objective a text-only language model uses is the entire training objective here — the only thing that changed is what ztz_t is allowed to denote. Whether index ztz_t names a subword, a 16-by-16 image patch code, or a discretised robot joint angle is invisible to the loss function; the difficulty this section documents is not in the objective but in keeping training numerically stable once the vocabulary spans quantities of such different statistical character.

Read the equation in its article →

Sources cited in the surrounding passage

These citations give research context. Read each source to check which claims it supports.

Return to Adapters, Native Pretraining, and Unified Tokens: The Main Multimodal Architectures, Compared

See this formula across 1 published context →

Browse the mathematical compendium →