Skip to content
AI.info

Deep architectures

Multimodal Fusion and Cross-Attention Architectures

Compare early, late, and cross-attention fusion, modality bridges, synchronization, missing modalities, and tests for genuine multimodal reasoning.

By the end you can

Comparison

Four fusion patterns expose different interaction budgets

Fusion location controls how early one modality can change the representation of another.

The third pattern has a controlled comparison behind it. Force all cross-modal exchange through a handful of latent units — B = 4 of them, in the audio-visual model — and fusion gets better, not merely cheaper. The narrow channel requires “the model to collate and condense the most relevant information in each modality and only share what is necessary”. Nagrani and five colleagues introduced these attention bottlenecks in 2021. The restriction “improves fusion performance, at the same time reducing computational cost”, they report, with state-of-the-art results on Audioset, Epic-Kitchens and VGGSound.

Both halves of that sentence carry a number. The paper's introduction gives the first: “On the Audioset dataset, we outperform the current state of the art by 5.9 mAP (12.7% relative improvement).” The second came from Google Research. The design cut FLOPs by 50% against a vanilla multimodal transformer.

The width of the channel then mattered far less than its existence. Sweeping the bottleneck across 4, 36, 64, 256 and 1024 tokens moved accuracy by less than 0.5 mAP. At the earliest fusion layer (Lf = 0), bottleneck fusion beat vanilla cross-attention by over 2 mAP at less than half the compute. Four tokens were enough, and a thousand were not better. Restricting the channel improved the fusion. It did not merely make it cheaper.

FigureComparison · 4 columns

Early fusion

Combine aligned low-level features before deep processing.

  • Rich joint interactions
  • Requires compatible timing or geometry
  • Large joint activation cost
  • Sensitive to missing modalities

Late fusion

Combine independent predictions or embeddings near the output.

  • Modular and robust
  • Easy modality dropout
  • Limited fine-grained reasoning
  • Simple deployment boundaries

Bottleneck fusion

Exchange through a small set of shared latent tokens.

  • Controls interaction cost
  • Works with long modality streams
  • Bottleneck may lose detail
  • Shared tokens need capacity

Cross-attention fusion

Queries from one stream retrieve keys and values from another.

  • Flexible directional interaction
  • Supports variable lengths
  • Can create asymmetric dominance
  • Cost follows query–context sizes

Projection layers are semantic contracts, not plumbing

Vision, audio, text, and sensor encoders produce states with different scales, resolutions, and meanings. A bridge projects or resamples those states into a form another module can consume.

The bridge can become the true bottleneck. Its token count, normalization, temporal aggregation, and training objective determine which modality details survive.

Flamingo fixes that token count and publishes the number. A frozen vision encoder reaches a frozen 70B-parameter language model through a Perceiver Resampler. In the paper’s words: “It takes as input a variable number of image or video features from the vision encoder and produces a fixed number of visual outputs (64), reducing the computational complexity of the vision-text cross-attention.” Whatever the resolution, however long the video, exactly 64 tokens arrive. What the bridge drops, the 70B backbone behind it never sees. DeepMind published the design in 2022. With that bridge the 80B model beat the fine-tuned state of the art on 6 of the 16 benchmarks tested, from only 32 task-specific examples.

The bridge is also the part a reproduction has to get right. A different group built OpenFlamingo in 2023. It reuses the same trainable Perceiver resampler over a frozen CLIP ViT-L/14, and reaches 80-89% of the corresponding Flamingo performance on seven vision-language datasets. The encoders changed. The interface did not.

A large backbone cannot recover evidence removed by a narrow or poorly trained modality bridge.

Visual

Directional cross-attention

Cross-attention is not inherently symmetric. The query stream determines what is requested.

The delicate step is the last one, where retrieved evidence re-enters the query stream. Flamingo injects its 64 resampled visual tokens into the frozen language model through GATED XATTN-DENSE blocks, inserted between the frozen LM layers. Queries come from the text stream. Keys and values come from the visual stream. Each block is gated by a tanh gate initialised at 0, so at initialisation the conditioned model reproduces the original language model exactly.

The paper's own ablation prices that choice. Remove the 0-initialised tanh gating and training destabilises: “Without it, we see a drop of 4.2% in our overall score.”

