Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

AlignTok: Aligning Visual Foundation Encoders to Tokenizers for Diffusion Models

About

In this work, we propose aligning pretrained visual encoders to serve as tokenizers for latent diffusion models in image generation. Unlike training a variational autoencoder (VAE) from scratch, which primarily emphasizes low-level details, our approach leverages the rich semantic structure of foundation encoders. We introduce a three-stage alignment strategy called AlignTok: (1) freeze the encoder and train an adapter and a decoder to establish a semantic latent space; (2) jointly optimize all components with an additional semantic preservation loss, enabling the encoder to capture perceptual details while retaining high-level semantics; and (3) refine the decoder for improved reconstruction quality. This alignment yields semantically rich image tokenizers that benefit diffusion models. On ImageNet 256$\times$256, our tokenizer accelerates the convergence of diffusion models, reaching a gFID of 1.90 within just 64 epochs, and improves generation both with and without classifier-free guidance. Scaling to LAION, text-to-image models trained with our tokenizer consistently outperforms FLUX VAE and VA-VAE under the same training steps. Overall, our method is simple, scalable, and establishes a semantically grounded paradigm for continuous tokenizer design.

Bowei Chen, Sai Bi, Hao Tan, He Zhang, Tianyuan Zhang, Zhengqi Li, Yuanjun Xiong, Jianming Zhang, Kai Zhang• 2025

Related benchmarks

TaskDatasetResultRank
Class-conditional Image GenerationImageNet 256x256
Inception Score (IS)308.4
441
Class-conditional Image GenerationImageNet 256x256 (train)
IS293.6
305
Text-to-Image GenerationGenEval (test)
Two Obj. Acc70.2
169
Image ReconstructionImageNet 256x256
rFID0.26
93
Text-to-Image GenerationCoco Prompt 6K 2014 (test)
rFID0.191
4
Text-to-Image GenerationParti Prompt 2022 (test)
rFID0.191
4
Text-to-Image GenerationHPSv2 Prompt 2023 (test)
rFID0.191
4
Text-to-Image GenerationParti Prompt
rFID0.443
4
Text-to-Image GenerationHPSv2 Prompt
rFID0.443
4
Text-to-Image GenerationCoco Prompt 6K
rFID0.443
4
Showing 10 of 10 rows

Other info

Follow for update