Surrogate Benchmarks for Model Merging Optimization

Rio Akizuki, Yuya Kudo, Nozomu Yoshinari, Yoichi Hirose, Toshiyuki Nishimoto, Kento Uchida, Shinichi ShirakawaarXiv 2025

TL;DR

Optimizing hyperparameters for Large Language Model (LLM) merging can yield highly capable models without the cost of retraining, but the optimization process itself is notoriously slow—often taking days per run. This paper introduces SMM-Bench, the first surrogate benchmark for model merging optimization, which uses trained LightGBM regressors to predict merged model performance instantly. By replacing expensive LLM evaluations with millisecond-level lookups, SMM-Bench allows researchers to prototype and compare AutoML optimization algorithms in minutes on a standard laptop.

What Problem Does This Paper Address?

Model merging has emerged as a powerful, resource-efficient way to combine the capabilities of multiple fine-tuned LLMs into a single model without accessing original datasets or undergoing expensive training. However, popular merging techniques (like task arithmetic or DARE-TIES) rely heavily on hyperparameters, such as layer-wise weights or scaling factors.

To maximize performance, researchers use automated optimization techniques (like evolutionary algorithms). The catch? Evaluating a single hyperparameter configuration requires actually merging the models and running inference across an entire evaluation dataset. In practice, a single evaluation can take 3.5 to 5 minutes on high-end GPUs (like the NVIDIA A100 or 4090). Running an optimization loop for 1,000 iterations can easily exceed 58 hours. This massive computational bottleneck severely stalls the development and benchmarking of new optimization algorithms for model merging.

Methods

The authors address this bottleneck by building SMM-Bench (Surrogate Model Merging Benchmark). Instead of running actual LLM merges and evaluations during an optimization run, SMM-Bench uses a fast machine learning surrogate model to predict what the final accuracy would be.

The authors designed two distinct search spaces based on common merging paradigms:

  1. SMM-Bench-PS (Parameter Space): Focuses on layer-wise weight tuning for task arithmetic using two source models. It consists of 64 continuous variables (weighting factors for each of the 32 layers across both models).
  2. SMM-Bench-DFS (Data Flow Space): Focuses on layer-stacking (interleaving layers from different models) and input scaling. This creates a complex, mixed search space consisting of 32 categorical variables (layer choices) and 63 continuous variables (scaling factors).

To train the surrogate models, the authors collected tens of thousands of real hyperparameter-performance pairs using a mix of random sampling, CMA-ES, and Tree-structured Parzen Estimator (TPE) optimization paths. They then trained LightGBM regressors on this data, optimizing the regressors' own hyperparameters via five-fold cross-validation.

Datasets

The benchmark focuses on evaluating the merged models' abilities to solve mathematical problems and reason in Japanese.

  • Training/Optimization Objective: gsm8k-ja-test_250_1319 (a Japanese translation of the GSM8K dataset).
  • Final Test Performance: The Japanese test set of MGSM (Multilingual Grade School Math).

The source models used to generate the data were fine-tuned variants of Mistral-7B, specifically shisa-gamma-7b-v1, WizardMath-7B-V1.1, and EvoLLM-JP-v1-7B.

Key Insights and Ideas

  • Surrogates are Highly Accurate Mimics: Even though LLM behavior is notoriously non-linear, gradient-boosted decision trees (LightGBM) can predict the final accuracy of merged models exceptionally well, achieving $R^2$ scores above 0.92.
  • Trajectory Preservation: The most crucial finding is that optimization algorithms (like CMA-ES and TPE) behave almost identically when navigating the surrogate landscape compared to the real, computationally expensive landscape. This means algorithm developers can safely trust surrogate-based results to reflect real-world performance.
  • Data Efficiency: For the continuous parameter space (PS), the surrogate benchmark performed robustly even when trained purely on uniformly random sampled data, reducing the need for complex data collection pipelines.

Key Results

  • Predictive Performance: As shown in Table 1, the surrogate models achieved excellent correlation with the true test sets. For SMM-Bench-PS, the $R^2$ score reached 0.950 on gsm8k-ja. For SMM-Bench-DFS, it reached 0.962.
  • Algorithm Simulation: The authors simulated optimization trajectories over 2,500 evaluations. The surrogate models successfully captured the performance curves and algorithmic rankings of Random Search, CMA-ES, and TPE.
  • Real-World Demonstration: To prove its utility, the authors used SMM-Bench-PS to compare two algorithms not used in the initial data collection: Separable CMA-ES (Sep-CMA) and Differential Evolution (DE).
Performance of Sep-CMA and DE on SMM-Bench-PS

As illustrated in Figure 2, Sep-CMA consistently outperformed DE. Crucially, this entire experimental comparison ran in just a few minutes on a standard laptop—a task that would otherwise require multiple GPU-days.

Limitations and Future Work

While SMM-Bench is a major step forward, the authors note a few limitations:

  • Overestimation in DFS: The surrogate model for the Data Flow Space (DFS) tends to slightly overestimate the absolute accuracy of the configurations, though it still preserves the correct ranking and behavior of the optimization algorithms.
  • Scope of Models and Tasks: The current benchmark is restricted to Mistral-7B variants and Japanese mathematics tasks.

Future work includes expanding the benchmark to cover a wider variety of LLM architectures, diverse downstream tasks (such as instruction following or code generation), and alternative model merging techniques.

Summary updated

BibTeX
@misc{akizuki2025surrogate,
  author = {Rio Akizuki and Yuya Kudo and Nozomu Yoshinari and Yoichi Hirose and Toshiyuki Nishimoto and Kento Uchida and Shinichi Shirakawa},
  title = {{Surrogate Benchmarks for Model Merging Optimization}},
  year = {2025},
  eprint = {2509.02555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.02555},
}
Figure