This repo hosts the code and models for the following projects:
FlowTok: FlowTok: Flowing Seamlessly Across Text and Image Tokens
TA-TiTok & MaskGen: Democratizing Text-to-Image Masked Generative Models with Compact Text-Aware One-Dimensional Tokens
TiTok: An Image is Worth 32 Tokens for Reconstruction and Generation
We introduce TA-TiTok, a novel text-aware transformer-based 1D tokenizer designed to handle both discrete and continuous tokens while effectively aligning reconstructions with textual descriptions. Building on TA-TiTok, we present MaskGen, a versatile text-to-image masked generative model framework. Trained exclusively on open data, MaskGen demonstrates outstanding performance: with 32 continuous tokens, it achieves a FID score of 6.53 on MJHQ-30K, and with 128 discrete tokens, it attains an overall score of 0.57 on GenEval.
See more details at README_MaskGen.
RAR is a an autoregressive (AR) image generator with full compatibility to language modeling. It introduces a randomness annealing strategy with permuted objective at no additional cost, which enhances the model's ability to learn bidirectional contexts while leaving the autoregressive framework intact. RAR sets a FID score 1.48, demonstrating state-of-the-art performance on ImageNet-256 benchmark and significantly outperforming prior AR image generators.
See more details at README_RAR.
We present a compact 1D tokenizer which can represent an image with as few as 32 discrete tokens. As a result, it leads to a substantial speed-up on the sampling process (e.g., 410 × faster than DiT-XL/2) while obtaining a competitive generation quality.
See more details at README_TiTok.
pip3 install -r requirements.txt
If you use our work in your research, please use the following BibTeX entry.
@article{he2025flowtok,
author = {Ju He and Qihang Yu and Qihao Liu and Liang-Chieh Chen},
title = {FlowTok: Flowing Seamlessly Across Text and Image Tokens},
journal = {arXiv preprint arXiv:2503.10772},
year = {2025}
}
@article{kim2025democratizing,
author = {Dongwon Kim and Ju He and Qihang Yu and Chenglin Yang and Xiaohui Shen and Suha Kwak and Liang-Chieh Chen},
title = {Democratizing Text-to-Image Masked Generative Models with Compact Text-Aware One-Dimensional Tokens},
journal = {arXiv preprint arXiv:2501.07730},
year = {2025}
}
@article{yu2024randomized,
author = {Qihang Yu and Ju He and Xueqing Deng and Xiaohui Shen and Liang-Chieh Chen},
title = {Randomized Autoregressive Visual Generation},
journal = {arXiv preprint arXiv:2411.00776},
year = {2024}
}
@article{yu2024an,
author = {Qihang Yu and Mark Weber and Xueqing Deng and Xiaohui Shen and Daniel Cremers and Liang-Chieh Chen},
title = {An Image is Worth 32 Tokens for Reconstruction and Generation},
journal = {NeurIPS},
year = {2024}
}
Jupyter Notebook
56.6%
Python
41.8%
Shell
1.6%
This repo hosts the code and models for the following projects:
FlowTok: FlowTok: Flowing Seamlessly Across Text and Image Tokens
TA-TiTok & MaskGen: Democratizing Text-to-Image Masked Generative Models with Compact Text-Aware One-Dimensional Tokens
TiTok: An Image is Worth 32 Tokens for Reconstruction and Generation
We introduce TA-TiTok, a novel text-aware transformer-based 1D tokenizer designed to handle both discrete and continuous tokens while effectively aligning reconstructions with textual descriptions. Building on TA-TiTok, we present MaskGen, a versatile text-to-image masked generative model framework. Trained exclusively on open data, MaskGen demonstrates outstanding performance: with 32 continuous tokens, it achieves a FID score of 6.53 on MJHQ-30K, and with 128 discrete tokens, it attains an overall score of 0.57 on GenEval.
See more details at README_MaskGen.
RAR is a an autoregressive (AR) image generator with full compatibility to language modeling. It introduces a randomness annealing strategy with permuted objective at no additional cost, which enhances the model's ability to learn bidirectional contexts while leaving the autoregressive framework intact. RAR sets a FID score 1.48, demonstrating state-of-the-art performance on ImageNet-256 benchmark and significantly outperforming prior AR image generators.
See more details at README_RAR.
We present a compact 1D tokenizer which can represent an image with as few as 32 discrete tokens. As a result, it leads to a substantial speed-up on the sampling process (e.g., 410 × faster than DiT-XL/2) while obtaining a competitive generation quality.
See more details at README_TiTok.
pip3 install -r requirements.txt
If you use our work in your research, please use the following BibTeX entry.
@article{he2025flowtok,
author = {Ju He and Qihang Yu and Qihao Liu and Liang-Chieh Chen},
title = {FlowTok: Flowing Seamlessly Across Text and Image Tokens},
journal = {arXiv preprint arXiv:2503.10772},
year = {2025}
}
@article{kim2025democratizing,
author = {Dongwon Kim and Ju He and Qihang Yu and Chenglin Yang and Xiaohui Shen and Suha Kwak and Liang-Chieh Chen},
title = {Democratizing Text-to-Image Masked Generative Models with Compact Text-Aware One-Dimensional Tokens},
journal = {arXiv preprint arXiv:2501.07730},
year = {2025}
}
@article{yu2024randomized,
author = {Qihang Yu and Ju He and Xueqing Deng and Xiaohui Shen and Liang-Chieh Chen},
title = {Randomized Autoregressive Visual Generation},
journal = {arXiv preprint arXiv:2411.00776},
year = {2024}
}
@article{yu2024an,
author = {Qihang Yu and Mark Weber and Xueqing Deng and Xiaohui Shen and Daniel Cremers and Liang-Chieh Chen},
title = {An Image is Worth 32 Tokens for Reconstruction and Generation},
journal = {NeurIPS},
year = {2024}
}
Jupyter Notebook
56.6%
Python
41.8%
Shell
1.6%