← All posts

Model development

Post 26 of 26

Beyond text: what transfers to vision, speech and multimodal models

Posts in this series · 26

This series used language models as its teaching vehicle because text is where the methods were developed and are easiest to see. But the same ideas now train image, speech and video models, and systems that handle several at once. This post maps what carries over and what does not, without trying to cover each modality in depth; the site’s speech posts and Foundations series go further.

What carries over almost unchanged

What changes: turning the signal into tokens

Text arrives as discrete symbols. Images and sound are continuous and much larger, so the first question for any modality is how to turn it into a sequence the model can handle, and how long that sequence is.

Images. The Vision Transformer cuts an image into fixed-size patches, 16 × 16 pixels, flattens each into a vector and treats the patches as a sequence (Dosovitskiy et al., 2021). A 224 × 224 image becomes 196 patches; a 1,024 × 1,024 image becomes 4,096, and because attention cost grows with the square of sequence length, resolution is expensive. Earlier vision models used convolutions, which build in the assumption that nearby pixels matter together; ViT drops that assumption and needs more data to compensate, but then scales well.

Speech. Audio is sampled thousands of times per second (24,000 for the codecs on this site), far too long a sequence to model directly. A neural audio codec compresses it: Mimi turns speech into 12.5 frames per second, and with residual vector quantization each frame becomes 8 discrete codes in Moshi’s setting, 100 tokens per second (Mimi post; Moshi review). Other systems skip discrete tokens and model continuous latents, as Pocket TTS does.

The token rate decides cost, exactly as tokenizer premiums did for languages in the tokenization post.

Try it: what fits in a context? An 8,192-token context holds how many 224 × 224 images at one token per patch? How many seconds of audio at 100 tokens per second? How much English text, at about 1.3 tokens per word?

Answer. 8,192/196≈8{,}192 / 196 \approx 41 images; 8,192/100≈8{,}192 / 100 \approx 82 seconds of audio; about 6,300 words of text. A minute of speech, about 150 words, is roughly 195 text tokens but 6,000 codec tokens: 31 times more. Long audio or high-resolution images strain context, KV cache and compute in a way text rarely does, which is why multimodal systems compress aggressively and why the inference arithmetic bites harder there.

What changes: the objective

Next-token prediction is not the only objective, and for some data it is not the best:

The choice follows the data: is there a natural order to predict, paired data to align, or a continuous signal to reconstruct?

Connecting modalities to a language model

A common way to build a vision–language model reuses components: a pre-trained vision encoder, a pre-trained language model, and a small learned projection that maps image features into the language model’s embedding space, so image patches enter as if they were tokens. LLaVA built this way and instruction-tuned it on image–text conversations generated with GPT-4 from image captions (Liu et al., 2023). The training recipe then looks familiar: align the projection first, then fine-tune on instructions, as in the SFT post, with the same questions about data mixtures, masking and evaluation.

What changes: judging quality

Evaluation is where modalities differ most. Text has exact-match and judged quality; images are judged by human preference and by distributional measures; speech by intelligibility (word error rate of a transcription), similarity to a target speaker, and listening tests. The speech evaluation post walks through those metrics. The discipline from the application-evaluation post holds unchanged: real test sets, paired comparisons, error bars and suspicion of any single number.

Everyday picture: a factory that once made only books retooling for photographs and records. The presses, the logistics, the accounting and the quality control are reused; what changes is how each product is cut into pieces, how big each order is, and how a customer decides whether it is good.

What to remember

Sources

Further reading