Unified Audio-Visual-Language Modeling › Shared Token Spaces

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 52 of 67Omni-Modal and Embodied Language Systems
Chapter 398Unified Audio-Visual-Language Modeling › Shared Token Spaces
Reading section 3 of 10 · Shared Token Spaces · 2 minSection 3 of 10 · 2 min

Section 3 of 10 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

The projection layer

The language model expects a vector of width dlmd_{\mathrm{lm}} at each input position. Let Ha\mathbf{H}_a and Hv\mathbf{H}_v have widths dad_a and dvd_v. Separate linear maps can make both streams fit the language model:

H~a=HaWa,H~v=HvWv,\widetilde{\mathbf{H}}_a = \mathbf{H}_a\mathbf{W}_a,\qquad \widetilde{\mathbf{H}}_v = \mathbf{H}_v\mathbf{W}_v,

where Wa∈Rda×dlm\mathbf{W}_a\in\mathbb{R}^{d_a\times d_{\mathrm{lm}}} and Wv∈Rdv×dlm\mathbf{W}_v\in\mathbb{R}^{d_v\times d_{\mathrm{lm}}}. Projection changes feature width while preserving the number of input positions in this example. It does not by itself map a musical note, a frame and a word to interchangeable meanings. The training examples and objectives determine which relationships are useful to the readout.

ImageBind illustrates a distinct goal for a shared representation. It aligns six modalities in a joint embedding space using image-paired data, which supports cross-modal comparisons even for some modalities not paired together in training. That comparison space serves a different purpose from assembling continuous input rows for an autoregressive decoder.

Interleaved sequences

An input sequence can contain text embeddings, audio embeddings, video embeddings and learned markers for boundaries. Some systems group each stream in its own block, while others insert audio and video along a common time axis. With causal self-attention, a position can attend only to permitted preceding and current positions. If a downstream text answer needs both streams, make their relevant input features available before the answer positions. A common embedding width is necessary for concatenating these vectors into a sequence, but does not remove the causal mask.

A modality marker tells the model where a stream starts. It does not supply absolute time, align two clocks, or reveal how many raw samples went into one feature. Relative or absolute time information can come from timestamps, an explicit resampling rule, or the position encoding. The Qwen2.5-Omni report uses time-aligned multimodal rotary positions for its audio and video inputs. This is an architectural choice, not a requirement of sharing the language model width.

What "shared token space" really buys you

Consider a text-only output head. Its logits still index the text vocabulary even when audio and visual embeddings are present in the context. The decoder uses the sensory inputs to predict text tokens. The projections used for reading sensory inputs do not provide a waveform or image decoder. Generating a second modality needs its own output representation and conversion to a usable signal.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy