Unconstrained Model Merging for Enhanced LLM Reasoning

Yiming Zhang, Baoyi He, Shengyu Zhang, Yuhao Fu, Qi Zhou +10 more
10/17/2024
cs.CL

No confident code implementation found for this paper.

Abstract

Recent advancements in building domain-specific large language models (LLMs) have shown remarkable success, especially in tasks requiring reasoning abilities like logical inference over complex relationships and multi-step problem solving. However, creating a powerful all-in-one LLM remains challenging due to the need for proprietary data and vast computational resources. As a resource-friendly alternative, we explore the potential of merging multiple expert models into a single LLM. Existing studies on model merging mainly focus on generalist LLMs instead of domain experts, or the LLMs under the same architecture and size. In this work, we propose an unconstrained model merging framework that accommodates both homogeneous and heterogeneous model architectures with a focus on reasoning tasks. A fine-grained layer-wise weight merging strategy is designed for homogeneous models merging, while heterogeneous model merging is built upon the probabilistic distribution knowledge derived from instruction-response fine-tuning data. Across 7 benchmarks and 9 reasoning-optimized LLMs, we reveal key findings that combinatorial reasoning emerges from merging which surpasses simple additive effects. We propose that unconstrained model merging could serve as a foundation for decentralized LLMs, marking a notable progression from the existing centralized LLM framework. This evolution could enhance wider participation and stimulate additional advancement in the field of artificial intelligence, effectively addressing the constraints posed by centralized models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2024unconstrained,
  title  = {Unconstrained Model Merging for Enhanced LLM Reasoning},
  author = {Yiming Zhang and Baoyi He and Shengyu Zhang and Yuhao Fu and Qi Zhou and Zhijie Sang and Zijin Hong and Kejing Yang and Wenjun Wang and Jianbo Yuan and Guanghan Ning and Linyi Li and Chunlin Ji and Fei Wu and Hongxia Yang},
  year   = {2024},
  eprint = {2410.13699},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.13699v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.13699.svg)](https://codeofpaper.com/paper/2410.13699)

Discussion