FlowTok: Flowing Seamlessly Across Text and Image Tokens

Ju He, Qihang Yu, Qihao Liu, Liang-Chieh Chen
3/13/2025
cs.CV

Official code: TACJu/FlowTok (18 stars, Apache-2.0, last commit 2025-11-26). 1 more implementation below.

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/TACJu/FlowTok.

View on arXivView PDF

Code Implementations(2)

TACJu/FlowTokOfficial100%
Apache-2.0

PyTorch re-implementation of FlowTok: Flowing Seamlessly Across Text and Image Tokens

183Shell, PythonOct 19, 202510 months agoApache-2.0
Apache-2.0

This repo contains the code for 1D tokenizer and generator

1,17670Python, Jupyter NotebookJun 21, 20241 years agoApache-2.0
research

Similar Papers

Cite this paper

@article{he2025flowtok,
  title  = {FlowTok: Flowing Seamlessly Across Text and Image Tokens},
  author = {Ju He and Qihang Yu and Qihao Liu and Liang-Chieh Chen},
  year   = {2025},
  eprint = {2503.10772},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.10772v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.10772.svg)](https://codeofpaper.com/paper/2503.10772)

Discussion