1bit-Merging: Dynamic Quantized Merging for Large Language Models

Shuqi Liu, Han Wu, Bowei He, Zehua Liu, Xiongwei Han, Mingxuan Yuan, Linqi SongarXiv 2025 · OpenReview

Abstract Recent advances in large language models have led to specialized models excelling in specific domains, creating a need for efficient model merging techniques. While traditional merging approaches combine parameters into a single static model, they often compromise task-specific performance. However, task-specific routing methods maintain accuracy but introduce substantial storage overhead. We present 1bit-Merging, a novel framework that integrates task-specific routing with 1-bit quantized task vectors to balance performance and storage efficiency. Our approach leverages the observation that different task-specific models store knowledge in distinct layers—chat models primarily in attention layers and math/code models in MLP layers, enabling targeted compression strategies. Through extensive experiments with LLaMA2 and Mistral model families across chat, mathematical reasoning, and code generation tasks, we demonstrate that 1bit-Merging achieves comparable or superior performance to existing methods while significantly reducing storage requirements. Our framework offers a practical solution for combining specialized models while maintaining their individual strengths and addressing the storage challenges of current approaches.

Introduction

The proliferation of specialized Large Language Models (LLMs) has created a significant challenge: how to integrate diverse expert capabilities into a single, efficient system. Traditional model merging techniques typically fall into two categories. Static merging methods, such as Task Arithmetic or TIES-Merging, are storage-efficient but often suffer from parameter interference that degrades performance. Conversely, dynamic routing methods like Mixture-of-Experts (MoE) maintain high accuracy but impose substantial storage overhead by requiring the full weights of every expert model.

The 1bit-Merging Framework

We introduce 1bit-Merging, a framework designed to bridge the gap between performance and efficiency. Our approach utilizes three core innovations:

  1. 1-bit Task Vector Quantization: We calculate "task vectors"—the difference between fine-tuned and pre-trained weights—and compress them to a single bit per parameter (+1 or -1), scaled by a floating-point constant.
  2. Module-Specific Compression: Our research reveals that knowledge is localized differently across tasks. Chat models are sensitive to Attention layers, while Math and Code models rely more on MLP layers. 1bit-Merging exploits this by applying targeted compression to non-critical modules.
  3. Dynamic Routing: A lightweight router analyzes inputs at inference time to select the appropriate task-specific base model, which is then dynamically reconstructed using the 1-bit vectors.

Experimental Evaluation

We evaluated 1bit-Merging using LLaMA2 (7B, 13B) and Mistral (7B) families across seven benchmarks covering general knowledge (MMLU, HellaSwag, TruthfulQA), mathematical reasoning (GSM8K, MATH), and code generation (MBPP, HumanEval).

Key Insights and Results

A significant finding is the "better than experts" effect. As illustrated in Figure 1, the merged model often outperforms individual fine-tuned experts on their own specialized tasks. This suggests a cross-domain synergy where general knowledge from chat experts enhances the logical grounding of math and code experts.

Figure 1: While individually fine-tuned models excel only in their specialized domains, 1bit-Merging achieves superior performance across all domains.

Empirically, 1bit-Merging demonstrates a superior balance between performance and storage. On Mistral 7B, it maintains 94.53% of full-precision routing performance while reducing storage requirements by nearly 45%. In LLaMA2-7B benchmarks, it achieved an average score of 36.74, outperforming both static merging baselines and the average of individual expert models.

Figure 3: Performance vs. storage trade-offs for Mistral 7B deployment. 1bit-Merging strikes a favorable balance between performance and storage.

Conclusion and Future Work

1bit-Merging offers a practical solution for deploying multi-expert systems. While currently limited to homogeneous architectures and requiring a trained router, it proves that the "delta" in fine-tuning is highly redundant and can be effectively captured with minimal precision. Future work will explore merging heterogeneous architectures and developing a deeper theoretical understanding of low-bit weight interpolation.

Summary updated

BibTeX
@misc{liu2025bit,
  author = {Shuqi Liu and Han Wu and Bowei He and Zehua Liu and Xiongwei Han and Mingxuan Yuan and Linqi Song},
  title = {{1bit-Merging: Dynamic Quantized Merging for Large Language Models}},
  year = {2025},
  eprint = {2502.10743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.10743},
}
Figure