Lecture Note: Multimodal Representation Fusion

11-777 Multimodal Machine Learning CMU Fall 2023
Instructor: Dr. Louis-Philippe Morency | Co-lecturer: Dr. Paul Pu Liang
Author: Yi-Jing Sie

Overview

In the final section of the first post, Lecture Notes: Introduction, 6 challenges in Multimodal Machine Learning are introduced. This post focuses on the first challenge: Representation.

Representation is defined as "learning representations that reflect cross-modal interactions between individual elements, across different modalities."

Representation is the most important building block in multimodal machine learning. The challenge can further be split into 3 sub-challenges, depending on how the number of input modalities compares to the number of output representations:

  • Fusion: input modalities collapse into fewer representations.
  • Coordination: input modalities map to an equal number of aligned representations.
  • Fission: input modalities are expanded into more representations than the number of input modalities.

This post focuses on the first and most widely used of the three: Representation Fusion.

Cross-modal Interactions

The goal of multimodal representation is modeling cross-modal interactions. When multiple modalities are combined for a response, cross-modal interactions occur, and the type of interaction between modalities depends on the task. From a behavioral science view, there are 6 types of interaction: equivalence, enhancement, independence, dominance, modulation, and emergence.

Grid Image

Take, for instance, a photo of a teacup and laptop on a coffee table, and a caption: "A teacup on the right of a laptop in a clean room.". Different types of cross-modal interactions occur when asking the following three questions:

  • whether it's indoors returns "yes" from either modality alone: redundant or enhancement interaction.
  • whether it's in living room returns different answers per modality, the image alone suggests yes, but the text alone suggests a study room: non-redundant or dominance interaction.
  • whether it's a good place to work returns an answer neither modality could give alone, the image alone reveals that the table is too small, while the text alone describes the cleanliness of the environment: emergence interaction.

Note that, even when the input data remain unchanged, the photo and the text description, interaction information can be redundant or non-redundant, depending on how they relate to the problem.

Grid Image

Representation Fusion

Representation fusion approaches generally lie on a spectrum ranging from fusing homogeneous to heterogeneous data representations and can be broadly categorized into two groups:

  • Fusion with abstract modalities (most widely used): combines already-encoded feature vectors for elements from each modality, fusing relatively homogenous representations.
  • Fusion with raw modalities: combine elements from each modality at very early stages, even directly from the heterogeneous raw inputs.

Fusion with Abstract Modalities

The most common way to move toward homogeneity before fusing is to pass elements from each modality through its own unimodal encoder first, such as a CNN for images and word2vec for texts, so that the resulting feature vectors from different modalities are more directly comparable. These unimodal encoders can be trained jointly with the fusion network or used in a pretrained form.

Grid Image

Early and Late Fusion – A Historical View

Historically, representation fusion with abstract modalities has been performed using much more simple strategies, which can be broadly classified into two approaches:

  • Early Fusion: Unimodal representations from different modalities are concatenated into a single feature vector before being passed to the model.
  • Late Fusion: An ensemble approach where predictions from separate unimodal models are combined to produce the final output.
Grid Image

Linear Regression

The simplest way to demonstrate representation fusion of abstract modalities is with linear regression. Let $x_A$ and $x_B$ be 2 one-dimensional feature values from different modalities, a fused output, $z$, can be written as an intercept (bias term), plus additive terms for each modality, plus a multiplicative term for cross-modal interaction, plus error:

$$z = w_0 + w_1x_A + w_2x_B + w_3(x_A \times x_B) + \epsilon$$ where $\epsilon$ is the error term, and $w_0$ is the intercept (bias term)

Grid Image
  • $w_0$ intercept (bias term): the expected value of $z$ when $x_A$ and $x_B$ are zero
  • $w_1$ (additive term): effect from $x_A$ only
  • $w_2$ (additive term): effect from $x_B$ only
  • $w_3$ (multiplicative term): effect from $x_A$ and $x_B$ interaction only
  • $\epsilon$ error (residual term): residual not modeled by $w_0$, $w_1$, $w_2$, and $w_3$

Fusion Operators

