ControlAR: Controllable Image Generation with Autoregressive Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Zongming, Cheng, Tianheng, Chen, Shoufa, Sun, Peize, Shen, Haocheng, Ran, Longjin, Chen, Xiaoxin, Liu, Wenyu, Wang, Xinggang
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913726416814080
author Li, Zongming
Cheng, Tianheng
Chen, Shoufa
Sun, Peize
Shen, Haocheng
Ran, Longjin
Chen, Xiaoxin
Liu, Wenyu
Wang, Xinggang
author_facet Li, Zongming
Cheng, Tianheng
Chen, Shoufa
Sun, Peize
Shen, Haocheng
Ran, Longjin
Chen, Xiaoxin
Liu, Wenyu
Wang, Xinggang
contents Autoregressive (AR) models have reformulated image generation as next-token prediction, demonstrating remarkable potential and emerging as strong competitors to diffusion models. However, control-to-image generation, akin to ControlNet, remains largely unexplored within AR models. Although a natural approach, inspired by advancements in Large Language Models, is to tokenize control images into tokens and prefill them into the autoregressive model before decoding image tokens, it still falls short in generation quality compared to ControlNet and suffers from inefficiency. To this end, we introduce ControlAR, an efficient and effective framework for integrating spatial controls into autoregressive image generation models. Firstly, we explore control encoding for AR models and propose a lightweight control encoder to transform spatial inputs (e.g., canny edges or depth maps) into control tokens. Then ControlAR exploits the conditional decoding method to generate the next image token conditioned on the per-token fusion between control and image tokens, similar to positional encodings. Compared to prefilling tokens, using conditional decoding significantly strengthens the control capability of AR models but also maintains the model's efficiency. Furthermore, the proposed ControlAR surprisingly empowers AR models with arbitrary-resolution image generation via conditional decoding and specific controls. Extensive experiments can demonstrate the controllability of the proposed ControlAR for the autoregressive control-to-image generation across diverse inputs, including edges, depths, and segmentation masks. Furthermore, both quantitative and qualitative results indicate that ControlAR surpasses previous state-of-the-art controllable diffusion models, e.g., ControlNet++. Code, models, and demo will soon be available at https://github.com/hustvl/ControlAR.
format Preprint
id arxiv_https___arxiv_org_abs_2410_02705
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ControlAR: Controllable Image Generation with Autoregressive Models
Li, Zongming
Cheng, Tianheng
Chen, Shoufa
Sun, Peize
Shen, Haocheng
Ran, Longjin
Chen, Xiaoxin
Liu, Wenyu
Wang, Xinggang
Computer Vision and Pattern Recognition
Autoregressive (AR) models have reformulated image generation as next-token prediction, demonstrating remarkable potential and emerging as strong competitors to diffusion models. However, control-to-image generation, akin to ControlNet, remains largely unexplored within AR models. Although a natural approach, inspired by advancements in Large Language Models, is to tokenize control images into tokens and prefill them into the autoregressive model before decoding image tokens, it still falls short in generation quality compared to ControlNet and suffers from inefficiency. To this end, we introduce ControlAR, an efficient and effective framework for integrating spatial controls into autoregressive image generation models. Firstly, we explore control encoding for AR models and propose a lightweight control encoder to transform spatial inputs (e.g., canny edges or depth maps) into control tokens. Then ControlAR exploits the conditional decoding method to generate the next image token conditioned on the per-token fusion between control and image tokens, similar to positional encodings. Compared to prefilling tokens, using conditional decoding significantly strengthens the control capability of AR models but also maintains the model's efficiency. Furthermore, the proposed ControlAR surprisingly empowers AR models with arbitrary-resolution image generation via conditional decoding and specific controls. Extensive experiments can demonstrate the controllability of the proposed ControlAR for the autoregressive control-to-image generation across diverse inputs, including edges, depths, and segmentation masks. Furthermore, both quantitative and qualitative results indicate that ControlAR surpasses previous state-of-the-art controllable diffusion models, e.g., ControlNet++. Code, models, and demo will soon be available at https://github.com/hustvl/ControlAR.
title ControlAR: Controllable Image Generation with Autoregressive Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.02705