arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.02705cs.CV
收藏

ControlAR:基于自回归模型的可控图像生成

ControlAR: Controllable Image Generation with Autoregressive Models

School of EIC, Huazhong University of Science and Technology(华中科技大学电子信息与通信学院);The University of Hong Kong(香港大学);vivo AI Lab(vivo人工智能实验室)

Zongming Li, Tianheng Cheng, Shoufa Chen, Peize Sun, Haocheng Shen, Longjin Ran, Xiaoxin Chen, Wenyu Liu, Xinggang Wang

AI总结:

本文提出ControlAR框架,通过轻量级控制编码器和条件解码方法将空间控制高效集成到自回归图像生成模型中,在边缘、深度和分割掩码等控制任务上超越了ControlNet++等扩散模型。

摘要:

自回归(AR)模型已将图像生成重新表述为下一令牌预测,展现出显著潜力,并成为扩散模型的有力竞争者。然而,类似于ControlNet的控制到图像生成在AR模型中仍基本未被探索。尽管受大语言模型进展启发,一种自然的方法是将控制图像令牌化,并在解码图像令牌之前将其预填充到自回归模型中,但该方法在生成质量上仍不及ControlNet,且效率较低。为此,我们提出ControlAR,一个将空间控制高效且有效地集成到自回归图像生成模型中的框架。首先,我们探索了AR模型的控制编码,并提出一个轻量级控制编码器,将空间输入(如Canny边缘或深度图)转换为控制令牌。然后,ControlAR利用条件解码方法,在控制令牌与图像令牌逐令牌融合的条件下生成下一个图像令牌,类似于位置编码。与预填充令牌相比,使用条件解码显著增强了AR模型的控制能力,同时保持了模型效率。此外,所提出的ControlAR令人惊讶地赋予AR模型通过条件解码和特定控制进行任意分辨率图像生成的能力。大量实验证明了所提出的ControlAR在自回归控制到图像生成中跨多种输入(包括边缘、深度和分割掩码)的可控性。此外,定量和定性结果均表明,ControlAR超越了先前最先进的可控扩散模型,例如ControlNet++。代码、模型和演示将很快在https://github.com/hustvl/ControlAR上提供。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