Manuscript Offprint

arXiv:2610.16817

Growing to See: Efficient Pretraining of Self-Supervised Vision Transformers

Amir Mohammad Karimi Mamaghan, Ferdinand Kapl, Andrea Dittadi, Karl Henrik Johansson, Kaitlin Maile, Johannes von Oswald, Stefan Bauer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Progressive depth growth builds large networks by starting with shallow models and inserting layers during training. Recent advances in large language models have renewed interest in this longstanding approach, demonstrating benefits for training efficiency and reasoning alongside changes in internal computations. However, how growing affects representation quality and computational patterns in self-supervised vision transformers remains unclear. In this work, we systematically investigate progressive depth growth in two popular self-supervised families, namely masked autoencoders (MAE) and DINov3, and analyze how growing affects downstream performance, intermediate representations, and internal computations. Across global and dense tasks, we show that growing improves downstream performance while reducing training FLOPs by 13.9–24.8%, with ImageNet linear-probe accuracy gains of up to 3.36 percentage points. Growing also improves downstream performance at intermediate layers and reshapes internal computational patterns, introducing recurring alternations between global and localized attention in MAE and earlier local-to-global attention progression in self-distilled DINov3. Together, these findings establish progressive depth growth as an effective and efficient pretraining strategy for improving downstream performance across global and dense visual tasks with less computation, and advance our understanding of how growing shapes visual computation.

1 INTRODUCTION

Recent work on large language models (LLMs) has renewed interest in a longstanding idea in deep learning: start with a smaller network and gradually expand it during training (Fahlman & Lebiere, 1989; Chen et al., 2015; Reddi et al., 2023). Progressive depth growth implements this idea by starting with a shallow network and adding layers, reducing pretraining compute by allocating part of the training budget to smaller models. Beyond efficiency, growing and related approaches such as looping have been connected to improved reasoning and changes in learned computation (Saunshi et al., 2024; 2025; Kapl et al., 2026a;b). These findings suggest that growing can influence more than the cost of training: introducing layers progressively may shape the representations and emerging computational patterns.

Vision transformers (ViTs) (Dosovitskiy et al., 2020) provide a compelling setting for investigating these effects. Their representations support tasks ranging from global image-level classification to dense pixel-level prediction, allowing us to examine how growing affects the emergence of information at different granularities. Analyses of pretrained ViTs have identified transitions between local and global processing and repeated or phase-like behavior across layers (Park et al., 2023; Jacobs

∗^{*} Equal contribution.

Correspondence to Amir Mohammad Karimi Mamaghan (amkm@kth.se) and Ferdinand Kapl (ferdinand.kapl@tum.de).

et al., 2026). Other studies show that attention and representations evolve differently across self-supervised learning (SSL) objectives (Park et al., 2023; Shekhar et al., 2023). These observations raise a natural question: how does this organization change when the architecture grows during training?

Despite these developments, how progressive growth shapes representations and computational patterns in self-supervised vision models remains insufficiently understood. Existing growth methods in vision primarily target training efficiency, focusing largely on supervised ViTs (Li et al., 2022; Ding et al., 2023; Wang et al., 2023; Fu et al., 2023) or image-text models (Deng et al., 2023; Fan et al., 2026), with limited analysis of how growing changes internal computations. This question is particularly interesting across popular SSL objectives: Masked Image Modeling (MIM) (Bao et al., 2021; He et al., 2022) and self-distillation (Caron et al., 2021; Oquab et al., 2023), whose different training signals may lead to different responses to progressive growth.

In this work, we study progressive depth growth in two representative self-supervised model families: masked autoencoders (MAE) (He et al., 2022) and DINOv3 (Siméoni et al., 2025). Starting from shallow networks, we progressively insert layers by copying existing blocks. We evaluate Stacking, MIDAS, and LIDAS across model sizes, growth schedules, training budgets, and distillation settings, comparing grown models with fixed-depth baselines at matched training steps and data exposure, with identical final architectures. We combine a wide range of tasks, from global image classification to dense semantic segmentation and monocular depth estimation, with layer-wise readouts, attention analyses, and layer-skipping interventions to analyze both representation quality and internal computation. Our main findings are:

• Growing improves downstream performance with less pretraining compute (Section 4.1). Across global and dense tasks, growing improves final-layer downstream performance while reducing pretraining FLOPs by 13.9–24.8%, with unchanged final architectures and inference costs. ImageNet linear-probe accuracy improves by up to 3.36 percentage points and ADE20K mIoU by up to 1.44 points, while NYUv2 depth-estimation RMSE decreases by up to 0.0538 meters. Based on these results, we identify the following practical growing recipes: Stacking performs best for smaller MAEs, while LIDAS is the strongest strategy for larger MAEs and DINOv3.

• Growing improves representations in intermediate layers (Section 4.2). Frozen intermediate representations yield better downstream performance, often with larger gains than at the final layer. These improvements are particularly pronounced in middle layers, showing that growing makes task-relevant information accessible at earlier depths.

