arXiv:2511.01517cs.CV2025-11

用负样本合成数据提升文生图模型的风格迁移能力。

NSYNC: Negative Synthetic Image Generation for Contrastive Training to Improve Stylized Text-To-Image Translation

  • 通过生成负样本与真实正样本对比训练,增强风格特征学习。
  • 在多位画家和插画师风格上,定量与定性指标均优于基线方法。
  • 适合需要精准风格控制的文生图应用,如艺术创作与设计辅助。

当前文本条件图像生成方法虽能输出逼真图像,但难以捕捉特定风格。仅在目标风格数据集上微调仍无法充分学习风格特征。本文提出一种新颖的对比学习框架,旨在提升大型文生图扩散模型的风格化能力。受图像生成模型显著进步的启发,我们利用合成图像生成技术。通常合成数据用于扩充真实训练数据,而本文反其道而行之,专门生成负样本合成集,并与真实正样本结合,构建新的对比训练方案。在该设置中,同时前向传播正负样本,分别获取正负梯度;随后通过将正梯度投影到负梯度上并减去,得到正交分量,据此更新模型参数。该正交分量剔除了正负样本共有的平凡特征,引导模型聚焦于更独特的风格表征。在多位画家和插画师风格上的实验表明,本方法在量化与定性评价上均优于基线模型。代码已公开于 https://github.com/giddyyupp/NSYNC。

原文摘要 · Abstract (English)

Current text conditioned image generation methods output realistic looking images, but they fail to capture specific styles. Simply finetuning them on the target style datasets still struggles to grasp the style features. In this work, we present a novel contrastive learning framework to improve the stylization capability of large text-to-image diffusion models. Motivated by the astonishing advance in image generation models that makes synthetic data an intrinsic part of model training in various computer vision tasks, we exploit synthetic image generation in our approach. Usually, the generated synthetic data is dependent on the task, and most of the time it is used to enlarge the available real training dataset. With NSYNC, alternatively, we focus on generating negative synthetic sets to be used in a novel contrastive training scheme along with real positive images. In our proposed training setup, we forward negative data along with positive data and obtain negative and positive gradients, respectively. We then refine the positive gradient by subtracting its projection onto the negative gradient to get the orthogonal component, based on which the parameters are updated. This orthogonal component eliminates the trivial attributes that are present in both positive and negative data and directs the model towards capturing a more unique style. Experiments on various styles of painters and illustrators show that our approach improves the performance over the baseline methods both quantitatively and qualitatively. Our code is available at https://github.com/giddyyupp/NSYNC.

文生图对比学习风格迁移扩散模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。