Abstract
FUDOKI is a novel multimodal foundation model that challenges the standard "one-token-at-a-time" autoregressive (AR) approach by introducing discrete flow matching. By treating generation as a continuous refinement process rather than a sequential chain, FUDOKI enables bidirectional reasoning and iterative self-correction. It successfully matches the performance of state-of-the-art models in both image generation and visual understanding, paving the way for next-generation unified multimodal architectures.
The Autoregressive Bottleneck
Most current Multimodal Large Language Models (MLLMs)—such as GPT-4o or LLaVA—rely on autoregressive architectures. They predict the next token (whether text or image patch) based strictly on preceding tokens. While highly successful, this causal design introduces three major limitations:
- Raster-Scan Limitations: Images are generated pixel-by-pixel or patch-by-patch in a fixed, usually top-left to bottom-right order. This rigid sequence does not align with how humans conceptualize or construct visual scenes.
- Error Propagation ("No Take-Backs"): Once an AR model generates a suboptimal token, it cannot revise it. The error propagates through the rest of the sequence, frequently leading to hallucinations or logical collapses.
- Restricted Reasoning: Because AR models can only look backward, they struggle with complex planning and global context integration, limiting their ability to perform deep, multi-step reasoning.
Enter FUDOKI: Discrete Flow Matching
To overcome these hurdles, FUDOKI shifts the paradigm to Discrete Flow Matching (DFM). Instead of predicting the next token in a sequence, the model starts with a sequence of "noise" (fully corrupted tokens) and learns to iteratively transform them into the target data.
Key technical innovations driving this approach include:
- Metric-Induced Probability Paths: Unlike traditional diffusion models that use simple masking (where a token is either "hidden" or "visible"), FUDOKI utilizes a distance metric in the embedding space. This allows tokens to transition smoothly from noise to semantically similar alternatives before settling on the final target.
- Kinetic-Optimal Velocities: The framework employs mathematical optimization to ensure the "flow" of probability mass is as efficient as possible (minimizing "kinetic energy"). This leads to smoother training dynamics and higher-quality generation.
- AR-to-Flow Initialization: To circumvent the massive computational cost of training from scratch, FUDOKI is initialized using the weights of a pre-trained AR model (Janus-1.5B) and adaptively transitioned to the flow-matching paradigm.
- Full Bidirectional Attention: Unlike AR models constrained by a causal mask, FUDOKI uses a bidirectional mask. Every token can attend to every other token during every step of the refinement process, enabling holistic context integration.
Unified Capabilities: Understanding and Generation
FUDOKI was trained on a massive collection of 13 million samples, comprising 9 million image generation samples and 4 million visual understanding samples (covering OCR, document analysis, charts, and general visual question answering).
The Power of "Thinking" in Visual Reasoning
Because FUDOKI is iterative, it can effectively "think" through a problem. In visual reasoning tasks, the model revises its internal logic across multiple steps. If it realizes a previous assumption was inconsistent with the image, it can self-correct in the next iteration.
Bidirectional Context in Image Generation
In image generation, the model develops the global layout and fine details simultaneously rather than sequentially. This bidirectional context leads to superior attribute binding—for example, ensuring the correct colors and textures are applied to the correct objects throughout the scene.
Performance and Key Insights
Evaluated across a battery of benchmarks, FUDOKI demonstrates that discrete flow matching is a viable and highly competitive alternative to AR models:
- Competitive Generation: FUDOKI achieved an overall score of 0.77 on GenEval, matching the top-tier performance of specialized generation models and unified AR models like Janus-Pro. Furthermore, it achieves higher image generation quality with fewer inference steps compared to standard AR models.
- Superior Reasoning: On the MathVista benchmark, FUDOKI scored 38.6, outperforming its AR-based predecessor (Janus-Pro-1B at 35.1) at the same scale.
- Inference Scaling: Similar to recent reasoning-focused models, FUDOKI benefits significantly from test-time scaling. Generating multiple candidates and utilizing a "judge" model to select the best outcome yields substantial performance jumps.
Limitations and Future Directions
Despite its strong performance, FUDOKI has a few current limitations. The model requires the output sequence length to be set before sampling begins, which restricts flexibility for open-ended text generation. Additionally, it occasionally struggles with rendering specific, complex text within images or adhering to highly dense prompts.
Looking ahead, the authors highlight Reinforcement Learning (RL) as a promising frontier. By teaching the model to optimize its iterative "thinking steps," future versions of FUDOKI could unlock even higher levels of accuracy, creativity, and multimodal reasoning.
Summary updated