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

通过混合粒度缓存加速可控生成

Accelerating Controllable Generation via Hybrid-grained Cache

Lin Liu, Huixia Ben, Shuo Wang, Jinda Lu, Junxiang Qiu, Shengeng Tang, Yanbin Hao

AI总结:

针对可控生成模型效率偏低的问题,本文提出混合粒度缓存HGC方法,通过块级粗粒度与提示级细粒度缓存策略减少冗余计算,在四个基准上实现效率提升的同时保持极低的性能损失。

摘要:

可控生成模型已被广泛用于提升合成视觉内容的真实感,但这类模型需要同时处理控制条件与内容生成的计算需求,普遍存在生成效率偏低的问题。为解决该问题,本文提出混合粒度缓存(Hybrid-Grained Cache, HGC)方法,通过在不同计算阶段采用不同粒度的缓存策略降低计算开销。具体而言:(1)采用基于特征复用的粗粒度缓存(块级),在模型推理的每一步之间动态跳过编码器-解码器块中的冗余计算;(2)设计作用于模块内部的细粒度缓存(提示级),复用连续推理步骤内的交叉注意力图,并将其扩展至相邻步骤对应的模块计算中。上述不同粒度的缓存可无缝集成到可控生成过程的各个计算环节。我们在四个基准数据集上验证了HGC的有效性,尤其验证了其在平衡生成效率与视觉质量方面的优势:例如在COCO-Stuff分割基准上,HGC将计算成本(MACs)显著降低63%(从18.22T降至6.70T),同时将语义保真度损失(量化性能下降)控制在1.5%以内。

英文摘要:

Controllable generative models have been widely used to improve the realism of synthetic visual content. However, such models must handle control conditions and content generation computational requirements, resulting in generally low generation efficiency. To address this issue, we propose a Hybrid-Grained Cache (HGC) approach that reduces computational overhead by adopting cache strategies with different granularities at different computational stages. Specifically, (1) we use a coarse-grained cache (block-level) based on feature reuse to dynamically bypass redundant computations in encoder-decoder blocks between each step of model reasoning. (2) We design a fine-grained cache (prompt-level) that acts within a module, where the fine-grained cache reuses cross-attention maps within consecutive reasoning steps and extends them to the corresponding module computations of adjacent steps. These caches of different granularities can be seamlessly integrated into each computational link of the controllable generation process. We verify the effectiveness of HGC on four benchmark datasets, especially its advantages in balancing generation efficiency and visual quality. For example, on the COCO-Stuff segmentation benchmark, our HGC significantly reduces the computational cost (MACs) by 63% (from 18.22T to 6.70T), while keeping the loss of semantic fidelity (quantized performance degradation) within 1.5%.

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

↑