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

BiGain:联合生成与分类的统一标记压缩

BiGain: Unified Token Compression for Joint Generation and Classification

VILA Lab, MBZUAI(MBZUAI视觉实验室);North Carolina State University(北卡罗来纳州立大学)

Jiacheng Liu, Shengkun Tang, Jiacheng Cui, Dongkuan Xu, Zhiqiang Shen

AI总结:

BiGain通过频率分离技术,实现生成与分类的统一标记压缩,提升扩散模型的加速性能和分类准确率,同时保持生成质量。

摘要:

针对扩散模型的加速方法(例如标记合并或下采样)通常在减少计算量的同时优化合成质量,但往往忽视了判别能力。我们重新审视标记压缩,提出一个联合目标的BiGain框架,该框架无需训练,可直接使用,能够在加速的扩散模型中保持生成质量的同时提升分类性能。我们的关键洞察是频率分离:将特征空间信号映射到频率感知的表示中,将细节信息与全局语义解耦,从而实现一种在生成保真度和判别实用性方面都尊重的压缩。BiGain通过两个频率感知的操作符反映这一原则:(1)拉普拉斯门控标记合并,鼓励在频谱平滑的标记之间合并,同时阻止高对比度标记的合并,从而保留边缘和纹理;(2)插值-外推KV下采样,通过可控的插值-外推在最近邻和平均池化之间下采样键值,同时保持查询的完整性,从而保留注意力精度。在DiT和U-Net等backbone以及ImageNet-1K、ImageNet-100、Oxford-IIIT Pets和COCO-2017数据集上,我们的操作符一致地改进了扩散模型的速度-精度权衡,同时在可比的加速下保持或提升生成质量。例如,在ImageNet-1K上,使用70%的标记合并在Stable Diffusion 2.0上,BiGain将分类准确率提高7.15%,同时FID提高0.34(1.85%)。我们的分析表明,平衡的频谱保留,保留高频细节和低/中频语义,是扩散模型标记压缩中的可靠设计规则。据我们所知,BiGain是首个同时研究并推进加速扩散模型下生成和分类的框架,支持低成本部署。

英文摘要:

Acceleration methods for diffusion models (e.g., token merging or downsampling) typically optimize synthesis quality under reduced compute, yet often ignore discriminative capacity. We revisit token compression with a joint objective and present BiGain, a training-free, plug-and-play framework that preserves generation quality while improving classification in accelerated diffusion models. Our key insight is frequency separation: mapping feature-space signals into a frequency-aware representation disentangles fine detail from global semantics, enabling compression that respects both generative fidelity and discriminative utility. BiGain reflects this principle with two frequency-aware operators: (1) Laplacian-gated token merging, which encourages merges among spectrally smooth tokens while discouraging merges of high-contrast tokens, thereby retaining edges and textures; and (2) Interpolate-Extrapolate KV Downsampling, which downsamples keys/values via a controllable interextrapolation between nearest and average pooling while keeping queries intact, thereby conserving attention precision. Across DiT- and U-Net-based backbones and ImageNet-1K, ImageNet-100, Oxford-IIIT Pets, and COCO-2017, our operators consistently improve the speed-accuracy trade-off for diffusion-based classification, while maintaining or enhancing generation quality under comparable acceleration. For instance, on ImageNet-1K, with 70% token merging on Stable Diffusion 2.0, BiGain increases classification accuracy by 7.15% while improving FID by 0.34 (1.85%). Our analyses indicate that balanced spectral retention, preserving high-frequency detail and low/mid-frequency semantics, is a reliable design rule for token compression in diffusion models. To our knowledge, BiGain is the first framework to jointly study and advance both generation and classification under accelerated diffusion, supporting lower-cost deployment.

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

↑