无需引导采样,用对齐方法提升自回归视觉生成质量
Toward Guidance-Free AR Visual Generation via Condition Contrastive Alignment
- 通过条件对比对齐直接微调模型分布,避免采样过程修改
- 仅需1%预训练周期微调,效果媲美传统引导方法
- 可调节生成多样性与保真度,适合追求高效生成的场景
无分类器引导(CFG)是提升视觉生成模型样本质量的关键技术。然而,在自回归(AR)多模态生成中,CFG在语言与视觉内容之间引入设计不一致,违背了统一模态的设计理念。受语言模型对齐方法启发,我们提出条件对比对齐(CCA),实现高性能的无引导AR视觉生成,并分析其与引导采样方法的理论关联。与改变采样过程以逼近理想分布的引导方法不同,CCA直接微调预训练模型使其拟合相同目标分布。实验表明,仅需在预训练数据集上进行一次微调(约预训练周期的1%),所有测试模型的无引导性能均显著提升,效果可媲美引导采样方法。这大大减少了对引导采样的依赖,采样成本降低一半。此外,通过调整训练参数,CCA可在样本多样性和保真度间实现类似CFG的权衡。实验验证了语言对齐与视觉引导方法间的强理论联系,统一了两个此前独立的研究方向。代码与模型权重:https://github.com/thu-ml/CCA。
原文摘要 · Abstract (English)
Classifier-Free Guidance (CFG) is a critical technique for enhancing the sample quality of visual generative models. However, in autoregressive (AR) multi-modal generation, CFG introduces design inconsistencies between language and visual content, contradicting the design philosophy of unifying different modalities for visual AR. Motivated by language model alignment methods, we propose \textit{Condition Contrastive Alignment} (CCA) to facilitate guidance-free AR visual generation with high performance and analyze its theoretical connection with guided sampling methods. Unlike guidance methods that alter the sampling process to achieve the ideal sampling distribution, CCA directly fine-tunes pretrained models to fit the same distribution target. Experimental results show that CCA can significantly enhance the guidance-free performance of all tested models with just one epoch of fine-tuning ($\sim$ 1\% of pretraining epochs) on the pretraining dataset, on par with guided sampling methods. This largely removes the need for guided sampling in AR visual generation and cuts the sampling cost by half. Moreover, by adjusting training parameters, CCA can achieve trade-offs between sample diversity and fidelity similar to CFG. This experimentally confirms the strong theoretical connection between language-targeted alignment and visual-targeted guidance methods, unifying two previously independent research fields. Code and model weights: https://github.com/thu-ml/CCA.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。