A Unified Framework for Knowledge Transfer in Bidirectional Model Scaling

Jianlu Shen, Fu Feng, Jiaze Xu, Yucheng Xie, Jiaqi Lv, Xin Geng

TL;DR

BoT (Bidirectional knowledge Transfer) unifies small-to-large and large-to-small model scaling by treating neural network weights as continuous, multi-resolution signals. By leveraging the Discrete Wavelet Transform (DWT) and its inverse, BoT provides a parameter-free, computationally efficient initialization strategy that slashes pre-training costs by up to 67% while delivering state-of-the-art downstream performance.

What Problem Does This Paper Address?

Modern deep learning relies heavily on "model zoos" filled with discrete, fixed-size architectures (e.g., BERT-Base vs. BERT-Large). However, transferring pre-trained knowledge between models of different sizes remains a major bottleneck.

Currently, model scaling is fragmented into two separate, incompatible trajectories:

  1. Small-to-Large (S2L) expansion: Reusing a small model's weights to initialize a larger target model to accelerate its training. This typically relies on naive parameter stacking or complex, computationally expensive trainable mapping functions.
  2. Large-to-Small (L2S) adaptation: Compressing a large model into a resource-tailored smaller architecture. This usually relies on heuristic weight selection or expensive knowledge distillation.

As illustrated in Figure 1, direct fine-tuning is unviable due to these size mismatches, forcing researchers to rely on specialized, ad-hoc tools for each direction.

Conceptual illustration of knowledge transfer challenges between mismatched model sizes.

The authors propose a unified framework to bridge this divide, eliminating the need for specialized mappers or heuristic sampling.

Methods

The core insight of BoT is to treat model weights not as random matrices, but as continuous signals populating a low-dimensional manifold. Under this view, models of different architectural sizes are simply different resolution discretizations of the same underlying knowledge. A small model is like a blurry thumbnail image (capturing global, low-frequency approximations), while a larger model adds high-resolution, task-dependent details.

This perspective naturally maps model scaling to signal processing operations: downsampling (L2S) and upsampling (S2L) via the 3D Discrete Wavelet Transform (3D-DWT) and its inverse (3D-IDWT).

The pipeline works as follows (see Figure 2):

  • Parameter Consolidation: Weights from stacked, structurally identical layers (like Transformer blocks) are grouped together to form a 3D weight module tensor ($W \in \mathbb{R}^{L \times d_{\text{in}} \times d_{\text{out}}}$).
  • Large-to-Small (L2S) via 3D-DWT: The 3D tensor of a large model is decomposed into a low-frequency approximation sub-band ($cA$) and seven high-frequency detail sub-bands. The $cA$ sub-band acts as a condensed "learngene" and directly initializes the smaller target model.
  • Small-to-Large (S2L) via 3D-IDWT: The small model's weights are treated as the foundational low-frequency band ($cA$). The missing high-frequency details are padded with zeros, and the 3D-IDWT synthesizes a full-resolution, stable weight module to initialize the larger architecture.

This approach is entirely parameter-free and introduces zero training overhead during the transfer process.

Figure 2. Comparison of cross-architecture initialization frameworks. (a) Previous Large-to-Small (L2S) methods rely on heuristic sam- pling or layer selection. (b) Previous Small-to-Large (S2L) methods use direct copying or trainable mapping functions. (c) Our proposed BOT framework unifies both directions through a parameter-free, frequency-domain transformation using the 3D-DWT and IDWT.

Datasets

The authors validated BoT across diverse architectures and modalities using several standard benchmarks:

  • Vision (DeiT-S and DeiT-B): Pre-trained on ImageNet-1K and evaluated on 7 downstream fine-tuning datasets: Oxford Flowers, CUB-200-2011, Stanford Cars, CIFAR-10, CIFAR-100, Food-101, and iNaturalist-2019.
  • Masked Language Modeling (BERT-S and BERT-B): Pre-trained on the English Wikipedia corpus and evaluated on the GLUE benchmark and SQuAD (v1.1 and v2.0). Parallel evaluations were also conducted on RoBERTa.
  • Autoregressive Language Modeling (GPT-S and GPT-B): Pre-trained on a combination of the English Wikipedia and the Toronto Book Corpus.

Key Insights and Ideas

  • The Low-Frequency Spectrum is the "Learngene": The fundamental low-frequency spectrum of a model's weights inherently encapsulates its core, generalizable knowledge. High-frequency components represent task-specific or capacity-dependent details.
  • Zero-Padding High Frequencies Works: In S2L expansion, simply padding the absent high-frequency details with zeros before applying the IDWT provides a stable, coherent, and structurally sound initialization for larger models.
  • Wavelet Choice is Context-Dependent: The optimal wavelet family depends heavily on the architecture type and transfer direction. For instance, the piecewise-constant Haar wavelet excels at L2S transfer for BERT encoders, whereas smoother, higher-order Biorthogonal wavelets perform better for S2L expansion. Autoregressive decoders (GPT) generally benefit from wavelets with compact support like Coiflet and Daubechies (see Figure 5).
Ablation study on the choice of wavelet family across different architectures and transfer directions.

Key Results

BoT achieves state-of-the-art performance in both training acceleration and downstream task accuracy:

  • Pre-training FLOPs Savings: As shown in Figure 3, BoT-initialized models converge significantly faster. For S2L expansion, BoT saves up to 67.1% FLOPs for BERT, 58.3% for GPT, and 22.0% for DeiT compared to training from scratch. For L2S adaptation, it saves 52.8% (BERT), 31.0% (GPT), and 39.0% (DeiT).
Pre-training convergence curves showing significant FLOPs savings for DeiT, BERT, and GPT models.
  • Superior Downstream Transferability: When directly fine-tuned on downstream tasks without intermediate pre-training, BoT dramatically outperforms standard weight selection (WS). On BERT-S, BoT achieved a +9.39% lead on the GLUE average and more than doubled the SQuAD average score (+26.97%) over the WS baseline.
  • Better Feature Localization: Class Activation Mapping (CAM) visualizations revealed that BoT-initialized vision models inherently focus on salient, object-centric regions right after initialization, ignoring background noise much better than models trained from scratch or naively sampled.

Limitations and Future Work

While BoT provides a robust, unified framework, the authors note that the choice of the optimal wavelet family is context-specific, requiring empirical selection based on whether the model is an encoder or decoder, and whether it is scaling up or down. Future work could explore adaptive or learnable wavelet selections that automatically optimize the frequency decomposition for any given architecture pair.

Summary updated

BibTeX
@inproceedings{shen2026unified,
  author = {Jianlu Shen and Fu Feng and Jiaze Xu and Yucheng Xie and Jiaqi Lv and Xin Geng},
  title = {{A Unified Framework for Knowledge Transfer in Bidirectional Model Scaling}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=e3BqYQJnI9},
}
Figure