Let $x_A$ and $x_B$ be the unimodal representations of element $e_A$ and element $e_B$ from modalities $A$ and $B$, respectively, and both of them are row vectors $\in \mathbb{R}^{1 \times n}$ :

  • Additive Fusion ($z = w_1x_A + w_2x_B$): If $x_A$ and $x_B$ are produced by separate unimodal encoders (i.e., each modality has its own encoder), then the formulation can be rewritten as $z = f_A(e_A) + f_B(e_B)$, where $f_A(\cdot)$ and $f_B(\cdot)$ are unimodal encoders for elements in modalities $A$ and $B$, respectively. Therefore, additive fusion can be seen as an ensemble approach, and it resembles late fusion, which is also an ensemble approach where the final prediction is an ensemble of unimodal predictions.
  • Multiplicative and Bilinear fusion: multiply modality vectors together.
    A simple multiplicative fusion ($z = w(x_A \circ x_B)$) scales the elementwise product of $x_A$ and $x_B$ by a single weight $w$.
    Bilinear fusion ($Z = W(x_A\otimes x_B) $) employs the outer product to capture interactions between every pair of elements across the two modalities.
  • Tensor Fusion ($Z = W(\begin{bmatrix}x_A & 1\end{bmatrix}\otimes \begin{bmatrix}x_B & 1\end{bmatrix})$) : takes the outer product of modality vectors, each padded with a constant $1$, to produce a tensor that simultaneously contains additive fusion and bilinear fusion. The drawback is that when more modalities are involved, the weight matrix $W$ can grow very large.
  • Low-Rank Fusion addresses the main drawback of tensor fusion by decomposing the large weight tensor $W$ into a sum of the outer products of modality-specific low-rank vectors, and then rearranging the computation so that the full weight tensor $W$ never needs to be explicitly constructed.
Grid Image
Grid Image
Grid Image

High-order Polynomial Fusion

