Skip to content
LearnAI

7.5Native any-to-any (omni) models

Why gluing speech recognition, an LLM and text-to-speech together loses tone and time, and how omni models put every modality into one stream of tokens.

⏱ 14 minAdvanced

The cascade and its seams

Until recently, talking to an AI out loud meant talking to three AIs in a row. A speech recognizer (like Whisper) transcribed your words, a text LLMLarge language model (LLM)A very large neural network, usually a Transformer, trained to predict the next token of text. Chat assistants are post-trained LLMs. wrote a reply, and a text-to-speech (TTS) model read it aloud. Each part could be excellent, and the result still felt like a walkie-talkie. You had to stop talking and wait, then wait again while the reply was generated and synthesized. And the assistant seemed oddly deaf to how you said things.

When OpenAI introduced GPT-4o in May 2024, it described its earlier Voice Mode in exactly these terms: a pipeline of three separate models with average latencies of 2.8 seconds (with GPT-3.5) and 5.4 seconds (with GPT-4). In that design, OpenAI wrote, the main model “can’t directly observe tone, multiple speakers, or background noises, and it can’t output laughter, singing, or express emotion.” GPT-4o was presented as a single model trained end to end across text, vision and audio, responding to audio in as little as 232 ms (320 ms on average, by OpenAI’s measurements). OpenAI has not published the architecture, so treat any specific claim about its internals as speculation.

This lesson is about the design space behind such systems: what multimodalMultimodalHandling more than one type of data, such as text, images, audio and video. fusion means, how open models like Qwen-Omni are built, and why latency forces everything to stream.

ANALOGY· Stenographer, writer, actor or one good listener

Imagine phoning a help line staffed by three people in separate rooms. A stenographer types up what you say and slides the transcript under a door. A writer reads it and drafts a reply. An actor reads the reply aloud to you. If you sigh “oh great, another Monday”, the transcript just says “Oh great, another Monday.” The writer, who never heard you, cheerfully agrees.

The stenographer, writer and actor are the ASR model, LLM and TTS model of a pipeline, and the slips of paper are the text bottleneck. A native omni model is one person who listens, thinks and speaks. They hear the sigh, can start answering before you’ve quite finished, and say the answer in a fitting tone.

Where do modalities meet? Late vs early fusion

Every multimodal system must decide where information from different modalities is combined. The terms are used loosely, but the spectrum looks like this:

Meta’s Chameleon (2024) is a clean example of early fusion. Its image tokenizer turns a 512×512 image into 1,024 discrete tokens from a codebook of 8,192 entries. Those tokens share one vocabulary with text, so a single Transformer reads and writes interleaved documents, such as text, then an image, then more text. The paper also reports that training such a mixed model stably needed architectural changes, such as normalizing queries and keys (QK-norm), because the two modalities pulled the network in different directions.

Unified token streams

The building blocks for early fusion come from the previous lessons:

  • Text uses the usual sub-word tokens.
  • Images become patch embeddings (for understanding) or discrete codes from a learned image tokenizer (for generation). The latter works like the audio codec, but on image patches.
  • Audio becomes encoder embeddings (for understanding) or codec tokens built with residual vector quantization (for generation).
  • Video is a sequence of image frames plus a soundtrack, and the hard part is keeping them in sync.

Mixing them raises a positioning problem. In a video, the frame at 3.2 s and the audio at 3.2 s should be “near” each other, even though they sit far apart in the token sequence. Qwen2.5-Omni addresses this with TMRoPE, a time-aligned multimodal version of rotary position embeddingsRotary position embedding (RoPE)Encodes position by rotating query and key vectors by angles proportional to their position, so attention depends on relative distance.. It gives audio and video tokens position ids tied to their timestamps and interleaves the two streams in time-ordered chunks.

The Thinker–Talker architecture

Producing speech directly from an LLM is harder than it sounds. Text tokens are a few per second of speech, while codec tokens can be hundreds per second. The detail needed to sound natural (timbre, prosody) is different from the detail needed to reason. Alibaba’s Qwen2.5-Omni (March 2025) splits the job in two, a Thinker–TalkerThinker–Talker architectureAn omni-model design (Qwen2.5-Omni, Qwen3-Omni) where a Thinker Transformer understands all inputs and writes text, and a Talker reads its hidden states to stream speech tokens. design:

  • The Thinker is a full LLM with vision and audio encoders attached. It takes in text, images, audio and video, and generates the reply as text tokens.
  • The Talker is a second, smaller autoregressive model. It reads the Thinker’s hidden states (not just its text) and generates speech codec tokens in a stream. A decoder turns those into a waveform chunk by chunk.

