让文生图模型轻松支持多任务,不加参数也不慢
Upcycling Text-to-Image Diffusion Models for Multi-Task Capabilities
- 用小专家网络替换原模型全连接层,动态路由调度
- 多任务表现媲美微调模型,计算量和延迟几乎不变
- 适合移动端部署,无需额外训练或参数
近年来,文生图合成技术取得显著进展。尽管已有研究尝试将文生图模型拓展至多任务,但多数方法需资源密集型重训练或引入额外参数,难以在设备端高效运行。本文提出多任务升级(MTU),一种简单有效的方案,可将预训练文生图扩散模型扩展为支持多种图像到图像生成任务。MTU将扩散模型中的前馈网络(FFN)替换为小型专家模块,并结合动态路由机制。据我们所知,MTU是首个实现多任务能力与设备端兼容性无缝融合的扩散建模方法,有效缓解了参数膨胀问题。实验表明,MTU在图像编辑、超分辨率和修复等任务上的性能与单任务微调模型相当,同时保持相近的延迟和计算负载(GFLOPs)。
原文摘要 · Abstract (English)
Text-to-image synthesis has witnessed remarkable advancements in recent years. Many attempts have been made to adopt text-to-image models to support multiple tasks. However, existing approaches typically require resource-intensive re-training or additional parameters to accommodate for the new tasks, which makes the model inefficient for on-device deployment. We propose Multi-Task Upcycling (MTU), a simple yet effective recipe that extends the capabilities of a pre-trained text-to-image diffusion model to support a variety of image-to-image generation tasks. MTU replaces Feed-Forward Network (FFN) layers in the diffusion model with smaller FFNs, referred to as experts, and combines them with a dynamic routing mechanism. To the best of our knowledge, MTU is the first multi-task diffusion modeling approach that seamlessly blends multi-tasking with on-device compatibility, by mitigating the issue of parameter inflation. We show that the performance of MTU is on par with the single-task fine-tuned diffusion models across several tasks including image editing, super-resolution, and inpainting, while maintaining similar latency and computational load (GFLOPs) as the single-task fine-tuned models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。