Unified Audio-Visual-Language Modeling › Shared Token Spaces
Language AI HandbookAll chapters The projection layer
The language model expects a vector of width at each input position. Let and have widths and . Separate linear maps can make both streams fit the language model:
where and . 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!