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

Best of Both Worlds: Multimodal Reasoning and Generation via Unified Discrete Flow Matching

Onkar Susladkar, Tushar Prakash, Gayatri Deshmukh, Kiet A. Nguyen, Jiaxun Zhang, Adheesh Juvekar, Tianshu Bao, Lin Chai, Sparsh Mittal, Inderjit S Dhillon, Ismini Lourentzou · DOI

Abstract

We propose UniDFlow, a unified discrete flow-matching framework for multimodal understanding, generation, and editing. It decouples understanding and generation via task-specific low-rank adapters, avoiding objective interference and representation entanglement, while a novel reference-based multimodal preference alignment optimizes relative outcomes under identical conditioning, improving faithfulness and controllability without large-scale retraining. UniDFlow achieves SOTA performance across eight benchmarks and exhibits strong zero-shot generalization to tasks including inpainting, in-context image generation, reference-based editing, and compositional generation, despite no explicit task-specific training.

Introduction

The AI field currently faces a significant "modality gap." While Large Language Models (LLMs) and Vision-Language Models (VLMs) excel at reasoning and semantic understanding, they often lack native, high-quality image generation capabilities. Conversely, specialized diffusion models produce stunning visuals but struggle with complex semantic grounding and following intricate, multi-step instructions.

Existing attempts to unify these capabilities often suffer from objective interference: training a model to generate images can inadvertently degrade its ability to reason about them. Furthermore, many unified models fail to distinguish between high-quality edits and subtly incorrect ones during alignment. UniDFlow addresses these challenges by treating understanding, generation, and editing as a single discrete denoising process.

Methodology

UniDFlow introduces several technical innovations to achieve a "best of both worlds" architecture:

  • Discrete Flow Matching (DFM): Instead of standard autoregressive or continuous diffusion, UniDFlow learns a transport field in discrete token space. This allows for efficient sampling (requiring only 20 steps) while maintaining high generation quality.
  • Decoupled Adapters (MoRA): To prevent objective interference, the model utilizes separate Low-Rank Adapters (LoRA) for understanding and generation. A lightweight Mixture-of-LoRA (MoRA) router dynamically composes these adapters based on the current diffusion timestep.
  • Time-Step Guided RMSNorm (TSG-RMSNorm): This mechanism injects the diffusion timestep into a frozen VLM backbone by modulating the RMSNorm scale parameters, preserving pretrained features while enabling time-aware generation.
  • mRefDPO (Multimodal Reference-based DPO): This novel preference alignment objective optimizes the model using pairs of "preferred" and "rejected" outcomes. Crucially, it incorporates a "reflection" step—a text-based reasoning trace where the model "thinks" through the edit before performing it, significantly improving visual grounding.

Experimental Setup

The model underwent a three-stage training curriculum:

  1. Text Alignment: 1.0M samples from MMInstruct to establish reasoning capabilities.
  2. Vision Alignment: 4.5M images from sources like LAION-5B and JourneyDB for generative pretraining.
  3. Preference Alignment: 3.5M curated preference samples derived from OpenGPT-4o-Image and AnyEdit.

Evaluation was conducted across eight major benchmarks, including EvalVLM (understanding), GenEval (generation), and ImgEdit Bench (editing).

Key Results

UniDFlow consistently outperformed both specialized and unified baselines across all modalities:

  • Understanding: On the EvalVLM benchmark, UniDFlow (4B) achieved a +6.9% improvement on MME-P and +7.0% on MME-S compared to BAGEL (7B). It also outperformed Qwen2.5-VL (7B) by 20.4% in overall performance.
  • Generation: The model achieved a score of 0.95 on GenEval, surpassing strong baselines like EMMA (0.93) and MammothModa2 (0.87).
  • Editing: On the ImgEdit Bench, it reached an overall score of 4.24, excelling particularly in "Extract" and "Remove" operations where precise target isolation is required.
  • Zero-Shot Generalization: Despite no explicit task-specific training, UniDFlow demonstrated strong performance in in-context subject-driven generation and compositional tasks.

Discussion and Insights

A primary insight from this work is that reasoning acts as a catalyst for editing. By forcing the model to generate a reasoning trace (reflection) before editing, visual grounding is significantly improved. Furthermore, the success of decoupled adapters proves that isolating weights for understanding and generation prevents the performance degradation typically seen in multi-task unified models.

While UniDFlow sets a new standard for unified models, the authors note that performance remains tethered to the quality and diversity of the preference data. Future work will focus on scaling the model and exploring more diverse reflection strategies to handle increasingly complex multimodal reasoning tasks.

Summary updated

BibTeX
@inproceedings{susladkar2026best,
  author = {Onkar Susladkar and Tushar Prakash and Gayatri Deshmukh and Kiet A. Nguyen and Jiaxun Zhang and Adheesh Juvekar and Tianshu Bao and Lin Chai and Sparsh Mittal and Inderjit S Dhillon and Ismini Lourentzou},
  title = {{Best of Both Worlds: Multimodal Reasoning and Generation via Unified Discrete Flow Matching}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=hZhJTTjmUM},
}
Figure