面向海量模型仓库的语言模型即服务的黑盒模型合并
Black-box Model Merging for Language-Model-as-a-Service with Massive Model Repositories
AI总结:
针对黑盒大模型合并挑战,提出基于进化算法的无导数优化框架 Evo-Merging,通过稀疏去噪和符号感知缩放实现仅依赖 API 查询的有效合并,显著超越现有基线。
摘要:
模型合并是指将多个独立模型集成为一个统一模型的过程,该统一模型能够保留并组合各个模型的优势与能力。现有大多数方法依赖任务向量来组合模型,通常假设模型参数是可访问的。然而,对于像 GPT-4 这样极大型语言模型(LLMs),通常仅通过 API 接口(Language-Model-as-a-Service)作为黑盒服务提供,最终用户无法获取模型权重。这带来了一个重大挑战,我们称之为海量 LLMs 的黑盒模型合并(BMM)。为应对这一挑战,我们提出了一种基于进化算法(Evo-Merging)的无导数优化框架,仅需推理时 API 查询即可实现有效的模型合并。该方法包含两个关键组件:(1)基于稀疏性的去噪,旨在识别并过滤掉模型间无关或冗余的信息;(2)符号感知缩放,根据模型性能动态计算相关模型的最优组合权重。我们还为非对称稀疏化提供了形式化证明与理论分析。大量实验评估表明,我们的方法在一系列任务上取得了最先进的结果,显著优于现有强基线。
英文摘要:
Model merging refers to the process of integrating multiple distinct models into a unified model that preserves and combines the strengths and capabilities of the individual models. Most existing approaches rely on task vectors to combine models, typically under the assumption that model parameters are accessible. However, for extremely large language models (LLMs) such as GPT-4, which are often provided solely as black-box services through API interfaces (Language-Model-as-a-Service), model weights are not available to end users. This presents a significant challenge, which we refer to as black-box model merging (BMM) with massive LLMs. To address this challenge, we propose a derivative-free optimization framework based on the evolutionary algorithm (Evo-Merging) that enables effective model merging using only inference-time API queries. Our method consists of two key components: (1) sparsity-based denoising, designed to identify and filter out irrelevant or redundant information across models, and (2) sign-aware scaling, which dynamically computes optimal combination weights for the relevant models based on their performance. We also provide a formal justification, along with a theoretical analysis, for our asymmetric sparsification. Extensive experimental evaluations demonstrate that our approach achieves state-of-the-art results on a range of tasks, significantly outperforming existing strong baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。