Unified Audio-Visual-Language Modeling › Fusion Strategies

Michael BrenndoerferDecember 1, 20266 min read
Language AI HandbookAll chapters
Part 52 of 67Omni-Modal and Embodied Language Systems
Chapter 398Unified Audio-Visual-Language Modeling › Fusion Strategies
Reading section 4 of 10 · Fusion Strategies · 6 minSection 4 of 10 · 6 min

Section 4 of 10 · 6 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Late fusion

Late fusion combines modality-specific predictions or summaries after much of the separate processing has taken place. For a classifier, fit a score from audio and another from video, then combine the scores by averaging or by fitting a second model. Check the output units or calibration before averaging across independently trained systems. An uncalibrated high-amplitude score can dominate this combination without being more reliable. The worked example uses two signed regressions with the same target scale.

Pooling can remove local detail before a fusion stage sees it. If each encoder gives only a clip-level vector, the fusion stage has no explicit row for one particular frame or audio interval. This limitation follows from what the interface retains. A scoring pipeline can instead align or select the relevant window in each stream before combining two late scores, as the example does.

Early fusion

Early fusion lets a shared stage operate on features from multiple modalities before producing separate predictions. At the level of a transformer with a joint input sequence, layers can learn interactions between audio, video, and text positions that the mask allows. Those interactions can use local cues if the model can resolve which rows correspond in time. The arrangement enables this computation within the transformer. Its presence does not establish that the trained model uses it correctly.

A model-side budget example helps separate sequence length from architecture. Suppose both layouts use 200 text positions. One layout places two pooled feature rows in front of the text. The other retains 1,500 audio and 120 video rows. Here 120 stands for a minute sampled at two frames per second, with one vector per frame. We omit markers in both layouts to keep the comparison focused on sensory positions. This is a comparison of attention in the shared language backbone, not two measurements of total system compute.

PythonIn [5]
CollapseExpand
text_positions = 200
pooled_positions = 2
full_audio_positions = 1500
full_video_positions = 60 * 2
backbone_lengths = {
    "Two pooled rows": text_positions + pooled_positions,
    "Full feature rows": text_positions
    + full_audio_positions
    + full_video_positions,
}
backbone_pairs = {name: length**2 for name, length in backbone_lengths.items()}
ConsoleOut [6]
CollapseExpand
Two pooled rows: 202 positions, 40,804 full score positions
Full feature rows: 1,820 positions, 3,312,400 full score positions
VisualizationOut [7]
CollapseExpand
Two bars compare full score positions with pooled modality rows and with full feature rows. The full feature rows require far more positions.
Full attention-score positions per head per layer for a shared language backbone with either two pooled modality rows or 1,620 full feature rows. Both layouts have 200 text positions. Encoder cost and causal masking are outside the count.

Hybrid fusion

Independent audio and video encoders can feed a shared language backbone. The sensory encoders process streams separately, and fusion happens early relative to the language model. Other designs can introduce cross-stream attention during encoding or allow selected language layers to consult a separate memory. Where fusion occurs and how many feature rows survive are separate design decisions. If you want to explain a difference in latency, count the encoder operations and active positions where the paths differ, then measure the actual system.

For an audio-visual speech example, AV-HuBERT jointly learns from audio and visual speech with masked multimodal cluster prediction. A speech representation learner such as this one does not imply that every model needs an audio-visual encoder. The data and target task determine how useful an aligned representation is.

Counts, masks, and measurements

Dense self-attention with the same number of key and query positions counts their Cartesian product. For the two layouts above, the number of candidate positions is 202 squared or 1,820 squared. A standard causal mask retains the diagonal and the positions to its left. With length 202 it permits 20,503 pairs per head in this construction, and with length 1,820 it permits 1,657,110. This triangular count describes the mask. It does not tell us whether the kernel computes or stores a complete dense array. A full-score count and a count of allowed pairs make different assumptions and should not be compared as if they were timing measurements.

Cross-attention uses a different count if its queries and keys come from different streams. For 200 language positions attending to 1,620 sensory positions, a full cross-attention operation has 324,000 candidate pairs per head before masking. If the sensory stream is compressed first, use the resulting length in the calculation. Report the calculation separately from latency. For example, the added encoder may dominate short prompts even where the backbone's attention count is smaller.

A common comparison error is to count only the decoder for one model and the encoder plus decoder for another. Choose which layers, heads and sequence positions are within the analysis before comparing. Report the length of the longest examples or give a distribution of lengths when the inputs vary, because the mean of squared lengths will generally differ from the square of mean length. In the mathematical example here the lengths are fixed, so no aggregation over differing lengths is needed.

Compare designs with a controlled input change

A lower cost at a chosen interface is only useful if the features it passes are sufficient for the target task. If a user asks about a single event near the end of a clip, decide whether an encoder that pools all frames can preserve the distinction between a late event and an earlier one. You can make a paired check by moving the same synthetic event from the queried window into a neighboring one. The change tests sensitivity to event time. Keeping the event in the queried window while increasing unrelated noise tests a different property and should be reported separately.

For a generative system, fix the decoding settings before comparing its answers across such controlled inputs. A changed response cannot be attributed to the modality perturbation alone if sampling settings or the prompt also changed. The fixture below avoids those confounders by using fixed linear readouts and a deterministic class decision. Its measured comparisons are about that evaluation; they do not provide evidence for a specific production model.

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