arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.23682cs.CV
收藏

保留精华:通过令牌丢弃实现高效的参考条件生成

Keep The Essentials: Efficient Reference Conditioned Generation via Token Dropping

IISc Bangalore(印度科学研究所班加罗尔分校);Tel Aviv University(特拉维夫大学)

Rishubh Parihar, Ayush Raina, R. Venkatesh Babu, Or Patashnik

AI总结:

提出Sparse Context方法,通过丢弃大部分参考令牌并微调模型,实现参考条件生成中4倍(多参考)和2倍(单参考)的推理加速,且不降低视觉质量。

摘要:

基于参考的扩散模型通过利用输入图像中的元素来引导提示驱动的合成,实现了高度可控的图像生成。然而,这些模型在运行时计算成本高昂,并且其成本随输入参考数量的增加而严重扩展。虽然扩散模型的效率在提示驱动生成的背景下已被广泛研究,但在基于参考的模型领域仍 largely under-explored。这一设置带来了仅关注生成的方法无法解决的独特挑战。特别是,将参考表示为密集令牌网格的浪费性方式提供了显著的改进机会。在这项工作中,我们提出了Sparse Context,一种通过仅保留减少的参考令牌子集来构建稀疏参考表示的方法。我们观察到,即使不修改模型,在推理时丢弃大量参考令牌也能在很大程度上保持其生成能力。为了充分发挥这一潜力,我们以不同比例随机丢弃令牌对模型进行微调,鼓励对部分参考表示的鲁棒性。至关重要的是,这种训练策略使模型与任何特定的令牌选择规则解耦,从而允许在推理时进行灵活控制。在推理时,我们采用任务感知的令牌选择策略,优先考虑参考图像中信息最丰富的区域,根据输入和任务需求调整令牌预算,而不是随机丢弃。大量实验表明,我们的方法在多参考生成中实现了4倍的推理速度提升,在单参考生成中实现了2倍的提升。重要的是,这种效率是在不损害空间对齐编辑和主体驱动生成的视觉质量的情况下实现的。

英文摘要:

Reference-based diffusion models enable highly controllable image generation by leveraging elements from input images to guide prompt-driven synthesis. However, these models are computationally expensive in runtime, and their cost scales severely with the number of input references. While the efficiency of diffusion models has been extensively studied in the context of prompt-driven generation, it remains largely under-explored in the realm of reference-based models. This setting presents unique challenges not addressed by methods focusing solely on generation. In particular, the wasteful representation of references as dense token grids offers significant opportunities for improvement. In this work, we present Sparse Context, a method for constructing sparse reference representations by retaining only a reduced subset of reference tokens. We observe that even without modifying the model, dropping a significant portion of reference tokens at inference time largely preserves its generation capabilities. To fully realize this potential, we fine-tune the model with random token dropping at varying ratios, encouraging robustness to partial reference representations. Crucially, this training strategy decouples the model from any specific token selection rule, allowing flexible control at inference time. At inference time, instead of random dropping, we apply task-aware token selection strategies that prioritize the most informative regions of the reference images, adapting the token budget to the input and task requirements. Extensive experiments show our method achieves a 4x increase in inference speed for multi-reference generation and an 2x for single reference generation. Importantly, this efficiency is achieved without compromising visual quality across both spatially-aligned editing and subject-driven generation.

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

↑