Reusing Pretrained Models by Multi-linear Operators for Efficient Training

Yu Pan, Ye Yuan, Yichun Yin, Zenglin Xu, Lifeng Shang, Xin Jiang, Qun Liu

Abstract

Training massive Transformer models from scratch is a resource-intensive endeavor that often conflicts with the principles of "Green AI." This paper introduces Mango, a method that "grows" large models from smaller pretrained ones by using multi-linear operators to map the entire weight space of the small model to the target model. By capturing complex inter-layer and intra-layer correlations, Mango saves up to 76% of computational costs while outperforming existing model-growth baselines.

Introduction

As AI models scale to billions of parameters, the financial and environmental costs of training become major barriers. A popular strategy to mitigate this is "model growth," where a small pretrained model is used to initialize a larger "target" model.

However, existing methods like bert2BERT or LiGO typically use partial mappings, expanding layers in isolation or only considering immediate neighbors. This ignores the rich, global correlations present across an entire pretrained model. The challenge lies in creating a "full mapping" (connecting every weight in the small model to every weight in the large one) without causing a parameter explosion that would make the initialization process more expensive than the training itself.

Methodology

The authors propose the Mango operator, which treats the entire pretrained model as a single knowledge source. The core idea is to map the concatenated weights of a small model ($\mathcal{M}_1$) to a larger target model ($\mathcal{M}_2$) using a transformation ($\mathcal{S}$).

Width and Depth Expanding Operators in Mango

To make this computationally feasible, Mango employs a Tensor Ring Matrix Product Operator (TR-MPO). This decomposes the massive theoretical mapping tensor into four smaller, trainable tensors:

  • $\mathcal{S}_B$: Handles intra-layer interactions.
  • $\mathcal{S}_I$ and $\mathcal{S}_O$: Handle transformations of input and output dimensions.
  • $\mathcal{S}_L$: Captures the relationships between different layers.

The training proceeds in two stages. First, the Mango operator is "warmed up" for a small number of steps (e.g., 100) to learn the optimal knowledge transfer. Then, the resulting weights initialize the large model for standard training.

Experimental Setup

Mango was evaluated across Computer Vision (CV) and Natural Language Processing (NLP) tasks:

  • ImageNet-1K: For training Vision Transformers (DeiT and Swin).
  • English Wikipedia & Toronto Book Corpus: For pretraining BERT and GPT models.
  • Downstream Benchmarks: Including CIFAR, Flowers, Cars, and ChestXRay8 for CV; GLUE and SQuAD for NLP.

Results

Mango demonstrates superior efficiency across multiple architectures compared to training from scratch:

  • DeiT-Base: Saved 76.4% of FLOPs and outperformed bert2BERT by +12.0% and LiGO by +20.7% in accuracy at the same budget.
  • BERT-Base: Achieved a 39.2% FLOP saving, surpassing StackBERT by +9.7%.
  • GPT-Base: Saved 59.9% of FLOPs.

Crucially, models initialized with Mango reached final accuracies comparable to or exceeding those trained fully from scratch, despite the massive reduction in training time.

Discussion

A key insight of this work is that Global Connectivity is Key. Visualizing attention maps across different model scales reveals similarities that exist not just within layers, but across the entire network. Mango is the first method to efficiently exploit these global "inter- and intra-interactions."

Attention map visualizations showing global correlations across layers

Ablation studies further showed that a Rank-1 mapping is often sufficient. While higher-rank decompositions improved operator accuracy, they did not significantly speed up final model convergence, suggesting that a low-rank global mapping captures the essential "DNA" needed for model growth. Furthermore, Mango is a mathematical generalization of previous methods like LiGO or bert2BERT.

Conclusion

Mango offers a significant step toward "Green AI" by drastically reducing the resources needed to train large-scale models. While it currently depends on the availability of high-quality smaller pretrained models and requires careful initialization tuning, its ability to capture global model correlations sets a new standard for efficient model growth. Future work may explore even more efficient tensor decomposition formats to further reduce memory overhead.

Summary updated

BibTeX
@inproceedings{pan2023reusing,
  author = {Yu Pan and Ye Yuan and Yichun Yin and Zenglin Xu and Lifeng Shang and Xin Jiang and Qun Liu},
  title = {{Reusing Pretrained Models by Multi-linear Operators for Efficient Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=RgNXKIrWyU},
}
Figure