AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Ni, Zanlin, Wang, Yulin, Zhou, Renping, Lu, Rui, Guo, Jiayi, Hu, Jinyi, Liu, Zhiyuan, Yao, Yuan, Huang, Gao
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913497863946240
author Ni, Zanlin
Wang, Yulin
Zhou, Renping
Lu, Rui
Guo, Jiayi
Hu, Jinyi
Liu, Zhiyuan
Yao, Yuan
Huang, Gao
author_facet Ni, Zanlin
Wang, Yulin
Zhou, Renping
Lu, Rui
Guo, Jiayi
Hu, Jinyi
Liu, Zhiyuan
Yao, Yuan
Huang, Gao
contents Recent studies have demonstrated the effectiveness of token-based methods for visual content generation. As a representative work, non-autoregressive Transformers (NATs) are able to synthesize images with decent quality in a small number of steps. However, NATs usually necessitate configuring a complicated generation policy comprising multiple manually-designed scheduling rules. These heuristic-driven rules are prone to sub-optimality and come with the requirements of expert knowledge and labor-intensive efforts. Moreover, their one-size-fits-all nature cannot flexibly adapt to the diverse characteristics of each individual sample. To address these issues, we propose AdaNAT, a learnable approach that automatically configures a suitable policy tailored for every sample to be generated. In specific, we formulate the determination of generation policies as a Markov decision process. Under this framework, a lightweight policy network for generation can be learned via reinforcement learning. Importantly, we demonstrate that simple reward designs such as FID or pre-trained reward models, may not reliably guarantee the desired quality or diversity of generated samples. Therefore, we propose an adversarial reward design to guide the training of policy networks effectively. Comprehensive experiments on four benchmark datasets, i.e., ImageNet-256 & 512, MS-COCO, and CC3M, validate the effectiveness of AdaNAT. Code and pre-trained models will be released at https://github.com/LeapLabTHU/AdaNAT.
format Preprint
id arxiv_https___arxiv_org_abs_2409_00342
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation
Ni, Zanlin
Wang, Yulin
Zhou, Renping
Lu, Rui
Guo, Jiayi
Hu, Jinyi
Liu, Zhiyuan
Yao, Yuan
Huang, Gao
Computer Vision and Pattern Recognition
Recent studies have demonstrated the effectiveness of token-based methods for visual content generation. As a representative work, non-autoregressive Transformers (NATs) are able to synthesize images with decent quality in a small number of steps. However, NATs usually necessitate configuring a complicated generation policy comprising multiple manually-designed scheduling rules. These heuristic-driven rules are prone to sub-optimality and come with the requirements of expert knowledge and labor-intensive efforts. Moreover, their one-size-fits-all nature cannot flexibly adapt to the diverse characteristics of each individual sample. To address these issues, we propose AdaNAT, a learnable approach that automatically configures a suitable policy tailored for every sample to be generated. In specific, we formulate the determination of generation policies as a Markov decision process. Under this framework, a lightweight policy network for generation can be learned via reinforcement learning. Importantly, we demonstrate that simple reward designs such as FID or pre-trained reward models, may not reliably guarantee the desired quality or diversity of generated samples. Therefore, we propose an adversarial reward design to guide the training of policy networks effectively. Comprehensive experiments on four benchmark datasets, i.e., ImageNet-256 & 512, MS-COCO, and CC3M, validate the effectiveness of AdaNAT. Code and pre-trained models will be released at https://github.com/LeapLabTHU/AdaNAT.
title AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2409.00342