Introduction
In the current landscape of foundation models, the "one size fits all" approach is increasingly impractical for real-world deployment. While massive models excel on server clusters, they are often too resource-intensive for edge devices like smartphones or IoT hardware. Traditionally, adapting these models involves expensive post-hoc processes: weight pruning, complex knowledge distillation for every target size, or training smaller models from scratch.
POA (Pre-training Once for All) addresses this efficiency gap by introducing a self-supervised learning framework that trains a single foundation model from which hundreds of high-performing sub-networks can be instantly extracted. This approach eliminates the need for per-size retraining while achieving state-of-the-art results across various architectures, including ViT, Swin, and ResNet.
The POA Framework
POA evolves the standard teacher-student self-distillation paradigm into a sophisticated tri-branch framework. This structure allows the model to learn high-quality representations for the full-sized "supernet" while simultaneously optimizing its internal sub-networks.
Methodology
The framework consists of three primary components:
- The Teacher: An exponential moving average (EMA) of the students that provides stable targets for learning.
- The Intact Student: The full-sized model undergoing training.
- The Elastic Student: A dynamic branch that randomly samples a sub-network (varying in width and depth) from the Intact Student at every training step.
To ensure effective knowledge transfer, POA utilizes Dual Distillation. First, Cross-view Distillation requires both student branches to match the teacher's output using different augmented views of the same image. Second, Same-view Distillation forces the elastic student to match the intact student's output using the exact same image view. This direct transfer ensures that smaller sub-networks inherit the representational "wisdom" of the full-capacity model.
Key Insights and Regularization
A significant finding of the POA research is that the elastic branch acts as a form of stochastic regularization. Rather than hindering the large model, training the elastic student actually improves the intact student's final representation quality and stabilizes the training process, preventing common issues like "NaN" losses in ResNets.
Furthermore, the use of Multiple Projection Heads (MPH) allows models of different capacities to project features into various semantic spaces, leading to more robust feature learning across all scales.
Experimental Results
POA produces a continuous "frontier" of models rather than a single static point. For instance, from a single ViT-L/16 backbone training session, POA can generate 143 different sub-networks ready for deployment.
Performance Benchmarks
- State-of-the-Art Accuracy: A ViT-S/16 extracted from a POA-trained ViT-L achieved 76.8% k-NN accuracy on ImageNet-1K, outperforming the previous SOTA (iBOT at 75.2%).
- Zero-Shot Efficiency: Extracted models often outperform models of the same size trained independently, even when competing methods like SEED are given twice the training time.
- Downstream Tasks: The benefits extend to object detection and segmentation. On the COCO dataset, a POA-pre-trained ViT-B achieved 52.4 APb, a notable improvement over iBOT's 51.2 APb.
Conclusion
POA represents a paradigm shift in how foundation models are pre-trained. By amortizing the cost of training across hundreds of potential model sizes, it provides a highly efficient path to deployment. While the training process involves extra computational passes for the elastic branch, the ability to "instantly" extract optimized sub-networks offers a massive net gain in research and production efficiency. Future work may extend this "Pre-training Once for All" philosophy to Multimodal Large Language Models (MLLMs), where training costs and deployment variety are even more pronounced.
Summary updated