NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MMoT: Mixture-of-Modality-Tokens Transformer for Composed Multimodal Conditional Image Synthesis

Jianbin Zheng, Daqing Liu, Chaoyue Wang, Minghui Hu, Zuopeng Yang, Changxing Ding, Dacheng Tao

TL;DR

MMoT introduces a flexible framework for Composed Multimodal Conditional Image Synthesis (CMCIS), allowing users to mix "imperfectly complementary" inputs—like a rough sketch of a boat combined with a text description of a sunset—to generate high-quality images. By using a novel "Mixture-of-Modality-Tokens" transformer and a balanced training strategy, the model overcomes the common pitfalls of modality coordination and imbalance that plague existing multimodal generators.

What Problem Does This Paper Address?

Traditional Multimodal Conditional Image Synthesis (MCIS) assumes that all input signals (text, sketches, segmentation masks) are perfectly aligned and describe the same thing in different ways. In the real world, users often want to "compose" a scene: they might have a segmentation mask for the background, a sketch for a specific object, and text to describe the overall lighting or style.

Existing models struggle with this "composed" task for two reasons:

  1. Modality Coordination: Models often fail to fuse fine-grained information correctly across space, leading to artifacts like a tree having the texture of a mountain because the sketch and mask weren't perfectly synced.
  2. Modality Imbalance: Different modalities have different information densities and convergence rates. For example, sketches are easier for a model to optimize than complex text, causing the model to ignore the harder-to-learn signals during training.

Methods

The authors propose the Mixture-of-Modality-Tokens Transformer (MMoT), which uses an encoder-decoder architecture designed for "asymmetric" processing (12 encoder layers vs. 24 decoder layers).

  • Unified Tokenization: All inputs are converted into discrete tokens. Visual modalities (sketches, masks) use VQGAN, while text uses CLIP embeddings.
  • Multistage Token-Mixer: This is the core innovation. It introduces a special [PULSE] token that adaptively estimates combination weights for different modalities at each layer. This allows the model to decide, for instance, that the sketch should influence the shape of an object while the text should influence its color.
  • Multimodal Balanced Loss: To prevent the model from favoring "easy" modalities, the authors use a loss function that adaptively weights different subsets of input combinations during training.
  • Divergence-driven Sampling Guidance: During inference, the model uses Jensen-Shannon Divergence (JSD) to measure the "strength" of each modality's influence, dynamically adjusting the guidance scale to ensure all control signals are respected in the final output.

Datasets

The model was evaluated on two major benchmarks:

  • COCO-Stuff: A complex dataset containing 118k training images with dense annotations for text, segmentation masks, bounding boxes, and sketches.
  • LHQ (Landscapes): A dataset of 90k high-resolution nature landscapes. Since LHQ lacks manual annotations, the authors used pseudo-labeling (e.g., using DeepLab for masks and HED for sketches) to create a multimodal training set.

Key Insights and Ideas

  • Adaptive Fusion over Concatenation: Most models simply concatenate multimodal features. MMoT’s [PULSE] token allows for dynamic weighting, acknowledging that a sketch might be very important for the foreground but irrelevant for the sky.
  • The Imbalance Problem is Real: The authors visualized training curves showing that sketches reach low loss much faster than text. Without their "Balanced Loss," the model effectively "stops listening" to text once it masters the sketch.
  • JSD as a Control Knob: By measuring the divergence between conditional and unconditional logit distributions, the model can automatically determine how much "guidance" a specific modality needs at any given step of the image generation process.

Key Results

MMoT achieved state-of-the-art results across both unimodal and multimodal tasks:

  • Quantitative: On COCO-Stuff (Text-to-Image), MMoT achieved an FID of 17.9, significantly outperforming PoE-GAN (20.5) and VQGAN+T (27.8).
  • Multimodal Performance: When using all modalities (Text + Mask + Sketch), MMoT reached a Clean-FID of 12.6, proving it handles complex compositions better than previous state-of-the-art methods.
  • Qualitative: The model demonstrates impressive "counterfactual" capabilities. For example, it can take a standard landscape mask and, via text prompts, change the clouds to "pink," "dark," or "sunset" while maintaining the structural integrity of the mountains defined by a sketch.

Limitations and Future Work

  • Inference Speed: Because MMoT is an autoregressive transformer (generating images token-by-token), it suffers from slower inference speeds compared to GANs or some diffusion-based models.
  • Scaling: While the model performs excellently at 256x256 resolution, the authors suggest that future work could involve adapting the MMoT architecture to larger-scale diffusion frameworks to achieve even higher photorealism.
  • Refinement: The authors aim to explore more efficient training schemes to further reduce the computational overhead of the multistage token-mixing process.

Summary updated

BibTeX
@article{zheng2024mmot,
  author = {Jianbin Zheng and Daqing Liu and Chaoyue Wang and Minghui Hu and Zuopeng Yang and Changxing Ding and Dacheng Tao},
  title = {{MMoT: Mixture-of-Modality-Tokens Transformer for Composed Multimodal Conditional Image Synthesis}},
  journal = {Int. J. Comput. Vis.},
  year = {2024},
  url = {https://openreview.net/forum?id=2p9oRp6ttT},
}
Figure