Papers
Topics
Authors
Recent
Search
2000 character limit reached

Multimodal Attention-based Normalizing Flow (MANGO)

Updated 3 July 2026
  • MANGO is a multimodal fusion framework integrating invertible cross-attention flow layers to enable tractable and interpretable joint distribution modeling.
  • It utilizes a stack of ICA layers and affine coupling blocks to ensure bijective mappings and precise latent variable traversal across modalities.
  • State-of-the-art performance is achieved on tasks such as semantic segmentation, image-to-image translation, and movie genre classification through explicit likelihood estimation.

The Multimodal Attention-based Normalizing Flow (MANGO) framework is a multimodal fusion learning approach designed to provide explicit, interpretable, and tractable modeling of joint distributions across high-dimensional multimodal data. MANGO achieves this by replacing standard attention modules with invertible cross-attention (ICA) flow layers, enabling theoretical guarantees of bijection, likelihood tractability, and interpretable cross-modal representations. The framework demonstrates state-of-the-art performance on tasks such as semantic segmentation, image-to-image translation, and movie genre classification (Truong et al., 13 Aug 2025).

1. Model Architecture and Data Flow

MANGO processes a set of NN input tokens X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N] from multiple modalities. For modalities AA and BB with MM and KK tokens,

X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]

The raw, high-dimensional multimodal data is first compressed using a perceptual encoder E\mathcal{E} (e.g., MAE for images, CLIP-text for captions) to obtain semantic latent features F=E(X)\mathbf{F} = \mathcal{E}(\mathbf{X}). This latent is then processed through a bijective normalizing flow backbone GG, structured as a stack of X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]0 flow blocks, each comprising eight ICA layers (with varied cross-modal partitioning) and one affine coupling layer:

  • ICA breakdown per block: 2 MMCA, 4 IMCA, 2 LICA The final latent X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]1 (with X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]2) forms the basis for the task-specific head X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]3, outputting predictions X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]4. Likelihood terms and invertibility ensure that the joint density and latent traversals are explicitly tractable.

The overall workflow:

  • Raw multimodal inputs X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]5
  • X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]6 Compressed features X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]7
  • X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]8 Latent X=[x1,,xN]\mathbf{X} = [\mathbf{x}_1,\dots,\mathbf{x}_N]9
  • AA0 Predicted output AA1

2. Mathematical Formulation and Flow Model

Let AA2 be the compressed tokens. The overall bijection is built from AA3 invertible blocks: AA4 With AA5 and AA6. Via the change of variables,

AA7

where AA8, AA9. For a data point BB0,

BB1

This explicit density enables exact likelihood estimation and interpretable latent variable traversals.

3. Invertible Cross-Attention (ICA) Layers

The ICA replaces standard coupling layers with a cross-attention operation that remains bijective and ensures Jacobian tractability:

Forward mapping:

  • Partition BB2 into BB3
  • Compute, for BB4,

BB5

with BB6 as an upper-triangular mask (autoregressive). Outputs are BB7, BB8; merged as BB9.

Inverse mapping:

  • Since MM0 is upper-triangular with positive diagonal, MM1 is invertible: MM2

Jacobian: MM3 Computation of MM4 is MM5. This guarantees tractability for exact likelihood and gradient computation.

4. Cross-Modal Attention Partitioning Mechanisms

To efficiently capture diverse inter- and intra-modal dependencies, MANGO employs three partitioning styles within the ICA:

  • Modality-to-Modality Cross-Attention (MMCA): MM6, MM7 (and vice versa)
  • Inter-Modality Cross-Attention (IMCA): Each modality is split in half; e.g., MM8, MM9
  • Learnable Inter-Modality Cross-Attention (LICA): A learnable permutation KK0 is applied on KK1, followed by bipartition and ICA; inverse permutation merges the outputs. The log-Jacobian of permutation is KK2.

All three mechanisms use shared KK3 projections; only LICA introduces trainable permutation parameters.

5. Training Objectives and Optimization

The objective comprises an explicit negative log-likelihood from the flow and a task-specific prediction loss: KK4 where KK5 is cross-entropy (categorical) or KK6 (regression/image translation), and KK7 is a balancing factor.

