TL;DR
Directly quantizing a merged model compounds the structural errors introduced during model merging with standard quantization noise. To solve this, E-PMQ uses the original unmerged "expert" models to guide layer-wise calibration targets while anchoring the weights to the merged model. This simple adjustment prevents catastrophic performance drops, boosting 4-bit quantized merged models by up to 40+ accuracy points in complex multi-task settings.
What Problem Does This Paper Address?
To deploy neural networks efficiently, engineers rely heavily on two techniques:
- Model Merging: Combining multiple task-specific models (experts) into a single architecture without expensive joint retraining.
- Post-Training Quantization (PTQ): Compressing full-precision weights into low-bit representations (e.g., 4-bit) using a small calibration dataset.
When you try to combine these approaches—a pipeline the authors term Post-Merge Quantization (PMQ)—performance often collapses.
The core issue is that standard PTQ algorithms assume the full-precision model is a perfect target to reconstruct. However, a merged model is already an imperfect compromise born from parameter composition; it inherently deviates from the clean behavior of individual source experts. Naive PMQ blindly treats this flawed merged model as ground truth, compounding the expert-relative merging deviation with quantization deviation.
Methods
The authors introduce E-PMQ (Expert-Guided Post-Merge Quantization) to decouple and mitigate these two sources of error.
Instead of passively reconstructing the merged model's outputs during layer-wise calibration, E-PMQ passes calibration data through the original, unmerged source experts to generate expert-guided output targets.
To prevent the model from over-correcting and drifting too far toward any single isolated expert, the framework introduces Adaptive Merged-Weight Anchoring. This acts as a regularizer, adding a penalty that keeps the quantized weights close to the full-precision merged weights. The anchoring strength ($\lambda^\ell$) automatically scales based on the total activation energy of each layer.
The optimization problem is solved sequentially using a modified, curvature-adjusted GPTQ-style solver. Crucially, the source experts are only accessed during this offline calibration phase; the final deployed model remains a single, lightweight low-bit model.
Datasets
The framework was evaluated using the FusionBench model-merging benchmark suite across multiple modalities:
- Vision: CLIP-ViT-B/32 and CLIP-ViT-L/14 evaluated on 8-task, 14-task, and 20-task image classification suites (including SUN397, Stanford Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, and DTD).
- Language (Encoder-Decoder): FLAN-T5-base evaluated on eight GLUE tasks (CoLA, MNLI, MRPC, QNLI, QQP, RTE, SST-2, STS-B).
- Large Language Models (Decoder-only): Llama-3.1-3B and Llama-3.1-8B evaluated on a blend of reasoning, math, and coding benchmarks (GSM8K, MATH500, ARC-C, IFEval, HumanEval, MBPP+).
Key Insights and Ideas
- The Merged Model is a False Prophet: Standard quantization assumes your starting model is a reliable baseline. For merged models, this assumption is fundamentally broken.
- Quantization as Error Correction: Remarkably, because E-PMQ uses the original experts for guidance, it doesn't just minimize compression loss—it actually corrects representation discrepancies introduced during the upstream merging process. In some cases, the quantized model outperforms the full-precision merged model.
- Anchoring is Non-Negotiable: Ablation studies revealed that removing the merged-weight anchor ($\alpha = 0$) causes total model collapse (e.g., average accuracy dropping from ~68% to ~5%). Without the anchor, conflicting task updates from different experts pull the optimization solver in destructive directions.
Key Results
E-PMQ consistently outperforms naive PMQ baselines (like standard GPTQ and AWQ) across various merging strategies (Task Arithmetic, TIES-Merging, WUDI-Merging).
- Scalability to Massive Task Merges: The benefits of E-PMQ become more pronounced as more tasks are merged. On the highly challenging 20-task CLIP-ViT-L/14 setup using Task Arithmetic, standard 4-bit GPTQ degrades to an unusable 34.8% accuracy. E-PMQ recovers this completely, achieving 76.7% accuracy.
- Language Models: For FLAN-T5-base on GLUE tasks under Task Arithmetic, E-PMQ improves the average score from GPTQ's 78.26% to 83.34%.
- LLM Benchmarks: On Llama-3.1-8B, E-PMQ pushes the average score across reasoning tasks to 62.91%, outperforming both GPTQ (61.66%) and AWQ (62.27%).
Limitations and Future Work
The primary limitation of E-PMQ is its quantization-stage overhead. Because it requires concurrent access to all original source expert weights to generate calibration targets, it demands significantly more memory and compute during the pre-deployment phase than naive quantization.
Additionally, the quality of the expert guidance relies heavily on having a highly representative calibration dataset for each task. The authors note that extending E-PMQ to even larger LLM scales, more complex merging recipes, and broader multi-modal settings remains an open avenue for future research.
Summary updated