ScaleNet: Scaling up Pretrained Neural Networks with Incremental Parameters

Zhiwei Hao, Jianyuan Guo, Li Shen, Kai Han, Yehui Tang, Han Hu, Yunhe Wang · DOI

Introduction

The "scaling law" has become a central tenet of modern deep learning: as models grow in size and depth, their performance typically improves. However, scaling up Vision Transformers (ViTs) and Large Language Models (LLMs) by simply adding layers comes with a prohibitive cost in terms of parameter count, memory footprint, and training time. While progressive training methods attempt to mitigate these costs by initializing larger models with weights from smaller ones, the resulting architectures remain parameter-heavy and difficult to deploy in resource-constrained environments.

ScaleNet addresses this challenge by introducing a framework that expands model depth through layer-wise weight sharing combined with lightweight adapter modules. This approach allows for a $2\times$ increase in model depth with negligible parameter growth, achieving superior performance in a fraction of the training time required for scratch-based training.

The ScaleNet Framework

ScaleNet scales pretrained models using two primary mechanisms: Weight-Sharing-Based Progressive Training (WSPT) and Layer Adjustment via Adapters.

1. Weight-Sharing-Based Progressive Training (WSPT)

To increase a model's depth, ScaleNet inserts new layers into the existing architecture. Rather than initializing these new layers with unique weights, they share the exact weight tensors of the original pretrained layers. The strategy for insertion depends on the model architecture:

  • Isotropic Models (e.g., DeiT): Since all layers share the same dimensions, weights can be shared across the entire model or interpolated between existing layers.
  • Hierarchical Models (e.g., Swin): These models process data at different resolutions across stages. ScaleNet restricts weight sharing to layers within the same stage to maintain architectural integrity and performance.

2. Layer Adjustment via Adapters

A significant risk of identical weight sharing is "model collapse," where layers fail to develop distinct representations. ScaleNet mitigates this by introducing tiny, layer-specific adjustment parameters through parallel adapter modules. These adapters are small neural networks placed alongside the frozen shared weights. During the scaling process, only these lightweight adapters and the layer normalization parameters are updated. This configuration creates a deeper model with unique layer behaviors while maintaining a parameter footprint nearly identical to the original model.

Experimental Results

ScaleNet was evaluated across a variety of benchmarks, including ImageNet-1K for classification, COCO 2017 for object detection, and ADE20K for semantic segmentation. The framework was also tested on LLMs using the Stanford Alpaca and various reasoning benchmarks.

Efficiency and Performance

In vision tasks, a $2\times$ depth-scaled DeiT-Base model achieved a Top-1 accuracy of 82.53% on ImageNet, a notable improvement over the 81.80% baseline. This gain was achieved by adding only ~3 million parameters (increasing from 86.57M to 89.55M).

Training Speed

ScaleNet demonstrates significant advantages in convergence speed. When compared to training a 24-layer DeiT-Small from scratch, ScaleNet achieved a 7.42% higher accuracy while using only one-third of the training epochs (100 vs. 300). This reduced the total training time from 47.3 hours to just 15.8 hours.

Generalization to LLMs

The methodology is not restricted to vision. Applying ScaleNet to a Llama-3.2-1B model resulted in a 0.92% improvement in average zero-shot reasoning performance across benchmarks such as BoolQ, PIQA, and ARC, demonstrating the framework's versatility across modalities.

Key Insights

  • Adapter Stabilization: The inclusion of adapters is critical; they smooth out gradient flows and allow shared layers to learn complex, distinct features that weight sharing alone cannot capture.
  • Limits of Reuse: While doubling depth ($2\times$) provides substantial benefits, increasing depth to $3\times$ using the same shared weights leads to diminishing returns and performance degradation, suggesting a bottleneck in the capacity of shared parameters.
  • Regularization Requirements: Because the effective depth of the model increases, the authors found that a higher "drop path" ratio is necessary during fine-tuning to prevent overfitting.

Conclusion and Future Work

ScaleNet provides a highly efficient path for scaling neural networks, offering a way to leverage the benefits of increased depth without the typical parameter explosion. While the method significantly reduces the parameter count and training time, it is important to note that inference computational cost (FLOPs) still scales linearly with depth.

Future research may explore dynamic weight-sharing mechanisms, where the model learns which layers to share automatically, or the application of ScaleNet to hybrid CNN-ViT architectures. Combining this framework with knowledge distillation could further enhance the performance of these parameter-efficient, deep architectures.

Summary updated

BibTeX
@article{hao2025scalenet,
  author = {Zhiwei Hao and Jianyuan Guo and Li Shen and Kai Han and Yehui Tang and Han Hu and Yunhe Wang},
  title = {{ScaleNet: Scaling up Pretrained Neural Networks with Incremental Parameters}},
  journal = {IEEE Transactions on Image Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=kkymqx000L},
}
Figure