Exploiting Discriminative Codebook Prior for Autoregressive Image Generation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Tang, Longxiang, Chu, Ruihang, Wang, Xiang, Han, Yujin, Wu, Pingyu, He, Chunming, Zhang, Yingya, Zhang, Shiwei, Jia, Jiaya
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916899372138496
author Tang, Longxiang
Chu, Ruihang
Wang, Xiang
Han, Yujin
Wu, Pingyu
He, Chunming
Zhang, Yingya
Zhang, Shiwei
Jia, Jiaya
author_facet Tang, Longxiang
Chu, Ruihang
Wang, Xiang
Han, Yujin
Wu, Pingyu
He, Chunming
Zhang, Yingya
Zhang, Shiwei
Jia, Jiaya
contents Advanced discrete token-based autoregressive image generation systems first tokenize images into sequences of token indices with a codebook, and then model these sequences in an autoregressive paradigm. While autoregressive generative models are trained only on index values, the prior encoded in the codebook, which contains rich token similarity information, is not exploited. Recent studies have attempted to incorporate this prior by performing naive k-means clustering on the tokens, helping to facilitate the training of generative models with a reduced codebook. However, we reveal that k-means clustering performs poorly in the codebook feature space due to inherent issues, including token space disparity and centroid distance inaccuracy. In this work, we propose the Discriminative Codebook Prior Extractor (DCPE) as an alternative to k-means clustering for more effectively mining and utilizing the token similarity information embedded in the codebook. DCPE replaces the commonly used centroid-based distance, which is found to be unsuitable and inaccurate for the token feature space, with a more reasonable instance-based distance. Using an agglomerative merging technique, it further addresses the token space disparity issue by avoiding splitting high-density regions and aggregating low-density ones. Extensive experiments demonstrate that DCPE is plug-and-play and integrates seamlessly with existing codebook prior-based paradigms. With the discriminative prior extracted, DCPE accelerates the training of autoregressive models by 42% on LlamaGen-B and improves final FID and IS performance.
format Preprint
id arxiv_https___arxiv_org_abs_2508_10719
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Exploiting Discriminative Codebook Prior for Autoregressive Image Generation
Tang, Longxiang
Chu, Ruihang
Wang, Xiang
Han, Yujin
Wu, Pingyu
He, Chunming
Zhang, Yingya
Zhang, Shiwei
Jia, Jiaya
Computer Vision and Pattern Recognition
Advanced discrete token-based autoregressive image generation systems first tokenize images into sequences of token indices with a codebook, and then model these sequences in an autoregressive paradigm. While autoregressive generative models are trained only on index values, the prior encoded in the codebook, which contains rich token similarity information, is not exploited. Recent studies have attempted to incorporate this prior by performing naive k-means clustering on the tokens, helping to facilitate the training of generative models with a reduced codebook. However, we reveal that k-means clustering performs poorly in the codebook feature space due to inherent issues, including token space disparity and centroid distance inaccuracy. In this work, we propose the Discriminative Codebook Prior Extractor (DCPE) as an alternative to k-means clustering for more effectively mining and utilizing the token similarity information embedded in the codebook. DCPE replaces the commonly used centroid-based distance, which is found to be unsuitable and inaccurate for the token feature space, with a more reasonable instance-based distance. Using an agglomerative merging technique, it further addresses the token space disparity issue by avoiding splitting high-density regions and aggregating low-density ones. Extensive experiments demonstrate that DCPE is plug-and-play and integrates seamlessly with existing codebook prior-based paradigms. With the discriminative prior extracted, DCPE accelerates the training of autoregressive models by 42% on LlamaGen-B and improves final FID and IS performance.
title Exploiting Discriminative Codebook Prior for Autoregressive Image Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2508.10719