ResMerge:基于残差的谱合并大型语言模型
ResMerge: Residual-based Spectral Merging of Large Language Models
AI总结:
提出ResMerge框架,通过将RL任务向量分解为谱头部和残差组件,利用残差组件构建稳定骨干并选择性引入头部信息,实现无需训练的专家模型合并。
摘要:
模型合并提供了一种无需训练的方式组合多个后训练专家模型,但合并通过强化学习(RL)获得的专家仍然具有挑战性。现有的谱合并方法通常假设主导奇异方向包含主要任务信号,而低能量残差组件可以被压缩、选择或衰减以减少干扰。我们发现这一假设不适用于RL任务向量:将每个任务向量分解为谱头部和残差组件后,两部分都能独立恢复大量行为知识,同时表现出不同的合并特性。头部高度集中且信息丰富,但更容易产生尖锐的跨专家冲突,而残差组件更分散,为聚合提供了更稳定的基础。基于这一观察,我们提出了ResMerge,一种针对RL专家的基于残差的谱合并框架。ResMerge首先通过球形残差共识自适应构建稳定的残差骨干,该算法在Frobenius球面上估计一个可靠性加权的共识方向。然后通过轻量级头部校正模块重新引入头部信息,该模块由正跨专家一致性门控。在多个RL专家组和能力领域的实验表明,ResMerge比代表性的任务向量和谱合并基线更好地保留了专家能力。ResMerge的实现可在https://github.com/sunyd0303-cpu/ResMerge-release公开获取。
英文摘要:
Model merging offers a training-free way to combine multiple post-trained expert models, but merging experts obtained through reinforcement learning (RL) remains challenging. Existing spectral merging methods often assume that leading singular directions contain the main task signal, while lower-energy residual components can be compressed, selected, or attenuated to reduce interference. We find that this assumption does not hold for RL task vectors: after decomposing each task vector into a leading spectral head and a residual component, both parts can independently recover substantial behavior knowledge, while exhibiting different merging properties. The head is highly concentrated and informative but more prone to sharp cross-expert conflicts, whereas the residual component is more dispersed and provides a more stable basis for aggregation. Based on this observation, we propose ResMerge, a residual-based spectral merging framework for RL experts. ResMerge first constructs a stable residual backbone with Spherical Residual Consensus Adaptation, which estimates a reliability-weighted consensus direction on the Frobenius sphere. It then reintroduces leading-head information through a Lightweight Head Correction module gated by positive cross-expert agreement. Experiments across multiple RL expert groups and capability domains show that ResMerge better preserves expert capabilities than representative task-vector and spectral merging baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。