MODUS: Decoder-only Any-to-Any Modeling of Diverse Modalities

Mingqiao Ye, Zhaochong An, Zhitong Gao, Xian Liu, Oğuzhan Fatih Kar, Jesse Allardice, Roman Bachmann, David Mizrahi, François Fleuret, Chuan Li, Amir Zadeh, Serge Belongie, Afshin Dehghan, Amir Zamir

TL;DR

This paper introduces MODUS, a novel decoder-only architecture for "any-to-any" multimodal modeling. Unlike previous approaches that require specialized models for each modality pair, MODUS unifies diverse modalities (text, images, depth, normals, etc.) within a single, flexible framework, enabling tasks like chained generation and self-verification. This approach leverages the power of pre-trained decoder-only models for more scalable and efficient multimodal understanding and generation.

What Problem Does This Paper Address?

The field of multimodal learning aims to build systems that can understand and generate information across various data types, like text, images, audio, and more. A key challenge is "any-to-any" modeling, where a system should be able to take any combination of modalities as input and generate any other modality as output. Current solutions often rely on complex encoder-decoder or diffusion architectures, which are typically trained from scratch. This limits their ability to leverage powerful pre-trained models and can lead to high training costs and scalability issues. Furthermore, these models often struggle to go beyond text and image modalities or require modality-specific components, hindering true flexibility.

Methods

MODUS tackles this by adopting a decoder-only architecture, similar to large language models, and extending it to handle diverse modalities. The core idea is to represent all modalities within a unified token sequence.

  • Unified Tokenization: Different modalities are converted into a common format. 1D modalities (text, bounding boxes, DINOv2 features) are tokenized directly. 2D modalities (RGB, depth, normals, segmentation, edges) are represented using a combination of semantic features from a ViT encoder and reconstruction latents from a VAE.
  • Two Experts within a Single Decoder: MODUS uses a single decoder with two specialized "experts":
  • 1D Expert: Handles discrete modalities using autoregressive next-token prediction.
  • 2D Expert: Handles continuous spatial modalities using flow matching in latent space.
  • Modality-Agnostic Design: Crucially, MODUS avoids modality-specific heads, losses, or task pipelines, treating all modalities symmetrically.
  • Training Strategy: A staged training approach is used, starting with 1D modalities, then incorporating 2D modalities, and finally increasing the number of conditioning modalities to enable complex generation. Uniform timestep sampling is employed for flow matching to prevent modality confusion.

Datasets

  • SPECTRUM-25M: A newly introduced dataset of 25 million samples. It aligns various modalities (depth, surface normals, segmentation, grounding boxes, DINOv2 features) on a shared image base, enabling joint training across arbitrary modality pairs and facilitating novel any-to-any transformations.
  • Existing Datasets: The paper also leverages existing datasets for evaluation, including NYUv2, ScanNet, DIODE (for depth estimation), RefCOCO, RefCOCO+, RefCOCOg (for grounding), and benchmarks for VQA, text-to-image generation (MMMU, GenEval), and retrieval.

Key Insights and Ideas

  • Decoder-Only for Any-to-Any: The paper demonstrates that a decoder-only architecture, traditionally used for language, can be effectively extended to achieve flexible any-to-any multimodal generation. This challenges the notion that encoder-decoder or diffusion models are strictly necessary for such tasks.
  • Unified Representation is Key: By unifying all modalities into a single token sequence, MODUS avoids modality-specific components and enables seamless interaction and composition between them.
  • Chained Generation for Enhanced Quality: Reusing generated outputs as inputs for subsequent steps (e.g., RGB -> Canny Edge -> Normal) allows for injecting complementary spatial signals, leading to more coherent and higher-quality results, especially for tasks like surface normal estimation.
  • Self-Verification for Improved Outputs: MODUS can use its own capabilities (like object grounding or VQA) to verify and select the best generated outputs, acting as an internal quality control mechanism without external models.
  • Semantic + Reconstruction Features for 2D: Combining high-level semantic features (ViT) with low-level reconstruction features (VAE) for 2D modalities is crucial for achieving both geometric fidelity and semantic consistency, preventing hallucinations seen when using only semantic features.

Key Results

  • Strong Zero-Shot Performance: MODUS achieves competitive or superior performance across various benchmarks, including depth estimation, visual grounding, and text-to-image generation, often outperforming or matching specialized models.
  • Flexible Any-to-Any Generation: MODUS successfully performs arbitrary modality-to-modality transformations, as visualized in Figure 4 and demonstrated in various evaluations.
  • Efficient Chained Generation: Chained generation significantly improves accuracy while maintaining lower latency compared to direct generation with more steps (e.g., 10-step chained generation achieves comparable accuracy to 50-step direct generation at less than half the latency).
  • Improved Visual Representation: The combination of ViT and VAE features for 2D modalities leads to more accurate and geometrically consistent outputs compared to using either feature alone.
  • Generalization: The MODUS training recipe (unified sequence, uniform timestep sampling, staged training) shows promise for generalizing to different base models, as demonstrated by its application to Janus-Flow.

Limitations and Future Work

  • Iterative Editing: MODUS currently focuses on transformations between modalities but does not support iterative editing within the same modality (e.g., refining a depth map). This requires specialized datasets for sequential edits.
  • Reasoning Tasks: While MODUS shows generalization, it doesn't explicitly target complex reasoning tasks. Future work could involve post-training objectives for multimodal chain-of-thought reasoning.
  • Dataset Coverage: The authors acknowledge that MODUS's current modality coverage is representative rather than exhaustive. Extending to modalities like audio or 3D structure would require dataset construction and tokenization.
  • Future Directions: The paper suggests exploring dataset coverage, task formulation, and incorporating post-training objectives to broaden MODUS's capabilities. The potential for decoder-only architectures as a foundation for any-to-any multimodal modeling is highlighted.

Summary updated

BibTeX
@inproceedings{ye2026modus,
  author = {Mingqiao Ye and Zhaochong An and Zhitong Gao and Xian Liu and Oğuzhan Fatih Kar and Jesse Allardice and Roman Bachmann and David Mizrahi and François Fleuret and Chuan Li and Amir Zadeh and Serge Belongie and Afshin Dehghan and Amir Zamir},
  title = {{MODUS: Decoder-only Any-to-Any Modeling of Diverse Modalities}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=t7kTpjsRIw},
}
Figure