InfiGFusion:通过高效Gromov-Wasserstein进行图对逻辑蒸馏的模型融合
InfiGFusion: Graph-on-Logits Distillation via Efficient Gromov-Wasserstein for Model Fusion
AI总结:
提出InfiGFusion,一种结构感知的模型融合框架,通过图对逻辑蒸馏损失显式建模词汇维度间的语义依赖,并利用排序闭式近似将Gromov-Wasserstein距离的计算复杂度从O(n^4)降至O(n log n),在多个基准上超越现有方法。
摘要:
近期大语言模型(LLMs)的进展推动了将异构开源模型融合为统一系统的努力,以继承其互补优势。现有的基于逻辑的融合方法保持了推理效率,但独立处理词汇维度,忽略了跨维度交互编码的语义依赖。这些依赖反映了模型内部推理下词元类型的交互方式,对于对齐具有不同生成行为的模型至关重要。为显式建模这些依赖,我们提出 extbf{InfiGFusion},首个结构感知融合框架,带有新颖的 extit{图对逻辑蒸馏}(GLD)损失。具体地,我们保留每个输出的top-$k$逻辑值,并在序列位置上聚合它们的外积以形成全局共激活图,其中节点表示词汇通道,边量化其联合激活。为确保可扩展性和效率,我们设计了一种基于排序的闭式近似,将Gromov-Wasserstein距离的原始$O(n^4)$成本降至$O(n \log n)$,并具有可证明的近似保证。在多种融合设置下的实验表明,GLD持续提高了融合质量和稳定性。InfiGFusion在涵盖推理、编程和数学的11个基准上优于SOTA模型和融合基线。它在复杂推理任务中表现出特别优势,在Multistep Arithmetic上比SFT提高+35.6,在Causal Judgement上提高+37.06,展示了卓越的多步和关系推理能力。
英文摘要:
Recent advances in large language models (LLMs) have intensified efforts to fuse heterogeneous open-source models into a unified system that inherits their complementary strengths. Existing logit-based fusion methods maintain inference efficiency but treat vocabulary dimensions independently, overlooking semantic dependencies encoded by cross-dimension interactions. These dependencies reflect how token types interact under a model's internal reasoning and are essential for aligning models with diverse generation behaviors. To explicitly model these dependencies, we propose \textbf{InfiGFusion}, the first structure-aware fusion framework with a novel \textit{Graph-on-Logits Distillation} (GLD) loss. Specifically, we retain the top-$k$ logits per output and aggregate their outer products across sequence positions to form a global co-activation graph, where nodes represent vocabulary channels and edges quantify their joint activations. To ensure scalability and efficiency, we design a sorting-based closed-form approximation that reduces the original $O(n^4)$ cost of Gromov-Wasserstein distance to $O(n \log n)$, with provable approximation guarantees. Experiments across multiple fusion settings show that GLD consistently improves fusion quality and stability. InfiGFusion outperforms SOTA models and fusion baselines across 11 benchmarks spanning reasoning, coding, and mathematics. It shows particular strength in complex reasoning tasks, with +35.6 improvement on Multistep Arithmetic and +37.06 on Causal Judgement over SFT, demonstrating superior multi-step and relational inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。