OneFlow: Concurrent Mixed-Modal and Interleaved Generation with Edit Flows

John Nguyen, Marton Havasi, Tariq Berrada, Luke Zettlemoyer, Ricky T. Q. Chen · DOI

Introduction

Most contemporary multimodal models, including the GPT-4 and Gemini families, rely on an autoregressive (AR) generation paradigm. These models function like a typewriter, producing data one token at a time in a strict left-to-right sequence. While effective, this creates a significant bottleneck: when generating interleaved content (such as a blog post with embedded images), the model must complete an entire image before it can proceed to the next word of text. This rigid causal ordering prevents the model from refining text and images holistically.

OneFlow introduces a paradigm shift by moving toward a Non-Autoregressive (NAR) framework. It is the first model capable of generating interleaved text and images simultaneously rather than sequentially, allowing for a more integrated and flexible generation process.

Methodology: Edit Flows and Flow Matching

OneFlow bridges the gap between discrete text generation and continuous image synthesis by combining two primary mechanisms within a unified bidirectional Transformer backbone:

  1. Edit Flows for Text: Instead of predicting the next token, OneFlow learns to insert tokens into a sequence. Using a continuous-time Markov chain (CTMC), the model iteratively refines a sequence by "filling in the blanks" based on confidence levels.
  2. Flow Matching for Images: For visual content, the model utilizes Flow Matching—a generalized form of diffusion—to transform Gaussian noise into clean image latents.
  3. Interleaved Time Schedule: The core innovation is a synchronized training schedule that aligns the "time" of text insertions with the "denoising time" of images. This allows the model to concurrently decide where to place an image and begin rendering it while simultaneously drafting the surrounding text.
OneFlow's concurrent generation process, where text and images emerge simultaneously from noise over time steps.

Because the model uses a bidirectional backbone, every token can "see" the entire context—past and future—during generation, leading to tighter integration between modalities.

Key Insights and Emergent Reasoning

A striking emergent behavior of OneFlow is its hierarchical reasoning. Because the model generates tokens based on confidence, it tends to produce structural, "easy" words first, while reserving "hard" tokens—such as the specific answer to a mathematical or visual puzzle—for later stages of the refinement process. This effectively allows the model to "think" and establish context before committing to a final answer.

Visual Question Answering (VQA) examples illustrating how OneFlow refines its reasoning and focus across multiple steps.

Furthermore, OneFlow demonstrates significant efficiency gains. By focusing on predicting missing or deleted information rather than every token in a fixed sequence, it requires approximately 50% fewer training FLOPs than equivalent AR models to achieve comparable performance.

Results and Performance

Evaluated across scales from 1B to 8B parameters, OneFlow exhibits superior scaling laws compared to AR baselines. Key results include:

  • VQA Superiority: The 1B OneFlow model matches the performance of much larger 8B models on visual understanding tasks, despite those larger models often benefiting from extensive reinforcement learning from human feedback (RLHF).
  • Prompt Alignment: On benchmarks like DPG-Bench, OneFlow shows high fidelity to complex prompts, benefiting from the application of Classifier-Free Guidance (CFG) to text generation—a technique typically reserved for image diffusion.
  • True Interleaved Generation: Qualitatively, OneFlow is the first to demonstrate "true" concurrency, where text adapts to images as they both emerge from noise.

Limitations and Future Work

The primary trade-off for OneFlow’s flexibility is the current lack of Key-Value (KV) caching. Unlike AR models that can cache previous computations, OneFlow's bidirectional nature requires re-processing the sequence during refinement, which can increase inference costs. Additionally, the field faces a bottleneck in the availability of high-quality, large-scale interleaved datasets. Future research will likely focus on optimizing bidirectional attention mechanisms to reduce computational overhead and further scaling the model's capabilities.

Summary updated

BibTeX
@misc{nguyen2025oneflow,
  author = {John Nguyen and Marton Havasi and Tariq Berrada and Luke Zettlemoyer and Ricky T. Q. Chen},
  title = {{OneFlow: Concurrent Mixed-Modal and Interleaved Generation with Edit Flows}},
  year = {2025},
  eprint = {2510.03506},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.03506},
}
Figure