SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.03187 · ICLR · 2025

Weighted-Reward Preference Optimization for Implicit Model Fusion

Ziyi Yang, Xiaojun Quan, Fanqi Wan, Longguang Zhong, Tianyuan Shi

arXiv · PDF · Open in the Atlas

Code that ran

9 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 4 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2412.03187.json · badge: /api/ran/2412.03187.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
fanqiwan/fuseai canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
fanqiwan/fusellm canonical (classifier label)
classifier basis: census
1 ran · 2 no recorded run
slit-ai/wrpo reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
check_nan Ran
ran, violated the contract we drafted
fanqiwan/fuseai/FuseChat/train/filter_nan.py
pointer only (licence: NONE); the stored copy get_code serves, from fanqiwan/FuseAI, is pointer only (licence: NONE) · get_code("524b27f03377a248")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

check_nan_base Ran
ran, violated the contract we drafted
fanqiwan/fuseai/FuseChat/train/filter_nan.py
pointer only (licence: NONE); the stored copy get_code serves, from fanqiwan/FuseAI, is pointer only (licence: NONE) · get_code("fd32354386c6ce83")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dict_to_list Ran
ran; our contract draft was wrong, not the code
fanqiwan/fuseai/FuseChat/train/align_token_and_vocab.py
pointer only (licence: NONE); the stored copy get_code serves, from fanqiwan/FuseAI, is pointer only (licence: NONE) · get_code("98b9e3b2ff2e30b8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_completions Ran
ran; our contract draft was wrong, not the code
fanqiwan/fuseai/FuseO1-Preview/math_evaluation/model_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from fanqiwan/FuseAI, is pointer only (licence: NONE) · get_code("1525d8bc0fc8d5a0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_logger Ran
ran; our contract draft was wrong, not the code
fanqiwan/fusellm/FuseLLM/src/utils/others.py
pointer only (licence: NONE) · get_code("1082508e65f77331")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fusellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_to_dict Ran
ran; our contract draft was wrong, not the code
fanqiwan/fuseai/FuseChat/train/align_token_and_vocab.py
pointer only (licence: NONE); the stored copy get_code serves, from fanqiwan/FuseAI, is pointer only (licence: NONE) · get_code("8e08bca34751633c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pad_to_length Ran
ran; our contract draft was wrong, not the code
slit-ai/wrpo/scripts/wrpo_trainer.py
pointer only (licence: NONE) · get_code("030b2d5e6e147a1d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, slit-ai/wrpo when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

raise_warning_for_incompatible_cpu_offloading_configuration Ran
ran, violated the contract we drafted
fanqiwan/fuseai/FuseChat/train/model/model_adapter.py
pointer only (licence: NONE) · get_code("0bf414a2b44babe6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sigmoid Ran
ran, violated the contract we drafted
fanqiwan/fuseai/FuseChat/train/align_token_and_vocab.py
pointer only (licence: NONE); the stored copy get_code serves, from fanqiwan/FuseAI, is pointer only (licence: NONE) · get_code("d0b132e4577e5bbb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_base_model Not yet run
unverified (harvested, no recorded run)
fanqiwan/fusellm/FuseLLM/src/utils/others.py
pointer only (licence: NONE) · get_code("df472be23644090f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fusellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_conv_template Not yet run
unverified (harvested, no recorded run)
fanqiwan/fuseai/FuseChat/train/conversation.py
pointer only (licence: NONE); the stored copy get_code serves, from fanqiwan/FuseAI, is pointer only (licence: NONE) · get_code("502fd3534e0509c1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_gpu_memory Not yet run
unverified (harvested, no recorded run)
fanqiwan/fuseai/FuseChat/train/model/model_adapter.py
pointer only (licence: NONE); the stored copy get_code serves, from fanqiwan/FuseAI, is pointer only (licence: NONE) · get_code("4bec2455307c11b7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_tokenizer Not yet run
unverified (harvested, no recorded run)
fanqiwan/fusellm/FuseLLM/src/utils/others.py
pointer only (licence: NONE) · get_code("503f70e78560aa9e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fusellm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_hf_lm_and_tokenizer Not yet run
unverified (harvested, no recorded run)
fanqiwan/fuseai/FuseO1-Preview/math_evaluation/model_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from YangLing0818/SuperCorrect-llm, is pointer only (licence: NONE) · get_code("ee71a94d9dd1b8e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, fanqiwan/fuseai when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 14 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 2 the same month, 12 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_conv_template 69 other papers
43 dated earlier, 3 the same month, 18 later, 4 same year, order not determinable, 1 undated
1911.03705 (2019-11)
CommonGen: A Constrained Text Generation Challenge for Generative Commonsense Reasoning
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2204.07705 (2022-04)
SUPER-NATURALINSTRUCTIONS: Generalization via Declarative Instructions on 1600+ NLP Tasks
and 66 more not named here
load_hf_lm_and_tokenizer 18 other papers
4 dated earlier, 14 later
2405.14365 (2024-05)
JiuZhang3.0: Efficiently Improving Mathematical Reasoning by Training Small Data Synthesis Models
2408.07471 (2024-08)
Bridging and Modeling Correlations in Pairwise Data for Direct Preference Optimization
2410.07985 (2024-10)
Omni-MATH: A Universal Olympiad Level Mathematic Benchmark For Large Language Models
and 15 more not named here
generate_completions 17 other papers
3 dated earlier, 14 later
2405.14365 (2024-05)
JiuZhang3.0: Efficiently Improving Mathematical Reasoning by Training Small Data Synthesis Models
2408.07471 (2024-08)
Bridging and Modeling Correlations in Pairwise Data for Direct Preference Optimization
2410.07985 (2024-10)
Omni-MATH: A Universal Olympiad Level Mathematic Benchmark For Large Language Models
and 14 more not named here
raise_warning_for_incompatible_cpu_offloading_configuration 15 other papers
12 dated earlier, 3 later
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2310.13023 (2023-10)
GraphGPT: Graph Instruction Tuning for Large Language Models
2312.00401 (2023-12)
VIoTGPT: Learning to Schedule Vision Tools in LLMs towards Intelligent Video Internet of Things
and 12 more not named here
get_logger 8 other papers
2 dated earlier, 6 later
2111.05897 (2021-11)
Persia: An Open, Hybrid System Scaling Deep Learning-based Recommenders up to 100 Trillion Parameters
2401.10491 (2024-01)
Knowledge Fusion of Large Language Models
2502.14911 (2025-02)
BATAYAN: A Filipino NLP benchmark for evaluating Large Language Models
and 5 more not named here
pad_to_length 8 other papers
6 dated earlier, 1 the same month, 1 later
2402.01306 (2024-02)
KTO: Model Alignment as Prospect Theoretic Optimization
2405.11165 (2024-05)
Automated Multi-level Preference for MLLMs
2406.09215 (2024-06)
On Softmax Direct Preference Optimization for Recommendation
and 5 more not named here
sigmoid 6 other papers
5 dated earlier, 1 later
1905.03381 (2019-05)
AutoAssist: A Framework to Accelerate Training of Deep Neural Networks
1906.01827 (2019-06)
Coresets for Data-efficient Training of Machine Learning Models
2009.02623 (2020-09)
Information Theoretic Counterfactual Learning from Missing-Not-At-Random Feedback
and 3 more not named here
get_gpu_memory 2 other papers
1 later, 1 undated
2606.10528 (2026-06)
Representation-Aware Advantage Estimation: Your Reward Model Provides More Than A Scalar Output
openreview_9aU4vrHPKD
CoPE: A Framework for Optimizing Coordination between Planning and Execution in LLM-based Agents
check_nan 1 other paper
1 later
2606.10528 (2026-06)
Representation-Aware Advantage Estimation: Your Reward Model Provides More Than A Scalar Output
check_nan_base 1 other paper
1 later
2606.10528 (2026-06)
Representation-Aware Advantage Estimation: Your Reward Model Provides More Than A Scalar Output
dict_to_list 1 other paper
1 later
2606.10528 (2026-06)
Representation-Aware Advantage Estimation: Your Reward Model Provides More Than A Scalar Output
get_base_model 1 other paper
1 dated earlier
2401.10491 (2024-01)
Knowledge Fusion of Large Language Models
get_tokenizer 1 other paper
1 dated earlier
2401.10491 (2024-01)
Knowledge Fusion of Large Language Models
list_to_dict 1 other paper
1 later
2606.10528 (2026-06)
Representation-Aware Advantage Estimation: Your Reward Model Provides More Than A Scalar Output

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

While fusing heterogeneous open-source LLMs with varying architectures and sizes can potentially integrate the strengths of different models, existing fusion methods face significant challenges, such as vocabulary alignment and merging distribution matrices. These procedures are not only complex but also prone to introducing noise and errors. In this paper, we propose an implicit fusion method, Weighted-Reward Preference Optimization (WRPO), which leverages preference optimization between the source LLMs and the target LLM to transfer their capabilities effectively. WRPO eliminates the need for vocabulary alignment and matrix fusion and can be efficiently scaled to accommodate various LLMs. To address distributional deviations between the source and target LLMs, WRPO introduces a progressive adaptation strategy that gradually shifts reliance on preferred examples from the target LLM to the source LLMs. Extensive experiments on the MT-Bench, AlpacaEval-2, and Arena-Hard benchmarks demonstrate that WRPO consistently outperforms existing knowledge fusion methods and various fine-tuning baselines. When applied to LLaMA3-8B-Instruct as the target model, WRPO achieves a length-controlled win rate of 55.9% against GPT-4-Preview-1106 on AlpacaEval-2 and a win rate of 46.2% against GPT-4-0314 on Arena-Hard. Our code is available at https://github.com/SLIT-AI/WRPO.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2412.03187")
get_code_for_paper("2412.03187")
have("2412.03187")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2412.03187.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2412.03187.svg)](https://syntology.ai/paper/2412.03187)

Connect an agent — have() is free.