Scalable Model Merging with Progressive Layer-wise Distillation

Jing Xu, Jiazheng Li, Jingzhao Zhang · DOI

Introduction

Model merging aims to combine the specialized capabilities of multiple fine-tuned models into a single multi-task model without the massive computational cost of joint retraining. However, existing methods face two major hurdles. First, "data-agnostic" methods often suffer from performance degradation because they ignore the underlying data distribution. Second, traditional knowledge distillation requires keeping all models in memory simultaneously, which is often impossible for modern Large Language Models (LLMs) on standard hardware.

To overcome these challenges, we introduce ProDistill (Progressive Layer-wise Distillation). ProDistill treats model merging as a teacher-student distillation problem using a "divide and conquer" strategy. By optimizing the model layer-by-layer, ProDistill achieves state-of-the-art results while maintaining a constant memory footprint, regardless of model depth.

Methods

ProDistill's core innovation is its progressive distillation process, which optimizes merging coefficients for one layer at a time.

Overview of the ProDistill framework showing the progressive layer-wise distillation process.

Progressive Layer-wise Training

Instead of training the entire merged model at once, ProDistill optimizes the merging coefficients for a single layer. Once a layer is distilled, its outputs are cached and used as inputs for the next layer. This keeps memory usage low and allows for merging models with over 10 billion parameters on consumer-grade hardware.

Dual Input Strategy and Granularity

To better align the student (merged) model with the teachers (fine-tuned models), ProDistill uses a "dual path" strategy: it feeds the student's own previous layer output into the student and the teacher's previous layer output into the teacher. This prevents error accumulation across layers. Furthermore, ProDistill learns an element-wise merging coefficient for every weight, providing the expressive power needed to resolve interference between conflicting tasks.

Evaluation and Results

ProDistill was evaluated across computer vision (ViT), natural language understanding (BERT/RoBERTa), and natural language generation (13B parameter LLMs) tasks.

Radar charts comparing ProDistill (cyan) with other merging methods across vision and language benchmarks.

The results demonstrate that ProDistill consistently outperforms existing few-shot methods:

  • Performance Gains: ProDistill outperformed baselines like RegMean and AdaMerging by up to 6.14% in vision tasks and 6.61% in NLU tasks.
  • LLM Scalability: When merging 13B parameter models, ProDistill achieved a normalized average score of 0.8288, significantly higher than Task Arithmetic (0.6711) and TIES-Merging (0.7868).
  • Data Efficiency: The method achieves significant accuracy gains after just one epoch of training on a small few-shot validation set (as few as 1–64 samples).

Discussion

ProDistill proves that data is non-negotiable for high-performance model merging. By shifting from a data-agnostic approach to a few-shot, layer-wise distillation strategy, we can effectively resolve task interference. While the method currently requires models to share the same base architecture and necessitates a small amount of domain-specific data, it represents a significant step toward scalable and efficient multi-task model creation.

Summary updated

BibTeX
@inproceedings{xu2025scalable,
  author = {Jing Xu and Jiazheng Li and Jingzhao Zhang},
  title = {{Scalable Model Merging with Progressive Layer-wise Distillation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=xX8NJShgny},
}
Figure