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

StyleVAR:通过视觉自回归建模实现可控的图像风格迁移

StyleVAR: Controllable Image Style Transfer via Visual Autoregressive Modeling

Duke University(杜克大学);University of Southern California(南加州大学);Xidian University(西安电子科技大学)

Liqi Jing, Dingming Zhang, Peinian Li, Lichen Zhu, Yang Xu, Hanyu Xing

AI总结:

本文提出StyleVAR,基于视觉自回归建模框架,通过条件离散序列建模实现风格迁移,在学习的潜在空间中建模目标token的分布。引入混合交叉注意力机制,通过风格和内容特征决定强调历史的哪些方面,从而在保持自回归连续性的同时对齐内容结构和风格纹理。

摘要:

我们基于视觉自回归建模(VAR)框架,将风格迁移公式化为在学习的潜在空间中条件离散序列建模。图像被分解为多尺度表示并通过VQ-VAE分块为离散代码;随后,一个变压器自回归地建模目标token的分布,条件于风格和内容token。为注入风格和内容信息,我们引入混合交叉注意力机制,其中演进的目标表示关注其自身的历史,而风格和内容特征作为查询,决定强调历史的哪些方面。一个依赖于尺度的混合系数控制每个阶段风格和内容的相对影响,促使合成表示在不破坏VAR的自回归连续性的同时对齐内容结构和风格纹理。我们从预训练的VAR检查点开始,分两阶段训练StyleVAR:首先在包含内容-风格-目标图像的大型三元组数据集上进行监督微调,随后通过基于DreamSim的感知奖励进行强化微调,采用组相对策略优化(GRPO)进行训练,每动作归一化加权以平衡VAR的多尺度层次中的信用分配。在覆盖内分布、近分布和外分布领域的三个基准测试中,StyleVAR在风格损失、内容损失、LPIPS、SSIM、DreamSim和CLIP相似度上均优于AdaIN基线,并且GRPO阶段在奖励对齐的感知度量上进一步取得优势。定性上,该方法在保持语义结构的同时迁移纹理,尤其是在风景和建筑场景中,而对互联网图像的泛化差距和对人脸的困难则凸显了需要更好的内容多样性和更强的结构先验的必要性。

英文摘要:

We build on the Visual Autoregressive Modeling (VAR) framework and formulate style transfer as conditional discrete sequence modeling in a learned latent space. Images are decomposed into multi-scale representations and tokenized into discrete codes by a VQ-VAE; a transformer then autoregressively models the distribution of target tokens conditioned on style and content tokens. To inject style and content information, we introduce a blended cross-attention mechanism in which the evolving target representation attends to its own history, while style and content features act as queries that decide which aspects of this history to emphasize. A scale-dependent blending coefficient controls the relative influence of style and content at each stage, encouraging the synthesized representation to align with both the content structure and the style texture without breaking the autoregressive continuity of VAR. We train StyleVAR in two stages from a pretrained VAR checkpoint: supervised fine-tuning on a large triplet dataset of content--style--target images, followed by reinforcement fine-tuning with Group Relative Policy Optimization (GRPO) against a DreamSim-based perceptual reward, with per-action normalization weighting to rebalance credit across VAR's multi-scale hierarchy. Across three benchmarks spanning in-, near-, and out-of-distribution regimes, StyleVAR consistently outperforms an AdaIN baseline on Style Loss, Content Loss, LPIPS, SSIM, DreamSim, and CLIP similarity, and the GRPO stage yields further gains over the SFT checkpoint, most notably on the reward-aligned perceptual metrics. Qualitatively, the method transfers texture while maintaining semantic structure, especially for landscapes and architectural scenes, while a generalization gap on internet images and difficulty with human faces highlight the need for better content diversity and stronger structural priors.

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

↑