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

Lformer:L形块并行解码的文本到图像生成

Lformer: Text-to-Image Generation with L-shape Block Parallel Decoding

Zhejiang University(浙江大学);Huawei(华为);University of Science and Technology of China(中国科学技术大学)

Jiacheng Li, Longhui Wei, ZongYuan Zhan, Xin He, Siliang Tang, Qi Tian, Yueting Zhuang

摘要:

生成Transformers在合成高保真和高分辨率图像方面显示出其优越性,例如良好的多样性和训练稳定性。然而,他们遭受的问题,缓慢的生成,因为他们需要产生一个长的令牌序列自回归。为了更好地加速生成Transformers,同时保持良好的生成质量,我们提出了Lformer,一个半自回归的文本到图像生成模型。Lformer首先将图像编码成离散的$h{\times}h$符号,然后将这些符号从左上到右下分成镜像的$h$ L形块,并在每一步中将符号解码成块矩阵。Lformer像自回归模型一样预测与先前上下文相邻的区域,因此在加速时更稳定。通过利用图像令牌的2D结构,Lformer实现了比现有的基于transformer的方法更快的速度,同时保持了良好的生成质量。此外,预训练的Lformer可以编辑图像,而无需微调。我们可以回滚到早期的步骤进行再生或使用限界框和文本提示编辑图像。

英文摘要:

Generative transformers have shown their superiority in synthesizing high-fidelity and high-resolution images, such as good diversity and training stability. However, they suffer from the problem of slow generation since they need to generate a long token sequence autoregressively. To better accelerate the generative transformers while keeping good generation quality, we propose Lformer, a semi-autoregressive text-to-image generation model. Lformer firstly encodes an image into $h{\times}h$ discrete tokens, then divides these tokens into $h$ mirrored L-shape blocks from the top left to the bottom right and decodes the tokens in a block parallelly in each step. Lformer predicts the area adjacent to the previous context like autoregressive models thus it is more stable while accelerating. By leveraging the 2D structure of image tokens, Lformer achieves faster speed than the existing transformer-based methods while keeping good generation quality. Moreover, the pretrained Lformer can edit images without the requirement for finetuning. We can roll back to the early steps for regeneration or edit the image with a bounding box and a text prompt.

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

↑