Additive fusion ($z = w_1x_A + w_2x_B$) is a first-order polynomial interaction, where simple multiplicative fusion ($z = w(x_A \circ x_B)$) is second-order;
trimodal tensor fusion ($z=W(x_A\otimes x_B \otimes x_C$) , with its unimodal, bimodal, and trimodal terms, is third-order.
High-order polynomial fusion generalizes this by concatenating modality features, computing a repeated outer (tensor) product up to a chosen order, and then using a low-rank tensor network plus tensor contraction to keep the resulting weight tensor computationally tractable.

Other Fusion

Polynomial Fusion weights every input the same way, but several methods let the network learn how much weight to give each modality dynamically:

  • Gated Fusion ( $z = g(x_A, x_B)$ ): learns gating modules that dynamically weight each modality's contribution based on their input values. The gates function resembles attention weights, and can even collapse down to a single scalar weight value rather than per-element weights.
    The gating module (or attention module) used in gate fusion can be framed either as masking out unwanted signal or as selecting the preferred signal to move forward.
  • Modality-shifting Fusion ( $z = x_A + g(x_A, x_B, x_C)$ ): selects one primary modality $x_A$ (for example, language) and uses a gating module $g(\cdot)$ that can take all modalities, $x_A$, $x_B$ (acoustic), and $x_C$ (visual), to shift the primary modality representation through addition or other operations. A word like "expectations" can be shifted toward a more positive or negative representation depending on the accompanying tone of voice and facial expression.
  • Mixture of Fusions: employs multiple fusion strategies (e.g., additive, bilinear, and tensor fusion, etc.) in parallel and adaptively combines their outputs using the attention weights generated by a gating module from the input features.
  • Nonlinear Fusion ( $y = f(x_A, x_B)$ ): simply replaces the fusion-and-prediction step with a single general nonlinear model, such as a multi-layer perceptron (MLP).
    This raises an open question: Does the network actually learn meaningful cross-modal nonlinear interactions?

    ▶ Empirical Multimodally Additive Projection (EMAP) (Hessel and Lee, EMNLP 2020) projects a trained nonlinear function $f(\cdot)$ onto its closest additive fusion approximation by taking expectations of the function $f(\cdot)$ over each modality in turn:
    $f(x_A, x_B) \approx f_A(x_A) + f_B(x_B) $
    Across several benchmark tasks, this additive approximation performs nearly as well as the original nonlinear model, suggesting that many nonlinear multimodal models may not be exploiting much genuine nonlinear interactions beyond what simple additive fusion already provides.

    ▶ A follow-up approach, Multimodal Residual Optimization (MRO) (Wortwein et al., Findings-EMNLP 2022) builds upon this insight by explicitly separating unimodal, bimodal, and trimodal interaction contribution inside a multimodal model. Specifically, let y_unimodal denote the unimodal (additive fusion) contribution, y_bimodal the bimodal interaction contribution, and y_trimodal the trimodal interaction contribution. The final output y is then defined as:
    y = y_unimodal + y_bimodal + y_trimodal
    This design explicitly prioritizes simpler interactions and requires more complex, non-additive terms to explain only the residual that cannot be captured by the simpler terms.

Fusion With Raw Modalities

This section moves towards the heterogeneous end of the spectrum, where representation fusion is done by combining elements from different modalities at very early stages:

  • Transformer Self-Attention: can serve as a fusion mechanism by placing tokens from different modalities into a single sequence and letting self-attention integrate the cross-modal information when generating responses. During masked-token prediction, the model uses context that spans multiple modalities to infer the masked tokens, encouraging it to learn cross-modal interactions to fill in the gaps.
  • Multimodal Masked Auto-Encoder (M3AE): randomly masks a large portion of an image (for example ~70% is masked) along with its accompanying text caption, then uses a Vision Transformer (ViT) to encode only the unmasked image patches and text tokens. A Transformer decoder subsequently reconstructs the original image and text caption. The model is trained with a reconstruction loss computed over the masked inputs, encouraging it to infer the missing information by leveraging the remaining visual and textual context.
  • Dynamic Early Fusion: MUltimodal Fusion Architecture SeArch (MUFASA) uses neural architecture search (NAS) to learn when and how to fuse multimodal data, rather than fixing it in advance. First, it defines a set of basic operations, including normalizations (e.g., layer normalization, batch normalization), layers (e.g., convolution, self-attention, identity, etc.), activations (e.g., ReLU, Leaky ReLU, etc.), and so on, to process the data. Second, it defines a set of combiner functions, including addition, concatenation, and multiplication, that can be used to combine the outputs of basic operations. Finally, it searches for the optimal architecture by composing these basic operations with combiner functions, so the search itself decides whether fusion is early, hybrid or late.
  • Heterogeneity-aware Fusion: High-Modality Multimodal Transformer (HighMMT) is an efficient representation learning model for high-modality settings that involve a large number of diverse modalities. It estimates the heterogeneity between different modalities and their pairwise interactions by using transfer-learning performance to build modality heterogeneity matrix and interaction heterogeneity matrix. These matrices then guide which model parameters can be clustered and shared across modalities versus which need to stay separate, enabling more efficient fusion as the number of modalities increases. This builds a heterogeneity-aware model that dynamically shares parameters based on modality heterogeneity, improving scalability across multiple modalities and tasks.

Optimization

Adding more modalities does not always improve performance. But why? two explanations are offered:

  • Multimodal networks are more prone to overfitting because of increased complexity.
  • Different modalities overfit and generalize at different rates.

Overfitting-to-Generalization Ratio (OGR) measures the gap between the training and validation loss. By jointly training unimodal networks to estimate the OGR of each modality and using these unimodal OGR estimates to reweight the multimodal loss of the main multimodal model, the model can better balance the trade-off between overfitting and generalization across different modalities, addressing the second issue.

Robustness is a related but separate concern. MultiBench (Liang et al., NeurIPS 2021) observes that there is a strong tradeoff between performance and robustness.

Grid Image
Grid Image

Key Takeaways

Multimodal Representations for cross-modal interactions

The goal of multimodal representation learning is to learn representations that capture cross-modal interactions among elements from different modalities.


Representation Fusion Spectrum

Representation fusion approaches lie on a spectrum ranging from the fusion of homogeneous (abstract) representations to the fusion of heterogeneous (raw) representations.


Fusion with Abstract Modalities

Fusion approaches with abstract modalities operate on already encoded high-level representations of elements from different modalities.


Fusion with Raw Modalities

Fusion approaches with raw modalities perform fusion at a very early stage, even directly on the original heterogeneous raw input data.