Manuscript Offprint
arXiv:2610.28889Policy-Mask: Budget-Aware Adaptation of Diffusion Features to Discriminative Tasks
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- 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 with . 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:
-
A budgeted policy with exact-cardinality sampling.
-
A channel-score normalization that controls the relative action-head contributions.
-
At 128 of 1280 aligned channels, gains of 1.2–1.6 mIoU over full-width fixed extraction on four segmentation benchmarks.
-
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.
Budgeted subset selection. Feature selection spans filters, wrappers, continuous relaxations, and greedy methods (Peng et al., 2005; Kohavi & John, 1997; Abid et al., 2019; Das & Kempe, 2011; Elenberg et al., 2018; Mirzasoleiman et al., 2015; Nemhauser et al., 1978). POLICY-MASK selects feature dimensions of one frozen model response. Budget-conditioned policies also appear in diffusion caching, where ReCache selects recomputation steps under an inference budget (Aliev et al., 2026). Here the budget constrains feature coordinates used for distillation. The policy uses a Plackett–Luce ordering and a Gumbel top-b sampler (Plackett, 1975; Kool et al., 2019). Its gradient estimator follows the standard score-function construction with a baseline (Greensmith et al., 2004; Kool et al., 2020).
3 METHOD
POLICY-MASK learns which teacher response to distill under an exact channel budget. The task decoder evaluates the selected response, and its loss supplies the policy reward while the selected feature supervises the student.
3.1 PROBLEM SETUP
Let be a data distribution over and let the frozen teacher expose . An alignment map projects a candidate layer to a common feature space, . This makes a single exact budget meaningful even when raw layers have different widths and resolutions. In the ADE20K experiments with trainable , the KD loss fell below 0.005 within two epochs. We therefore fixed at initialization for the normalization ablation and the RepFusion comparison. Appendix A.2 provides the experimental details. During training, is queried, or its responses are drawn from a feature bank. At inference, the student alone consumes (Yang & Wang, 2023; Huang et al., 2023). For budget , the feasible action set is:
With a binary channel mask , the selected response is . The student returns task logits and a projected feature and is trained with:
where sg stops gradients through the frozen target. A small task decoder maps the selected teacher feature to task predictions. Holding fixed during a policy step, the selector objective is:
REINFORCE on with baseline c, channel score scaled by 1/b

Figure 1: POLICY-MASK training and inference. Given an image and a budget , the policy outputs distributions over timesteps and layers and channel logits . A timestep and a layer are sampled. An ordered sequence of channels is drawn without replacement by Gumbel top-, giving the mask . The frozen diffusion model returns after the alignment , and masking gives . This feature is the distillation target for the student and, through the task decoder , gives the reward . The policy is updated by REINFORCE with baseline and the channel score scaled by (Equation 8). At inference, only is evaluated. Images and predictions are ADE20K validation examples (Figure 3).
Both and use the training annotation : pixel-wise supervision for segmentation, cross-entropy for classification, and the corresponding matching loss. On ADE20K, averages cross-entropy over valid pixels per image. The student task loss also includes Dice loss.
The policy therefore receives one scalar reward per sampled action, while held-out mIoU, top-1 accuracy, and PCK remain evaluation metrics. The teacher is not differentiated through. The action is discrete, and the feasible set has elements. Rather than enumerating subsets, we sample actions and use a policy gradient.
3.2 POLICY OVER BUDGETED SUBSETS
The policy samples an ordered index sequence and then uses the unordered set to form the mask. It factorizes as:
The first two factors are categorical. For channel logits , we draw independent Gumbel perturbations and take the largest perturbed logits in descending order:
This produces an ordered draw without replacement. Its exact Plackett–Luce score is:
The reward is invariant to the order of , but the score is evaluated on the draw that generated the mask. Top-b therefore returns b distinct coordinates with exact feasibility rather than a sparsity penalty. Holding the decoder fixed, an action-independent baseline c gives the score-function estimator (Greensmith et al., 2004; Kool et al., 2020):
Algorithm 1 POLICY-MASK: training and task inference
Require: frozen teacher , student , task decoder , policy , budget
1: for each minibatch do
2: sample from and set
3:
4:
5: update with
6: update with and with
7: end for
8: Inference: return without evaluating
The implementation uses a stopped moving baseline for variance reduction. The task decoder supplies and is trained on the same decoder loss with its input detached. This separates selection from the student's task and distillation losses. Emitting action logits costs , and Gumbel perturbation plus top-b selection is linear in up to the partial-sort cost. A frozen teacher query and layer alignment dominate these selector operations.
3.3 CHANNEL-SCORE NORMALIZATION
The channel score in Equation 6 is a sum of b terms, whereas the timestep and layer scores each contain one term. Dividing the channel score by b replaces this sum with its mean and controls its relative weight in the joint update. It does not assume that gradient norms grow linearly with b. We use:
The 1/b factor is a preconditioner, so the controlled update is not claimed to be an unbiased estimator of . For disjoint heads and plain SGD, it is equivalent to reducing only the channel-head learning rate by . With a shared trunk, adaptive moments, and entropy regularization, it instead changes the relative head contribution (Chen et al., 2018). The action-axis ablation motivates this control: the unnormalized joint policy reaches 31.68 mIoU, compared with 31.78 for the timestep-only policy (Figure 4). With fixed alignment, normalization raises mean best-validation mIoU from 36.8 to 37.7 over three seeds (Table 5).
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
Teacher and student. The main selector comparisons use a frozen SD-1.5 U-Net and a common width of 1280 aligned channels. Compact selectors retain 128 channels. The student loss and updates are given in Equation 2 and Algorithm 1.
Datasets and metrics. Segmentation is evaluated on ADE20K (Zhou et al., 2017), Cityscapes (Cordts et al., 2016), CelebA-HQ (Karras et al., 2018), and Pascal VOC (Everingham et al., 2010) using mIoU. Classification uses CIFAR-10 and CIFAR-100 (Krizhevsky, 2009) top-1 accuracy. Semantic correspondence uses SPair-71k (Min et al., 2019) PCK@0.1 with image and bounding-box normalization reported separately.
Baselines. The baselines include fixed extraction, top-variance and Fisher channel selection, and full-width extraction. The DDAE (Xiang et al., 2023) and RepFusion (Yang & Wang, 2023) entries in Table 2 retain their corresponding source protocols.
4.2 MAIN RESULTS
At 128 selected channels, POLICY-MASK exceeds full-width extraction at a fixed by 1.5, 1.6, 1.2, and 1.3 mIoU on ADE20K, Cityscapes, CelebA-HQ, and Pascal VOC, respectively (Table 1). These results compare feature-selection rules at 10% of the full aligned width.
Table 1: Segmentation results with different feature selection methods, measured in mIoU. All methods use the same SD-1.5 feature lattice with , except for the “All channels” baseline, which retains all 1280 channels. Bold values indicate the best result among 128-channel selectors.
| Selector | Width | ADE20K | Cityscapes | CelebA-HQ | Pascal VOC |
|---|---|---|---|---|---|
| All channels at fixed (t,l) | 1280 | 37.4 | 68.6 | 77.9 | 73.5 |
| Fixed (t,l) + fixed K | 128 | 33.8 | 62.9 | 72.4 | 68.1 |
| Top-variance K | 128 | 35.6 | 64.8 | 74.6 | 70.3 |
| Fisher proxy K | 128 | 36.4 | 65.7 | 75.3 | 71.0 |
| POLICY-MASK (t,l,K) | 128 | 38.9 | 70.2 | 79.1 | 74.8 |
Table 2: Classification and correspondence comparison with DDAE (Xiang et al., 2023) and RepFusion (Yang & Wang, 2023). Full-width diffusion methods and compact selectors are listed separately. A dash denotes a method–task pair not reported under the corresponding source protocol. Bold values indicate the best result among 128-dimensional selectors.
| Method | Teacher | Width | CIFAR-10 | CIFAR-100 | SPair-71k PCK@0.1 | |
|---|---|---|---|---|---|---|
| img | bbox | |||||
| DDAE | DDPM | full | 95.4 | 76.8 | — | — |
| RepFusion | SD-1.5 | full | 94.2 | 74.1 | — | — |
| Top-variance K | SD-1.5 | 128 | 93.1 | 72.3 | — | — |
| Fisher K | SD-1.5 | 128 | 93.6 | 73.1 | — | — |
| POLICY-MASK | SD-1.5 | 128 | 95.2 | 75.4 | 76.3 | 67.5 |
At 128 dimensions, POLICY-MASK reaches top-1 on CIFAR-10 and on CIFAR-100, 1.0 and 1.3 points above the reported RepFusion entries (Table 2). On SPair-71k, it reaches 76.3 PCK@0.1 with image normalization and 67.5 with bounding-box normalization.
Figure 3 shows corrected facade labels and fewer false regions in cemetery, bakery, and sea scenes among the outcome-selected examples. The corresponding losses and class-wise differences are reported in Appendix C.
4.3 ABLATION STUDY
Action axes. In the controlled action-axis ablation, expanding a timestep-only policy to the time-layer grid raises mIoU from 31.78 to 33.32. Adding a heuristic top-b subset reaches 32.82, while the unnormalized joint policy reaches 31.68 (Figure 4). Expanding the action space alone therefore does not improve accuracy in this setting.
Channel-score normalization. With fixed, POLICY-MASK reaches mIoU, compared with without the 1/b channel-score factor (Table 5). Both use the same three seeds and training settings. This comparison is separate from the single-seed action-axis ablation and the main segmentation table.
Channel budget. The sweep in Figure 2 uses top-magnitude selection at a fixed timestep and layer, with a separate student trained for each budget. It does not use a learned policy. Increasing b from 128 to 256 raises the best validation mIoU by 0.72 and the mean over the last five epochs by 0.27. The sweep changes both the selected features and the KD-loss scale, so it does not identify an optimal budget independently of distillation strength (Appendix A.1). We retain b = 128 for the compact representation used in the selector comparisons.
4.4 TRANSFORMER TEACHERS
We transfer the action to teachers with an ordered feature lattice. A U-Net teacher (Ronneberger et al., 2015) uses denoising steps, layers, and channels. For a DiT, MMDiT, or flow transformer
Input
Ground truth
b = 64
b = 128
b = 256
b = 512

