arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.15914cs.CV
收藏

CoRe:用于文本到图像个性化的上下文正则化文本嵌入学习

CoRe: Context-Regularized Text Embedding Learning for Text-to-Image Personalization

Sun Yat-sen University(中山大学);The Hong Kong Polytechnic University(香港理工大学)

Feize Wu, Yun Pang, Junyi Zhang, Lianyu Pang, Jian Yin, Baoquan Zhao, Qing Li, Xudong Mao

AI总结:

本文提出上下文正则化方法CoRe,通过正则化提示词中的上下文token来增强新概念文本嵌入的学习,有效平衡了文本到图像个性化中的身份保持与文本对齐,提升了泛化能力并可作为测试时优化技术。

摘要:

文本到图像个性化的最新进展使得针对用户提供概念的高质量且可控的图像合成成为可能。然而,现有方法在平衡身份保持与文本对齐方面仍存在困难。我们的方法基于这样一个事实:生成与提示词对齐的图像需要对提示词有精确的语义理解,这涉及在 CLIP 文本编码器内准确处理新概念及其周围上下文 token 之间的交互。为了解决这个问题,我们旨在将新概念适当地嵌入到文本编码器的输入嵌入空间中,从而实现与现有 token 的无缝集成。我们引入了上下文正则化(Context Regularization, CoRe),它通过正则化提示词中的上下文 token 来增强新概念文本嵌入的学习。这是基于这样一个洞察:只有当新概念的文本嵌入被正确学习时,文本编码器针对上下文 token 的适当输出向量才能实现。CoRe 可以应用于任意提示词,而无需生成相应的图像,从而提高了所学文本嵌入的泛化能力。此外,CoRe 还可以作为测试时优化技术,进一步增强特定提示词的生成效果。综合实验表明,我们的方法在身份保持和文本对齐方面均优于几种基线方法。代码将公开发布。

英文摘要:

Recent advances in text-to-image personalization have enabled high-quality and controllable image synthesis for user-provided concepts. However, existing methods still struggle to balance identity preservation with text alignment. Our approach is based on the fact that generating prompt-aligned images requires a precise semantic understanding of the prompt, which involves accurately processing the interactions between the new concept and its surrounding context tokens within the CLIP text encoder. To address this, we aim to embed the new concept properly into the input embedding space of the text encoder, allowing for seamless integration with existing tokens. We introduce Context Regularization (CoRe), which enhances the learning of the new concept's text embedding by regularizing its context tokens in the prompt. This is based on the insight that appropriate output vectors of the text encoder for the context tokens can only be achieved if the new concept's text embedding is correctly learned. CoRe can be applied to arbitrary prompts without requiring the generation of corresponding images, thus improving the generalization of the learned text embedding. Additionally, CoRe can serve as a test-time optimization technique to further enhance the generations for specific prompts. Comprehensive experiments demonstrate that our method outperforms several baseline methods in both identity preservation and text alignment. Code will be made publicly available.

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

↑