Manuscript Offprint

arXiv:2610.25533

Modaliff: A Unified Token Diffusion Model for Any-to-Any Generation

Duc Kieu, Kien Do, Minh Khoa Le, Tung Kieu, Dang Nguyen, Thin Nguyen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Any-to-any generation seeks a single model that translates flexibly among text, image, and audio, yet existing approaches either require fully aligned multimodal tuples or a shared representation that suppresses modality-specific structure. We introduce Modaliff, a novel token-based diffusion model that learns from widely available bimodal pairs while preserving each modality in its native latent sequence. Modaliff assembles conditions and targets into a unified token sequence, with per-token attributes to disambiguate token identities and role-based positional embedding to preserve each modality's internal structure across sequence layouts. This design enables a single denoiser to support diverse generation tasks without task-specific architectural changes or a shared cross-modal latent space. Beyond one-to-one generation, Modaliff supports multiple conditions either by combining single-condition predictions at inference or by lightweight finetuning on captions that jointly describe multiple inputs. Experiments across text, image, and audio show that Modaliff achieves the best fidelity among any-to-any models on most generation tasks while using substantially fewer parameters and training data.

1 Introduction

A long-standing goal of generative modeling is to build a single model that translates freely among text, image, and audio, such as captioning a photograph, imagining the scene behind a sound, or synthesizing audio from a description. Recent diffusion and flow-based models have brought this any-to-any goal closer (Bao et al. 2023b; Tang et al. 2023; Li et al. 2025), building on progress in text-to-image (Rombach et al. 2022) and text-to-audio (Liu et al. 2023a) generation. Yet flexible and efficient any-to-any generation remains challenging because different modalities have fundamentally different structures, with text is sequential and symbolic, image is spatially structured, and audio is temporally continuous.

Existing any-to-any diffusion models typically follow one of two approaches. The first approach, exemplified by Uni-Diffuser (Bao et al. 2023b) and OmniFlow (Li et al. 2025), concatenates tokens from all modalities and model their joint density over concatenated multimodal tokens with a single transformer. This design is general, but it often requires fully aligned multimodal tuples, which are scarce in practice, and is less flexible for conditional tasks such as Image + Text → Image. The second, represented by CoDi (Tang et al. 2023) and FlowBind (Cha et al. 2026), instead maps all modalities into a shared representation space and condition generation there. This reduces the tuple requirement, but it either requires contrastive pretraining or forces all modalities into the same vector format, limiting representation expressivity.

We introduce Modaliff, a novel token-based diffusion model for any-to-any generation that learns from widely available bimodal pairs without requiring fully aligned multimodal tuples or a shared cross-modal latent space. Our key idea is to represent each modality as a latent token sequence and assemble condition and target modalities into a unified token sequence across generation tasks. To this end, each token of the sequence carries a rich attribute tuple that specifies its modality (e.g., text, image, or audio), role (source or target), and noise level. A role-based positional embedding further organizes token positions across task-varying sequence layouts. Together, these components allow a single denoiser to support flexible source and target combinations without architectural modification, while preserving expressive conditioning through attention over native token sequences.

Beyond one-to-one generation, Modaliff supports multiple conditions through two complementary mechanisms, namely inference-time score composition and lightweight caption-based adaptation. Score composition adopts a product-of-experts formulation to combine the single-condition predictions learned from paired data, enabling multi-condition generation without additional training. In contrast, caption-based adaptation expresses the joint semantics of multiple conditions in language and finetunes Modaliff on a compact set of examples constructed from existing paired data, better capturing interactions among conditions.

Extensive experiments across text, image, and audio demonstrate that Modaliff achieves the best fidelity among any-to-any models on most generation tasks. Compared to OmniFlow and CoDi, Modaliff uses six to eight times fewer parameters and about 5% of OmniFlow's training data while maintaining competitive results.

Our contributions are as follows:

• We propose Modaliff, an any-to-any diffusion model that learns from bimodal paired data while preserving each modality in its native latent token space. To our knowledge, Modaliff is the first any-to-any model that requires neither a shared cross-modal representation nor fully aligned multimodal tuples for training.

• We develop two approaches for multi-condition gen-eration through inference-time score composition and lightweight adaptation on caption-based supervision.

• Across text, image, and audio, Modaliff achieves the best fidelity among any-to-any models on most generation tasks while using substantially fewer parameters and less training data than OmniFlow and CoDi.

