arXiv:2610.28889cs.CVOct 2026

Manuscript Offprint

arXiv:2610.28889

Policy-Mask: Budget-Aware Adaptation of Diffusion Features to Discriminative Tasks

Ivan Listopadov, Maksim Nakhodnov, Aibek Alanov

ABSTRACT

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 PCK@0.1 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- Σ\Sigma and SD3.5 MMDiT, by replacing U-Net channels with image-token hidden dimensions.

1 INTRODUCTION

Diffusion models learn intermediate representations that support semantic segmentation, image classification, and semantic correspondence (Baranchuk et al., 2022; Xiang et al., 2023; Tang et al., 2023). Using these representations for a downstream task requires choosing which activations to extract. The available features depend on the denoising timestep and network layer, and each feature map contains a set of channels from which the task representation is formed.

Existing methods address this choice through fixed extraction rules, learned aggregation across timesteps and layers, or timestep selection during distillation (Luo et al., 2023; Yang & Wang, 2023). RepFusion transfers features from a frozen diffusion teacher to a student and learns which timestep to use. This leaves the choice of layer and retained feature dimensions as further parts of the extraction problem. These choices also determine which activations must be stored and used as distillation targets.

POLICY-MASK selects a timestep, a layer, and a channel subset under a prescribed channel budget. The policy takes the input image and budget and selects an action a=(t,l,K)a = (t, l, K) with ∣K∣=b|K| = b. A task decoder provides the selection reward, and the selected features supervise the student during training. At inference, the student processes the image without evaluating the diffusion teacher. This extends RepFusion's timestep selection to a joint choice of extraction point and feature subset.

Our contributions are:

  1. A budgeted (t,l,K)(t, l, K) policy with exact-cardinality sampling.

  2. A channel-score normalization that controls the relative action-head contributions.

  3. At 128 of 1280 aligned channels, gains of 1.2–1.6 mIoU over full-width fixed extraction on four segmentation benchmarks.

  4. A formal action mapping from U-Net features to DiT, MMDiT, and flow transformer feature lattices.

Section 2 reviews related work, Section 3 defines the policy, Section 4 reports experiments, and Section 5 concludes. Appendices A–C provide experimental details and additional results.

References (45)