How retrieved evidence is merged back into the residual stream is load-bearing, and the cost has been measured. It is not plumbing. The design was reproduced in the open. Hugging Face built the same interleaved cross-attention into IDEFICS, an open-access model whose name expands to “Image-aware Decoder Enhanced à la Flamingo with Interleaved Cross-attentionS”.

FigureProcess · 5 steps
  1. 1

    Encode context modality

    Produce keys and values from images, audio, tools, or retrieved records.

  2. 2

    Construct query states

    Use text, task tokens, or another modality as queries.

  3. 3

    Compute selective retrieval

    Each query gathers a weighted context mixture.

  4. 4

    Update the query stream

    Fuse retrieved evidence through residual and feed-forward paths.

  5. 5

    Repeat or reverse direction

    Additional blocks can deepen or symmetrize interaction.

Example

Alignment failures are architectural failures when ignored

The network can only fuse evidence that has been represented and synchronized appropriately.

Broadcasting has already measured how much audio-video misalignment a person notices. The tolerance is an order of magnitude tighter than intuition suggests. Recommendation ITU-R BT.1359-1, from 1998, records “that subjective evaluations show that detectability thresholds are about +45 ms to –125 ms and acceptability thresholds are about +90 ms to –185 ms on the average, a positive value indicates that sound is advanced with respect to vision”. It recommends an overall tolerance not exceeding +90 ms or -185 ms. EBU Recommendation R37-2007 is tighter still. Each stage may run 5 ms early to 15 ms late. At any output intended for emission, sound before picture must stay within 40 ms and sound after picture within 60 ms.

A one-second offset is not a marginal error against those numbers. It is roughly twenty times the threshold at which an average viewer detects that something is wrong.

  • Video and speech: a subtitle offset of one second can connect words to the wrong visible action — roughly twenty times the +45 ms at which misalignment becomes detectable.
  • Wearables and clinical notes: measurements sampled every minute must be aligned with notes written after the event.
  • Robotics: camera frames, proprioception, and commands have different latency and dropout patterns.
  • Document understanding: OCR tokens need page coordinates and reading order before text–layout fusion is meaningful.
  • Remote sensing: channels captured on different dates can make apparent cross-modal contradictions real temporal changes.

Key idea

A multimodal model can ignore a modality and still score well

If one modality predicts the label through a shortcut, optimization may neglect the harder stream. A caption model may rely on language priors. An audiovisual classifier may classify from audio alone.

That is measurable, and it has been measured. Put a late-fusion multimodal network on Kinetics against its best single-modality counterpart and the fused network loses. It lost every combination tested, by video top-1 validation accuracy. Audio and RGB: 71.4 against 72.6 for RGB alone (-1.2). RGB and optical flow: 71.3 against 72.6 (-1.3). Audio and optical flow: 58.3 against 62.1 for optical flow alone (-3.8). All three streams together: 70.0 against 72.6 (-2.6). Wang and two colleagues reported that in 2020, and their abstract does not hedge: “In our experiments, however, we observe the opposite: the best uni-modal network can outperform the multi-modal network.” Four researchers at NYU reached the same conclusion independently in 2022. They defined a “conditional utilization rate” and found it imbalanced between modalities across multiple tasks and architectures.

A dataset can be built specifically to punish the shortcut, and the scores still show it. The Hateful Memes Challenge, released by Facebook AI in 2020, pairs every hateful meme with a counterfactual — an alternative image or caption that flips the label back to not-hateful. Its abstract states the intent: “It is constructed such that unimodal models struggle and only multimodal models can succeed: difficult examples (“benign confounders”) are added to the dataset to make it hard to rely on unimodal signals.”

The scores came in thinner than the intent. On the test set a text-only BERT reached 62.80% accuracy / 69.00 AUROC. The late-fusion multimodal baseline reached 63.20% / 69.30. Adding vision to text moved AUROC from 69.00 to 69.30. The best baseline, Visual BERT COCO, reached 69.47% / 75.44. Human annotators reached 84.70% accuracy. The competition run with DrivenData drew 3,532 registered participants in phase 1, and the winning entry scored 0.844977 AUROC / 73.20% accuracy on the unseen test set. Still below the human baseline.