References (69)

  • Flamingo: a Visual Language Model for Few-Shot Learning
  • All are worth words: A vit backbone for diffusion models
  • One transformer fits all distributions in multi-modal diffusion at scale
  • FlowBind: Efficient Any-to-Any Generation with Bidirectional Flows
  • Vggsound: A large-scale audio-visual dataset
  • Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
  • Audio set: An ontology and human-labeled dataset for audio events
  • Imagebind: One embedding space to bind them all
  • GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium
  • Denoising diffusion probabilistic models
  • Classifier-Free Diffusion Guidance
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Universal Multi-Domain Translation via Diffusion Routers
  • Fréchet Audio Distance: A Reference-Free Metric for Evaluating Music Enhancement Algorithms
  • Audiocaps: Generating captions for audios in the wild
  • FrameDiT: Diffusion Transformer with Matrix Attention for Efficient Video Generation
  • Optimus: Organizing Sentences via Pre-trained Modeling of a Latent Space
  • BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
  • Omniflow: Any-to-any generation with multi-modal rectified flows
  • Back to basics: Let denoising generative models denoise (opens arXiv in a new tab)
  • Common diffusion noise schedules and sample steps are flawed
  • Microsoft coco: Common objects in context
  • AudioLDM: Text-to-Audio Generation with Latent Diffusion Models
  • Visual instruction tuning
  • Decoupled Weight Decay Regularization
  • h-Edit: Effective and Flexible Diffusion-Based Editing via Doob's h-Transform
  • Scalable diffusion models with transformers
  • Learning transferable visual models from natural language supervision
  • Language models are unsupervised multitask learners
  • Hierarchical Text-Conditional Image Generation with CLIP Latents
  • Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
  • High-resolution image synthesis with latent diffusion models
  • LAION-5B: an open large-scale dataset for training next generation image-text models
  • Deep unsupervised learning using nonequilibrium thermodynamics
  • Denoising Diffusion Implicit Models
  • Generative modeling by estimating gradients of the data distribution
  • Score-Based Generative Modeling through Stochastic Differential Equations
  • Roformer: Enhanced transformer with rotary position embedding
  • Any-to-any generation via composable diffusion
  • Gemma 3 Technical Report
  • CIDEr: Consensus-based image description evaluation
  • Embeddinggemma: Powerful and lightweight text representations (opens arXiv in a new tab)
  • Large-scale contrastive language-audio pretraining with feature fusion and keyword-to-caption augmentation
  • Versatile diffusion: Text, images and variations all in one diffusion model
  • Qwen3 Technical Report
  • Tinylama: An open-source small language model (opens arXiv in a new tab)
  • Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models
  • While effective auto-encoders exist for images and audio (e.g., (Rombach et al. 2022) and (Liu et al. 2023a)), comparable solutions for text remain underdeveloped
  • >Method</td><td rowspan=
  • As the latest generation in the Qwen family, Qwen3 exhibits strong multilingual generation and reasoning capabilities, while the embedding counterpart achieves competitive performance on text representation and retrieval benchmarks
  • Then, we employ a Flamingo-style resampler (Alayrac et al. 2022) to compress the variable-length sequence into a fixed-size latent representation $z \in \mathbb{R}^{M \times d_{\mathrm{latent}}}$
  • \tag {15} $$
  • We then apply a linear projection to obtain $h' \in \mathbb{R}^{L \times d_{\mathrm{latent}}}$, reducing the feature dimension to $d_{\mathrm{latent}} = 256$ while retaining sufficient information for accurate reconstruction
  • This is expected because the decoder is a Qwen3 model, so encoders from the same model family produce representations that are better aligned with the decoder's representation space
  • We report Perplexity, BLEU-1, and BLEU-4 over training for Qwen3-Embedding-0.6B, Qwen3-0.6B, and CLIP-ViT-B/32
  • For $\epsilon$-prediction, we normalize each modality using training set mean and standard deviation, whereas $x_0$-prediction and $v$-prediction are trained on raw latents
  • For evaluation efficiency, we evaluate FID for T→I and CIDEr for I→T on 5K MSCOCO samples
  • Based on these results, we use $(w_t, w_a) = (3, 2)$ for $(T+A) \to I$ and $(w_a, w_i) = (1.5, 4)$ for $(A+I) \to T$, marked by stars in Fig
  • 12–18, covering diverse people, objects, scenes, and semantic content
  • a group of young people getting ready to go ski
  • A bunch of colorful umbrellas hanging from trees in a forest
  • A older man sitting at a laptop with a fireplace behind him
  • an image of a train that is going down the tracks
  • A large bed sitting next to a small Christmas Tree surrounded by pictures
  • a little boy wearing a tie and a fake mustache
  • An adult polar bear is swimming in the water
  • A picture of a man that is posing for a picture
  • A motorcycle under a street light
  • A woman in a dress with a mirror