Abstract
Model merging aims to combine multiple task-specific Large Language Models (LLMs) into a single multi-domain expert. However, parameter interference often leads to performance degradation, especially in complex models. We present Dynamic Pruning Partition Amplification (DPPA), a two-stage framework that adaptively prunes and amplifies weight changes. DPPA retains only 20% of domain-specific parameters while significantly outperforming existing methods like DARE in multi-domain merging tasks.
Introduction
Model fusion is essential for creating versatile AI systems without the prohibitive cost of multi-task retraining. The core challenge lies in parameter conflict: averaging weights from different fine-tuned models often dilutes specialized knowledge. While methods like DARE (Drop and Rescale) work for models with minor weight shifts, they fail when models have drifted significantly from their base state. DPPA addresses this by moving beyond uniform pruning and rescaling.
Methodology: Dynamic Pruning and Partition Amplification
DPPA operates in two distinct stages to preserve critical domain-specific information:
- Dynamic Pruning (DP): Standard magnitude pruning uses a global threshold. In contrast, DP adaptively calculates pruning rates at both the layer and sub-layer levels (e.g., distinguishing between Attention and MLP blocks). By assigning "significance" scores based on weight magnitudes, DP ensures that high-impact layers are preserved.
- Dynamic Partition Amplification (DPA): Post-pruning, remaining weights must be rescaled. DPA replaces uniform rescaling with a partitioned approach. It segments parameters based on their significance and applies tailored amplification factors, prioritizing the most deviant (and thus most specialized) weights.
Experimental Setup
The framework was evaluated using LLaMA 2 as the base model, fine-tuned on three specialized domains:
- Mathematics: GSM8k and MATH datasets.
- Finance: FiQA_SA and FPB datasets.
- Law: SCOTUS and UNFAIR_ToS datasets.
Key Results and Insights
DPPA demonstrates a remarkable ability to maintain performance with minimal parameters. While baseline methods require up to 90% of domain-specific parameters to avoid collapse, DPPA achieves comparable results with just 20%.
In a three-domain merge (Math, Finance, and Law), DPPA maintained high accuracy (~89.95% on Math) at a 90% pruning rate. Under identical conditions, the DARE baseline collapsed to near-zero utility (~7.89%). Overall, DPPA provides a ~20% improvement in merging performance over standard baselines.
Discussion and Limitations
The primary insight of this work is that parameter importance is non-uniform across the transformer architecture. Granularity—treating attention heads and MLP layers differently—is key to successful merging.
However, DPPA is less effective for "simple" models where fine-tuning has caused minimal weight drift. Additionally, the search for optimal amplification ratios in DPA introduces computational overhead compared to static rescaling methods. Future work will focus on automating this search process to improve efficiency.
Summary updated