Lecture Note: Multimodal Coordination and Fission

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

Overview

This post continues the previous discussion on Multimodal Representation , where the key 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/contextualized representations.
  • Fission: input modalities are expanded into more representations than the number of input modalities.

In this post, we focus on the latter two challenges: coordination, which coordinates encoders such as $f_A$ and $f_B$ so that their outputs $z_A$ and $z_B$ stay connected, and fission, which learns a set of representations to reflect multimodal internal structure.

Representation Coordination

Coordination preserves separate encoders for each modality, resulting in one output representation per input modality. Rather than merging the modalities, it introduces a learning objective that aligns their representations through cross-modal interactions.
Coordination can be viewed as a spectrum:

  • Strong Coordination pulls the two representations very close together
  • Partial Coordination keeps them related but lets them stay farther apart, preserving more modality-specific detail.

Regardless of strong or partial coordination, all coordination methods rely on having paired data across modalities for training.

Coordination Functions

A coordination function, $g(z_A, z_B)$, scores how related two output representations $z_A$ and $z_B$ are, generated by their respective encoders $f_A(\cdot)$ and $f_B(\cdot)$.

Grid Image

Learning with different coordination functions results in different degrees of alignment between the learned representations:

  • Cosine Similarity measures the angle between $z_A$ and $z_B$, and it produces relatively strong coordination.
  • Kernel Similarity ( $g(z_A, z_B) = k(z_A, z_B)$) uses a kernel function $k(\cdot)$, such as linear, polynomial, exponential, and so on, to implicitly compare representations in a higher-dimensional feature space. This still produces fairly strong coordination.
  • Canonical Correlation Analysis (CCA) learns two linear projections, one per modality, to maximize the correlation between the projected representations. This results in partial coordination.
    Deep Canonically Correlated Autoencoders (DCCAE) adds 2 autoencoders for modality $A$ and $B$ respectively and jointly optimizes their reconstruction loss with the original correlation objective over the projected representations. As noted in the paper, "minimizing reconstruction error amounts to maximizing a lower bound on the mutual information between the input data and the learned representation features".
    Multi-View Latent Intact Space assumes that each object has an "intact (complete and not damaged)" latent representation $x$ and that each view $z^v$ is a particular reflection that provides only a partial, and possibly degraded, view of it. The relationship between $x$ and $z^v$ is defined as: $z^v=f^v(x)+\epsilon^v$, where $f^v$ is the view generation on $x$ for view $v$ and $\epsilon^v$ is the view-dependent noise.
    Auto-Encoder in Auto-Encoder Network follows the one complete latent intact space idea and employs separate autoencoders for each modality along with a shared autoencoder for learning the intact latent representation.
  • Gated Coordination replaces a fixed similarity score with learned modality-specific gates, $g_A$ and $g_B$, that reweight each modality's raw features based on both modalities jointly ($z_A = g_A(x_A, x_B)\circ x_A$), a mechanism closely related to attention modules in transformers.
Grid Image
Grid Image
Grid Image

Coordination with Contrastive Learning

Contrastive Learning coordinates modalities by pulling together the representations of matching ("positive") pairs (e.g., an image and its corresponding text caption) while pushing apart mismatched ("negative") pairs, commonly through a loss function based on the cosine similarity between the two representations in each pair.
Let $z_A$ and $z_B$ denote the representations for modality $A $ and modality $B$, respectively. Let $(z_A, z_B^+)$ denote a matching pair and $(z_A, z_B^-)$ a mismatched pair. In this case, $z_A$ is known as the anchor point, $z_B+$ as the positive point, and $z_B^-$ as a negative point. The triplet loss for contrastive learning is defined as: $$L = \max\{0, \alpha - \text{sim}(z_A,z_B^+) + \text{sim}(z_A,z_B^-)\}$$ where $\text{sim}(\cdot,\cdot)$ is a similarity function (e.g., cosine similarity) that measures the similarity score of the input pair, and $\alpha$ is a hyperparameter called the margin, which sets the minimum amount by which the similarity score of the matching pair must exceed that of the mismatched pair for the loss to be zero.
Unifying Visual-Semantic Embeddings with Multimodal Neural Language Models trains a separate image encoder and sentence encoder and learns a joint image-sentence embedding space by minimizing the triplet-style pairwise loss: $$\max\{0, \alpha - \text{sim}(z_L,z_V^+) + \text{sim}(z_L,z_V^-)\} + \max\{0, \alpha - \text{sim}(z_V,z_L^+) + \text{sim}(z_V,z_L^-)\}$$ where $z_L$ denotes the sentence embedding, $z_V$ denotes the image embedding, and the paper uses cosine similarity for $\text{sim}(\cdot,\cdot)$. The loss is computed over all matching image-sentence pairs in the training set, with mismatched pairs sampled at random and resampled every epoch. The paper showed that the resulting joint embedding space supports simple vector arithmetic between input modalities.

