Policy-Mask:面向判别任务的扩散特征预算感知适配
研究论文 · 2026/10/23
从冻结扩散模型中为判别任务选择中间特征并非易事,因为有用信号分布在去噪轨迹、网络深度和通道中。现有方法要么手动固定这些选择,要么仅优化少数提取超参数(通常是时间步),然后对输入和预算复用相同规则。我们提出Policy-Mask,一种基于下游目标训练的预算条件策略,在规定的通道预算下联合选择时间步、块和通道子集。由于通道得分贡献随所选通道数增长并主导时间步和块更新,我们通过子集基数归一化,使三个策略头保持可比尺度并稳定联合训练。在匹配预算下,Policy-Mask在分割、分类和语义对应任务上优于固定提取和特征过滤基线,在ADE20K上达到38.9 mIoU,在CIFAR-100上128维时达到75.4% top-1,在SPair-71k上达到76.3 [email protected]。组件消融表明块选择对下游精度有实质影响,最高通道预算得分出现在保留256个通道时,为紧凑扩散表示确定了实用操作点。我们进一步通过将U-Net通道替换为图像令牌隐藏维度,将Policy-Mask适配到扩散变换器,包括PixArt-Σ和SD3.5 MMDiT。
该论文解决了从扩散模型中高效提取判别特征的关键问题,提出了一种自动化的预算感知策略,在多个任务上验证了有效性,并为紧凑表示提供了实用指导,对相关领域的研究者和实践者有重要参考价值。
Selecting intermediate features from a frozen diffusion model for discriminative tasks is non-trivial because the useful signal is distributed across the denoising trajectory, network depth, and channels. In practice, this requires choosing a timestep, a block, and a channel subset. Existing methods either fix these choices by hand or optimize only a few extraction hyperparameters, most often the timestep, then reuse the same rule across inputs and budgets. We introduce Policy-Mask, a budget-conditioned policy trained on the downstream objective that jointly selects all three under a prescribed channel budget. Without normalization, the channel-score contribution grows with the number of selected channels and dominates the timestep and block updates. We normalize it by subset cardinality, keeping the three policy heads on comparable scales and stabilizing joint training. At matched budgets, Policy-Mask improves over fixed extraction and feature-filter baselines across segmentation, classification, and semantic correspondence, reaching 38.9 mIoU on ADE20K, 75.4% top-1 on CIFAR-100 at 128 dimensions, and 76.3 [email protected] on SPair-71k. Component-wise ablations show that block selection materially affects downstream accuracy, and the highest recorded channel-budget score occurs at 256 retained channels, identifying a practical operating point for compact diffusion representations. We further adapt Policy-Mask to diffusion transformers, including PixArt-Σ and SD3.5 MMDiT, by replacing U-Net channels with image-token hidden dimensions.