mIoU 32.63
mIoU 32.75
mIoU 33.47
mIoU 31.90
Figure 2: Effect of the channel budget on ADE20K segmentation. Channels are selected by activation magnitude at a fixed timestep and layer. A separate student is trained for each budget. Predictions are shown for one validation image, while mIoU is computed over the validation set. No learned policy is used.
Input
Ground truth
RepFusion
Random
128
Policy-
Mask
Input
Ground
truth
RepFusion
Random
128
Policy-
Mask

Figure 3: ADE20K validation, seed 0. The 12 images with the largest gains in image-mIoU over RepFusion. Selected by outcome. See the loss panel (Figure 6). Columns in each block show input, ground truth, RepFusion, Random 128, and POLICY-MASK.
(Peebles & Xie, 2023; Esser et al., 2024; Lipman et al., 2023), let denote the image-token state at log-SNR or flow coordinate and depth . The corresponding selected target is:
where maps retained hidden dimensions to the common target width and restores the spatial grid. In MMDiT, the action applies only to the image stream after joint attention. The student loss is retained, and the subset still has exactly coordinates. Model cards are linked for SD-1.5, PixArt- , and SD3.5 Medium.
We instantiate the transformer interfaces with PixArt- (Chen et al., 2024) and SD3.5 MMDiT (Esser et al., 2024). The matched fractions in Table 3 lie between 9.98% and 10.03% of the available feature width. This keeps the hard selection pressure comparable when a U-Net channel axis is replaced by a transformer hidden-dimension axis. The table is therefore evidence for the interface under a matched capacity fraction, not a ranking based on raw model width. It is reported separately from Tables 1 and 2. No numerical contrast is drawn across these teacher-specific evaluations.