So use unimodal baselines, modality masking, counterfactual swaps, synchronized perturbations, and missing-modality tests. Performance should fall in the cases where removed evidence is truly necessary.

Multimodal input does not prove multimodal dependence.

Analogy

A meeting with interpreters and a shared whiteboard

Specialists in one room speak different languages. Interpreters translate selected evidence onto a shared whiteboard, while each specialist retains private notes in the original format.

An interpreter can be asked to repeat a phrase word for word. Learned projections do not preserve exact symbolic meaning. What can be translated, in which direction, and how much the whiteboard holds: those three things decide how well the room works.

Fusion quality depends on what each bridge can translate and what the shared workspace can retain.

Steps

Prove that fusion contributes beyond correlation

Design tests around examples whose answer changes when one modality changes.

One such test already exists, built and scored. Winoground is 400 hand-curated examples — 800 unique captions and images, forming 1,600 image-text pairings. The two captions of a pair contain an identical set of words in a different order. The words cannot separate them. Only the image can decide which caption is correct.

Crowdworkers scored 89.50 text / 88.50 image / 85.50 group. Random chance is 25.00 / 25.00 / 16.67. The best model tested, VinVL, managed 37.75 / 17.75 / 14.50. Every model evaluated came in below chance on the group score.

The diagnosis matters as much as the score. Diwan and four colleagues at UT Austin re-analysed those failures independently in 2022, and located them exactly where this section tells you to look: “Our analysis suggests that a main challenge in visuolinguistic models may lie in fusing visual and textual representations, rather than in compositional language understanding.” The conflict cases and counterfactual pairs below are how you reach that verdict on your own system.

FigureProcess · 5 steps
  1. 1. Establish unimodal ceilings

    Train or evaluate each modality alone under matched data.

  2. 2. Build conflict cases

    Create examples where modalities disagree for known reasons.

  3. 3. Swap one stream

    Pair a fixed input with a counterfactual modality and observe output movement.

  4. 4. Drop and corrupt modalities

    Measure graceful degradation, uncertainty, and fallback behavior.

  5. 5. Audit synchronization

    Shift timestamps, crops, or document coordinates to find brittle alignment.

A latent array can cap the fusion budget

Perceiver-style architectures use a fixed or bounded latent array as queries into a much larger input collection. Repeated latent processing then concentrates computation on the smaller internal workspace. The approach supports mixed modalities and very long raw inputs, but the cross-attention bottleneck can discard rare detail. Latent count, query design, and readout queries require task-specific ablation.

The reference design is the Perceiver itself. Jaegle and five colleagues published it in 2021. It uses “an asymmetric attention mechanism to iteratively distill inputs into a tight latent bottleneck, allowing it to scale to handle very large inputs”. The image model “obtains performance comparable to ResNet-50 and ViT on ImageNet without 2D convolutions by directly attending to 50,000 pixels”. The workspace is bounded on purpose. The input is not.

A bounded latent workspace controls cost by making compression explicit rather than free.

Missing modalities require an explicit architecture policy

A product may receive no audio, a broken sensor, unreadable text, or a delayed image. Zero-filling can look like a valid observation unless missingness is represented separately.

The cost of leaving that policy undesigned has been measured. Show a ViLT-based model only 30% of the text at test time and it loses 43.6% on MM-IMDb, 28.3% on UPMC Food-101 and 14.2% on Hateful Memes. Under severe missingness it scored worse on MM-IMDb and UPMC Food-101 than the unimodal model it was meant to improve on. Ma and four colleagues published those numbers in 2022, and their abstract is blunt: “Unsurprising, we find Transformer models are sensitive to missing modalities while different modal fusion strategies will significantly affect the robustness.” They found no universal answer either. The best fusion strategy is dataset-dependent. A separate group at UC Riverside and the Air Force Research Laboratory reported the same fragility in 2024, across five tasks and seven datasets.

Options include modality dropout during training, learned missing tokens, independent fallback heads, or conditional routing. The output should expose reduced evidence when the absent stream matters.

Robust fusion includes a designed behavior for absence, delay, corruption, and contradiction.

Key takeaways