SnapGen:通过高效架构与训练适配移动设备的高分辨率文本生成图像模型
SnapGen: Taming High-Resolution Text-to-Image Models for Mobile Devices with Efficient Architectures and Training
AI总结:
针对现有文本生成图像扩散模型在移动设备上体积大、速度慢、质量低的问题,提出SnapGen模型,通过高效架构设计、跨架构知识蒸馏与对抗引导结合,实现移动端高速高分辨率高质量生成,性能超越数十亿参数的大模型。
摘要:
现有文本生成图像(T2I)扩散模型存在诸多局限,包括模型体积大、运行速度慢以及在移动设备上生成质量低等问题。本文旨在应对所有这些挑战,开发一款极小且高速的T2I模型,可在移动平台上生成高分辨率、高质量的图像。我们提出多项技术以实现该目标:首先,系统研究网络架构的设计选型,在保证生成质量的同时减少模型参数并降低延迟;其次,为进一步提升生成质量,采用来自更大模型的跨架构知识蒸馏,通过多层次方法从零开始引导我们的模型训练;第三,将对抗性引导与知识蒸馏相结合,实现少步数生成。我们的SnapGen模型首次实现在移动设备上约1.4秒生成1024x1024像素的图像。在ImageNet-1K数据集上,仅372M参数的模型生成256x256像素图像的FID值达到2.06。在T2I基准测试(即GenEval和DPG-Bench)上,仅379M参数的模型以显著更小的体积(例如比SDXL小7倍,比IF-XL小14倍)超越了拥有数十亿参数的大规模模型。
英文摘要:
Existing text-to-image (T2I) diffusion models face several limitations, including large model sizes, slow runtime, and low-quality generation on mobile devices. This paper aims to address all of these challenges by developing an extremely small and fast T2I model that generates high-resolution and high-quality images on mobile platforms. We propose several techniques to achieve this goal. First, we systematically examine the design choices of the network architecture to reduce model parameters and latency, while ensuring high-quality generation. Second, to further improve generation quality, we employ cross-architecture knowledge distillation from a much larger model, using a multi-level approach to guide the training of our model from scratch. Third, we enable a few-step generation by integrating adversarial guidance with knowledge distillation. For the first time, our model SnapGen, demonstrates the generation of 1024x1024 px images on a mobile device around 1.4 seconds. On ImageNet-1K, our model, with only 372M parameters, achieves an FID of 2.06 for 256x256 px generation. On T2I benchmarks (i.e., GenEval and DPG-Bench), our model with merely 379M parameters, surpasses large-scale models with billions of parameters at a significantly smaller size (e.g., 7x smaller than SDXL, 14x smaller than IF-XL).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。