• Growing changes computational patterns (Section 4.3). MAE develops recurring alternations between global and localized attention, aligned with the four-layer growth increments, while self-distilled DINOv3 exhibits earlier local-to-global attention progression. MAE's recurring patterns persist after prolonged full-depth training, even as copied weights become less similar. In both families, skipping the earliest layers produces larger relative changes in representations in subsequent layers than in fixed-depth baselines, whereas skipping many later layers produces smaller changes.

Overall, this work advances our understanding of how progressive depth growth shapes visual representations and internal computation, providing practical guidance for pretraining more capable self-supervised vision models with less compute.

References (100)

  • BEiT: BERT Pre-Training of Image Transformers
  • Successive Capacity Growth: Task-Complexity-Driven Width and Depth Expansion for Vision Transformer Encoders in JEPA World Models
  • Emerging properties in self-supervised vision transformers
  • Net2net: Accelerating learning via knowledge transfer (opens arXiv in a new tab)
  • A simple framework for contrastive learning of visual representations
  • Imagenet: A large-scale hierarchical image database
  • Growclip: Data-aware automatic model growing for large-scale contrastive language-image pre-training
  • Network expansion for practical training acceleration
  • Unsupervised visual representation learning by context prediction
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Stacking your transformers: A closer look at model growth for efficient llm pre-training
  • Enabling early exit inference and self-speculative decoding
  • Layerlock: Non-collapsing representation learning with progressive freezing
  • The cascade-correlation learning architecture
  • Chain-of-models pre-training: Rethinking training acceleration of vision foundation models (opens arXiv in a new tab)
  • revisiting pretrained model reuse and progressive learning for efficient vision transformer scaling and searching
  • Born again neural networks
  • Large-scale unsupervised semantic segmentation
  • Composable function-preserving expansions for transformer architectures (opens arXiv in a new tab)
  • Unsupervised representation learning by predicting image rotations (opens arXiv in a new tab)
  • Advances in neural information processing systems, 33:21271–21284, 2020
  • Momentum contrast for unsupervised visual representation learning
  • Masked autoencoders are scalable vision learners
  • Block recurrent dynamics in vision transformers
  • Do depth-grown models overcome the curse of depth? an in-depth analysis
  • From growing to looping: A unified view of iterative computation in LLMs
  • Automated progressive learning for efficient training of vision transformers
  • Efficient training of large vision models via advanced automated progressive learning
  • DINOv2: Learning Robust Visual Features without Supervision
  • What do self-supervised vision transformers learn? In International Conference on Learning Representations, 2023
  • Efficient training of language models using few-shot learning
  • On the inductive bias of stacking towards improving reasoning
  • Reasoning with latent thoughts: On the power of looped transformers
  • Objectives matter: Understanding the impact of self-supervised objectives on vision transformer representations (opens arXiv in a new tab)
  • Indoor segmentation and support inference from rgbd images
  • DINOv3
  • Dynamic token pruning in plain vision transformers for semantic segmentation
  • Learning to grow pretrained models for efficient transformer training (opens arXiv in a new tab)
  • Efficienttrain++: Generalized curriculum learning for efficient visual backbone training
  • Lgvit: Dynamic early exiting for accelerating vision transformer
  • Semantic understanding of scenes through the ade20k dataset
  • ibot: Image bert pre-training with online tokenizer (opens arXiv in a new tab)
  • We build on the original MAE (He et al., 2022) and DINOv3 (Siméoni et al., 2025) implementations, using the training configurations reported below
  • All models are trained on the ImageNet-1k (Deng et al., 2009) training split which contains 1,281,167 images
  • We use ViT-L/16 and ViT-H/14 encoders with the configurations in Table 3 and fixed positional embeddings
  • We use random resized cropping to $224 \times 224$ with scale range [0.2, 1.0] and bicubic interpolation, followed by horizontal flipping and ImageNet normalization
  • Following the public recipe for ImageNet training of DINOv3, we use ViT-L/16 with 24 layers, width 1024, 16 attention heads, MLP ratio 4, and LayerScale initialized to $10^{-5}$
  • Each image produces two global crops of $224 \times 224$ pixels with scale range [0.32, 1.0] and eight local crops of $96 \times 96$ pixels with scale range [0.05, 0.32]
  • The DINO objective excludes same-view global matches
  • Following DINOv3's public training recipe, training uses 125k steps at global batch size 2048, approximately 200 ImageNet epochs
  • At global batch size 4096, this gives an effective peak learning rate of $2.4 \times 10^{-3}$
  • The configurations and local references are specified in Appendix C.1.2
  • ViT-L models use six stages with depths (4, 8, 12, 16, 20, 24), while MAE ViT-H uses eight stages with depths (4, 8, 12, 16, 20, 24, 28, 32)
  • The source index is
  • \end{cases} $$
  • MIDAS selects the middle $B$-layer chunk, choosing the earlier chunk when there are two central chunks
  • Stage $i$ occupies the half-open step interval $[t_{i-1}, t_i)$, where $t_0 = 0$ and $t_i = \sum_{j=1}^i \Delta_j$; growth occurs at $t_1, \dots, t_{K-1}$
  • At each transition, we expand a saved checkpoint and resume training the larger model
  • Patch-selection indices are still sampled for the iBOT loss, and the frozen teacher's iBOT head supplies targets at those selected positions
  • The deterministic $k$-NN evaluation is reported without error bars
  • Probes are trained on the respective training splits and evaluated on ImageNet-1k validation, ADE20K validation, and the 653-image NYUv2 test set
  • ImageNet-1k (Deng et al., 2009) contains 1,000 classes, with 1,281,167 training and 50,000 validation images
  • We evaluate semantic segmentation on ADE20K (Zhou et al., 2019), which contains indoor and outdoor scenes annotated with 150 semantic classes
  • We use the reference linear segmentation head shown in Table 9, with dropout 0.1 and cross-entropy loss
  • We evaluate monocular depth estimation on NYUv2 (Silberman et al., 2012), an indoor RGB-D dataset
  • The downstream model is a linear binned depth head: a $1 \times 1$ convolution predicts 256 values per pixel
  • Let $\tilde{A}$ denote a head's post-softmax attention over all tokens
  • For each spatial query q, let $p_q$ denote its two-dimensional patch-grid coordinates
  • Using unnormalized Shannon entropy $\mathcal{H}$, we compute
  • Higher values indicate more query-specific attention, reaching one when each query attends exclusively to a distinct key
  • They retain the original attention normalization and therefore quantify the budget assigned to CLS-patch exchange
  • Ratios are computed per token before averaging over tokens and images
  • Selected pixels are replaced with the ImageNet mean, equivalent to zero after normalization
  • Although this subset covers 919 classes, we retain the full 1,000-way ImageNet classifier and take the argmax over all logits
  • Segmentation scores are computed over the whole image
  • Two- and three-layer MLP probes replace the linear classifier while retaining its 2D-dimensional CLS-plus-pooled-patch input
  • Following the original MAE fine-tuning recipe, we update the full MAE encoder and attach global mean pooling over patch tokens, a normalization layer, and a linear classifier
  • These comparisons characterize whether layers produce closely aligned features or retain similar relationships among image-token representations
  • These comparisons use checkpoint parameters without image inputs or trained heads
  • These ablations complement the main results by identifying which choices consistently improve downstream performance and where they introduce task-dependent trade-offs
  • Within each model family, the strategy comparison uses identical stage durations and therefore identical pretraining FLOPs
  • MIDAS improves k-NN and depth estimation but falls below the baseline on linear classification and segmentation
  • All three strategies use 27.5% less compute but fall below the baseline on classification and segmentation, although LIDAS comes closest, reaching 83.31% linear accuracy against 83.40% for the baseline
  • Under Prop-3, MIDAS exceeds the baseline on all four metrics, while LIDAS improves linear accuracy, segmentation, and depth, with k-NN accuracy only 0.01 percentage points below the baseline
  • The first block contains fixed-depth sweep runs, and the second block compares Stacking (Prop-1) with the selected cosine $(2.4\times 10^{-3})$ and WSD $(10^{-3})$ references
  • Although allocating more steps to deeper stages increases pretraining FLOPs, it substantially improves the DINOv3 comparisons, while MAE exhibits a clearer trade-off between classification or segmentation and depth estimation
  • The learning-rate sweeps use fixed-depth ViT-L models, and separate comparisons evaluate selected recipes and interventions in grown models
  • We first compare cosine decay and warmup–stable–decay (WSD) at peak learning rates of $5 \times 10^{-4}$ , $10^{-3}$ , and $2.4 \times 10^{-3}$ , training fixed-depth MAE ViT-L for 50k steps
  • The horizontal axis shows peak learning rates before batch-size scaling
  • All configurations in this comparison use 1,250 warmup steps
  • Thus, the preferred cosine configuration depends on the downstream task, while WSD at $10^{-3}$ outperforms all listed cosine configurations
  • For fixed-depth DINOv3 trained for 125k steps, we compare cosine decay with WSD using linear or $1 - \sqrt{s}$ cooldowns, as well as a warmup–stable schedule without cooldown, where $s$ denotes normalized cooldown progress
  • The paired changes in Table 14 show that stronger stochastic depth is not uniformly beneficial
  • Each variant changes only the indicated hyperparameter in the final growth stage, allowing its effect to be assessed relative to the unchanged reference recipe
  • Increasing the weight toward 1 raises mIoU from approximately 41 to 44 for
  • MIDAS depth RMSE falls from approximately 0.497 at weight zero to 0.461 at weight 0.5, with little further change
  • MIDAS achieves its highest classification scores at 0.9 but its highest mIoU at 0.75, while LIDAS favors different weights across tasks
  • These comparisons extend the main MAE training study in Figure 2
  • Spreading growth over 500k steps yields much higher k-NN accuracy, 57.97% compared with 51.86% for early growth and 49.96% for the baseline
  • >Configuration</td><td>Training</td><td colspan=

Couldn't load all references. Reload the page to try again.