InfiFPO: Implicit Model Fusion via Preference Optimization in Large Language Models

Yanggan Gu, Yuanyi Wang, Zhaoyi Yan, Yiming Zhang, Qi Zhou, Fei Wu, Hongxia Yang

Abstract

InfiFPO introduces a novel framework for "implicit model fusion" that integrates the strengths of multiple Large Language Models (LLMs) during the preference alignment phase. By replacing the static reference model in Direct Preference Optimization (DPO) with a fused ensemble of source models using sequence-level probabilities, InfiFPO achieves significant performance gains in reasoning, mathematics, and coding. Crucially, this approach bypasses the "vocabulary conflict" that plagues traditional token-level fusion methods, enabling the seamless integration of models with diverse architectures and tokenizers.

1. Introduction

While Large Language Models (LLMs) have demonstrated remarkable capabilities, no single model currently dominates every domain. Model fusion aims to address this by combining specialized strengths—such as mathematical reasoning from one model and code generation from another—into a single "pivot" model. Historically, fusion research has focused on the Supervised Fine-Tuning (SFT) stage. However, the Preference Alignment (PA) stage, where models learn to follow human instructions and avoid undesirable outputs, remains a significant challenge for fusion techniques.

Existing PA fusion methods, such as WRPO, typically rely only on the final text responses from source models, discarding the rich probabilistic data (log-probabilities) that indicate a model's confidence. Conversely, "token-level" fusion methods that utilize these probabilities often fail due to "vocabulary conflict": different models use different tokenizers, making it mathematically difficult to align their outputs at the token level. InfiFPO addresses these limitations by shifting fusion to the sequence level.

2. The InfiFPO Framework

InfiFPO (Implicit Model Fusion via Preference Optimization) moves away from token-by-token alignment. Instead, it calculates the probability of the entire response sequence, allowing for the fusion of models regardless of their underlying architecture or vocabulary.

2.1 Optimization Objective

The authors derive an offline optimization objective that encourages the pivot model to maximize rewards while remaining mathematically close to a fused distribution of multiple source models. This effectively transforms the standard DPO reference model into a dynamic "committee of experts."

2.2 Key Technical Components

To ensure stable and effective fusion, InfiFPO incorporates several critical mechanisms:

  • Length Normalization: To prevent bias toward models that produce longer or shorter sequences due to their specific tokenizers, log-probabilities are normalized by sequence length.
  • Probability Clipping: This mechanism prevents "source model degradation." If a source model assigns a higher probability to a dispreferred response than the pivot model does, the signal is clipped to prevent the pivot from learning incorrect preferences.
  • Max-Margin Fusion: Rather than simple averaging, InfiFPO adaptively prioritizes the source model that deviates most significantly from the pivot. This "winner-takes-all" strategy ensures the pivot model learns the most unique and informative knowledge from the available experts.

3. Experimental Setup

The researchers constructed a comprehensive training dataset of 150,000 examples across mathematics, coding, and general tasks, utilizing sources such as Infinity-Instruct, NuminaMath-1.5, and KodCode-V1-SFT.

Evaluation was conducted across 11 benchmarks spanning five critical dimensions:

  1. General Reasoning: BBH, ARC-C, MMLU.
  2. Mathematics: GSM8K, MATH, TheoremQA.
  3. Coding: MBPP, HumanEval.
  4. Text Reasoning: DROP, HellaSwag.
  5. Instruction Following: IFEval.

4. Results and Discussion

Using Phi-4 (14B) as the pivot model and five other models (ranging from 9B to 24B parameters) as sources, InfiFPO demonstrated substantial improvements:

  • Performance Gains: The average score across the 11 benchmarks improved from 79.95 to 83.33.
  • Skill Inheritance: The pivot model successfully inherited domain-specific expertise. Notably, it saw significant jumps in coding (HumanEval) and mathematics (GSM8K) by learning from specialized sources like Qwen-Coder and Qwen-Math.
  • Computational Efficiency: InfiFPO proved highly efficient, requiring only 55 GPU hours compared to the 160 GPU hours required by InfiFusion (a token-level baseline), while delivering superior results.
  • Versatility: The framework is compatible with other preference optimization objectives, such as IPO and WRPO, consistently providing a performance "fusion bonus."

5. Conclusion and Future Work

InfiFPO demonstrates that the reference model in preference optimization can serve as a powerful lever for model fusion. By operating at the sequence level, it resolves the vocabulary conflict problem and provides a scalable, flexible method for building stronger LLMs.

Future research will explore the scalability of InfiFPO when applied to dozens of source models or much larger (70B+) architectures. Additionally, further theoretical analysis is required to fully elucidate the underlying dynamics of the max-margin fusion mechanism and its impact on the optimization landscape.

Summary updated

BibTeX
@inproceedings{gu2025infifpo,
  author = {Yanggan Gu and Yuanyi Wang and Zhaoyi Yan and Yiming Zhang and Qi Zhou and Fei Wu and Hongxia Yang},
  title = {{InfiFPO: Implicit Model Fusion via Preference Optimization in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ZwBtDbuzjY},
}
Figure