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

FlowTok: Flowing Seamlessly Across Text and Image Tokens

Ju He, Qihang Yu, Qihao Liu, Liang-Chieh Chen · OpenReview

Abstract

Bridging different modalities lies at the heart of cross-modality generation. While conventional approaches treat the text modality as a conditioning signal that gradually guides the denoising process from Gaussian noise to the target image modality, we explore a much simpler paradigm—directly evolving between text and image modalities through flow matching. This requires projecting both modalities into a shared latent space, which poses a significant challenge due to their inherently different representations: text is highly semantic and encoded as 1D tokens, whereas images are spatially redundant and represented as 2D latent embeddings. To address this, we introduce FlowTok, a minimal framework that seamlessly flows across text and images by encoding images into a compact 1D token representation. Compared to prior methods, this design reduces the latent space size by 3.3x at an image resolution of 256, eliminating the need for complex conditioning mechanisms or noise scheduling. Moreover, FlowTok naturally extends to image-to-text generation under the same formulation. With its streamlined architecture centered around compact 1D tokens, FlowTok is highly memory-efficient, requires significantly fewer training resources, and achieves much faster sampling speeds—all while delivering performance comparable to state-of-the-art models. Code is available at https://github.com/bytedance/1d-tokenizer.

Introduction

Most modern text-to-image (T2I) models, such as Stable Diffusion, treat text as a "conditioning signal." In this paradigm, the model starts with random Gaussian noise and uses the text to gradually guide a denoising process. This requires complex architectures, such as cross-attention layers, and intricate noise scheduling. While some researchers have attempted to simplify this using "flow matching"—a method that learns a direct path between two distributions—they often struggle with the structural mismatch between modalities. Text is typically represented as 1D sequences, while images are represented as 2D grids. FlowTok addresses this by treating everything as 1D tokens and flowing between them directly.

Methodology

FlowTok’s efficiency stems from its commitment to a unified 1D representation for both text and images. The framework employs a 1D visual tokenizer (based on TA-TiTok) to encode an image into a compact sequence of just 77 tokens. Simultaneously, a lightweight "Text Projector" maps high-dimensional CLIP text embeddings into the exact same 1D space.

Conceptual comparison between traditional text-conditioned generation and FlowTok's direct flow between modalities.

Because both text and images share the same shape (77 tokens × 16 dimensions), the model can "flow" directly from text tokens to image tokens. This removes the need for cross-attention; the model simply learns the velocity required to transform one 1D sequence into the other. To ensure that reducing the text's dimensionality does not lose its meaning, an auxiliary CLIP-style contrastive alignment loss is introduced to keep the projected text tokens semantically tethered to the original prompt.

Key Results

FlowTok achieves state-of-the-art image quality with significantly lower overhead. FlowTok-XL achieves a throughput of 22.7 images per second on a single A100 GPU, which is over 10x faster than competing unified models like Show-o or CrossFlow.

FlowTok performance metrics: (a) FID vs. Training Costs and (b) FID vs. Inference Speed.

Training efficiency is equally impressive. The largest model, FlowTok-H (1.1B parameters), finished training in just 26.1 8-A100 days. For comparison, Stable Diffusion 2.1 required over 1,000 8-A100 days. On the MJHQ-30K aesthetic benchmark, FlowTok-H achieved an FID of 7.15, outperforming SDXL (8.76) and PixArt-α (9.85). Furthermore, the framework is naturally reversible, allowing for high-performance image captioning (image-to-text) under the same formulation.

Conclusion

FlowTok demonstrates that a compact 1D token representation is sufficient for high-fidelity cross-modal generation. By simplifying the generative process into a direct flow between modalities, it achieves significant gains in speed and training efficiency. Future work will explore scaling this 1D paradigm to higher resolutions and extending it to other modalities like video and audio.

Summary updated

BibTeX
@inproceedings{he2025flowtok,
  author = {Ju He and Qihang Yu and Qihao Liu and Liang-Chieh Chen},
  title = {{FlowTok: Flowing Seamlessly Across Text and Image Tokens}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure