arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.06879cs.CVcs.AI
收藏

NanoFLUX:基于知识蒸馏的大型文本到图像生成模型压缩方法用于移动设备

NanoFLUX: Distillation-Driven Compression of Large Text-to-Image Generation Models for Mobile Devices

Samsung AI Center, Cambridge(三星人工智能中心,剑桥)

Ruchika Chavhan, Malcolm Chadwick, Alberto Gil Couto Pimentel Ramos, Luca Morreale, Mehdi Noroozi, Abhinav Mehrotra

AI总结:

NanoFLUX通过知识蒸馏和渐进压缩技术,将大型文本到图像生成模型压缩至2.4B,实现移动设备上的高质量图像生成。

摘要:

尽管大规模文本到图像扩散模型在视觉质量上持续提升,但其规模不断扩大,加剧了最先进模型与设备端解决方案之间的差距。为解决这一差距,我们引入了NanoFLUX,这是一种从17B FLUX.1-Schnell通过渐进压缩管道进行知识蒸馏得到的2.4B文本到图像流匹配模型。我们的贡献包括:(1)一种由扩散变压器中冗余组件剪枝驱动的模型压缩策略,将模型大小从12B减少到2B;(2)一种基于ResNet的标记下采样机制,通过允许中间块在低分辨率标记上操作,从而降低延迟,同时在其他地方保留高分辨率处理;(3)一种新的文本编码器蒸馏方法,利用去噪器在采样过程中早期层的视觉信号。实验表明,NanoFLUX在移动设备上大约2.5秒内即可生成512x512图像,证明了高质量设备端文本到图像生成的可行性。

英文摘要:

While large-scale text-to-image diffusion models continue to improve in visual quality, their increasing scale has widened the gap between state-of-the-art models and on-device solutions. To address this gap, we introduce NanoFLUX, a 2.4B text-to-image flow-matching model distilled from 17B FLUX.1-Schnell using a progressive compression pipeline designed to preserve generation quality. Our contributions include: (1) A model compression strategy driven by pruning redundant components in the diffusion transformer, reducing its size from 12B to 2B; (2) A ResNet-based token downsampling mechanism that reduces latency by allowing intermediate blocks to operate on lower-resolution tokens while preserving high-resolution processing elsewhere; (3) A novel text encoder distillation approach that leverages visual signals from early layers of the denoiser during sampling. Empirically, NanoFLUX generates 512 x 512 images in approximately 2.5 seconds on mobile devices, demonstrating the feasibility of high-quality on-device text-to-image generation.

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

↑