用概率方法自动对齐不同模型的词元,提升大模型融合效果。
Probabilistic Token Alignment for Large Language Model Fusion
- 将词元对齐转化为最优传输问题,实现软映射。
- 在多任务评测中显著提升融合模型性能。
- 无需人工定义词汇表,通用性强且可解释。
从头训练大语言模型虽能带来独特能力,但成本高昂且易产生冗余功能。更经济的方案是融合多个预训练大模型,但现有方法依赖人工预设的词汇对齐,难以适应多样场景,导致部分评估中性能下降。为此,我们受分布学习启发,提出概率词元对齐方法(PTA-LLM),将词元对齐重构为经典的最优传输问题,借助分布感知学习实现更连贯的模型融合。该方法兼具通用性与可解释性,从分布视角揭示词元对齐的本质。实验证明,概率对齐能有效提升融合模型在多项能力上的表现。代码已开源:https://runjia.tech/neurips_pta-llm/。
原文摘要 · Abstract (English)
Training large language models (LLMs) from scratch can yield models with unique functionalities and strengths, but it is costly and often leads to redundant capabilities. A more cost-effective alternative is to fuse existing pre-trained LLMs with different architectures into a more powerful model. However, a key challenge in existing model fusion is their dependence on manually predefined vocabulary alignment, which may not generalize well across diverse contexts, leading to performance degradation in several evaluation. To solve this, we draw inspiration from distribution learning and propose the probabilistic token alignment method as a general and soft mapping for alignment, named as PTA-LLM. Our approach innovatively reformulates token alignment into a classic mathematical problem: optimal transport, seamlessly leveraging distribution-aware learning to facilitate more coherent model fusion. Apart from its inherent generality, PTA-LLM exhibits interpretability from a distributional perspective, offering insights into the essence of the token alignment. Empirical results demonstrate that probabilistic token alignment enhances the target model's performance across multiple capabilities. Our code is avaliable at https://runjia.tech/neurips_pta-llm/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。