Figure 4: Controlled action-axis ablation on ADE20K, mIoU. The time–depth grid exceeds the timestep-only policy. Appending a heuristic subset does not retain that gain, while the unnormalized joint action is lower. The values come from one ablation run and are not compared numerically with Table 1.
Table 3: Separate matched-fraction interface evaluation across teacher architectures. The selected coordinate changes from U-Net channels to image-token hidden dimensions. These rows are not a continuation of Table 1: each uses its teacher-specific feature interface.
| Teacher | Selected coordinates | b/D | ADE20K | CIFAR-100 | SPair-71k |
|---|---|---|---|---|---|
| SD-1.5 U-Net | 128/1280 | 34.1 | 70.8 | 72.8 | |
| PixArt-Σ DiT | 115/1152 | 35.0 | 71.6 | 73.5 | |
| SD3.5 MMDiT | 154/1536 | 36.4 | 72.9 | 74.6 |
4.5 LIMITATIONS
Channel budget. The budget sweep in Figure 2 changes the selected features and the distillation strength together. The masked KD loss is averaged over all 1280 channels, so its mean over epochs 10–19 grows from 0.59 at b = 128 to 0.94 at b = 256 and 1.35 at b = 512. The drop at b = 512 therefore cannot be attributed to redundant channels. A follow-up sweep with KD normalized over the selected channels would control this change in loss scale (Appendix A.1).
Repetitions. The normalization ablation and the RepFusion comparison are repeated over three seeds (Table 5). The action-axis ablation, the budget sweep, and the qualitative analysis use a single seed.
Transformer teachers. Table 3 matches the capacity fraction across teachers but uses one evaluation per teacher. It supports the transferred action interface, not a ranking of teacher architectures.
5 CONCLUSION
We presented POLICY-MASK, which treats diffusion feature extraction as a budgeted decision: a policy jointly selects the timestep, the layer, and an exact-size channel subset of a frozen teacher, and the selected features distill a student that runs alone at inference. The experiments support three conclusions. First, joint selection pays off at a fixed budget: with 128 of 1280 channels, POLICY-MASK exceeds full-width extraction at a fixed extraction point on all four segmentation benchmarks and exceeds RepFusion on CIFAR-10 and CIFAR-100. Second, channel-score normalization improves the tested joint policy. Without the factor, the joint policy falls below the timestep-only policy in the action-axis ablation. With fixed alignment, normalization raises ADE20K mIoU from 36.8 to 37.7 over three seeds. Third, the action transfers to DiT and MMDiT teachers by replacing U-Net channels with image-token hidden dimensions while retaining the student loss and exact-cardinality constraint. Separating channel count from distillation strength remains the main open question for choosing the operating budget.
REFERENCES
Abubakar Abid, Muhammad Fatih Balin, and James Zou. Concrete autoencoders: Differentiable feature selection and reconstruction. In ICML, pp. 444–453, 2019.
Mishan Aliev, Eva Neudachina, Ilya Bykov, Aleksandr Oganov, Kirill Struminsky, Aibek Alanov, and Denis Rakitin. ReCache: Learning Budget-Aware Caching Schedules for Diffusion Models via REINFORCE. arXiv:2606.06060, 2026. URL https://arxiv.org/abs/2606.06060.
Dmitry Baranchuk, Ivan Rubachev, Andrey Voynov, Valentin Khrulkov, and Artem Babenko. Label-efficient semantic segmentation with diffusion models. In ICLR, 2022.
Junsong Chen, Chongjian Ge, Enze Xie, Yue Wu, Lewei Yao, Xiaozhe Ren, Zhongdao Wang, Ping Luo, Huchuan Lu, and Zhenguo Li. PixArt- : Weak-to-strong training of diffusion transformer for 4K text-to-image generation. In ECCV, pp. 74–91, 2024.
Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. GradNorm: Gradient normalization for adaptive loss balancing in deep multitask networks. In ICML, pp. 794–803, 2018.
Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The Cityscapes dataset for semantic urban scene understanding. In CVPR, pp. 3213–3223, 2016.
Abhimanyu Das and David Kempe. Submodular meets spectral: Greedy algorithms for subset selection, sparse approximation and dictionary selection. In ICML, pp. 1057–1064, 2011.
Ethan R. Elenberg, Rajiv Khanna, Alexandros G. Dimakis, and Sahand Negahban. Restricted strong convexity implies weak submodularity. The Annals of Statistics, 46(6B):3539–3568, 2018.
Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, Dustin Podell, Tim Dockhorn, Zion English, and Robin Rombach. Scaling rectified flow transformers for high-resolution image synthesis. In ICML, pp. 12606–12633, 2024.
Mark Everingham, Luc Van Gool, Christopher K. I. Williams, John Winn, and Andrew Zisserman. The Pascal visual object classes (VOC) challenge. International Journal of Computer Vision, 88(2):303–338, 2010. ISSN 1573-1405. doi: 10.1007/s11263-009-0275-4. URL http://dx.doi.org/10.1007/s11263-009-0275-4.
Evan Greensmith, Peter L. Bartlett, and Jonathan Baxter. Variance reduction techniques for gradient estimates in reinforcement learning. Journal of Machine Learning Research, 5:1471–1530, 2004.
Tao Huang, Yuan Zhang, Mingkai Zheng, Shan You, Fei Wang, Chen Qian, and Chang Xu. Knowledge diffusion for distillation. In NeurIPS, volume 36, pp. 65299–65316, 2023.
Yuanfeng Ji, Zhe Chen, Enze Xie, Lanqing Hong, Xihui Liu, Zhaoqiang Liu, Tong Lü, Zhenguo Li, and Ping Luo. DDP: Diffusion model for dense visual prediction. In ICCV, pp. 21741–21752, 2023.
Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation, 2018. URL https://arxiv.org/abs/1710.10196.
Bingxin Ke, Anton Obukhov, Shengyu Huang, Nando Metzger, Rodrigo Caye Daudt, and Konrad Schindler. Repurposing diffusion-based image generators for monocular depth estimation. In CVPR, pp. 9492–9502, 2024.
Ron Kohavi and George H. John. Wrappers for feature subset selection. Artificial Intelligence, 97(1–2):273–324, 1997.
Neehar Kondapaneni, Markus Marks, Manuel Knott, Rogério Guimarães, and Pietro Perona. Text-image alignment for diffusion-based perception. In CVPR, pp. 13883–13893, 2024.
Wouter Kool, Herke van Hoof, and Max Welling. Stochastic beams and where to find them: The Gumbel-top-k trick for sampling sequences without replacement. In ICML, pp. 3499–3508, 2019.
Wouter Kool, Herke van Hoof, and Max Welling. Estimating gradients for discrete random variables by sampling without replacement. In ICLR, 2020.
Alex Krizhevsky. Learning Multiple Layers of Features from Tiny Images. Technical report, University of Toronto, 2009. URL https://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf.
Daiqing Li, Huan Ling, Amlan Kar, David Acuna, Seung Wook Kim, Karsten Kreis, Antonio Torralba, and Sanja Fidler. DreamTeacher: Pretraining image backbones with deep generative models. In ICCV, pp. 16698–16708, 2023.
Xinghui Li, Jingyi Lu, Kai Han, and Victor Adrian Prisacariu. SD4Match: Learning to prompt Stable Diffusion model for semantic matching. In CVPR, pp. 27558–27568, 2024.
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In ICLR, 2023.
Grace Luo, Lisa Dunlap, Dong Huk Park, Aleksander Holynski, and Trevor Darrell. Diffusion hyperfeatures: Searching through time and space for semantic correspondence. In NeurIPS, volume 36, pp. 47500–47510, 2023.
Juhong Min, Jongmin Lee, Jean Ponce, and Minsu Cho. SPair-71k: A large-scale benchmark for semantic correspondence, 2019. URL https://arxiv.org/abs/1908.10543.
Baharan Mirzasoleiman, Ashwinkumar Badanidiyuru, Amin Karbasi, Jan Vondrák, and Andreas Krause. Lazier than lazy greedy. In AAAI, volume 29, pp. 1817–1824, 2015.
George L. Nemhauser, Laurence A. Wolsey, and Marshall L. Fisher. An analysis of approximations for maximizing submodular set functions—I. Mathematical Programming, 14:265–294, 1978.
William Peebles and Saining Xie. Scalable diffusion models with transformers. In ICCV, pp. 4195–4205, 2023.
Hanchuan Peng, Fuhui Long, and Chen Ding. Feature selection based on mutual information criteria of max-dependency, max-relevance, and min-redundancy. IEEE TPAMI, 27(8):1226–1238, 2005.
Robin L. Plackett. The analysis of permutations. Journal of the Royal Statistical Society: Series C (Applied Statistics), 24(2):193–202, 1975.
Rahul Ravishankar, Zeeshan Patel, Jathushan Rajasegaran, and Jitendra Malik. Scaling properties of diffusion models for perceptual tasks. In CVPR, pp. 12945–12954, 2025.
Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In MICCAI, pp. 234–241, 2015.
Nick Stracke, Stefan Andreas Baumann, Kolja Bauer, Frank Fundel, and Björn Ommer. CleanDIFT: Diffusion features without noise. In CVPR, pp. 117–127, 2025.
Luming Tang, Menglin Jia, Qianqian Wang, Cheng Perng Phoo, and Bharath Hariharan. Emergent correspondence from image diffusion. In NeurIPS, volume 36, pp. 1363–1389, 2023.
Junjiao Tian, Lavisha Aggarwal, Andrea Colaço, Zsolt Kira, and Mar González-Franco. Diffuse, attend, and segment: Unsupervised zero-shot segmentation using Stable Diffusion. In CVPR, pp. 3554–3563, 2024.
Weilai Xiang, Hongyu Yang, Di Huang, and Yunhong Wang. Denoising diffusion autoencoders are unified self-supervised learners. In ICCV, pp. 15802–15812, 2023.
Jiarui Xu, Sifei Liu, Arash Vahdat, Wonmin Byeon, Xiaolong Wang, and Shalini De Mello. Open-vocabulary panoptic segmentation with text-to-image diffusion models. In CVPR, pp. 2955–2966, 2023.
Xingyi Yang and Xinchao Wang. Diffusion model as representation learner. In ICCV, pp. 18938–18949, 2023.
Manyuan Zhang, Guanglu Song, Xiaoyu Shi, Yu Liu, and Hongsheng Li. Three things we need to know about transferring Stable Diffusion to visual dense prediction tasks. In ECCV, pp. 128–145, 2024.
Wenliang Zhao, Yongming Rao, Zuyan Liu, Benlin Liu, Jie Zhou, and Jiwen Lu. Unleashing text-to-image diffusion models for visual perception. In ICCV, pp. 5729–5739, 2023.
Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ADE20K dataset. In CVPR, pp. 633–641, 2017.
A EXPERIMENTAL DETAILS
A.1 CHANNEL-BUDGET SWEEP
Figure 2 compares channel budgets on ADE20K using top-magnitude selection at a fixed timestep and layer, with a separate student trained for each budget. The highest validation mIoU is obtained at . The masked distillation loss is averaged over all 1280 channels, so changing the budget also changes its scale. This experiment does not isolate the effect of channel count from the change in distillation strength.
A.2 FIXED ALIGNMENT
With trainable , the KD loss fell below 0.005 within two epochs in each diagnostic run. This behavior is consistent with projection shrinkage toward zero. We therefore fixed for the channel-score normalization ablation and the RepFusion comparison.
B ADDITIONAL RESULTS
Table 4: Fixed-slot reference runs on ADE20K. Each method is trained for 14 epochs with one seed. The reported metric is the best validation mIoU.
| Selector | Width | mIoU |
|---|---|---|
| All channels | 1280 | 38.35 |
| Random subset | 128 | 37.88 |
| Top-variance subset | 128 | 37.70 |
Table 5: ADE20K results with fixed after 14 training epochs. Values are the mean and sample standard deviation of the best validation mIoU over three seeds.
| Method | Width | mIoU |
|---|---|---|
| POLICY-MASK | 128 | 37.7 ± 0.7 |
| Unnormalized joint policy | 128 | 36.8 ± 0.6 |
| RepFusion | 1280 | 33.1 ± 0.3 |
B.1 FIXED-SLOT REFERENCE RUNS
Table 4 compares feature selection methods on ADE20K at a fixed timestep and layer. The full-width baseline uses 1280 channels, while random and top-variance selection retain 128 channels. These 14-epoch reference runs follow a separate protocol and are not compared numerically with Table 1.
B.2 CHANNEL-SCORE NORMALIZATION AND REPFUSION COMPARISON
The normalized and unnormalized policies use fixed , the same seeds, and the same training settings. They differ only in the channel-score factor. Our ADE20K implementation of RepFusion uses SD-1.5 and follows two stages: feature distillation followed by segmentation training. The teacher-side alignment remains fixed. RepFusion uses all 1280 dimensions, while POLICY-MASK retains 128.
C QUALITATIVE AND CLASS-WISE ANALYSIS
The seed-0 comparison covers 2000 ADE20K validation images. POLICY-MASK has higher image-mIoU than RepFusion on of images. This image-level comparison is separate from the dataset mIoU reported across three seeds. Class IoU improves for ball, flag, bridge, sand, monitor, and mountain, with losses for sconce, sink, animal, and desk (Figure 5). The gain and loss panels show the 12 largest differences in each direction.

Figure 5: Class IoU differences between POLICY-MASK and RepFusion on ADE20K, seed 0. The plot shows the 12 largest gains and losses among classes present in at least 20 validation images. Positive values favor POLICY-MASK.
Input
Ground
truth
RepFusion
Random
128
Policy-
Mask
Input
Ground
truth
RepFusion
Random
128
Policy-
Mask

Figure 6: ADE20K validation, seed 0. The 12 images with the largest losses in image-mIoU relative to RepFusion. Selected by outcome. Columns follow Figure 3.