Papers › Evolutionary Optimization of Model Merging Recipes

Evolutionary Optimization of Model Merging Recipes

19 Mar 2024arXiv:2403.13187archive 2025-07-28

Takuya Akiba, Makoto Shing, Yujin Tang, Qi Sun, David Ha

Large language models (LLMs) have become increasingly capable, but their development often requires substantial computational resources. While model merging has emerged as a cost-effective promising approach for creating new models by combining existing ones, it currently relies on human intuition and domain knowledge, limiting its potential. Here, we propose an evolutionary approach that overcomes this limitation by automatically discovering effective combinations of diverse open-source models, harnessing their collective intelligence without requiring extensive additional training data or compute. Our approach operates in both parameter space and data flow space, allowing for optimization beyond just the weights of the individual models. This approach even facilitates cross-domain merging, generating models like a Japanese LLM with Math reasoning capabilities. Surprisingly, our Japanese Math LLM achieved state-of-the-art performance on a variety of established Japanese LLM benchmarks, even surpassing models with significantly more parameters, despite not being explicitly trained for such tasks. Furthermore, a culturally-aware Japanese VLM generated through our approach demonstrates its effectiveness in describing Japanese culture-specific content, outperforming previous Japanese VLMs. This work not only contributes new state-of-the-art models back to the open-source community, but also introduces a new paradigm for automated model composition, paving the way for exploring alternative, efficient approaches to foundation model development.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.13187")

Code

Syntology Ran 10 of 12 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · violated contract; 9 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sakanaai/evolutionary-model-merge officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 10 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
9ran
2unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from sakanaai/evolutionary-model-merge. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_prompt sakanaai/evolutionary-model-merge/evomerge/models/llava.py official repository ran Apache-2.0 (permissive) · cd57ef201d9c8c10 · report
default sakanaai/evolutionary-model-merge/evomerge/utils.py official repository ran Apache-2.0 (permissive) · e4654baeb9c277cd · report
extract_answer_number sakanaai/evolutionary-model-merge/evomerge/eval/ja_mgsm.py official repository ran fingerprinted Apache-2.0 (permissive) · e193a4012af89dcf · report
extract_qa sakanaai/evolutionary-model-merge/evomerge/eval/ja_vg_vqa.py official repository ran Apache-2.0 (permissive) · 039eacb76a8ed92a · report
get_output_ids sakanaai/evolutionary-model-merge/evomerge/models/utils.py official repository ran Apache-2.0 (permissive) · f0ff1b02c4ecd888 · report
instantiate_from_config sakanaai/evolutionary-model-merge/evomerge/utils.py official repository ran Apache-2.0 (permissive) · 18d8fb19d766c90f · report
load_config sakanaai/evolutionary-model-merge/evomerge/utils.py official repository ran Apache-2.0 (permissive) · 8407509c5387f1eb · report
mean sakanaai/evolutionary-model-merge/evomerge/eval/metrics.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 63cf7ec10b164550 · report
rouge sakanaai/evolutionary-model-merge/evomerge/eval/metrics.py official repository ran Apache-2.0 (permissive) · 5182ae0258f4968e · report
set_model_kwargs sakanaai/evolutionary-model-merge/evomerge/models/utils.py official repository ran Apache-2.0 (permissive) · 043403691e740f93 · report
rouge_ja sakanaai/evolutionary-model-merge/evomerge/eval/metrics.py official repository unverified Apache-2.0 (permissive) · 01b7721df0fc97f4 · report
set_template sakanaai/evolutionary-model-merge/evomerge/models/utils.py official repository unverified Apache-2.0 (permissive) · e8eb5c57d221d550 · report

Tasks

Evolutionary AlgorithmsMathmodel

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections