STARFlow2: Bridging Language Models and Normalizing Flows for Unified Multimodal Generation

Ying Shen, Tianrong Chen, Yuan Gao, Yizhe Zhang, Yuyang Wang, Miguel Ángel Bautista, Shuangfei Zhai, Joshua M. Susskind, Jiatao Gu

TL;DR

STARFlow2 presents a novel unified multimodal architecture that bridges large language models (LLMs) and normalizing flows, enabling seamless generation of interleaved text and images. By employing a "Pretzel" architecture that vertically interleaves these components and leveraging autoregressive normalizing flows, STARFlow2 achieves high-fidelity image generation, preserves multimodal understanding, and allows for efficient, single-pass generation without iterative denoising.

What Problem Does This Paper Address?

Current "unified" multimodal models, designed to understand, reason over, and generate interleaved text-image sequences, often suffer from structural fragmentation. Existing approaches either:

  • Sacrifice visual fidelity: By tokenizing images into discrete units, which leads to information loss and degraded image quality.
  • Impose structural asymmetry: Combining causal text generation (like LLMs) with iterative diffusion-based denoising for images creates different generation mechanisms. This means generated images can't directly enter the LLM's context (KV-cache) without a costly re-encoding step.
  • Degrade pretrained understanding: Adapting vision-language models (VLMs) for generation can sometimes harm their original understanding capabilities.

The authors aim to create a truly unified model that addresses these issues, offering high-fidelity continuous image generation, preserving multimodal understanding, and achieving structural unification under a single, causal generation mechanism.

Methods

The core of STARFlow2 is the Pretzel architecture, which vertically interleaves two streams:

  1. Pretrained Vision-Language Model (VLM) Stream: This stream, initialized from a powerful pretrained VLM (like Qwen2.5-VL-7B), handles language modeling and multimodal understanding. It's kept frozen to preserve its original capabilities.
  2. TARFlow Stream: This stream uses autoregressive normalizing flows (AFs), parameterized by causal Transformers. AFs are known for their ability to generate continuous visual data with high fidelity and, crucially, share the same causal mask, KV-cache mechanism, and left-to-right structure as LLMs. This makes them a natural fit for unified generation.

These two streams are connected via residual skip connections. This design allows information exchange at every position, enabling the TARFlow stream to access rich VLM representations while the VLM benefits from multimodal corrections.

STARFlow2 also incorporates a deep-shallow flow design (borrowed from STARFlow) to factorize visual generation into global multimodal modeling (deep stream) and local refinement (shallow streams). This helps capture complex visual distributions efficiently.

The model is trained in three stages:

  • Stage 1 (Text-to-Image Generation): Trains the TARFlow stream and shallow blocks for image generation, keeping the VLM frozen.
  • Stage 2 (Multimodal Understanding): Aligns the visual representation with the VLM by training an adapter, freezing the VLM and shallow blocks.
  • Stage 3 (Interleaved Training): Activates the vertical skip connections and jointly trains all components on a mixture of understanding, generation, editing, and interleaved tasks.

Datasets

STARFlow2 is trained on a combination of large-scale datasets:

  • Text-to-Image Generation (Stage 1): An in-house dataset, CC12M, and JourneyDB (totaling ~800M pairs).
  • Multimodal Understanding (Stage 2): CC12M and Cambrian-7M (~200M examples).
  • Interleaved Tasks (Stage 3): A broader mix including the in-house dataset, BLIP3-0-60K, Cambrian-7M, CoMM, Pico-Banana, OmniEdit, and Zebra-CoT (~80M examples).

Evaluation is performed on standard benchmarks for multimodal understanding (MME-P, GQA, SEED, MMBench, MMMU, AI2D) and text-to-image generation (GenEval, DPG-Bench).

Key Insights and Ideas

  • Autoregressive Normalizing Flows as the Unifier: The paper strongly advocates for autoregressive normalizing flows as the ideal paradigm for unified multimodal generation. Their inherent compatibility with LLM architectures (causal mask, KV-cache) directly addresses the structural asymmetry problem.
  • The "Pretzel" Architecture's Advantage: Vertically interleaving a frozen VLM with a trainable TARFlow stream via skip connections is key. This design preserves the VLM's understanding capabilities while allowing for rich cross-modal interaction, outperforming "Mixture-of-Transformers" (MoT) approaches that horizontally separate modalities.
  • Preserving VLM Understanding is Crucial: The authors highlight that freezing the VLM is essential to avoid degrading its pretrained multimodal perception and reasoning abilities, a common pitfall in other methods.
  • Cache-Friendly Interleaved Generation: By using the same causal mechanism, STARFlow2 enables text and visual outputs to directly enter the KV-cache without re-encoding, leading to more efficient and flexible interleaved generation.

Key Results

  • Strong Multimodal Understanding: STARFlow2 achieves competitive performance on various multimodal understanding benchmarks, demonstrating that integrating the TARFlow stream does not compromise the frozen VLM's capabilities.
  • High-Fidelity Image Generation: The model achieves good results on text-to-image generation benchmarks like GenEval (0.82) and DPG-Bench (84.14), validating the quality of images generated by normalizing flows.
  • Improved Generation via Joint Training: Jointly training all components in Stage 3 significantly improves text-to-image generation performance, with relative gains of 60.8% on GenEval and 3.6% on DPG-Bench compared to Stage 1.
  • Qualitative Success: Examples show STARFlow2 can follow editing instructions, modify local attributes, and adjust visual content while preserving overall scene structure, demonstrating its versatility.

Limitations and Future Work

  • Multi-Stage Training Complexity: The current multi-stage training pipeline, while effective, introduces complexity. Future work aims to optimize all components end-to-end for better integration.
  • FAE Encoder Constraints: The image resolution and visual quality are currently limited by the pretrained FAE encoder. Future directions include replacing it with more native visual representations to improve fine-grained fidelity.
  • State-of-the-Art Performance: While strong, STARFlow2 is not yet state-of-the-art on all benchmarks. Future work will focus on scaling data, improving training stability, enhancing visual representation learning, and extending context length.

Summary updated

BibTeX
@inproceedings{shen2026starflow,
  author = {Ying Shen and Tianrong Chen and Yuan Gao and Yizhe Zhang and Yuyang Wang and Miguel Ángel Bautista and Shuangfei Zhai and Joshua M. Susskind and Jiatao Gu},
  title = {{STARFlow2: Bridging Language Models and Normalizing Flows for Unified Multimodal Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=L7AuyR68b3},
}
Figure