Self-Distillation of Hidden Layers for Self-Supervised Representation Learning
Organizations: Vector Institute · Carleton University · Dalhousie University · University of British Columbia ·
Abstract
The landscape of self-supervised learning (SSL) is currently dominated by generative approaches (e.g. MAE) that reconstruct raw low-level data, and predictive approaches (e.g. I-JEPA) that predict high-level abstract embeddings. While generative methods are stable due to their reliable training targets based on ground-truth data, they are computationally inefficient for high-redundancy modalities like imagery, and their training objective does not prioritize learning high-level, conceptual features. Conversely, predictive methods often suffer from training instability due to their reliance on the non-stationary targets of final-layer self-distillation. We introduce Bootleg, a method that bridges this divide by tasking the model with predicting latent representations from multiple hidden layers of a teacher. This hierarchical objective forces the model to capture features at varying levels of abstraction simultaneously. We demonstrate Bootleg significantly outperforms comparable baselines (+10% vs. I-JEPA) on frozen probe classification of ImageNet-1K, iNaturalist-21, and VTAB, and semantic segmentation of ADE20K, Cityscapes, and COCO-Stuff.
Figures & tables
Appendix figures & tables28 assets
Supplementary material from the paper’s appendix.
Appendix
| Rate (%) | ||||
| (h, w) | Area | Aspect | I-JEPA | Bootleg |
| (5, 6) | 30 | 0.83 | 26.5 | 18.8 |
| (6, 5) | 30 | 1.20 | 12.6 | 18.7 |
| (5, 7) | 35 | 0.71 | 0.0 | 20.0 |
| (7, 5) | 35 | 1.40 | 36.5 | 20.1 |
| (6, 6) | 36 | 1.00 | 21.8 | 22.4 |
| IN-1k acc. | ADE20K mIoU | |||||||
| Method | GPU-BS | Seen (%) | Target (%) | Adj. (%) | Patch | CLS | X-Blk | kNN |
| I-JEPA | 64 | 55.2 | N/A | 64.7 | 10.9 | |||
| 128 | 55.6 | N/A | 63.9 | 10.7 | ||||
| 256 | 53.4 | N/A | 62.3 | 10.5 | ||||
| 512 | 52.3 | N/A | 62.6 | 10.1 | ||||
| 1024 | 52.7 | N/A | 62.7 | 11.2 | ||||
| Hyperparameter | Value | |
| Encoder | Drop path | 0.0 |
| Data | Input size | 224×224 |
| Cropping | RandCrop(0.3, 1.0) | |
| Stretch | [ , ] | |
| Interpolation | Bicubic | |
| Transforms | HFlip( ) |
| Hyperparameter | Value | |
| Encoder | Drop path | 0.0 |
| Data | Input size | 224×224 |
| Interpolation | Bicubic | |
| Augmentations | None | |
| Training | Loss | Cross-entropy |
| Optimizer | AdamW |
| Hyperparameter | ViT-S, -B | ViT-L | |
| Encoder | Drop path | 0.1 | 0.2 |
| Decoder | Type | MaskTransformer | MaskTransformer |
| Depth | 1 block | 1 block | |
| Data | Input size | 512 | 512 |
| Cropping | RandScale(0.5, 2.0) | RandScale(0.5, 2.0) | |
| Stretch | [1, 1] | [1, 1] |
| # tgt | IN-1k Probe | |||
| Distillation targets | Layer | Patch | CLS | X-Blk |
| Block 1:4:12 out | 4 | 62.2 | 62.4 | 73.0 |
| Block 4:4:12 out & Tok. | 4 | 60.3 | 61.6 | 72.4 |
| Block 1:1:12 out | 12 | 58.5 | 56.3 | 72.2 |
| Block 1:1:12 out & Tok. | 13 | 59.2 | 59.2 | 72.4 |
| Block 1:1:12 mid, out | 24 | 59.3 | 59.9 | 72.8 |
| IN-1k Probe | ADE20K | ||||
| Epochs | Targets | Patch | CLS | X-Blk | kNN |
| 50 | b1, 4, 8, 12 | 52.9 | 53.0 | 66.3 | 14.3 |
| b12 | 55.0 | 53.8 | 67.0 | 15.9 | |
| 100 | b1, 4, 8, 12 | 59.0 | 59.4 | 70.0 | 17.7 |
| b12 | 61.0 | 60.2 | 69.9 | 17.1 | |
| 200 | b1, 4, 8, 12 | 65.5 | 66.3 | 73.2 | 20.9 |
| IN-1k Probe | ADE20K | ||||
| Targets | Patch | CLS | X-Blk | kNN | |
| b1, 4, 8, 12 | 66.6 | 67.1 | 73.6 | 21.2 | |
| b12 | 42.1 | 41.3 | 60.6 | 0 1.8 | |
| b1, 4, 8, 12 | 67.5 | 68.3 | 74.1 | 21.5 | |
| b12 | 51.5 | 49.3 | 66.5 | 0 9.7 | |
| b1, 4, 8, 12 | 67.8 | 68.9 | 74.4 | 22.0 | |
| IN-1k Probe | ADE20K | ||||
| Targets | Patch | CLS | X-Blk | kNN | |
| b1, 4, 8, 12 | 67.1 | 68.2 | 74.0 | 21.3 | |
| b12 | 57.6 | 54.7 | 68.9 | 13.2 | |
| b1, 4, 8, 12 | 67.8 | 68.9 | 74.4 | 22.0 | |
| b12 | 56.7 | 54.6 | 68.6 | 13.1 | |
| b1, 4, 8, 12 | 67.2 | 68.5 | 74.0 | 22.2 | |
| IN-1k Probe | |||||
| Arch | Distil. method | Patch | CLS | X-Attn | X-Blk |
| ViT-S | Baseline | 62.2 | 62.4 | 71.1 | 73.0 |
| +target 4 reg. | 62.2 | 62.5 | 70.9 | 72.7 | |
| IN-1k Probe | |||||
| Arch | Distillation targets | Predictor | Patch | CLS | X-Blk |
| ViT-S | Block 1:4:12 out | SA | 62.2 | 62.4 | 73.0 |
| Block 1:4:12 out | XA, WFM | 62.2 | 61.1 | 72.8 | |
| Block 1:1:12 res., out | SA | 62.4 | 61.9 | 73.1 | |
| Block 1:1:12 res., out | XA | 54.7 | 46.5 | 69.7 | |
| Block 1:1:12 res., out | XA, WFM | 62.6 | 59.1 | 72.6 | |
| # targets | IN-1k Probe | |||
| Target standardization | Layers | Patch | CLS | X-Blk |
| Separately standardized | 4 | 62.2 | 62.4 | 73.0 |
| Jointly standardized | 4 | 57.8 | 57.2 | 69.8 |
| top-1 SVD frac. | kurtosis | |||
| Block | early | late | early | late |
| 1 | 0.55 | 0.14 | 123 | 16 |
| 4 | 0.65 | 0.20 | 166 | 22 |
| 8 | 0.48 | 0.10 | 93 | 7 |
| 12 | 0.33 | 0.09 | 49 | 4 |
Self-Supervised Visual Representation Learning
Self-supervised visual representation learning trains image, video, and 3D encoders on unlabeled data to produce transferable visual features.
See all 234 papers