NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self-Distillation of Hidden Layers for Masked Self-Supervised Representation Learning

Scott C. Lowe, Anthony Fuller, Sageev Oore, Evan Shelhamer, Graham W. TaylorNeurIPS 2026

TL;DR

When teaching Vision Transformers to understand images without labels, current masked methods force a tough compromise: reconstruct raw pixels for stable training (like MAE), or predict final-layer abstract concepts at the risk of model collapse (like I-JEPA). Bootleg bridges this gap by training a student network to predict representations from multiple hidden layers of its teacher simultaneously—capturing everything from low-level edges to high-level semantics. The result is rock-solid training stability and a massive leap (+10% accuracy in some cases) over existing single-view baselines.

What Problem Does This Paper Address?

Self-supervised learning (SSL) lets models learn rich representations from unlabelled data. While multi-view methods (like DINOv2) dominate leaderboards, they require heavy, domain-specific data augmentations and immense compute to process multiple views of every image. Single-view masked modelling—essentially playing "fill-in-the-blank" with hidden image patches—is much cheaper and more general, but suffers from a fundamental divide:

  • Generative methods (e.g., MAE) predict the raw pixels of masked patches. Because pixels are ground-truth, training never collapses. However, obsessing over pixel-level details leaves the model weak at high-level conceptual understanding unless you fine-tune the whole network.
  • Predictive methods (e.g., I-JEPA) predict the final-layer embeddings of a teacher network (a slow-moving average of the student). This yields great semantic features out-of-the-box, but because the model is chasing its own tail without pixel grounding, training is notoriously fragile and prone to collapse.

Can we get the rich semantics of predictive methods with the grounded stability of generative ones?

Methods

Bootleg ("using the whole buffalo") builds on the Vision Transformer (ViT) student-teacher setup of I-JEPA. An image is split into patches, and four contiguous rectangular regions (~70% of the image) are masked out. The student encoder sees only the unmasked patches, while an Exponential Moving Average (EMA) teacher encoder sees the full image.

Figure 1: Multi-layer self-distillation with Bootleg. The teacher-encoder (blue), student-encoder (green), and predictor (orange) are ViTs, made of repeated transformer blocks. A schematic of a single transformer block is overlaid (bottom right). The teacher-encoder is an EMA of the student- encoder, and processes the full image. The student-encoder sees a subset of the image and must create embeddings of them to facilitate the predictor. The predictor processes the embeddings to predict representations at multiple layers within the teacher-encoder.

Here is where Bootleg diverges from standard practice:

  • Multi-Layer Targets (Novel): Instead of predicting just the teacher's final output, Bootleg extracts hidden representations from every 4th transformer block of the teacher (e.g., blocks 1, 4, 8, and 12). Each target layer is independently standardized ($z$-scored) and concatenated—unlike prior work like data2vec, which averages layers together—preserving distinct levels of abstraction.
  • Architectural & Training Polish: The authors add class (CLS) and register tokens to gather global information, lengthen the learning rate warmup, and uncover and fix five implementation bugs in I-JEPA's original multi-block masking code.

Datasets

No new datasets are introduced; evaluation relies on standard vision benchmarks:

  • Pretraining: ImageNet-1K (IN-1k) at 224×224 resolution without labels.
  • Image Classification: ImageNet-1K, iNaturalist-2021 (long-tailed, fine-grained species), and VTAB-1k (19 diverse tasks spanning natural, specialized medical/satellite, and structured synthetic imagery).
  • Semantic Segmentation: ADE20K, Cityscapes, and COCO-Stuff.

Key Insights and Ideas

  • Early layers act as anchors: Early ViT blocks process basic, stimulus-driven features (edges, colors) that stay close to the raw image. Including them as targets grounds the self-distillation loop, preventing the representation collapse that plagues final-layer-only methods over long training runs (1200+ epochs).
  • Worst alone, best together: In ViT-S ablations, the 6th block was the worst single layer to predict on its own—neither grounded enough nor abstract enough. Yet, when paired with the final (12th) layer, block 6 was the best partner! Because mid-depth features are the least correlated with the final output, predicting both forces rich information to flow cleanly through the entire network.
Sweep across hidden target layers showing mid-layer dips when used alone, but strong synergy when paired with the final layer.
  • Masking shapes prevent "cheating": Replacing MAE's uniform random masking with large contiguous blocks is essential for hidden-layer distillation. Deep in a ViT, neighboring patches have highly correlated activations; if an unmasked patch sits right next to a target patch, the network takes a lazy shortcut by copying its neighbor rather than learning global semantics.
  • Plug-and-play: Swapping Bootleg’s multi-layer targets and bug-fixed masking into MAE and CrossMAE immediately boosts their linear probe accuracies by +8% to +12%.

Key Results

Evaluated with frozen encoders (probing the learned representations directly without altering backbone weights), Bootleg sweeps comparable single-view masked baselines across ViT-S, ViT-B, and ViT-L sizes:

  • ImageNet-1K Classification: On ViT-S/16, Bootleg hits 70.4% linear probe accuracy, crushing I-JEPA (52.4%) by +18.0 percentage points and MAE (49.8%) by +20.6 pp. On ViT-L/16, Bootleg reaches 79.1% linear (80.6% attentive), beating I-JEPA (68.4%) and MAE (75.5%), and narrowing the gap to expensive multi-view methods like SimDINOv2 (81.9%) to within ~2–3 pp.
  • Out-of-Domain & Dense Tasks: On fine-grained iNaturalist-21 (ViT-B linear probe), Bootleg jumps to 58.3% vs. I-JEPA's 41.4%. Because it distills multi-granularity features, semantic segmentation leaps forward too: on ADE20K (ViT-B), Bootleg achieves 30.9% mIoU, far ahead of I-JEPA (19.3%) and MAE (24.7%).

Limitations and Future Work

  • Compute overhead: Running the teacher encoder takes ~12% of total training time, though extracting multiple hidden layers instead of one adds a negligible ~2% extra cost.
  • No theoretical guarantee against collapse: While multi-layer targets stabilize training dramatically over 1,200 epochs, removing the EMA teacher entirely still causes collapse. Hidden targets stabilize, rather than replace, the EMA mechanism.
  • Scope & Masking: Bootleg still relies on contiguous block masking (which may require tuning for new domains) and has thus far only been validated up to ViT-L on vision tasks. Extending it to giant models and non-image modalities (audio, video, time-series) remains open for future work.

Summary updated

BibTeX
@inproceedings{lowe2026self,
  author = {Scott C. Lowe and Anthony Fuller and Sageev Oore and Evan Shelhamer and Graham W. Taylor},
  title = {{Self-Distillation of Hidden Layers for Masked Self-Supervised Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=iLR53jV2Bg},
}
Figure