Because the Talker sees the Thinker’s internal representations, it gets more than the words: it can pick up signals about emphasis, mood and what the user’s audio sounded like. Because both run as streams, speech can start after the first few text tokens rather than after the whole reply. Qwen3-Omni (September 2025) keeps the design, makes both parts mixture-of-experts models (30B total parameters, about 3B active), and reports support for 119 text languages, 19 speech-input languages and 10 speech-output languages. Its technical report quotes a theoretical first-packet latency in the low hundreds of milliseconds. As with all vendor-reported latency figures, real numbers depend on hardware and load.

INTERACTIVEModality router: pipeline vs native omni
Inputs
Outputs
Architecture
Endpointing + ASRwait for silence, then transcribe speech → textcreates: a transcript (text)✕ lost: tone & emotion, emphasis & pauses, laughter, sighs, who is speaking, background sounds
Text-only LLMfirst sentence of the reply (time to first token + a few words)creates: text tokens
TTS modelwaits for a sentence of text, then synthesizes itcreates: audio✕ lost: TTS only sees text, so it has to guess how to say it
Latency budget (illustrative)first output after 1.75 s · the other design: 730 ms
Endpointing + ASR
700 ms
Text-only LLM
600 ms
TTS model
450 ms
Stages in a row run one after another; parallel inputs overlap. Bars share one time axis across both designs so you can compare.
What the model actually receives🎙️ User, flat and sighing: “Oh great, another Monday.”LLM input: Oh great, another Monday.Likely reply: “That’s the spirit! A fresh week, fresh start!” (sarcasm lost in transcription)
Toggle input and output modalities, then switch between a pipeline (cascade) and a native omni architecture. Run the flow to see where tokens are created, which information is lost at each hand-off, and how the latency budget adds up. Latency figures are illustrative round numbers, not measurements of any product.

Things to try:

  1. Speech in → speech out, pipeline. Watch the stages run strictly in sequence: endpointing and ASR must finish before the LLM starts, and TTS waits for a sentence. Note the red “lost” notes and the sarcasm example.
  2. Same, native omni. The audio encoder streams while the user talks, the Thinker starts on audio embeddings, and the Talker begins speaking after the first tokens. The time to first sound drops to a fraction of the pipeline’s.
  3. Add Image input. In the pipeline, the picture is reduced to a caption before the LLM sees it. In the omni model, image embeddings join the same sequence as the audio.
  4. Add Image output. Image generation is slow in both designs. The difference is that the omni model generates with the whole conversation in context, while the pipeline’s image generator only sees the prompt the LLM wrote for it.

Streaming: latency is the product

Natural human turn-taking gaps are short, on the order of a couple of hundred milliseconds. Hitting that budget means that nothing can wait for anything to finish:

  • Streaming encoders process audio in small chunks as it arrives, so little work remains when the user stops.
  • Turn-taking. Pipelines often rely on a silence detector (voice activity detection) that waits for, say, half a second of quiet. That wait alone can eat most of the budget. Omni models can learn turn-taking cues from the audio itself.
  • Streaming decoders emit audio in chunks of tens of milliseconds, so the first sound plays while the rest is still being generated.
  • Full duplex. Kyutai’s open Moshi (2024) goes further: it models the user’s audio stream and its own speech as parallel streams, so it can listen while speaking and handle interruptions and backchannels (“mm-hmm”). Its authors report a theoretical latency of 160 ms and about 200 ms in practice.

Generating images inside the model

Omni models increasingly produce images too. There are two main approaches, and the field hasn’t settled on one:

  • Autoregressive image tokens. The model emits discrete image codes one after another, exactly like text, and an image decoder turns them into pixels. Chameleon and Emu3 work this way. It’s simple and unified, but an image means hundreds to thousands of sequential predictions, and discrete codes can limit fine detail.
  • Diffusion inside or beside the LLM. Text is predicted token by token, but images are generated by diffusion on continuous latents, either with the same Transformer (Transfusion, 2024, trains one model with a next-token loss on text and a diffusion loss on image patches) or with a diffusion “head” conditioned on the LLM’s hidden states.