Optimization uses AdamW with weight decay KK8, learning rate warm-up for 5 epochs, and cosine decay scheduling. Spectral normalization is applied on KK9 and X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]0 to stabilize invertible transformations.

6. Scalability and Efficiency Considerations

The framework scales to high-dimensional data via a two-stage approach:

  • Perceptual encoder compresses, e.g., X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]1 images into X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]2 tokens (reducing X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]3 to X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]4).
  • Latent flow X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]5 is computed on X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]6 tokens of X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]7 (on modern GPU hardware).
  • Each ICA layer has X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]8 complexity; X=[x1A,,xMAA,x1B,,xKBB]\mathbf{X} = [\,\underbrace{\mathbf{x}^A_1,\dots,\mathbf{x}^A_M}_{A},\, \underbrace{\mathbf{x}^B_1,\dots,\mathbf{x}^B_K}_{B}]9 flow blocks suffice for modeling complex multimodal joint distributions.

7. Experimental Results and Ablation Analysis

State-of-the-art results are achieved across diverse multimodal tasks:

Semantic Segmentation (NYUDv2/SUN RGB-D):

Method Inputs NYUDv2 Pixel (%) NYUDv2 mIoU (%) SUN Pixel (%) SUN mIoU (%)
TokenFusion (Small) RGB+D 79.0 54.2 84.7 53.0
GeminiFusion (MiT-B5) RGB+D 80.3 57.7 83.8 53.3
MANGO RGB+D 81.5 59.2 83.9 54.1

Image-to-Image Translation (Taskonomy):

Task GeminiFusion (FID) MANGO (FID or MAE/MSE)
Shade+TextureE\mathcal{E}0RGB 41.32 39.61
Depth+NormalE\mathcal{E}1RGB 96.98 67.61
RGB+ShadeE\mathcal{E}2Normal 0.65 (MAE) 0.52
RGB+EdgeE\mathcal{E}3Depth 0.20 (MSE) 0.17

MM-IMDB Movie Genre Classification:

Method Micro-F1 (%) Macro-F1 (%)
BridgeTower 68.2 63.3
MANGO 71.7 68.2

Ablation:

Configuration NYUDv2 mIoU SUN mIoU
Replace ICA with coupling layer 50.8 48.5
+ Glow 53.0 49.1
+ Flow++ 54.2 50.5
+ AttnFlow 56.5 52.2
Full MANGO (ICA+MMCA+IMCA+LICA) 59.2 54.1

Partitioning Analysis:

Partitioning NYUDv2 mIoU SUN mIoU
MMCA only 56.4 51.3
MMCA + IMCA 58.0 53.7
MMCA + IMCA + LICA 59.2 54.1

8. Interpretability and Visualization Capabilities

MANGO’s explicit invertibility and attention structure facilitate interpretability:

  • The flow backbone E\mathcal{E}4 enables tracking of individual token shifts in latent space, providing insight into cross-modal and intra-modal fusion at each ICA level.
  • Triangular ICA attention matrices E\mathcal{E}5 serve as interpretable attention maps, illustrating routing (e.g., depth-to-RGB) in early layers.
  • Latent traversals in E\mathcal{E}6 space lead to predictable, smooth transformations in output E\mathcal{E}7, controlled by explicit likelihood constraints. A plausible implication is increased transparency of multimodal decision processes compared with black-box transformer-based approaches.

Summary Table: MANGO vs. Baselines

Aspect Baseline Transformers MANGO
Joint distribution Implicit Explicit normalizing flow
Flow construction Non-invertible attention Invertible cross-attention (ICA)
Tractability No Exact likelihood, tractable Jacobian
Cross-modal mechanisms Implicit/self-attention MMCA, IMCA, LICA partitioned flows
State-of-the-art (SoTA) Variable Achieved on all benchmarked tasks

MANGO advances multimodal fusion by delivering explicit, invertible, and interpretable cross-modal modeling, with empirical and theoretical improvements over prior approaches in both predictive performance and analysis capabilities (Truong et al., 13 Aug 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Multimodal Attention-based Normalizing Flow (MANGO).