AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation

Zanlin Ni, Yulin Wang, Renping Zhou, Rui Lu, Jiayi Guo +4 more
9/1/2024

No official code found. Best implementation: LeapLabTHU/AdaNAT (37 stars, last commit 2024-09-12).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

LeapLabTHU/AdaNATCommunity100%

[ECCV 2024] AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation

371C++, CudaSep 4, 20242 years ago

Similar Papers

Cite this paper

@article{ni2024adanat,
  title  = {AdaNAT: Exploring Adaptive Policy for Token-Based Image Generation},
  author = {Zanlin Ni and Yulin Wang and Renping Zhou and Rui Lu and Jiayi Guo and Jinyi Hu and Zhiyuan Liu and Yuan Yao and Gao Huang},
  year   = {2024},
  eprint = {2409.00342},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2409.00342},
  journal = {ECCV 2024 2024}
}

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/2409.00342.svg)](https://codeofpaper.com/paper/2409.00342)

Discussion