Some systems also use different image representations for understanding and generation, because the features that help answer questions about an image aren’t the same as those that help draw one. DeepSeek’s Janus models take this route. OpenAI describes the image generation launched in GPT-4o in March 2025 as native to the model, but has not published the details. Treat outside descriptions of it as educated guesses.

MATH CORNER · optionalToken rates and latency budgets

How fast does each modality fill the context? Rough rates for a unified stream (actual numbers depend on the tokenizer):

streamratetokens per minute
speech as text~2.5 words/s ≈ 3 tokens/s~180
audio codec, 12.5 frames/s × 8 codebooks100 tokens/s6,000
video, 2 frames/s × 256 tokens/frame512 tokens/s30,720

A one-minute video call with both streams costs about 36,700 tokens, roughly 200 times its transcript. That is why omni models compress aggressively and why their contexts are long.

Training objective. An early-fusion model is still trained with next-token cross-entropy, just over a mixed vocabulary. With modality weights,

L=−∑t∈textlog⁡p(xt∣x<t)  −  λa∑t∈audiolog⁡p(xt∣x<t)  −  λi∑t∈imagelog⁡p(xt∣x<t).\mathcal{L} = -\sum_{t \in \text{text}} \log p(x_t \mid x_{<t}) \;-\; \lambda_a \sum_{t \in \text{audio}} \log p(x_t \mid x_{<t}) \;-\; \lambda_i \sum_{t \in \text{image}} \log p(x_t \mid x_{<t}).

Transfusion swaps the image term for a diffusion loss on continuous patches: L=LLM+λ Ldiffusion\mathcal{L} = \mathcal{L}_{\text{LM}} + \lambda\, \mathcal{L}_{\text{diffusion}}.

Worked latency example (illustrative). Time to first audio TT is the sum of everything on the critical path:

stagepipeline (ms)streaming omni (ms)
end-of-turn detection500100
speech → model input (ASR / last encoder chunk)20060
model to first useful output (first sentence / first tokens)600450
first audio chunk (TTS sentence / Talker + codec)450120
total1,750730

The pipeline’s stages each wait for a complete unit (a full utterance, a full sentence), so their latencies add. Streaming shrinks every unit to a small chunk, so each stage can start almost as soon as the previous one does.

In code

A Thinker–Talker reply loop, in schematic Python. Real systems run the two models concurrently on separate streams:

def respond(audio_chunks, image=None):
    ctx = thinker.encode(text=SYSTEM_PROMPT, image=image)   # embeddings in one sequence
    for chunk in audio_chunks:               # stream the user's speech as it arrives
        ctx = thinker.append(ctx, audio_encoder(chunk))
        if thinker.turn_ended(ctx):          # learned end-of-turn, not just silence
            break
    for text_tok, hidden in thinker.generate(ctx):       # stream the reply
        yield ("text", text_tok)
        for codes in talker.step(hidden, text_tok):      # codec tokens (several codebooks)
            yield ("audio", codec.decode(codes))         # ~tens of ms of sound per step

Compare the pipeline version: tts(llm(asr(full_audio))), where each call returns only after its whole input is processed.

COMMON MISCONCEPTIONS
  • “Omni means one network with no separate parts.” Native omni models still have modality encoders, codec decoders and often a separate speech generator (the Talker). What changes is that they share representations and are trained together, instead of passing text between independent models.
  • “Native models don’t use text internally.” In Thinker–Talker designs the Thinker still writes text tokens, and the Talker speaks them. The difference is that the Talker also reads rich hidden states, and the Thinker hears the raw audio.
  • “Pipelines are obsolete.” Cascades remain popular: each part can be swapped, debugged and audited separately, the text in the middle is easy to log and filter, and you can pick any voice. They pay in latency and lost paralinguistic information.
  • “We know how GPT-4o works inside.” OpenAI has described its capabilities and latencies, not its architecture. Open models such as Qwen-Omni and Moshi are where the designs are documented.

Check your understanding

0/5 answered
  1. Q1.A user says something sarcastically to a pipeline assistant (ASR → LLM → TTS). Why might the reply miss the sarcasm?

  2. Q2.What distinguishes early fusion from the adapter-style VLM recipe?

  3. Q3.In a Thinker–Talker model, what does the Talker consume?

  4. Q4.Why does streaming reduce time to first audio so much?

  5. Q5.Which statement about image generation in omni models is most accurate?

Further reading

Progress is saved in this browser only.
Type to search across all lessons and glossary terms.