InfoNCE is one of the most popular contrastive loss. Given a batch of $N$ paired samples $\{(z_A^{(i)}, z_B^{(i)})\}_{i=1}^N$, and let every pair $(z_A^{(i)}, z_B^{(j)})$ with $j\neq i$ be a mismatched pair, so there are $N^2-N$ mismatched pairs in total. The InfoNCE for this batch is : $$L = -\frac{1}{N}\sum_{i=1}^{N}\log \frac{ \exp\left(\text{sim}(z_A^{(i)}, z_B^{(i)})\right) }{ \sum_{j=1}^N \exp\left( \text{sim}(z_A^{(i)}, z_B^{(j)}) \right) }$$ This is the categorical cross-entropy loss for classifying the matching pair correctly with $\frac{ \exp\left(\text{sim}(z_A^{(i)}, z_B^{(i)})\right) }{ \sum_{j=1}^N \exp\left( \text{sim}(z_A^{(i)}, z_B^{(j)}) \right) } $ being the model's predicted probability that $z_B^{(i)}$ is the match for $z_A^{(i)}$.
Contrastive Language–Image Pre-training (CLIP) scales the idea of joint image-text embedding space up by also training a separate image encoder and text encoder but using InfoNCE-style loss as the contrastive loss on a large dataset of image–text pairs. Specifically, CLIP uses an InfoNCE-style pairwise loss with cosine similarity for $\text{sim}(\cdot,\cdot)$: $$\begin{align*} L_{V2L} &= -\frac{1}{N}\sum_{i=1}^{N}\log \frac{ \exp\left( z_V^{(i)\top} z_L^{(i)}/\sigma \right) }{ \sum_{j=1}^N \exp\left( z_V^{(i)\top} z_L^{(j)}/\sigma \right) } \\ L_{L2V} &= -\frac{1}{N}\sum_{i=1}^{N}\log \frac{ \exp\left( z_L^{(i)\top} z_V^{(i)}/\sigma\right) }{ \sum_{j=1}^N \exp\left( z_L^{(i)\top} z_V^{(j)}/\sigma \right) } \\ L &= \frac{L_{V2L} + L_{L2V} }{2} \end{align*}$$ where $\sigma$ is the temperature parameter that is learnable and is used to control the range of the logits in the softmax.

Contrastive Learning & Information Theory

To reason about how much information is in a modality $X$, it helps to borrow from classical information theory.
The information content $I $ of a random variable $X \sim p(X)$ is defined as : $$I(X)=-\log p(X)$$ The information content associated with an outcome grows as its probability shrinks. The entropy $H$ of a random variable $X \sim p(X)$ is defined as the expectation of $I(X)$. That is: $$H(X)=\mathbb{E}_{X\sim p(X)}[I(X)] = \mathbb{E}_{X\sim p(X)}[-\log p(X)]$$ Considering two modalities $X_1$ and $X_2$, the conditional entropy $H(X_2\mid X_1)$, defined as: $$H(X_2\mid X_1) = -\mathbb{E}_{X_1\sim p(X_1), X_2 \sim p(X_2)}\left[\log\frac{p(X_1,X_2)}{p(X_1)} \right]$$ measures how much information remains in modality $X_2$ after observing modality $X_1$, falling to zero when $X_1$ fully determines $X_2$. Their mutual information, defined as: $$I(X_1 ; X_2) = I(X_2 ; X_1) = \mathbb{E}_{X_1\sim p(X_1), X_2 \sim p(X_2)}\left[\log\frac{p(X_1,X_2)}{p(X_1)p(X_2)} \right]$$ captures the overlap information between the two, falling to zero when $X_1$ and $X_2$ are independent.
Assuming the information in both input modalities $X_1$ and $X_2$ is most important for the downstream task $Y$, information theory helps to explain why contrastive learning works so well for coordination because minimizing the InfoNCE loss equivalently maximizes a lower bound on mutual information between input modalities, encouraging the model to capture the information they share rather than modality-specific information.

Grid Image

Multiview Redundancy and Contrastive Learning

Consider the multi-view setting with three random variables $(V_1, V_2, Y)$, where $V_1$ and $V_2$ are two separate views (or modalities) of the input data $X$, and $Y$ is the label of the downstream task to be predicted.
The views $V_1$ and $V_2$ are said to satisfy multi-view redundancy if they share redundant information about the downstream task $Y$ such that, for some small $\epsilon>0$: $$I(V_1;Y\mid V_2)\le\epsilon \quad\text{and}\quad I(V_2;Y\mid V_1)\le\epsilon$$ That is, the unique task-relevant information that either view holds is at most a small $\epsilon$. In other words, the task-relevant information for downstream task $Y$ is mostly shared between $V_1$ and $V_2$.
Since contrastive learning learns representations of the two views, $V_1$ and $V_2$, by maximizing a lower bound on their mutual information $I(V_1;V_2)$, under the multi-view redundancy assumption, the learned representations transfer well to the downstream task $Y$.
Contrastive learning, multi-view redundancy, and linear models shows that under the multi-view redundancy assumption, applying simple linear functions to the representations learned with contrastive learning achieves near-optimal performance on downstream prediction tasks.

