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

以图像为枢纽的高效跨语言迁移用于中文Stable Diffusion

Efficient Cross-Lingual Transfer for Chinese Stable Diffusion with Images as Pivots

Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京国家信息科学与技术研究中心);Microsoft Research Asia(微软亚洲研究院)

Jinyi Hu, Xu Han, Xiaoyuan Yi, Yutong Chen, Wenhao Li, Zhiyuan Liu, Maosong Sun

AI总结:

提出IAP方法,通过固定参数并仅优化中文文本编码器,以图像为枢纽最小化交叉注意力特征距离,将英文Stable Diffusion高效迁移至中文,仅用5%~10%训练数据即超越多个强基线。

摘要:

扩散模型在文本到图像合成方面取得了令人瞩目的进展。然而,从头训练此类大规模模型(如Stable Diffusion)需要高昂的计算成本和海量高质量的文本-图像对,这在其他语言中变得难以承受。为了应对这一挑战,我们提出了IAP,一种简单但有效的方法,用于将英文Stable Diffusion迁移为中文。IAP仅优化一个独立的中文文本编码器,同时固定所有其他参数,以在CLIP中将中文语义空间与英文语义空间对齐。为实现这一目标,我们创新性地将图像视为枢纽,并最小化分别从图像与每种语言之间的交叉注意力中产生的注意力特征的距离。通过这种方式,IAP在CLIP的嵌入空间中高效地建立了中文、英文和视觉语义之间的联系,提升了使用直接中文提示词生成图像的质量。实验结果表明,我们的方法仅使用5%~10%的训练数据,便优于几种强大的中文扩散模型。

英文摘要:

Diffusion models have made impressive progress in text-to-image synthesis. However, training such large-scale models (e.g. Stable Diffusion), from scratch requires high computational costs and massive high-quality text-image pairs, which becomes unaffordable in other languages. To handle this challenge, we propose IAP, a simple but effective method to transfer English Stable Diffusion into Chinese. IAP optimizes only a separate Chinese text encoder with all other parameters fixed to align Chinese semantics space to the English one in CLIP. To achieve this, we innovatively treat images as pivots and minimize the distance of attentive features produced from cross-attention between images and each language respectively. In this way, IAP establishes connections of Chinese, English and visual semantics in CLIP's embedding space efficiently, advancing the quality of the generated image with direct Chinese prompts. Experimental results show that our method outperforms several strong Chinese diffusion models with only 5%~10% training data.

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

↑