arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.10629cs.CV
收藏

SANA:基于线性扩散Transformer的高效高分辨率图像合成

SANA: Efficient High-Resolution Image Synthesis with Linear Diffusion Transformers

MIT(麻省理工学院);Tsinghua University(清华大学);NVIDIA(英伟达)

Enze Xie, Junsong Chen, Junyu Chen, Han Cai, Haotian Tang, Yujun Lin, Zhekai Zhang, Muyang Li, Ligeng Zhu, Yao Lu, Song Han

AI总结:

Sana通过深度压缩自编码器、线性DiT、仅解码器文本编码器和高效采样策略,实现高分辨率图像生成,在性能上以更小模型规模和更快速度媲美巨型扩散模型。

摘要:

我们提出了Sana,一个文本到图像框架,能够高效生成高达4096×4096分辨率的图像。Sana可以以极快的速度合成高分辨率、高质量且文本-图像对齐性强的图像,并可部署在笔记本电脑GPU上。核心设计包括:(1)深度压缩自编码器:不同于传统自编码器仅将图像压缩8倍,我们训练了一个可将图像压缩32倍的自编码器,有效减少了潜在token的数量。(2)线性DiT:我们将DiT中所有普通注意力替换为线性注意力,在高分辨率下更高效且不牺牲质量。(3)仅解码器文本编码器:我们用现代仅解码器小型大语言模型替换T5作为文本编码器,并设计了复杂的人类指令与上下文学习来增强图像-文本对齐。(4)高效训练与采样:我们提出Flow-DPM-Solver以减少采样步数,并通过高效的标注筛选与选择加速收敛。因此,Sana-0.6B与现代巨型扩散模型(如Flux-12B)相比具有很强的竞争力,体积小20倍,实测吞吐量快100倍以上。此外,Sana-0.6B可部署在16GB笔记本电脑GPU上,生成1024×1024分辨率图像不到1秒。Sana使内容创作成本更低。代码和模型将公开发布。

英文摘要:

We introduce Sana, a text-to-image framework that can efficiently generate images up to 4096$\times$4096 resolution. Sana can synthesize high-resolution, high-quality images with strong text-image alignment at a remarkably fast speed, deployable on laptop GPU. Core designs include: (1) Deep compression autoencoder: unlike traditional AEs, which compress images only 8$\times$, we trained an AE that can compress images 32$\times$, effectively reducing the number of latent tokens. (2) Linear DiT: we replace all vanilla attention in DiT with linear attention, which is more efficient at high resolutions without sacrificing quality. (3) Decoder-only text encoder: we replaced T5 with modern decoder-only small LLM as the text encoder and designed complex human instruction with in-context learning to enhance the image-text alignment. (4) Efficient training and sampling: we propose Flow-DPM-Solver to reduce sampling steps, with efficient caption labeling and selection to accelerate convergence. As a result, Sana-0.6B is very competitive with modern giant diffusion model (e.g. Flux-12B), being 20 times smaller and 100+ times faster in measured throughput. Moreover, Sana-0.6B can be deployed on a 16GB laptop GPU, taking less than 1 second to generate a 1024$\times$1024 resolution image. Sana enables content creation at low cost. Code and model will be publicly released.

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

↑