What makes for good views for contrastive learning? analyzes how the mutual information shared between two views ( i.e., $I(V_1;V_2)$ ) affects how well the representations learned by contrastive learning transfer to the downstream task $Y$. The mutual information between the input data and the downstream task, $I(X;Y)$, represents the task-relevant information. As the mutual information $I(V_1;V_2)$ increases, the transfer performance of the learned representations on downstream task $Y$ goes through three regions, depending on how $I(V_1;V_2)$ compares with $I(X;Y)$:

  • Missing Information $I(V_1;V_2) < I(X;Y)$: The mutual information is too small to cover all the task-relevant information. Contrastive learning captures only the information that the views share, so transferring the learned representations to the downstream task degrades performance.
  • Sweet Spot $I(V_1;V_2) = I(X;Y)$: The mutual information captures all of the task-relevant information and nothing else, so the learned representation is both sufficient and complete for transferring to the downstream task. (This pushes multi-view redundancy to its extreme, where neither view contains unique task-relevant information ($\epsilon=0$), and additionally requires the shared information to contain nothing irrelevant to the downstream task.)
  • Excess Noise $I(V_1;V_2) > I(X;Y)$: The mutual information includes irrelevant information (i.e., noise) to the downstream task, and the included noise hurts the generalizability of the learned representations.
Grid Image

Representation Fission

Fission is coordination's counterpart: instead of aligning separate encoders, it learns a new set of representations that exposes the internal structure hiding inside multimodal data, whether through explicit factorization or through clustering. Fission methods range from coarse modality-level to fine-grained fission.

Representation Fission via Information Theory

Classical information theory allows us to use mutual information to quantify the information shared between two modalities. However, once a third variable, task label $Y$, is introduced, it cannot fully capture the synergistic information that emerges from multimodal interactions. In addition, the three-way mutual information term $ I(X_1; X_2; Y)$ can potentially go negative, a sign that something is missing from the picture.

Grid Image
Grid Image

Partial Information Decomposition

Partial Information Decomposition resolves this by splitting the joint mutual information $I(X_1,X_2;Y)$ between two modalities $X_1$, $X_2$ and task label $Y$ into four non-negative quantities: information unique to one modality $U_1$, information unique to the other modality $U_2$, redundant information $R$, and synergistic information $S$ that only emerges once the two modalities are combined: $$I(X_1,X_2;Y) = R + U_1 + U_2 + S$$

Modality-Level Fission

Turning this decomposition into a practical training framework, a generative-discriminative approach, Learning Factorized Multimodal Representations, trains separate encoder-decoder pairs for modality $A$ and $B$, along with another encoder that learns a joint representation $z_Y$ for downstream prediction. The model is optimized with three objectives:

  • Discriminative Loss for predicting the task label from $z_Y$.
  • Generative Loss requiring each modality-specific decoder to reconstruct its respective modality by combining its own modality-specific representation with the joint representation $z_Y$.
  • No-Overlap Loss encouraging encoders to keep the three representations $z_A$, $z_B$, $z_Y$ statistically independent, preventing them from collapsing into redundant copies of one another.
Grid Image

In terms of information theory, this amounts to maximizing task-relevant unique information and task-relevant shared information. Building on this idea, Factorized Contrastive Learning: Going Beyond Multi-view Redundancy maximizes task-relevant unique information via self contrastive learning and task-relevant shared information via cross-modal contrastive learning, maximizing both shared and unique information that is relevant to the downstream label while minimizing upper bounds on task-irrelevant information to remove noise.

Fine-Grained Fission

Modality-level fission only produces one shared piece and one unique piece per modality. Fine-grained fission goes further by automatically discovering multiple internal clusters or factors without being told in advance what they should be.
Deep Multimodal Clustering for Unsupervised Audiovisual Learning trains unimodal convolutional encoders for images and audio first to produce localized activations tied to different objects in a scene, and a shared clustering module then groups these localized unimodal feature vectors into several audio-visual correspondence clusters, entirely without supervision for what those clusters should represent.

Key Takeaways

Representation Coordination

Representation coordination methods span the spectrum from strong coordination, which pull contextualized representations very close together, to partial coordination, which keeps them related and preserve more modality-specific detail. However, all methods rely on having paired data across modalities for training.


Information Theory & Partial Information Decomposition

Mutual information from classical information theory explains why contrastive learning succeed at representation coordination, since they optimize a lower-bound on the mutual information between modalities. Partial Information Decomposition extends this framework to representation fission by explicitly separating redundant, unique, and synergistic information, resolving the cases where mutual information alone becomes negative or is insufficient for modeling synergy once a task label is involved.


Representation Fission

Because representation coordination focuses on mutual information between modalities, representation fission complements it by creating a set of decoupled representations that reflects knowledge about internal multimodal structure. Fission methods also span a spectrum, ranging from modality-level fission to fine-grained fission.