WorksComputer Science
SLIM: Simplex-Lattice Interpolation Merging
Abstract
Optimizing merging coefficients for large language models can require many costly benchmark evaluations. We propose Simplex-Lattice Interpolation Merging (SLIM), which constructs a quadratic surrogate of aggregate performance on the coefficient simplex using a classical mixture design. Evaluations of individual experts and equal-weight pairs determine the surrogate with the minimum number of measurements needed to identify a general quadratic on this domain. SLIM then optimizes the surrogate without further target-metric evaluations. Experiments on two model architectures demonstrate accurate prediction of unseen multi-expert mixtures and competitive merge performance under limited evaluation budgets. Matched-budget comparisons show that structured evaluation points improve prediction fidelity over random designs, including those using regularized fitting.
Introduction
Model merging can combine capabilities acquired by multiple trained models without further parameter training [30, 24]. For large language models (LLMs), reusing publicly available fine-tuned checkpoints can reduce the additional cost of building models with multiple capabilities. We study the widely used setting of merging experts: models with the same architecture fine-tuned from a common base. Task Arithmetic [13] adds a weighted sum of task vectors—the parameter differences between experts and the base—to the base model. Even in this linear setting, the coefficients controlling each expert’s contribution affect merge performance.
We call the downstream measure to be improved the target metric; here, we use AVG, the unweighted mean of domain scores on a common scale. On generation-based LLM benchmarks, evaluating a candidate requires constructing merged weights, generating responses, and scoring outputs, making searches such as evolutionary merging costly [1, 25]. A surrogate that predicts performance from coefficients can support coefficient selection using inexpensive predictions (Li et al., 2025). For example, MAP fits task-wise surrogates to measured scores and uses them to approximate Pareto fronts. However, constructing the surrogate itself incurs an upfront evaluation cost because fitting it requires target-metric measurements from merged models. For LLMs, these measurements remain expensive even when subsequent surrogate optimization is cheap. We therefore ask:
How few target-metric evaluations are needed to construct a surrogate that supports competitive merge performance?
Quadratic surrogates capture curvature and pairwise interactions with relatively few parameters, a choice also used by MAP (Li et al., 2025). To reduce the required evaluations, we restrict coefficients to the simplex, where they are nonnegative and sum to one. Weight averaging and MetaGPT provide precedents for effective merging within this domain [27, 33]. For coefficients, the restriction reduces the number of independent quadratic parameters from to . However, the identification minimum does not guarantee stable fitting or accurate prediction, which also depend on evaluation placement and the adequacy of the quadratic approximation. We test whether measurements of individual experts and pairs suffice to predict AVG at unseen mixtures, and whether coefficient selection within the simplex yields competitive merge performance.
We propose Simplex-Lattice Interpolation Merging (SLIM), which constructs a quadratic surrogate from exactly target-metric evaluations. SLIM adopts Scheffé’s simplex-lattice design from classical mixture experiments [22]. Its vertices and edge midpoints correspond to individual experts and equal-weight expert pairs. SLIM interpolates their measured AVG values and numerically optimizes the resulting quadratic over the simplex using its analytic gradient, without further target-metric evaluations.
We evaluate SLIM on Gemma-2-9B [8] and Llama-3.1-8B [9], each with eight experts spanning five domains. The surrogates accurately predict AVG at unseen mixtures involving all eight experts (Figure 1). At the same evaluation budget, the lattice design improves prediction fidelity over random designs, including ridge-regularized fits. We assess selected models on in-distribution (ID) benchmarks used for selection and held-out out-of-distribution (OOD) benchmarks. With 36 evaluations, SLIM exceeds MAP at 45 evaluations in all four architecture-by-distribution settings and remains competitive with evolutionary merging using 150–200 evaluations in three settings (Figure 3). On Llama ID, methods searching the broader coefficient domain achieve higher performance.

Figure 1. A quadratic surrogate constructed from individual experts and equal-weight pairs accurately predicts AVG at unseen mixtures of all eight experts. For each architecture, 36 construction evaluations are followed by testing on 150 held-out interior vectors sampled from Dirichlet. Axes show predicted (horizontal) and measured (vertical) scores; colored markers show domain scores and black stars show AVG. AVG zoom panels report Spearman’s and MAE; dashed lines indicate .

Figure 3. ID and held-out OOD AVG versus the evaluation budget for coefficient selection (ID left, OOD right within each architecture). #Evals counts cumulative ID evaluations per run; upper axes estimate GPU-hours from measured per-evaluation costs. Evolutionary merging evaluates 10 candidates per generation. ID scores are shown after every generation and OOD scores after 10, 30, 40, 50, 100, 150, and 200 evaluations, always for the candidate with the highest ID AVG observed so far. Quadratic and cubic SLIM use 36 and 120 evaluations; dotted lines mark quadratic SLIM’s AVG. MAP and evolutionary merging show means over three seeds; shaded bands indicate standard deviation. Appendix § 14.§ 6 gives the numerical results, including all domain scores and the scores of the base model and the eight experts.
Contributions Our contributions are twofold:
Predictability: We show that evaluations of individual experts and equal-weight pairs support accurate quadratic prediction of AVG at unseen mixtures involving all eight experts on both architectures studied.
Minimal-cost selection: We propose SLIM, which selects coefficients using a surrogate constructed from the evaluations needed to identify a general quadratic on the simplex.
Related Work
Model Merging. A merging operator specifies how expert parameters or task vectors are transformed and combined. Both the operator and the coefficients controlling each expert’s contribution affect merge performance. Task Arithmetic [13] combines task vectors linearly, while TIES-Merging [28] and DARE [31] transform parameter updates to address interference or redundancy. Existing methods select coefficients using data-free rules [33], prediction entropy minimization [29], or search guided by measured downstream performance [1]. Evaluating candidate LLM merges can be computationally expensive, especially on generation-based benchmarks that require generating and scoring model outputs [25]. To reduce evaluation costs, MERGE3 [20] combines evolutionary merging with dataset reduction and performance estimation based on item response theory. We focus on the widely studied setting of linear task-vector merging of LLM experts fine-tuned from a common base [30, 24]. Within this setting, we investigate how few direct target-metric evaluations can support coefficient selection that yields competitive merge performance.
Surrogate-Based Coefficient Optimization. Surrogate-based methods fit predictive models to measured merge performance and use their predictions to guide coefficient or configuration search. MM-MO [15] sequentially selects DARE–TIES coefficients and sparsity levels using Gaussian process surrogates and multi-objective Bayesian optimization. Multi-fidelity merging [25] uses a random forest surrogate to select configurations and varies the size of the validation set to allocate evaluation resources. MAP (Li et al., 2025) is closely related to our work: it uses surrogates based on quadratic functions to approximate task performance and estimate Pareto fronts. In its basic form, MAP fits these surrogates to scores measured at randomly sampled coefficient vectors, without requiring the coefficients to sum to one. Constructing these surrogates incurs an upfront evaluation cost because the target metrics must be measured on merged models. Bayesian MAP and Nested MAP reduce evaluation costs through adaptive sampling and hierarchical merging, respectively, but both rely on measured scores for surrogate construction. For experts, SLIM uses a fixed experimental design to interpolate AVG on the coefficient simplex from evaluations, the minimum needed to identify a general quadratic on this domain. We test whether this surrogate can predict AVG at unseen multi-expert mixtures and support coefficient selection that yields competitive merge performance.
Mixture Experiments. Mixture experiments are a classical statistical framework for studying how a response depends on the relative proportions of components. Applications include studying how ingredient proportions affect food flavor and how solvent proportions affect solubility in mixed-solvent formulations (Cornell, 2002). Since component proportions are nonnegative and sum to one, the experimental domain is a simplex. We view linear task-vector merging under this simplex constraint as a mixture experiment. The components are LLM experts, their merging coefficients specify the proportions, and the response is the merged model’s target metric, AVG. For components, a general quadratic on the simplex has independent coefficients. Scheffé’s simplex-lattice design uniquely determines this quadratic from evaluations at the vertices and edge midpoints [22]. Under a quadratic regression model with uncorrelated equal-variance errors, a design that allocates observations equally across these points is D-optimal [14]. When a design is D-optimal, it maximizes the joint precision of the regression coefficient estimates for a fixed number of observations. Recent work applies sparse Scheffé models and optimal design to LLM pretraining data mixtures [18]. In that setting, mixture proportions are the fractions of training tokens drawn from each data domain, and the response is validation loss. SLIM adopts the classical simplex-lattice design and its quadratic interpolant. We empirically test whether evaluations of individual experts and equal-weight pairs suffice to predict AVG at unseen mixtures, and whether restricting coefficients to the simplex permits competitive merge performance.
Method
Problem Setting
Consider expert models fine-tuned from a common base model . With task vectors , linear merging gives
Let denote the target metric of , with higher values indicating better performance. For a feasible coefficient set , the coefficient-selection problem is
In our experiments, is AVG, the unweighted mean of domain scores expressed on a common scale.
Quadratic Surrogate and Evaluation Design
To select coefficients without repeatedly measuring the expensive target metric during optimization, SLIM approximates with a quadratic surrogate (Algorithm 1). Quadratic models capture curvature and pairwise interactions, a choice also used by MAP (Li et al., 2025). Our goal is to construct this surrogate from few measurements and then optimize its predictions.
To reduce the number of surrogate parameters to identify, we restrict the feasible set to the simplex:
Any quadratic on this domain has the canonical mixture form [22]
It has independent coefficients. Identifying them with the minimum number of measurements requires an evaluation design that supplies independent constraints.
Let be the -th standard basis vector in . SLIM adopts Scheffé’s quadratic simplex-lattice design [22], evaluating at the vertices and edge midpoints:
These points correspond to individual experts, , and equal-weight pairs, . The vertex measurements determine the linear coefficients, and the midpoint measurements determine the pairwise coefficients. The total evaluation count is
Figure 2 illustrates the quadratic design for and its cubic counterpart (Appendix § 13.§ 4).

Figure 2. Simplex-lattice designs for . Each point is a coefficient vector with nonnegative entries summing to one. The quadratic design contains three vertices and three edge midpoints; the cubic design contains the vertices, two points on each edge with weights and , and the barycenter . Colors and marker shapes indicate the number of experts with nonzero coefficients. For , the corresponding designs contain 36 and 120 points.
Quadratic Interpolation
Write and . The unique quadratic satisfying these measurements is
Each basis function equals one at its associated design point and zero at the others, so reproduces all measurements on . Appendix § 13.§ 1 derives the coefficients and proves uniqueness and the identification minimum.
By linearity, interpolating AVG directly is equivalent to averaging the domain-wise interpolants (Appendix § 13.§ 2). Agreement with is guaranteed at the design points; prediction accuracy at unseen mixtures is assessed in § 4.2.
Coefficient Selection
A constrained numerical optimizer returns by approximately solving
Because need not be concave, the returned solution is not guaranteed to be a global maximizer.
Surrogate optimization requires no model evaluations beyond the design-point measurements. The final merged model is from Eq. (1).
Experiments
Experimental Setup
We use Gemma-2-9B ([8]) and Llama-3.1-8B ([9]), each with eight experts fine-tuned from a common base: two each for instruction following, mathematics, and coding, and one each for multilingual translation and safety. All methods use the same experts and linear task-vector merging. The target metric is AVG, the unweighted mean of five domain scores on a 0–100 scale.
Table 1 lists the benchmarks; metrics and evaluation settings are given in Appendix § 14.§ 2 (Table 8).
| Domain | ID (used for selection) | OOD (held out) |
| Instruction | IFEval | AlpacaEval 2.0 |
| Math | GSM8K | MATH-500 |
| Coding | MBPP | HumanEval |
| Multilingual | FLORES+ dev | FLORES+ devtest |
| Safety | HarmBench | WildGuardTest |
Table 1. ID benchmarks for coefficient selection and held-out OOD benchmarks across five domains. Reported ID scores use the selection benchmarks. Metrics, sample counts, and prompting settings appear in Table 8.
| Benchmark | Role | Examples | Shots | Scoring |
| IFEval ([32]) | ID | 541 | 0 | Prompt-level strict accuracy |
| AlpacaEval 2.0 ([7]) | OOD | 805 | 0 | Length-controlled win rate |
| GSM8K-CoT ([5]) | ID | 1,319 | 8 | Strict-match exact match |
| MATH-500 ([12, 17]) | OOD | 500 | 4 | Verified accuracy (math verify) |
| MBPP ([2]) | ID | 500 | 3 | pass@1 |
| HumanEval ([4]) | OOD | 164 | 0 | pass@1 |
| FLORES+ dev ([21, 3]) | ID | 0 | chrF2 | |
| FLORES+ devtest | OOD | 0 | chrF2 | |
| HarmBench ([19]) | ID | 320 | 0 | Refuse-to-answer rate |
| WildGuardTest ([10]) | OOD | 749 | 0 | Refuse-to-answer rate |
Table 8. Sample counts, prompting, and scoring for ID selection and held-out OOD evaluation. Shots denotes in-context examples. FLORES+ counts are sentences per target language times eight languages. Refusal rates use WildGuard.
Search methods use ID AVG for coefficient selection, and the reported ID scores use these same benchmarks; OOD benchmarks are held out from selection. All merged candidates, including simplex vertices, follow a common evaluation protocol within each architecture and benchmark. Model identifiers, benchmark sources, and implementation details are provided in Appendix § 14.
Comparisons. Weight averaging ([27]) sets , while MetaGPT ([33]) uses . Both determine without target-metric evaluations. Task Arithmetic ([13]) evaluates 21 shared coefficients, with , and selects the candidate with the highest measured ID AVG.
MAP (Li et al., 2025) samples and optimizes coefficients in . For each seed, one sequence starts with the eight vertices , followed by 127 independent vectors sampled uniformly from . Budgets use the first points of this sequence. MAP fits domain-wise sigmoid-transformed quadratics, uses NSGA-III to approximate a Pareto front, and selects the vector with the highest predicted AVG.
Evolutionary merging ([1]) uses CMA-ES to optimize measured ID AVG over , evaluating 10 candidates per generation and retaining the best observed candidate at each budget. Task Arithmetic, MAP, and evolutionary merging do not impose a sum-to-one constraint.
SLIM constructs a quadratic surrogate of ID AVG from 36 evaluations and optimizes it over using SLSQP. A cubic extension uses 120 evaluations as a degree ablation (Table 3; Appendix § 13.§ 4). Neither variant requires further target-metric evaluations during surrogate optimization. Implementation details and optimizer settings are given in Appendix § 14.§ 3.
| Variant | #Evals | Gemma-2-9B ID | Gemma-2-9B OOD | Llama-3.1-8B ID | Llama-3.1-8B OOD |
| Best vertex | 8 | 58.51 | 49.75 | 54.80 | 46.50 |
| Best lattice point | 36 | 65.34 | 52.13 | 57.40 | 43.23 |
| SLIM (quadratic) | 36 | 66.15 | 50.30 | 56.61 | 47.27 |
| SLIM (cubic) | 120 | 66.35 | 48.41 | 57.04 | 46.27 |
Table 3. AVG of the selection variants. The first two rows select by measured ID AVG among eight vertices or 36 lattice points; SLIM optimizes its surrogate. #Evals counts ID evaluations for selection; OOD is held out. Bold marks column maxima.
Evaluation cost and runs. We report #Evals as the hardware-independent coefficient-selection budget and GPU-hours as the measured cost in our environment. Each evaluation constructs, saves, loads, and scores a candidate on all five ID domains using one H100 GPU; GPU-hours sum the elapsed time of these evaluations. Final-model reporting and surrogate-fidelity measurements are excluded. MAP and evolutionary merging are reported as mean standard deviation over seeds 42, 43, and 44; other methods use a single run. SLIM uses a fixed evaluation design and a fixed set of optimizer initializations.
Surrogate Fidelity
For each architecture, we test the quadratic surrogate on 150 coefficient vectors sampled from Dirichlet with seed 42. Each vector assigns nonzero coefficients to all eight experts, whereas every construction point uses at most two. These points are held out from surrogate construction and coefficient selection; their measured scores use the same ID benchmarks. Since coefficient selection depends on the relative performance of mixtures, we assess agreement between predicted and measured AVG rankings using Spearman’s . We also report mean absolute error (MAE) to quantify score prediction errors.
Figure 1 compares predicted and measured scores. For AVG, Spearman’s is 0.936 on Gemma-2-9B and 0.959 on Llama-3.1-8B, with MAEs of 1.93 and 1.07 points, respectively. Fidelity varies across domains: for example, Gemma’s math scores have . Domain-wise results are provided in Appendix § 14.§ 7. The evidence therefore supports approximation of the aggregate objective rather than uniformly accurate prediction in every domain.
We also evaluate the quadratic surrogate at two held-out coefficient vectors on each of the 28 simplex edges. Across these 56 points, MAE is 1.74 on Gemma and 1.38 on Llama; the full edge curves are shown in Appendix § 14.8.
Merge Performance and Evaluation Cost
Figure 3 shows the cost–performance trade-off; numerical results at selected budgets are provided in Table 9. Quadratic SLIM uses 36 evaluations, costing 5.2 GPU-hours on Gemma-2-9B and 3.9 on Llama-3.1-8B. It achieves higher AVG than weight averaging in all four architecture-by-distribution settings and exceeds MetaGPT in three; on Gemma OOD, MetaGPT scores slightly higher (50.6 versus 50.3).
| Method | #Evals | GPU-h | Gemma-2-9B ID AVG | Gemma-2-9B OOD AVG | Llama-3.1-8B GPU-h | Llama-3.1-8B ID AVG | Llama-3.1-8B OOD AVG |
| Weight Averaging | 0 | 0 | 50.1 | 40.0 | 0 | 43.3 | 33.2 |
| MetaGPT | 0 | 0 | 62.4 | 50.6 | 0 | 47.1 | 35.5 |
| Task Arithmetic | 21 | 3.0 | 52.0 | 39.5 | 2.7 | 50.2 | 37.6 |
| Evol. Merge (gen=1) | 10 | 1.4 | 1.3 | ||||
| Evol. Merge (gen=3) | 30 | 4.1 | 3.9 | ||||
| Evol. Merge (gen=4) | 40 | 5.4 | 5.0 | ||||
| Evol. Merge (gen=5) | 50 | 6.7 | 6.2 | ||||
| Evol. Merge (gen=10) | 100 | 13.8 | 11.9 | ||||
| Evol. Merge (gen=15) | 150 | 20.4 | 17.6 | ||||
| Evol. Merge (gen=20) | 200 | 26.8 | 23.2 | ||||
| MAP () | 45 | 6.3 | 5.5 | ||||
| MAP () | 90 | 12.4 | 11.1 | ||||
| MAP () | 135 | 18.5 | 16.7 | ||||
| SLIM (quadratic) | 36 | 5.2 | 66.2 | 50.3 | 3.9 | 56.6 | 47.3 |
| SLIM (cubic) | 120 | 16.4 | 66.4 | 48.4 | 12.9 | 57.0 | 46.3 |
Table 9. ID and held-out OOD performance across coefficient-selection budgets (; Figure 3). AVG is the unweighted mean of five domain scores on a 0–100 scale. MAP and evolutionary merging report mean standard deviation over three seeds; their GPU-hours are means. Costs cover coefficient selection per run, excluding final reporting and fidelity measurements. Zero cost denotes no target-metric evaluations. Bold marks the highest AVG in each column before rounding. On Gemma OOD, MetaGPT (50.62) and MAP with (50.60) both round to 50.6. The cubic variant is a degree ablation.
SLIM with 36 evaluations outperforms MAP with 45 evaluations in all four settings. On Gemma ID and Llama OOD, SLIM retains higher AVG at every tested MAP budget. On Gemma OOD, SLIM also exceeds MAP at 90 evaluations, while MAP at 135 evaluations reaches , close to SLIM’s 50.3. On Llama ID, MAP attains higher mean AVG at 90 and 135 evaluations (57.6 5.9 and 60.4 1.2, respectively) than SLIM’s 56.6.
At comparable budgets of 30 and 40 evaluations, evolutionary merging scores below SLIM on Gemma ID, Gemma OOD, and Llama OOD. On Llama ID, however, it achieves 58.4 and 58.9, respectively, exceeding SLIM’s 56.6. With evolutionary merging extended to 150–200 evaluations, SLIM remains comparable on Gemma ID, higher on Gemma OOD, and comparable on Llama OOD.
These results demonstrate competitive merge performance with a limited evaluation budget in three of the four settings, while also reflecting the methods’ different feasible coefficient domains.
Ablation Studies
Effect of Evaluation-Point Placement
We compare lattice and random evaluation points using the same quadratic function class on the simplex. For each budget , we draw of the 150 interior points from § 4.2 without replacement and fit ID AVG by unregularized least squares (LS) or ridge regression. We repeat this procedure 1,000 times, evaluating all surrogates on the remaining points in each resample and keeping the 36-point lattice surrogate fixed. Ridge strength is selected by cross-validation using only the fitting points; scaling and fitting details appear in Appendix § 14.§ 4.
At the matched budget of 36 evaluations, the lattice design achieves higher mean rank correlation and lower mean MAE than either random-design fit on both architectures (Table 2). Ridge reduces the random design’s mean MAE from 33.64 to 2.90 on Gemma and from 30.15 to 2.24 on Llama, compared with approximately 1.93 and 1.07 for the lattice. Among the tested budgets, the lattice’s win rate first falls below 50% at for Gemma and for Llama, against random designs fitted with either LS or ridge.
| Gemma-2-9B | Llama-3.1-8B | |||||||
| Lattice win | Lattice win | |||||||
| 36 | 0.935 | 0.465 / 0.847 | 33.64 / 2.90 | 99.5 / 99.5 | 0.958 | 0.330 / 0.758 | 30.15 / 2.24 | 100.0 / 100.0 |
| 45 | 0.935 | 0.902 / 0.884 | 2.46 / 2.50 | 68.9 / 86.2 | 0.958 | 0.819 / 0.800 | 1.81 / 1.99 | 99.9 / 99.9 |
| 60 | 0.934 | 0.954 / 0.948 | 1.63 / 1.70 | 12.1 / 18.2 | 0.957 | 0.918 / 0.915 | 1.11 / 1.16 | 95.6 / 95.9 |
| 75 | 0.933 | 0.966 / 0.965 | 1.38 / 1.39 | 1.7 / 2.4 | 0.956 | 0.941 / 0.941 | 0.93 / 0.94 | 79.1 / 79.3 |
| 90 | 0.931 | 0.970 / 0.970 | 1.27 / 1.27 | 0.5 / 0.5 | 0.954 | 0.950 / 0.950 | 0.83 / 0.84 | 57.9 / 57.1 |
| 105 | 0.930 | 0.972 / 0.972 | 1.19 / 1.19 | 0.5 / 0.6 | 0.953 | 0.953 / 0.954 | 0.80 / 0.80 | 44.2 / 43.8 |
| 120 | 0.924 | 0.970 / 0.970 | 1.14 / 1.14 | 1.1 / 1.0 | 0.949 | 0.953 / 0.953 | 0.75 / 0.76 | 39.5 / 39.0 |
Table 2. The lattice improves AVG prediction at the matched budget of 36 evaluations. Random budgets are ; the lattice always uses 36. Values average 1,000 resamples with shared held-out points; pairs show LS / ridge. Lattice win is the percentage with . Lattice MAEs average approximately 1.93 (Gemma) and 1.07 (Llama).
Effect of Surrogate Optimization
The best lattice point is the lattice point with the highest measured ID AVG among the same 36 evaluations. We compare it with quadratic SLIM in AVG and in the stability of the selected coefficients.
Differences in AVG. Relative to the best lattice point, SLIM changes ID AVG by +0.8 (Gemma) and −0.8 (Llama) points and OOD AVG by −1.8 and +4.0 points (Table 3). In the experiment of Table 5, SLIM and the best lattice point are evaluated on the same GPU node, and we compare them with an item-level paired bootstrap (Appendix § 14.§ 5, Table 18). SLIM minus the best lattice point, with 95% intervals, is +1.08 [−0.13, 2.35] (ID) and −1.58 [−2.93, −0.14] (OOD) AVG points on Gemma and −1.04 [−2.35, 0.33] (ID) and +4.05 [2.53, 5.56] (OOD) on Llama.
| Method (36 evaluations on ) | Runs | Gemma-2-9B ID | Gemma-2-9B OOD | Llama-3.1-8B ID | Llama-3.1-8B OOD |
| SLIM (quadratic) | 1 | 66.43 | 50.56 | 56.37 | 47.28 |
| Best lattice point | 1 | 65.34 | 52.13 | 57.40 | 43.23 |
| GP-BO | 3 | 52.69 0.72 | 58.41 1.24 | ||
| Random design + ridge | 3 | ||||
| Evol. Merge (simplex) | 3 | ||||
| MAP (simplex) | 3 | ||||
| Random best-of-36 | 3 |
Table 5. AVG of methods sharing the eight experts (), the simplex, and 36 ID evaluations. All models of an architecture are evaluated on the same GPU node for a fair comparison, so SLIM’s values differ by at most 0.28 points from Table 3, measured on another GPU cluster (Appendix C.5). Seeded methods show mean standard deviation (seeds 42/43/44). Bold marks column maxima; Tables 18–20 give intervals and all domain scores.
| SLIM − method | Gemma-2-9B ID | Gemma-2-9B OOD | Llama-3.1-8B ID | Llama-3.1-8B OOD |
| Best lattice point | +1.08 [−0.13, 2.35] | −1.58* [−2.93, −0.14] | −1.04 [−2.35, 0.33] | +4.05* [2.53, 5.56] |
| GP-BO | +1.17* [0.28, 2.10] | −2.14* [−3.19, −1.00] | −2.05* [−3.23, −0.81] | +4.47* [3.27, 5.74] |
| per seed | +0.57 / +1.23 / +1.72 | −2.39 / −2.69 / −1.33 | −2.26 / −0.71 / −3.17 | +2.90 / +6.57 / +3.96 |
| Random design + ridge | +1.70* [0.55, 2.85] | +3.44* [2.03, 4.87] | +0.37 [−0.85, 1.65] | +5.80* [4.43, 7.26] |
| per seed | +0.51 / +0.87 / +3.72 | +0.64 / +3.23 / +6.46 | −1.36 / +1.33 / +1.13 | +4.80 / +5.75 / +6.83 |
| Evol. Merge (simplex) | +5.55* [4.35, 6.75] | +4.15* [2.69, 5.60] | +5.70* [4.21, 7.24] | +8.46* [6.84, 10.11] |
| per seed | +4.50 / +5.90 / +6.23 | +3.63 / +2.36 / +6.46 | +4.44 / +6.53 / +6.14 | +6.98 / +9.13 / +9.26 |
| MAP (simplex) | +7.58* [6.48, 8.68] | +6.56* [5.21, 7.94] | +7.39* [6.15, 8.71] | +10.67* [9.26, 12.12] |
| per seed | +9.44 / +0.98 / +12.31 | +5.00 / +2.05 / +12.62 | +10.88 / +12.22 / −0.93 | +12.89 / +13.79 / +5.33 |
| Random best-of-36 | +7.18* [6.02, 8.38] | +6.33* [4.88, 7.79] | +5.93* [4.48, 7.43] | +8.41* [6.84, 9.98] |
| per seed | +8.04 / +7.03 / +6.45 | +8.96 / +5.28 / +4.75 | +5.75 / +5.91 / +6.12 | +9.65 / +7.04 / +8.53 |
Table 18. SLIM minus each matched-budget method in AVG points (Table 5). Brackets give item-level paired bootstrap 95% intervals; * marks intervals excluding zero. For seeded methods, the difference is from the three-seed mean, its interval resamples items with the seeds fixed, and the second row lists per-seed differences (seeds 42 / 43 / 44).
Stability of the selected coefficients. We resample the benchmark items of the 36 lattice evaluations 1,000 times (Appendix § 16.§ 3), refit SLIM and reselect the best lattice point in each resample , and measure the distance between the selected coefficients and those selected with all items, . Because both sum to one, this distance is twice the coefficient mass moved between experts, so distances above 0.1 and 0.3 mean that more than 0.05 (a small reweighting) and 0.15 (a substantial change) of the mass moved; replacing one expert of an equal-weight pair gives 1.0. Table 4 shows the results: on Gemma, SLIM keeps its three experts in every resample, whereas the best lattice point switches between two expert pairs in 40.9%. On Llama, the mean distance is comparable, and SLIM makes small reweightings more often but substantial changes less often.
| Gemma-2-9B SLIM | Gemma-2-9B BL | Llama-3.1-8B SLIM | Llama-3.1-8B BL | |
| Experts changed | 0.0 | 40.9 | 25.8 | 7.8 |
| 0.1 | 40.9 | 17.5 | 7.8 | |
| 0.0 | 40.9 | 4.0 | 7.8 | |
| Mean | 0.034 | 0.409 | 0.065 | 0.078 |
Table 4. Stability of the selected coefficients over 1,000 item-level resamples (excerpt of Table 23): % of resamples in which the selected experts change or the distance exceeds 0.1 or 0.3, and the mean distance (last row). BL: best lattice point.
Matched-Budget Comparison on the Simplex
To isolate the evaluation design from the coefficient domain and budget, we compare selection methods that share the eight experts, the simplex, and 36 ID evaluations (Table 5). MAP and evolutionary merging run on the simplex, and we add three simple baselines (Appendix C.3). Random design + ridge fits the same quadratic class to 36 random interior mixtures and maximizes it like SLIM, differing in where the evaluations are placed and in the regularized fit that random placement requires (Section 5.1). GP-BO (Gaussian-process Bayesian optimization; Snoek et al., [23]) chooses its evaluations sequentially, and random best-of-36 selects the best of 36 random mixtures by measured ID AVG.
Comparison with the baselines. SLIM exceeds the three-seed means of evolutionary merging, MAP, and random best-of-36 in all four settings and that of random design + ridge in three, with paired 95% intervals excluding zero (Appendix C.5, Table 18; Llama ID: +0.37 [−0.85, 1.65]); the intervals fix the seeds, omitting seed variability.
Comparison with GP-BO. SLIM, GP-BO, and the best lattice point are the top three in every setting; SLIM leads GP-BO on Gemma ID and Llama OOD (+1.17, +4.47) and trails it on Gemma OOD and Llama ID (−2.14, −2.05), all intervals excluding zero. SLIM and GP-BO both select mixtures of two or three experts (Figure 7); unlike GP-BO’s 28 sequential queries, SLIM’s evaluations can run in parallel, and its optimization takes under two seconds on a CPU.

Figure 7. Coefficients selected by the methods of Table 5 (eight experts, the simplex, and 36 ID evaluations), drawn as in Figure 4; all coefficient sums are one. Seeded methods show seeds 42/43/44. Cell labels are rounded, so displayed zeros need not be exact zeros.
Discussion and Limitations
Sufficiency of a Quadratic Surrogate. Evaluations of individual experts and equal-weight pairs support AVG prediction at mixtures of all eight experts on both architectures (Figure 1), although domain-wise fidelity varies (Table 10). Increasing the degree from quadratic to cubic raises the budget from 36 to 120 evaluations with the same simplex-constrained optimization (Appendix § 13.§ 4) but produces small ID gains and lower OOD AVG on both architectures (Table 3; Figure 3). These results support quadratic approximation in the tested settings and show limited benefit from increasing the degree. When greater surrogate expressiveness improves generalization remains an open question.
| Domain | Gemma-2-9B | Gemma-2-9B MAE | Gemma-2-9B IQR | Llama-3.1-8B | Llama-3.1-8B MAE | Llama-3.1-8B IQR |
| Instruction | 0.97 | 2.60 | 15.9 | 0.96 | 2.46 | 10.9 |
| Math | 4.88 | 5.0 | 0.85 | 2.33 | 6.5 | |
| Coding | 0.86 | 1.89 | 4.2 | 0.70 | 1.93 | 3.9 |
| Multilingual | 0.63 | 1.40 | 1.1 | 0.56 | 1.22 | 0.6 |
| Safety | 0.94 | 9.20 | 47.2 | 0.95 | 4.39 | 19.9 |
| AVG | 0.936 | 1.93 | 10.1 | 0.959 | 1.07 | 4.6 |
Table 10. AVG is accurately predicted despite variation in domain-wise fidelity. On 150 held-out mixtures, Spearman’s compares predicted and measured rankings; MAE and the IQR of measured scores are in score points. All interpolants use the same 36 construction evaluations.
Evaluation Design as the Main Source of Gains. At 36 evaluations, the lattice yields higher mean rank correlation and lower MAE than random designs, including ridge-regularized fits (Table 2), and at a matched budget SLIM and the best lattice point both exceed random design + ridge, evolutionary merging, MAP, and random best-of-36 (§ 5.3). Evaluation placement therefore accounts for most of SLIM’s advantage and matters even with the surrogate class, coefficient domain, and budget fixed. The count is the minimum for identifying a general quadratic on the simplex, not a universal lower bound for finding a good merge.
The Net Value of Optimization. Most ID improvement over the best individual expert comes from adding equal-weight pairs to the candidates (Table 3). Optimizing beyond the best lattice point leaves ID AVG unchanged within uncertainty, lowering OOD AVG on Gemma and raising it on Llama (§ 5.2). The surrogate enables continuous coefficient selection without further target-metric evaluations; its additional performance benefit depends on the setting. It also stabilizes the selection on Gemma (Table 4), predicts the sparse mixtures where solutions lie better than random design + ridge (Appendix § 15.§ 3), and splits the four settings with GP-BO without sequential queries (§ 5.3).
The Simplex: Predictability versus Scale. The simplex contains competitive merges that a quadratic surrogate locates from 36 evaluations and that generalize beyond the selection benchmarks (Figure 3). SLIM concentrates weight on instruction and safety experts, whereas on Llama ID, MAP and evolutionary merging select candidates scoring higher at 135 and 200 evaluations, with coefficient sums of 3.31–3.75 and 2.50–2.83 (Figure 4; Table 9), differing in allocation and scale. With evolutionary merging (CMA-ES) and 36 evaluations fixed, restricting the search from to the simplex raises Gemma’s OOD AVG by 4.3–10.8 points but lowers Llama’s ID and OOD AVG by 7.3–8.4 and 1.0–2.9 points in all three seeds, so the domain effect differs between architectures (Table 22). Scaling SLIM’s coefficients as with chosen on ID AVG (six evaluations, including ) selects on Gemma, raising OOD AVG from 50.56 to 53.65 on an ID margin of only 0.43 (point estimates), and on Llama (Appendix § 16.§ 4). Although only the rescaling isolates the effect of coefficient scale, these results motivate varying both mixture proportions and overall task-vector scale while controlling the cost of surrogate construction.

Figure 4. Selected merging coefficients reveal differences in expert allocation and overall scale. Cells show raw coefficients; bars show their sums, with dotted lines marking the sum-to-one constraint. MAP uses 135 evaluations per seed. Evolutionary merging shows the candidate with the highest ID AVG observed within 200 evaluations. Cell labels are rounded, so displayed zeros need not be exact zeros; sums use unrounded values. Expert identities are listed in Table 7.
| Arch. | Seed | − simplex (AVG) ID | − simplex (AVG) OOD | solution | solution Max share | Simplex solution |
| Gemma | 42 | −2.81* [−4.23, −1.41] | −7.60* [−9.68, −5.58] | 2.84 | 0.26 | 0.25 |
| Gemma | 43 | +0.53 [−0.93, 2.00] | −10.84* [−12.98, −8.61] | 3.67 | 0.24 | 0.28 |
| Gemma | 44 | −0.40 [−1.79, 1.03] | −4.27* [−6.18, −2.33] | 3.56 | 0.25 | 0.31 |
| Llama | 42 | +7.75* [6.15, 9.37] | +2.90* [1.08, 4.74] | 2.93 | 0.21 | 0.26 |
| Llama | 43 | +8.37* [6.63, 10.09] | +1.02 [−0.95, 3.07] | 4.10 | 0.20 | 0.21 |
| Llama | 44 | +7.32* [5.73, 8.94] | +2.30* [0.46, 4.22] | 3.31 | 0.21 | 0.25 |
Table 22. CMA-ES on versus the simplex at 36 evaluations, per seed. The candidate is the best of the first 36 evaluations of the run in Table 9; both are evaluated on the same GPU node. Differences are in AVG points with paired 95% intervals (*: excluding zero). Max share is .
Limitations. Each architecture uses one set of eight experts; AVG prediction remains comparable on subsets of five to seven (Spearman’s of 0.88–0.98; Appendix § 15.§ 1), but larger sets are untested, and merging scaling laws, measured with cross-entropy loss and equal-weight merging, find that most of the gain from nine experts arrives with five or six (Wang et al., [26]). At its maximizer, the surrogate overestimates AVG by 2.17 (Gemma) and 1.41 (Llama) points (Appendix § 15.§ 2). Safety scores are refusal rates on harmful prompts; on Llama, SLIM’s OOD lead relies on safety, but penalizing over-refusal leaves its rank among the 36-evaluation methods unchanged (Appendix § 17).
Conclusion
SLIM selects LLM merging coefficients using a quadratic surrogate built from individual experts and equal-weight pairs, with the minimum evaluations required for quadratic identification on the simplex. Experiments on two architectures show accurate prediction of aggregate performance at unseen mixtures and competitive merging under limited evaluation budgets. Comparisons at a matched budget highlight evaluation-point placement as an important design choice for surrogate-based coefficient selection.
AI Use Statement
We used generative AI tools (ChatGPT, Claude, and Claude Code) for research ideation and discussion, literature search, writing and debugging code for experiments and figures, running experiments and analyzing results, drafting the manuscript, English editing and paraphrasing, creating figures and tables, and checking the mathematical derivations in Appendix § 13. We have reviewed all AI-assisted work. LLM-generated code was tested by the authors, and the resulting numerical values were verified by manual calculation or against an independent implementation. All references identified with AI assistance were checked against the original sources. We take responsibility for the final content of this work, including text, claims, and artifacts produced with the aid of generative AI.
Ethics Statement
This work does not involve human subjects, personally identifiable information, or newly collected data. We are not aware of ethical concerns raised by this work beyond those associated with the publicly available models and benchmarks it uses.
Reproducibility Statement
§ 3 and Algorithm 1 describe SLIM, and Appendices § 13.§ 1–§ 13.§ 4 derive the quadratic interpolant, its uniqueness, its equivalence under domain aggregation, and the cubic extension. Appendix § 14.§ 1 (Table 7) lists all base and expert checkpoints; Appendix § 14.§ 2 (Table 8) specifies the benchmarks, metrics, sample counts, and prompting settings; and Appendix § 14.§ 3 details the implementations of SLIM and all baselines, including random seeds, optimizer settings, and initializations. Upon acceptance, we will release our code together with the measured scores used in our experiments, including those at the lattice design points and the 150 held-out mixtures. These measurements allow the surrogate-fidelity results and SLIM’s coefficient selection to be reproduced without re-evaluating merged models.
| Role | Hugging Face identifier |
| Gemma-2-9B | |
| Base | google/gemma-2-9b |
| Instruction A | MergeBench/gemma-2-9b_instruction |
| Instruction B | google/gemma-2-9b-it |
| Math A | MergeBench/gemma-2-9b_math |
| Math B | POME-OPTIM/Gemma2-9B-MetaMathQA |
| Code A | MergeBench/gemma-2-9b_coding |
| Code B | testmoto/gemma-2-9b-synthetic_coding |
| Multilingual | MergeBench/gemma-2-9b_multilingual |
| Safety | MergeBench/gemma-2-9b_safety |
| Llama-3.1-8B | |
| Base | meta-llama/Llama-3.1-8B |
| Instruction A | MergeBench/Llama-3.1-8B_instruction |
| Instruction B | meta-llama/Llama-3.1-8B-Instruct |
| Math A | MergeBench/Llama-3.1-8B_math |
| Math B | pmahdavi/Llama-3.1-8B-math-reasoning |
| Code A | MergeBench/Llama-3.1-8B_coding |
| Code B | pmahdavi/Llama-3.1-8B-coding |
| Multilingual | MergeBench/Llama-3.1-8B_multilingual |
| Safety | MergeBench/Llama-3.1-8B_safety |
| External evaluator | |
| Refusal classifier | allenai/wildguard |
Table 7. Shared bases and eight experts per architecture, with identifiers linked to their releases. A and B distinguish experts in the same domain. WildGuard is the external evaluator and is not merged.
Acknowledgments
This work was supported by JST SPRING (Grant Number JPMJSP2108) and JSPS KAKENHI (Grant Number 23H04974), and in part by KIOXIA Corporation.
Notation
| Symbol | Meaning |
| Number of expert models. | |
| Parameters of the shared base model and expert . | |
| Task vector . | |
| Merging coefficient vector and its -th component. | |
| Merged parameters . | |
| General feasible set of merging coefficients. | |
| Coefficient simplex: and . | |
| -th standard basis vector; the vertex corresponding to expert . | |
| Evaluation design consisting of the vertices and edge midpoints. | |
| Measured target metric of ; AVG in the experiments. | |
| Measurements and . | |
| Quadratic interpolant constructed from measurements on . | |
| A quadratic in canonical mixture form and its linear and pairwise coefficients. | |
| Interpolation basis function associated with design point . | |
| A maximizer of over . | |
| Coefficients returned by numerical optimization of over . | |
| Number of domains, domain- metric, and its fixed aggregation weight; for AVG. | |
| Interpolant of domain- measurements on . | |
| Number of evaluation points used by MAP or a random-design surrogate. | |
| Coefficients selected in item-resampling replicate and with all items (Section 5.2; Appendix E.3). | |
| SLIM refit on the 36 lattice points evaluated on the GPU node (Appendix E.3). | |
| Expert subsets of Appendix D.1. | |
| Weight moved toward a vertex for the local validation points of Appendix D.2. | |
| Global scale of SLIM’s coefficients, (Appendix E.4). | |
| Refusal rates on harmful and benign prompts (Appendix F.1). | |
| Balanced safety score (Appendix F.1). | |
| OOD AVG with the safety score replaced by or removed (Appendix F.1). | |
| Weight of the safety domain in the selection objective of Appendix F.2; gives AVG. |
Table 6. Symbols defining the merging coefficients, target metric, and surrogate construction; the last block lists symbols of the additional analyses in Section 5.2 and Appendices D–F.
Additional Details on the Methods
Derivation and Uniqueness
On the simplex, and . Thus, constant and squared terms can be absorbed into linear and pairwise terms, giving the canonical mixture form in Eq. (4) [22].
At each vertex, interpolation requires . At the midpoint of experts and ,
so
The vertex and midpoint values uniquely determine all coefficients. Conversely, each evaluation supplies one linear constraint on these coefficients, so fewer evaluations cannot identify an unrestricted member of this quadratic space.
Substituting and Eq. (10) into Eq. (4) gives
Regrouping the pairwise terms by expert index gives
The simplex constraint implies . Therefore,
which is Eq. (7).
Linearity under Domain Aggregation
For domain metrics and fixed weights , define
AVG corresponds to . Let denote the basis function in Eq. (7) associated with design point . Since these functions do not depend on the measured values,
Thus, interpolating aggregated measurements and aggregating domain-wise interpolants give the same surrogate. No additional model evaluations are needed when the domain scores are recorded at the same design points.
SLIM Algorithm
Algorithm 1 SLIM: Simplex-Lattice Interpolation Merging
Require: Base parameters ; task vectors ; target metric
Ensure: Merge coefficients
Construct using Eq. (5)
for all do
Form using Eq. (1)
Evaluate the model and store
end for
Construct using Eq. (7)
Numerically maximize over to obtain
return
Cubic Extension for the Degree Ablation
For the polynomial-degree ablation, we construct a cubic interpolant on the same coefficient simplex using the simplex-lattice design (Scheffé, [22]):
Figure 2 illustrates the quadratic and cubic designs for .
The design contains the vertices, two points per expert pair with weights and , and the equal-weight mixture of each expert triple. Its size is
giving evaluations for .
Using the measured ID AVG at each design point, we construct
where an empty product equals one.
At a design point , the basis function equals one if . Otherwise, some , making a factor in the product zero. Thus, reproduces all measured values. The number of cardinal basis functions equals the dimension of polynomials of degree at most three on the simplex, so the interpolant is unique in this space.
We numerically maximize over using the same SLSQP settings and initializations as quadratic SLIM (Appendix § 14.§ 3). This optimization requires no further model evaluations, leaving the budget at for .
Additional Details on Experiments
Models and Checkpoints
Table 7 lists the checkpoints used for Gemma-2-9B (Gemma Team et al., [8]) and Llama-3.1-8B (Grattafiori et al., [9]). Each expert set contains five domain-specific checkpoints from MergeBench (He et al., [11]) and three additional checkpoints: Instruction B, Math B, and Code B. Instruction B is the official instruction-tuned model.
Benchmarks and Evaluation Protocol
Table 8 provides benchmark sources and evaluation settings. ID benchmarks are used for coefficient selection and the reported ID results; OOD benchmarks are held out from selection.
We use openlanguagedata/flores_plus for translation from English into German, French, Spanish, Chinese, Russian, Arabic, Hindi, and Japanese. ID evaluation reuses a fixed subset of 100 dev sentences per target language (seed 42); OOD evaluation uses all 1,012 devtest sentences per language. The multilingual score is the mean chrF2 across these eight languages. WildGuardTest has 749 evaluated examples after five entries with missing values are excluded. All 749 are prompts labeled harmful (412 vanilla and 337 adversarial), and HarmBench likewise contains only harmful behaviors; both safety scores are therefore refusal rates on harmful requests and do not measure over-refusal of benign requests, which we measure separately in Appendix F. Accuracy and pass@1 scores are multiplied by 100; chrF2, refusal rates, and the AlpacaEval win rate are expressed on the same 0–100 scale.
Merged candidates inherit the base model’s configuration and tokenizer, with benchmark-specific prompt formatting applied consistently. The lm-eval tasks and FLORES+ use raw prompts; AlpacaEval uses the architecture’s Instruct chat template, and safety evaluation uses a shared chat format. Simplex vertices follow this pipeline: their weights equal those of the corresponding experts, but their scores can differ from evaluations using each expert’s native tokenizer, prompts, and generation settings.
Coefficient-Selection Implementations
MetaGPT. MetaGPT [33] computes from the full task vectors. This rule gives nonnegative coefficients summing to one and requires no target-metric evaluations.
MAP. For each seed, we construct one sequence of 135 coefficient vectors. With zero-based indexing, indices 0–7 are ; indices 8–134 are 127 independent draws from , with all coordinates sampled independently. We initialize np.random.default_rng(seed) and generate these coordinates with uniform(0, 1). The fit at budget uses the first points, so all three budgets contain the eight vertices and form nested samples.
For , each surrogate’s quadratic component has coefficients. The budgets of 45, 90, and 135 evaluations are one, two, and three times this count; 90 is the released implementation’s default. We adapt the released implementation in three ways. First, we divide scores by 100 to match the sigmoid output range, corresponding to a bounded-response model on the original 0–100 score scale. Second, we replace all-ones surrogate parameter initialization with zeros to avoid initial sigmoid saturation. Third, we replace the released code’s search bounds with so that optimization remains within the domain from which the surrogate-fitting points are sampled. All reported MAP results use these adjustments to the released implementation. NSGA-III in DEAP uses a population of 100 for 150 generations over . We evaluate the surrogates at , select the vector with the highest predicted AVG from the approximate Pareto front, and use that same vector directly as the merging coefficients, . The sigmoid is applied only to the surrogate outputs, not to the merging coefficients. This selection requires no additional target-metric evaluations.
Evolutionary merging. For , CMA-ES uses a population size of , an initial mean of 0.5 in every coordinate, an initial step size of , and bounds . For each seed, we use a single run of 20 generations and report ID scores after every generation. The OOD evaluation checkpoints of 10, 30, 40, 50, 100, 150, and 200 cumulative evaluations correspond to generations 1, 3, 4, 5, 10, 15, and 20, respectively. At each checkpoint, we report the ID and OOD scores of the candidate with the highest measured ID AVG among all candidates evaluated so far.
SLIM. We interpolate the measured ID AVG directly; by linearity, this is equivalent to averaging the domain-wise interpolants Appendix § 13.§ 2. For both quadratic and cubic variants, SLSQP uses analytic gradients, , bounds , ftol=10^{-12}, and at most 1,000 iterations per initialization. The 20 initializations comprise the eight vertices, eight points near the vertices, and 11 random simplex points generated with seed 42. We retain the converged solution with the highest surrogate value. Given the measurements and these fixed initializations, the procedure is deterministic and uses no additional target-metric evaluations. The cubic extension is defined in Appendix § 13.§ 4.
Matched-budget methods on the simplex. All methods use the same eight experts, linear merging, coefficients on the simplex, and 36 ID evaluations; seeded methods use seeds 42, 43, and 44. Random best-of-36 draws 36 of the 150 held-out interior mixtures of § 4.2 (default_rng(seed).choice) and selects the one with the highest measured ID AVG. Random design + ridge fits the quadratic Scheffé model of § 5.1 to the same 36 mixtures by ridge regression, selecting by five-fold cross-validation on the form Appendix § 14.§ 4, and maximizes it over the simplex with SLIM’s SLSQP procedure. MAP (simplex) fits MAP’s domain-wise sigmoid-transformed quadratics, with 36 parameters each, to the eight vertices and the first 28 mixtures of the same draw, runs NSGA-III over with the surrogates evaluated at , and merges with the normalized coefficients of the Pareto point with the highest predicted AVG; other settings follow the MAP paragraph above. Evol. Merge (simplex) runs CMA-ES with the configuration above (initial mean 0.5, step size 1/6, population 10, bounds ) but evaluates ; the 36 evaluations comprise three generations and six candidates of the fourth, and the candidate with the highest measured ID AVG is selected. GP-BO [23] starts from the eight vertices and makes 28 sequential queries using a Gaussian process with a constant × Matérn-5/2 kernel with automatic relevance determination plus white noise, refit on all data at every step, and expected improvement (), maximized over the simplex by refining the best 10 of 10,000 Dirichlet candidates with SLSQP; it selects the evaluated point with the highest measured ID AVG. SLIM, the best lattice point, random best-of-36, random design + ridge, and MAP select from the lattice and held-out measurements of § 4, whereas evolutionary merging and GP-BO select from measurements taken during their runs; refitting SLIM on lattice values evaluated on the comparison GPU node leaves its OOD AVG nearly unchanged (Appendix § 16.§ 3). All selected models were evaluated on the ID and OOD benchmarks on the same GPU node per architecture (Appendix § 14.§ 5); for evolutionary merging and GP-BO, the reported ID values are the in-run measurements used for selection. SLIM’s surrogate optimization takes 0.25 s (Gemma) and 1.62 s (Llama) on a CPU.
Random-Design Fits
The evaluation-placement ablation uses the same Scheffé basis for LS and ridge: eight linear terms and 28 pairwise terms, with no explicit intercept. For ridge, each feature is divided by its root mean square without centering. We select by five-fold cross-validation on the fitting points, minimizing mean squared error and recomputing feature scales within each training fold. The remaining points are used only to assess prediction fidelity.
Hardware and Statistical Intervals
Hardware. Except for the best lattice point in Table 3 and the paired intervals and coefficient-stability analysis of § 5.2, which use the GPU node below, the results of § 4, § 5.1, and § 5.2, including the cubic variant, were measured on a cluster of H100 NVL GPUs. The models compared in pairs in § 5.3 and Table 14, Table 18–20, Table 22, and Table 25 were evaluated on the same H200 NVL GPU node per architecture, so the two models in each such comparison share hardware. On this GPU node, the AVG values of SLIM, MAP (), and evolutionary merging (gen=20) differ from those in Table 9 by at most 0.34 points before rounding. Auxiliary measurements used other GPU nodes, as noted in each table. After a GPU node failure, several expert-subset groups were split across two GPU nodes of the same type (H200 NVL), on which a canary run produced bit-identical generations; three Llama subset groups and the Llama local validation, scale grid, and re-checks were measured on an H100 PCIe GPU node.
| Arch. | Set | #Evals | SLIM | Best lattice point | ID | OOD |
| Gemma | 15 | IA 0.52, S 0.48 | IA 0.50, S 0.50 | +1.03* [0.41, 1.65] | +0.44 [−0.35, 1.22] | |
| Gemma | 15 | IB 0.55, ML 0.14, S 0.30 | IB 0.50, S 0.50 | −0.91 [−2.05, 0.22] | +1.70* [0.29, 3.21] | |
| Gemma | 21 | IA 0.29, IB 0.45, S 0.26 | IA 0.50, IB 0.50 | same models as with all eight experts | ||
| Gemma | 28 | IA 0.29, IB 0.45, S 0.26 | IA 0.50, IB 0.50 | same models as with all eight experts | ||
| Llama | 15 | MA 0.08, CA 0.36, S 0.56 | IA 0.50, S 0.50 | −0.08 [−1.54, 1.37] | +2.12* [0.49, 3.78] | |
| Llama | 15 | IB 0.70, S 0.30 | IB 0.50, S 0.50 | same models as with all eight experts | ||
| Llama | 21 | IB 0.70, S 0.30 | IB 0.50, S 0.50 | same models as with all eight experts | ||
| Llama | 28 | IB 0.70, S 0.30 | IB 0.50, S 0.50 | same models as with all eight experts |
Table 14. Selection within expert subsets with evaluations. Coefficients use IA/IB (Instruction A/B), MA (Math A), CA (Code A), ML (Multilingual), and S (Safety). Differences are in AVG points with paired 95% intervals (*: excluding zero); both models are measured on the same GPU node.
| Method | #Evals | AVG (rank) | (rank) | (rank) | |||
| Gemma-2-9B | |||||||
| SLIM (quadratic) | 36 | 58.6 | 5.6 | 76.5 | 50.56 (4) | 54.13 (4) | 48.54 (3) |
| SLIMR | 36 | 58.7 | 5.6 | 76.6 | 50.58 (3) | 54.14 (3) | 48.54 (4) |
| Best lattice point | 36 | 53.3 | 4.0 | 74.6 | 52.13 (2) | 56.40 (2) | 51.85 (1) |
| GP-BO | 36 | 52.69 (1) | 56.44 (1) | 51.36 (2) | |||
| Random design + ridge | 36 | 47.11 (6) | 48.52 (7) | 42.24 (7) | |||
| Evol. Merge (simplex) | 36 | 46.41 (7) | 49.84 (6) | 43.64 (6) | |||
| MAP (simplex) | 36 | 44.00 (9) | 46.89 (9) | 40.21 (9) | |||
| Random best-of-36 | 36 | 44.23 (8) | 48.46 (8) | 42.14 (8) | |||
| Evol. Merge ([0, 1], 36 evals) | 36 | 38.84 (11) | 43.02 (11) | 35.04 (11) | |||
| MAP (, [0, 1]) | 45 | 40.91 (10) | 44.83 (10) | 37.47 (10) | |||
| Evol. Merge (gen=20, [0, 1]) | 200 | 48.85 (5) | 52.74 (5) | 46.89 (5) | |||
| Llama-3.1-8B | |||||||
| SLIM (quadratic) | 36 | 75.6 | 16.3 | 79.6 | 47.28 (1) | 48.10 (2) | 40.21 (3) |
| SLIMR | 36 | 75.0 | 15.0 | 80.0 | 47.04 (2) | 48.04 (3) | 40.04 (4) |
| Best lattice point | 36 | 67.3 | 13.2 | 77.0 | 43.23 (4) | 45.18 (6) | 37.22 (7) |
| GP-BO | 36 | 42.81 (5) | 47.46 (4) | 41.40 (2) | |||
| Random design + ridge | 36 | 41.48 (6) | 44.00 (7) | 36.21 (10) | |||
| Evol. Merge (simplex) | 36 | 38.82 (9) | 43.84 (8) | 37.67 (6) | |||
| MAP (simplex) | 36 | 36.61 (11) | 40.89 (11) | 34.51 (11) | |||
| Random best-of-36 | 36 | 38.88 (8) | 43.38 (9) | 37.01 (8) | |||
| Evol. Merge ([0, 1], 36 evals) | 36 | 40.90 (7) | 45.90 (5) | 39.33 (5) | |||
| MAP (, [0, 1]) | 45 | 37.01 (10) | 42.89 (10) | 36.55 (9) | |||
| Evol. Merge (gen=20, [0, 1]) | 200 | 45.71 (3) | 50.12 (1) | 43.99 (1) |
Table 25. Over-refusal and safety-adjusted OOD AVG. : refusal rate on the 749 harmful WildGuardTest prompts (the OOD safety score); : refusal rate on 940 benign prompts; . replaces the safety score by , and averages the other four domains. Ranks are among the 11 listed methods and use unrounded values; seeded methods show mean standard deviation over three seeds for , , and and means in the AVG columns.
Intervals. Intervals are item-level paired bootstrap percentile intervals (95%, , seed 20261109) without multiplicity adjustment. Each replicate applies the same item resampling to both models and recomputes all domain scores and AVG; FLORES+ is resampled by source sentence and AlpacaEval by instruction, refitting the length-controlled (LC) model in every replicate. For seeded methods, the interval is for the difference from the three-seed mean and resamples items with the three models fixed; it excludes seed variability, so we also report per-seed differences. ID intervals do not correct for the optimism of selecting on the same benchmarks; the held-out OOD comparisons carry the main evidence. AlpacaEval preferences were annotated once per model by gpt-4o-2024-08-06 and are held fixed in the intervals, which therefore exclude annotator variability. The LC fit depends on the CPU (differences of up to 1.1 points on other CPUs), so all LC values of the H200 NVL comparisons, including those in the intervals, were computed on one CPU; the LC values of the H100 NVL results above were computed on a different machine.
Deviations from the pre-specified protocol. We fixed the protocol of the experiments in § 5.3 and Appendices § 15–§ 17 before running them and note the following deviations. (i) Before any expert-subset result was available, the number of held-out mixtures per expert subset was increased from 30 to 50. (ii) After seeing the results, we decided not to run MAP on the simplex with 45 evaluations, because the 36-evaluation version already scored higher than MAP () on in three settings and within 0.40 points in the fourth. (iii) The over-refusal measurement and the safety-weight sensitivity of Appendix F were added after seeing the analysis with safety removed (AVG4). (iv) Measurements from one GPU node with an unstable network connection were discarded because of the GPU node’s reliability, not their values, and repeated on another GPU node. (v) The following analyses were not in the protocol and were added after the measurements: the sparse-mixture comparison of Table 17, the AVG4 ranks of Table 25, the threshold shares of Table 23(b) (excerpted in Table 4), and the centered MAE in Appendix D.3.
| Held-out points | #Points | Gemma-2-9B SLIM | Gemma-2-9B Random + ridge | Llama-3.1-8B SLIM | Llama-3.1-8B Random + ridge |
| Edge points (), 2 experts | 56 | 1.74 | 1.38 | ||
| Equal-weight mixtures of 3 experts | 56 | 1.96 | 1.34 | ||
| Local points around (Table 16) | 16 | 1.79 | 0.75 | ||
| Interior mixtures of 8 experts‡ | 37–42 | 1.81 | 0.99 |
Table 17. AVG MAE of the lattice surrogate (SLIM) and random design + ridge (mean ± standard deviation over the three seeds of Table 5) on held-out mixtures. Edge points and three-expert mixtures are measurements from the cubic-lattice run (Appendix § 13.§ 4). Local and interior points are the measurements of Appendices § 15.§ 2 and § 15.§ 1. ‡The first 50 mixtures of § 4.2, re-measured, excluding each seed’s ridge training points; SLIM is averaged over the same per-seed point sets.
| SLIM refit on each resample | Best lattice point | |||||
| (a) | Median | Max | Support changed (%) | Mean | Switched (%) | Mean |
| Gemma-2-9B | 0.031 [0.006, 0.077] | 0.127 | 0.0 | 0.034 | 40.9 | 0.409 |
| Llama-3.1-8B | 0.029 [0.002, 0.352] | 0.629 | 25.8 | 0.065 | 7.8 | 0.078 |
| (b) Resamples with (%) | Gemma-2-9B | Llama-3.1-8B | ||||
| SLIM | Best lattice point | SLIM | Best lattice point | |||
| 18.9 | 40.9 | 29.8 | 7.8 | |||
| 0.1 | 40.9 | 17.5 | 7.8 | |||
| 0.0 | 40.9 | 9.5 | 7.8 | |||
| 0.0 | 40.9 | 4.0 | 7.8 | |||
| 0.0 | 40.9 | 1.6 | 7.8 | |||
| 0.0 | 40.9 | 0.8 | 7.8 |
Table 23. Stability of the selected coefficients under 1,000 item-level resamples of the 36 lattice points evaluated on the GPU node of Appendix § 14.§ 5. (a) distance from the full-data solution; the median comes with its 2.5–97.5% range, and the support counts experts with . (b) Share of resamples whose distance exceeds a threshold; every switch of the best lattice point moves the distance by 1.0.
Numerical Results for Figure 3
Table 9 gives the numerical results underlying Figure 3. All coefficients are selected using ID evaluations only. Table 11 and Table 12 report the domain scores behind Table 9, together with those of the base model and the eight experts.
| Method | ID: Instr. | ID: Math | ID: Coding | ID: Multi. | ID: Safety | ID: AVG | #Evals | GPU-h | OOD: Instr. | OOD: Math | OOD: Coding | OOD: Multi. | OOD: Safety | OOD: AVG |
| Base | 15.0 | 66.2 | 53.4 | 38.7 | 9.1 | 36.5 | – | – | 0.0 | 33.2 | 37.2 | 38.4 | 18.6 | 25.5 |
| Instruction A | 65.4 | 66.2 | 54.2 | 52.3 | 12.2 | 50.1 | – | – | 9.6 | 39.0 | 53.7 | 50.7 | 20.2 | 34.6 |
| Instruction B | 51.2 | 66.7 | 57.6 | 44.5 | 72.5 | 58.5 | – | – | 45.9 | 40.6 | 54.9 | 41.7 | 65.7 | 49.7 |
| Math A | 8.9 | 5.8† | 34.0 | 12.7 | 3.4 | 13.0 | – | – | 0.7 | 40.2 | 3.0 | 12.2 | 10.0 | 13.2 |
| Math B | 16.6 | 58.0 | 27.6 | 14.7 | 7.2 | 24.8 | – | – | 0.3 | 36.6 | 8.5 | 13.9 | 11.1 | 14.1 |
| Code A | 24.2 | 45.6 | 48.8 | 51.8 | 5.3 | 35.2 | – | – | 3.1 | 23.4 | 67.1 | 50.4 | 22.4 | 33.3 |
| Code B | 17.0 | 61.6 | 52.4 | 43.7 | 18.4 | 38.6 | – | – | 0.1 | 35.0 | 36.6 | 42.2 | 20.0 | 26.8 |
| Multilingual | 14.8 | 65.8 | 55.4 | 47.2 | 35.0 | 43.6 | – | – | 3.1 | 34.0 | 43.3 | 46.3 | 18.3 | 29.0 |
| Safety | 15.2 | 57.5 | 44.0 | 49.9 | 75.6 | 48.4 | – | – | 4.7 | 28.4 | 40.2 | 48.9 | 62.5 | 37.0 |
| Weight Averaging | 29.0 | 68.4 | 54.8 | 54.5 | 43.8 | 50.1 | 0 | 0 | 8.1 | 44.8 | 55.5 | 53.4 | 38.3 | 40.0 |
| MetaGPT | 51.2 | 76.6 | 58.0 | 56.0 | 70.0 | 62.4 | 0 | 0 | 39.2 | 47.4 | 57.3 | 54.3 | 54.9 | 50.6 |
| Task Arithmetic | 36.4 | 72.3 | 50.4 | 51.3 | 49.7 | 52.0 | 21 | 3.0 | 12.3 | 46.0 | 48.2 | 49.8 | 41.3 | 39.5 |
| Evol. Merge (gen=1) | 10 | 1.4 | ||||||||||||
| Evol. Merge (gen=3) | 30 | 4.1 | ||||||||||||
| Evol. Merge (gen=4) | 40 | 5.4 | ||||||||||||
| Evol. Merge (gen=5) | 50 | 6.7 | ||||||||||||
| Evol. Merge (gen=10) | 100 | 13.8 | ||||||||||||
| Evol. Merge (gen=15) | 150 | 20.4 | ||||||||||||
| Evol. Merge (gen=20) | 200 | 26.8 | ||||||||||||
| MAP () | 45 | 6.3 | ||||||||||||
| MAP () | 90 | 12.4 | ||||||||||||
| MAP () | 135 | 18.5 | ||||||||||||
| SLIM (quadratic) | 60.3 | 71.3 | 58.4 | 56.5 | 84.4 | 66.2 | 36 | 5.2 | 38.7 | 40.6 | 59.1 | 54.6 | 58.5 | 50.3 |
| SLIM (cubic) | 58.4 | 70.7 | 56.4 | 55.6 | 90.6 | 66.4 | 120 | 16.4 | 48.4 | 41.0 | 57.9 | 54.2 | 59.3 | 50.6 |
Table 11. Per-domain ID and held-out OOD scores on Gemma-2-9B (), extending Table 9 with the base model and the eight experts. Experts are evaluated through the same merging pipeline as the merged models, with one-hot coefficients; their ID scores are the vertices of the lattice used to construct quadratic SLIM. Domain metrics follow Table 8; Avg. means standard deviation over three seeds, and GPU-hours follow Table 9. Bold marks the highest value among merging methods in each score column and AVG column; OOD AVG column, MetaGPT (50.62) and MAP with (50.60) both round to 50.6; “Math A answers in a format that GSM8K strict matching does not extract.
| Method | ID Instr. | ID Math | ID Coding | ID Multi. | ID Safety | ID AVG | #Evals | GPU-h | OOD Instr. | OOD Math | OOD Coding | OOD Multi. | OOD Safety | OOD AVG |
| Base | 8.3 | 54.1 | 48.4 | 48.9 | 2.8 | 32.5 | – | – | 0.3 | 21.4 | 37.8 | 47.5 | 5.6 | 22.5 |
| Instruction A | 47.0 | 57.9 | 52.4 | 50.7 | 8.4 | 43.3 | – | – | 8.7 | 23.4 | 45.7 | 49.5 | 13.4 | 28.1 |
| Instruction B | 44.4 | 76.9 | 58.6 | 22.6 | 71.6 | 54.8 | – | – | 31.3 | 36.2 | 64.0 | 22.1 | 78.9 | 46.5 |
| Math A | 13.1 | 7.1† | 38.0 | 17.5 | 9.7 | 17.1 | – | – | 1.0 | 38.4 | 28.7 | 17.4 | 10.9 | 19.3 |
| Math B | 19.4 | 75.4 | 48.4 | 48.9 | 7.8 | 40.0 | – | – | 6.9 | 33.0 | 44.5 | 47.8 | 1.9 | 26.8 |
| Code A | 22.4 | 45.0 | 46.2 | 49.9 | 9.1 | 34.5 | – | – | 3.8 | 16.4 | 63.4 | 48.3 | 18.8 | 30.1 |
| Code B | 14.0 | 55.3 | 46.2 | 50.8 | 5.3 | 34.3 | – | – | 4.5 | 21.2 | 53.0 | 49.3 | 12.0 | 28.0 |
| Multilingual | 4.1 | 51.5 | 39.6 | 49.2 | 20.9 | 33.0 | – | – | 3.2 | 22.0 | 41.5 | 48.4 | 10.3 | 25.1 |
| Safety | 7.4 | 46.9 | 44.8 | 47.8 | 54.7 | 40.3 | – | – | 3.9 | 17.6 | 41.5 | 46.1 | 46.1 | 31.0 |
| Weight Averaging | 20.3 | 69.4 | 53.4 | 51.6 | 21.9 | 43.3 | 0 | 0 | 6.9 | 30.8 | 52.4 | 50.5 | 25.5 | 33.2 |
| MetaGPT | 25.5 | 73.7 | 53.8 | 49.9 | 32.8 | 47.1 | 0 | 0 | 1.1 | 38.0 | 54.9 | 49.2 | 34.3 | 35.5 |
| Task Arithmetic | 37.3 | 72.6 | 53.8 | 50.3 | 37.2 | 50.2 | 21 | 2.7 | 8.7 | 39.0 | 57.3 | 48.8 | 34.0 | 37.6 |
| Evol. Merge (gen=1) | 38.4±4.6 | 73.1±1.1 | 51.2±2.0 | 46.3±1.0 | 60.9±11.7 | 54.0±1.0 | 10 | 1.3 | 5.8±5.3 | 37.1±2.1 | 62.4±2.5 | 44.2±1.0 | 41.8±5.9 | 38.3±0.4 |
| Evol. Merge (gen=3) | 41.1±4.3 | 70.0±3.5 | 53.4±1.6 | 48.8±1.4 | 79.0±10.2 | 58.4±1.7 | 30 | 3.9 | 19.2±8.0 | 30.5±4.4 | 66.9±2.7 | 47.4±1.3 | 46.6±1.8 | 42.1±2.0 |
| Evol. Merge (gen=4) | 42.0±3.4 | 72.7±4.5 | 52.9±0.1 | 48.4±1.8 | 78.8±10.8 | 58.9±1.9 | 40 | 5.0 | 13.8±8.6 | 32.9±3.0 | 64.0±1.1 | 46.8±1.4 | 47.9±4.2 | 41.1±1.1 |
| Evol. Merge (gen=5) | 44.0±1.2 | 71.7±2.4 | 54.4±1.8 | 48.8±0.3 | 80.8±7.7 | 60.0±1.9 | 50 | 6.2 | 22.6±7.2 | 33.3±1.9 | 65.9±4.4 | 47.4±0.2 | 47.4±3.8 | 43.3±1.3 |
| Evol. Merge (gen=10) | 46.9±4.8 | 77.3±0.9 | 55.1±1.1 | 49.5±0.9 | 87.2±3.6 | 63.2±0.1 | 100 | 11.9 | 29.4±5.2 | 36.3±1.5 | 61.2±2.5 | 48.2±0.7 | 53.8±8.0 | 45.8±2.2 |
| Evol. Merge (gen=15) | 46.8±1.7 | 78.0±2.1 | 54.3±0.2 | 50.2±0.5 | 90.4±2.2 | 63.9±0.6 | 150 | 17.6 | 31.5±5.1 | 37.5±1.7 | 64.2±1.3 | 48.7±0.4 | 54.0±0.6 | 47.2±1.5 |
| Evol. Merge (gen=20) | 49.2±2.2 | 79.0±1.1 | 53.8±0.9 | 50.1±0.8 | 90.8±2.0 | 64.6±0.6 | 200 | 23.2 | 27.4±6.7 | 37.1±1.5 | 61.8±2.0 | 48.6±0.7 | 52.7±0.5 | 45.5±1.9 |
| MAP (n = 45) | 32.9±8.4 | 57.3±12.5 | 48.6±0.9 | 43.1±8.5 | 55.2±7.6 | 47.4±1.8 | 45 | 5.5 | 19.2±12.3 | 25.1±5.4 | 58.7±8.2 | 41.5±7.9 | 38.8±1.5 | 36.7±2.1 |
| MAP (n = 90) | 42.0±4.3 | 70.3±10.9 | 52.0±4.0 | 47.9±2.5 | 75.9±10.3 | 57.6±5.9 | 90 | 11.1 | 29.9±11.4 | 31.0±7.3 | 63.0±8.1 | 46.7±2.2 | 44.7±6.9 | 43.1±7.0 |
| MAP (n = 135) | 43.3±4.4 | 73.4±2.2 | 54.5±0.6 | 49.1±0.4 | 81.7±4.0 | 60.4±1.2 | 135 | 16.7 | 29.0±8.5 | 35.0±0.5 | 65.2±1.6 | 47.8±0.4 | 49.3±6.7 | 45.3±2.6 |
| SLIM (quadratic) | 38.1 | 74.2 | 57.0 | 32.5 | 81.2 | 56.6 | 36 | 3.9 | 33.8 | 36.8 | 58.5 | 32.1 | 75.2 | 47.3 |
| SLIM (cubic) | 40.1 | 75.1 | 58.5 | 32.0 | 82.0 | 57.4 | 36 | 3.9 | 34.0 | 37.2 | 59.0 | 31.8 | 75.5 | 47.5 |
Table 12. Per-domain ID and held-out OOD scores on Llama-3.1-8B (), extending Table 9 with the base model and the eight experts. Experts are evaluated through the same merging pipeline as the merged models, with one-hot coefficients; their ID scores are the vertices of the lattice used to construct quadratic SLIM. Domain metrics follow Table 8; AVG, the mean ± standard deviation over three seeds, #Evals, and GPU-hours (means) follow Table 9. Bold marks the highest value among merging methods in each score column before rounding. † Math A answers in a format that GSM8K strict matching does not extract.
Domain-wise Surrogate Fidelity
Table 10 reports fidelity on the same 150 held-out mixtures as Figure 1. The interquartile range (IQR) of measured scores provides context for the MAE. The AVG row evaluates predictions of the aggregate objective; it is not an average of the domain-wise fidelity statistics.
Quadratic Interpolation along Simplex Edges
For each expert pair , we consider for . The quadratic interpolant uses measurements at . We assess its predictions at , giving 56 held-out points across 28 edges per architecture. These points are excluded from quadratic surrogate construction and coefficient selection, although they belong to the cubic design. All scores are measured on the ID benchmarks.
Figure 5 and Figure 6 show the quadratic predictions and held-out measurements along all simplex edges for Gemma-2-9B and Llama-3.1-8B, respectively. MAE is 1.74 on Gemma and 1.38 on Llama, with maximum absolute errors of 8.08 and 4.28, respectively. The curves show useful interpolation overall, with localized deviations. This analysis complements the interior-mixture evaluation in § 4.2.

Figure 5. Quadratic predictions and measured ID AVG along all 28 simplex edges for Gemma-2-9B. Blue circles mark construction points and blue curves show the quadratic surrogate. Orange squares mark points held out from quadratic construction; orange segments show prediction errors. Panel titles list the experts at and . Y-axis ranges vary across panels.

Figure 6. Quadratic predictions and measured ID AVG along all 28 simplex edges for Llama-3.1-8B. Blue circles mark construction points and blue curves show the quadratic surrogate. Orange squares mark points held out from quadratic construction; orange segments show prediction errors. Panel titles list the experts at and . Y-axis ranges vary across panels.
Additional Analyses of the Surrogate
This appendix extends the fidelity analysis of § 4.2 to fewer experts (including selection within subsets), to the selected solutions and their neighborhoods, and to sparse mixtures.
Fidelity and Selection with Fewer Experts (–)
We repeat the fidelity test of § 4.2 on four expert subsets: , , , and . Each subset surrogate uses only the lattice measurements of § 4 on the subset’s face and is tested on 50 new mixtures sampled from Dirichlet over the subset (seed 42); for all eight experts, we re-measure the first 50 of the 150 mixtures of § 4.2. Table 13 reports Spearman’s and MAE with intervals from resampling the held-out mixtures (). For –, ranges from 0.88 to 0.98, at a level comparable to all eight experts: the intervals of the differences from include zero, except for a larger MAE on Llama ( [0.06, 0.70]) and a higher on Gemma ( [0.003, 0.113]). Because the number and the identity of the experts change together, these comparisons do not isolate the effect of . Predictions use the lattice measurements of § 4, whereas the held-out mixtures were measured on other GPU nodes; on the 50 mixtures of all eight experts, the new measurements change by (Gemma) and (Llama) and MAE by and relative to those of § 4.2. Each Gemma group and the Llama group were split across two GPU nodes; restricted to the first 30 mixtures of each Gemma group, all measured on the same GPU node, is 0.92–0.97 for – and 0.90 for all eight experts (MAE 1.41–2.09 and 2.06). The Llama comparisons of , , and with all eight experts also cross GPU types (H100 PCIe versus H200 NVL).
| Expert set | #Evals | Gemma-2-9B Spearman’s | Gemma-2-9B MAE | Llama-3.1-8B Spearman’s | Llama-3.1-8B MAE | |
| 5 | 15 | 0.974 [0.939, 0.984] | 2.20 [1.75, 2.67] | 0.881 [0.770, 0.941] | 0.79 [0.60, 1.03] | |
| 5 | 15 | 0.964 [0.918, 0.979] | 1.61 [1.27, 1.98] | 0.969 [0.930, 0.983] | 1.39 [1.13, 1.66] | |
| 6 | 21 | 0.945 [0.875, 0.977] | 2.07 [1.60, 2.58] | 0.978 [0.945, 0.989] | 0.90 [0.66, 1.18] | |
| 7 | 28 | 0.954 [0.895, 0.978] | 1.82 [1.45, 2.21] | 0.956 [0.903, 0.978] | 1.02 [0.78, 1.29] | |
| All eight | 8 | 36 | 0.926 [0.858, 0.956] | 1.79 [1.43, 2.16] | 0.951 [0.893, 0.974] | 1.01 [0.83, 1.19] |
| Sec. 4.2, 150 mixtures | 8 | 36 | 0.936 | 1.93 | 0.959 | 1.07 |
Table 13. AVG prediction fidelity on expert subsets with 50 held-out mixtures each (95% intervals from resampling mixtures); #Evals is the number of lattice points. The last row is the result on 150 mixtures in Section 4.2. Each Gemma group was split across two H200 NVL GPU nodes; Llama , , and were measured on an H100 PCIe GPU node and the other Llama groups on H200 NVL GPU nodes.
Table 14 repeats the comparison of SLIM and the best lattice point within each subset. In five of the eight cases, the subset contains the experts used by both solutions for all eight experts, so the same models are selected; in the three independent cases, SLIM is ahead on OOD in two with intervals excluding zero ( and ) and within uncertainty in the third (), and its ID differences range from to . We did not test more than eight experts. Merging scaling-law results [26], measured with cross-entropy loss for experts merged with equal weights, show that about 90% of the improvement from merging up to nine experts is reached with six, and their fitted law implies that the gain from each additional expert decays roughly as ; in a 16-expert extension, gains flatten from about ten experts, and benchmark scores, evaluated for up to five experts, plateau earlier.
Prediction Error at and near the Selected Solutions
Selected point. Table 15 compares the surrogate prediction with the measured . The AVG prediction is optimistic by 2.17 (Gemma) and 1.41 (Llama) points, slightly more than the held-out MAE of § 4.2 (1.93 and 1.07), as expected when selecting the maximizer of a surrogate; for SLIM (Appendix § 16.§ 3), it is optimistic by 2.99 and 1.76 points. The largest domain errors are Gemma safety (+11.59) and Llama multilingual (+10.09), with the same sign for SLIM (+12.25 and +7.60).
| Domain | Gemma-2-9B | Gemma-2-9B | Gemma-2-9B Error | Llama-3.1-8B | Llama-3.1-8B | Llama-3.1-8B Error |
| Instruction | 57.25 | 60.26 | −3.01 | 41.22 | 38.08 | +3.14 |
| Math | 72.56 | 71.27 | +1.30 | 74.13 | 74.22 | −0.09 |
| Coding | 58.43 | 58.40 | +0.03 | 53.05 | 57.00 | −3.95 |
| Multilingual | 57.40 | 56.45 | +0.95 | 42.58 | 32.48 | +10.09 |
| Safety | 95.96 | 84.38 | +11.59 | 79.09 | 81.25 | −2.16 |
| AVG | 68.32 | 66.15 | +2.17 | 58.01 | 56.61 | +1.41 |
| AVG, SLIM | 68.54 | 65.55 | +2.99 | 58.74 | 56.98 | +1.76 |
Table 15. Surrogate prediction and measured score at SLIM’s selected coefficients (measured as in Table 9), with the error . The last row is SLIM (Appendix § 16.§ 3), measured on the GPU node of Appendix § 14.§ 5.
Local validation. We evaluate 16 mixtures per architecture around SLIM’s solution, for and , none of which is used for construction or selection (Table 16). The AVG MAE is 1.79 on Gemma (maximum 2.45) and 0.75 on Llama (maximum 2.05), similar to the held-out MAE; on Gemma, the errors are mostly optimistic (mean +1.55), mainly through safety. At itself, measured on the same GPU nodes, the prediction is optimistic by 1.89 (Gemma) and 1.32 (Llama) points.
| Points | Gemma-2-9B #Points | Gemma-2-9B MAE | Gemma-2-9B Max | Gemma-2-9B Mean error | Llama-3.1-8B #Points | Llama-3.1-8B MAE | Llama-3.1-8B Max | Llama-3.1-8B Mean error |
| All points | 16 | 1.79 | 2.45 | +1.55 | 16 | 0.75 | 2.05 | −0.07 |
| 8 | 1.84 | 2.45 | +1.84 | 8 | 0.60 | 1.81 | +0.29 | |
| 8 | 1.73 | 2.15 | +1.26 | 8 | 0.90 | 2.05 | −0.42 | |
| Toward an expert in the support | 6 | 1.97 | 2.45 | +1.97 | 4 | 1.00 | 1.81 | +0.89 |
| Toward an expert outside the support | 10 | 1.68 | 2.08 | +1.30 | 12 | 0.67 | 2.05 | −0.38 |
Table 16. AVG prediction error at 16 local points around SLIM’s selected coefficients (Gemma measured on an H200 NVL GPU node, Llama on an H100 PCIe GPU node). The mean error is prediction minus measurement. Directions toward an expert in the support of shift weight among the selected experts; the others add a small weight to an unselected expert.
Prediction Error on Sparse Mixtures
SLIM’s solutions use two or three experts, so we compare the lattice surrogate with the random-design ridge surrogates of § 5.3 on sparse held-out mixtures (Table 17). Edge points, equal-weight mixtures of three experts, and the local points lie outside the interior region covered by random designs, and the lattice surrogate has lower MAE than the ridge surrogates’ three-seed mean on all of them. On the Gemma local points, one ridge seed is more accurate (1.19 versus 1.79), mainly because of a smaller mean offset (centered MAE 0.66 for SLIM versus 0.76–0.97 for ridge). On interior mixtures of all eight experts, where both surrogates interpolate, the lattice surrogate remains more accurate (1.81 versus 3.06 on Gemma and 0.99 versus 1.98 on Llama).
Additional Details on Ablation Studies
This appendix details the comparisons of § 5.2, § 5.3, and § 6; the methods are described in Appendix § 14.§ 3, and the hardware and intervals in Appendix § 14.§ 5.
Matched-Budget Comparison on the Simplex
Table 18 gives the AVG differences from SLIM with intervals and per-seed values, Table 19 the domain scores of all compared models, and Table 20 the domain-wise differences with intervals. The differences between SLIM and the best lattice point reflect trade-offs across domains. On Gemma, SLIM is higher on safety (+14.38 ID, +5.34 OOD) and lower on instruction following (−11.28 IFEval, −9.51 AlpacaEval LC). On Llama, it is higher on ID math and coding (+5.31 and +3.40) and lower on multilingual (−17.86 ID, −17.62 OOD); its OOD lead comes mainly from AlpacaEval LC (+24.76; the best lattice point scores 10.03) and safety (+8.28). MAP (simplex) varies strongly across seeds, with SLIM’s per-seed lead ranging from +0.98 to +12.31 on Gemma ID and from −0.93 to +12.22 on Llama ID. GP-BO selects mixtures of two or three experts in all six runs, with largest coefficients of 0.50–0.64 (Figure 7).
| Method | #Evals | ID Instr. | ID Math | ID Coding | ID Multi. | ID Safety | ID AVG | OOD Instr. | OOD Math | OOD Coding | OOD Multi. | OOD Safety | OOD AVG |
| Gemma-2-9B | |||||||||||||
| SLIM (quadratic) | 36 | 61.0 | 71.6 | 59.0 | 56.5 | 84.1 | 66.43 | 38.8 | 41.6 | 59.1 | 54.6 | 58.6 | 50.56 |
| Best lattice point | 36 | 72.3 | 69.8 | 58.4 | 56.5 | 69.7 | 65.34 | 48.3 | 43.2 | 61.0 | 54.9 | 53.3 | 52.13 |
| GP-BO | 36 | 60.3 | 71.9 | 57.5 | 56.2 | 80.4 | 65.25 | 45.4 | 45.5 | 60.0 | 54.6 | 58.0 | 52.69 |
| Random design + ridge | 36 | 45.0 | 71.6 | 55.7 | 55.0 | 96.4 | 64.73 | 21.4 | 38.4 | 55.5 | 53.6 | 66.6 | 47.11 |
| Evol. Merge (simplex) | 36 | 39.1 | 67.5 | 56.8 | 55.4 | 85.6 | 60.88 | 17.9 | 43.5 | 59.1 | 54.1 | 57.5 | 46.41 |
| MAP (simplex) | 36 | 35.9 | 65.8 | 52.4 | 53.6 | 86.5 | 58.85 | 17.2 | 38.5 | 52.6 | 52.5 | 59.1 | 44.00 |
| Random best-of-36 | 36 | 42.1 | 70.9 | 56.9 | 55.8 | 70.6 | 59.25 | 24.1 | 45.1 | 45.3 | 54.1 | 52.6 | 44.23 |
| SLIM₍R₎ | 36 | 57.9 | 71.2 | 58.6 | 56.3 | 83.8 | 65.55 | 39.0 | 41.4 | 59.1 | 54.6 | 58.7 | 50.58 |
| Evol. Merge ([0, 1]⁸) | 36 | 46.0 | 67.0 | 48.5 | 48.4 | 89.9 | 59.99 | 23.7 | 41.3 | 28.3 | 46.9 | 54.0 | 38.84 |
| MAP (n = 45) | 45 | 44.7 | 63.2 | 48.5 | 50.4 | 78.5 | 57.04 | 24.3 | 38.6 | 38.2 | 48.8 | 54.7 | 40.91 |
| Evol. Merge (gen=20) | 200 | 62.9 | 70.3 | 54.7 | 54.2 | 94.4 | 67.29 | 38.0 | 42.7 | 54.3 | 52.6 | 56.7 | 48.85 |
| Llama-3.1-8B | |||||||||||||
| SLIM (quadratic) | 36 | 37.9 | 74.6 | 57.2 | 31.8 | 80.3 | 56.37 | 34.8 | 36.2 | 57.9 | 31.9 | 75.6 | 47.28 |
| Best lattice point | 36 | 36.4 | 69.3 | 53.8 | 49.7 | 77.8 | 57.40 | 10.0 | 33.2 | 56.1 | 34.5 | 67.3 | 43.23 |
| GP-BO | 36 | 50.2 | 72.5 | 56.9 | 49.5 | 62.9 | 58.41 | 26.6 | 33.1 | 55.7 | 50.3 | 48.4 | 42.81 |
| Random design + ridge | 36 | 33.8 | 69.1 | 54.7 | 50.7 | 71.8 | 56.00 | 10.4 | 29.8 | 54.5 | 50.1 | 62.6 | 41.48 |
| Evol. Merge (simplex) | 36 | 32.7 | 69.2 | 54.6 | 51.9 | 44.9 | 50.66 | 11.6 | 31.7 | 56.5 | 50.8 | 43.4 | 38.82 |
| MAP (simplex) | 36 | 30.8 | 64.6 | 53.7 | 50.8 | 44.9 | 48.97 | 6.3 | 27.8 | 54.1 | 49.8 | 45.0 | 36.61 |
| Random best-of-36 | 36 | 30.6 | 68.8 | 54.6 | 51.5 | 46.7 | 50.44 | 13.1 | 29.9 | 54.5 | 50.6 | 46.3 | 38.88 |
| SLIM₍R₎ | 36 | 36.4 | 74.3 | 57.4 | 35.5 | 81.2 | 56.98 | 32.9 | 34.2 | 57.3 | 35.7 | 75.0 | 47.04 |
| Evol. Merge ([0, 1]⁸) | 36 | 41.2 | 71.2 | 52.3 | 48.8 | 78.9 | 58.48 | 13.8 | 30.6 | 65.7 | 47.3 | 47.2 | 40.90 |
| MAP (n = 45) | 45 | 32.7 | 57.4 | 48.3 | 42.9 | 55.0 | 47.26 | 19.8 | 25.6 | 59.3 | 41.5 | 38.9 | 37.01 |
| Evol. Merge (gen=20) | 200 | 49.4 | 78.5 | 53.3 | 50.0 | 90.0 | 64.23 | 27.6 | 37.9 | 61.8 | 48.6 | 52.6 | 45.71 |
| Domain | Gemma-2-9B | Llama-3.1-8B | |||||||||||
| ID | OOD | ID | OOD | ||||||||||
| SLIM − Best lattice point | Instruction | [, ] | [, ] | [, ] | [, ] | ||||||||
| Math | [, ] | [, ] | [, ] | [, ] | |||||||||
| Coding | [, ] | [, ] | [, ] | [, ] | |||||||||
| Multilingual | [, ] | [, ] | [, ] | [, ] | |||||||||
| Safety | [, ] | [, ] | [, ] | [, ] | |||||||||
| AVG | [, ] | [, ] | [, ] | [, ] | |||||||||
| SLIM − GP-BO | Instruction | [, ] | [, ] | [, ] | [, ] | ||||||||
| Math | [, ] | [, ] | [, ] | [, ] | |||||||||
| Coding | [, ] | [, ] | [, ] | [, ] | |||||||||
| Multilingual | [, ] | [, ] | [, ] | [, ] | |||||||||
| Safety | [, ] | [, ] | [, ] | [, ] | |||||||||
| AVG | [, ] | [, ] | [, ] | [, ] | |||||||||
| SLIM − Random design + ridge | Instruction | [, ] | [, ] | [, ] | [, ] | ||||||||
| Math | [, ] | [, ] | [, ] | [, ] | |||||||||
| Coding | [, ] | [, ] | [, ] | [, ] | |||||||||
| Multilingual | [, ] | [, ] | [, ] | [, ] | |||||||||
| Safety | [, ] | [, ] | [, ] | [, ] | |||||||||
| AVG | [, ] | [, ] | [, ] | [, ] | |||||||||
| SLIM − Evol. Merge (simplex) | Instruction | [, ] | [, ] | [, ] | [, ] | ||||||||
| Math | [, ] | [, ] | [, ] | [, ] | |||||||||
| Coding | [, ] | [, ] | [, ] | [, ] | |||||||||
| Multilingual | [, ] | [, ] | [, ] | [, ] | |||||||||
| Safety | [, ] | [, ] | [, ] | [, ] | |||||||||
| AVG | [, ] | [, ] | [, ] | [, ] | |||||||||
| SLIM − MAP (simplex) | Instruction | [, ] | [, ] | [, ] | [, ] | ||||||||
| Math | [, ] | [, ] | [, ] | [, ] | |||||||||
| Coding | [, ] | [, ] | [, ] | [, ] | |||||||||
| Multilingual | [, ] | [, ] | [, ] | [, ] | |||||||||
| Safety | [, ] | [, ] | [, ] | [, ] | |||||||||
| AVG | [, ] | [, ] | [, ] | [, ] | |||||||||
| SLIM − Random best-of-36 | Instruction | [, ] | [, ] | [, ] | [, ] | ||||||||
| Math | [, ] | [, ] | [, ] | [, ] | |||||||||
| Coding | [, ] | [, ] | [, ] | [, ] | |||||||||
| Multilingual | [, ] | [, ] | [, ] | [, ] | |||||||||
| Safety | [, ] | [, ] | [, ] | [, ] | |||||||||
| AVG | [, ] | [, ] | [, ] | [, ] |
Table 19. Domain scores (0–100) of the final models of the 11 methods compared in Section 5.3 and Appendices E and F. In each architecture, the upper block lists the methods of Table 5; the lower block lists SLIM₍R₎ (Appendix E.3) and models from the [0, 1]⁸ runs of Table 9. OOD instruction following is the AlpacaEval 2.0 length-controlled win rate. Seeded methods show three-seed means. All models of an architecture are evaluated on the same GPU node.
Re-checks of selected points. Table 21 re-measures the points selected by evolutionary merging and GP-BO once on another GPU node. The re-checked ID AVG differs from the in-run value by 0.00 to 0.04 points on Gemma and by −0.23 to +0.37 points on Llama. This shows that the measurements are reproducible; because the same benchmark items are reused, it does not remove the optimism of selecting the best of 36 measured values.
| Method | Seed | Gemma-2-9B In run | Gemma-2-9B Re-check | Gemma-2-9B Diff. | Llama-3.1-8B In run | Llama-3.1-8B Re-check | Llama-3.1-8B Diff. |
| Evol. Merge (simplex) | 42 | 61.92 | 61.92 | +0.00 | 51.93 | 52.04 | +0.11 |
| Evol. Merge (simplex) | 43 | 60.52 | 60.52 | +0.00 | 49.83 | 50.11 | +0.28 |
| Evol. Merge (simplex) | 44 | 60.20 | 60.20 | +0.00 | 50.23 | 50.33 | +0.11 |
| GP-BO | 42 | 65.86 | 65.86 | +0.00 | 58.62 | 58.58 | −0.04 |
| GP-BO | 43 | 65.19 | 65.19 | +0.00 | 57.08 | 56.85 | −0.23 |
| GP-BO | 44 | 64.71 | 64.75 | +0.04 | 59.53 | 59.90 | +0.37 |
Table 21. ID AVG of the points selected by evolutionary merging and GP-BO on the simplex: the in-run measurement used for selection and one re-measurement on another GPU node (H200 NVL for Gemma, H100 PCIe for Llama).
Effect of the Coefficient Domain
Table 22 isolates the coefficient domain: for each seed, it compares Evol. Merge (simplex) with the candidate that had the highest ID AVG among the first 36 evaluations of the corresponding run on in Table 9, evaluated on the same GPU node. The effect of the domain changes direction with the model: on OOD, the solutions are 4.27–10.84 points lower on Gemma but 1.02–2.90 points higher on Llama; on ID, they are 7.32–8.37 points higher on Llama and between −2.81 and +0.53 on Gemma. Their coefficient sums are 2.84–4.10, whereas their largest normalized coefficients (0.20–0.26) are similar to those of the simplex solutions, so the differences reflect overall scale as well as proportions.
Stability of the Selected Coefficients
Given the 36 measurements, SLIM’s coefficients are deterministic, so their variability comes from the evaluations themselves. Item-level outputs are available only for the 36 lattice points evaluated on the GPU node of Appendix § 14.§ 5, so we refit SLIM on these values alone (SLIM) and use them in this analysis; the best lattice point is the same point as in Table 3 on both architectures. SLIM selects coefficients close to SLIM’s (Gemma: Instruction A, Instruction B, and Safety at 0.28, 0.45, and 0.27 instead of 0.29, 0.45, and 0.26; Llama: Instruction B and Safety at 0.68 and 0.32 instead of 0.70 and 0.30). Relative to SLIM evaluated on the same GPU node, it changes OOD AVG by +0.02 [−0.49, 0.55] (Gemma) and −0.24 [−1.07, 0.57] (Llama) and ID AVG by −0.88 [−1.40, −0.37] and +0.61 [−0.19, 1.41], so ID differences of about one point between nearby models should be read with care.
Following § 5.2, we resample the benchmark items of these 36 evaluations 1,000 times (the first 1,000 replicates of Appendix § 14.§ 5), recompute the 36 scores, and measure the distance of each replicate’s selection from , here the solution of SLIM or the best lattice point selected with all items. Table 23 shows the results. On Gemma, SLIM keeps the same three experts in every replicate (median distance 0.031), whereas the best lattice point switches between Instruction A+B (ID AVG 65.34) and Instruction B+Safety (65.19) in 40.9% of replicates, each switch moving the distance by 1.0; SLIM’s solution combines both pairs. On Llama, SLIM adds a small weight on Instruction A (median 0.07, at most 0.31) in 25.8% of replicates; its mean distance is comparable to that of the best lattice point (0.065 versus 0.078), and it exceeds 0.1 more often (17.5% versus 7.8%) but 0.3 less often (4.0% versus 7.8%). The resampling reflects only the finite benchmark items, not run-to-run or machine-to-machine variation, and it concerns the coefficients rather than performance.
Global Scale of SLIM’s Coefficients
We keep SLIM’s proportions and scale them as with , choosing by ID AVG measured on the same GPU node, which costs six ID evaluations beyond SLIM’s 36 (five if the evaluation of SLIM’s own solution, , is reused; Table 24). On Gemma, is selected (ID AVG 66.86 versus 66.43) and raises OOD AVG from 50.56 to 53.65 on the same GPU node; the choice rests on an ID difference of 0.43, and these values are point estimates without intervals. On Llama, is selected, and coding collapses to at most 0.4 for . Selecting proportions and scale jointly would require, for example, a lattice at each of scales (36 evaluations) or a single surrogate over both the mixture and its amount; we leave this to future work.
| Scale | Instr. | Math | Coding | Multi. | Safety | AVG |
| Gemma-2-9B, ID | ||||||
| 61.0 | 71.6 | 59.0 | 56.5 | 84.1 | 66.43 | |
| 64.7 | 65.0 | 57.0 | 55.8 | 91.9 | 66.86 | |
| 58.4 | 49.4 | 53.6 | 54.3 | 94.7 | 62.09 | |
| 49.5 | 37.1 | 53.6 | 52.6 | 97.2 | 58.02 | |
| 47.3 | 31.5 | 49.4 | 49.2 | 98.1 | 55.10 | |
| 41.4 | 19.1 | 39.0 | 42.7 | 97.8 | 48.01 | |
| Gemma-2-9B, OOD | ||||||
| (SLIM) | 38.8 | 41.6 | 59.1 | 54.6 | 58.6 | 50.56 |
| (selected) | 47.7 | 43.0 | 64.6 | 54.0 | 59.0 | 53.65 |
| Llama-3.1-8B, ID | ||||||
| 38.4 | 74.5 | 57.2 | 32.1 | 81.2 | 56.70 | |
| 39.4 | 79.2 | 55.4 | 31.8 | 76.6 | 56.46 | |
| 32.0 | 77.1 | 0.4 | 40.5 | 73.4 | 44.69 | |
| 29.2 | 50.4 | 0.4 | 35.9 | 79.4 | 39.06 | |
| 24.4 | 0.9 | 0.0 | 8.0 | 81.6 | 22.97 | |
| 14.2 | 0.0 | 0.0 | 4.3 | 76.6 | 19.01 |
Table 24. ID scores of (Gemma on an H200 NVL GPU node, Llama on an H100 PCIe GPU node), with the selected scale in bold, and, for Gemma, OOD scores at the selected scale compared with SLIM on the same GPU node; Llama selects .
Safety Metric and Over-Refusal
Both safety benchmarks contain only harmful prompts (Appendix § 14.§ 2); this appendix measures over-refusal and the sensitivity of the selection to the safety weight.
Over-Refusal
To measure over-refusal, we evaluated all 54 final models of the 11 methods in Table 25 on the 940 benign WildGuardTest prompts (489 vanilla and 451 adversarial) with the same generation settings and refusal classifier, obtaining the refusal rate ; running the harmful prompts through the same pipeline reproduced SLIM’s OOD safety scores (58.61 on Gemma and 75.57 on Llama). Table 25 reports , the balanced safety score , where is the harmful-prompt refusal rate, and the OOD AVG safety replaced by () or removed (), each ranked among the 11 methods. On Gemma, SLIM refuses 5.6% of benign prompts and ranks fourth under both AVG and . On Llama, SLIM refuses 16.3% of benign prompts (11.5% vanilla, 21.5% adversarial), the highest mean rate among the 11 methods, but its high (75.6) keeps high (79.6), and it moves from first to second, behind only evolutionary merging with 200 evaluations. Among the methods with 36 evaluations, SLIM’s rank is unchanged on both architectures, although other methods reorder. Removing safety () moves SLIM from first to third on Llama, behind GP-BO and evolutionary merging (gen=20), and from fourth to third on Gemma: on Llama, SLIM trades multilingual quality (31.9) for safety (75.6).
Sensitivity to the Safety Weight
Table 26 shows how the selected coefficients respond when the safety weight in the objective is reduced (predictions only; no new measurements). Gemma drops the Safety expert only at ; Llama adds Instruction A at and drops Safety at , and its best lattice point switches from Instruction B+Safety to Instruction A+B at (0.82 with the lattice of SLIMR, Appendix § 16.§ 3).
| Gemma-2-9B | Llama-3.1-8B | |||||||
| SLIM coefficients | Best | SLIM coefficients | Best | |||||
| IA | IB | S | lattice point | IA | IB | S | lattice point | |
| 1 | 0.29 | 0.45 | 0.26 | IA+IB | 0 | 0.70 | 0.30 | IB+S |
| 0.75 | 0.31 | 0.47 | 0.22 | IA+IB | 0.22 | 0.66 | 0.13 | IA+IB |
| 0.5 | 0.36 | 0.48 | 0.16 | IA+IB | 0.40 | 0.60 | 0 | IA+IB |
| 0.25 | 0.49 | 0.48 | 0.03 | IA+IB | 0.46 | 0.54 | 0 | IA+IB |
| 0 | 0.58 | 0.42 | 0 | IA+IB | 0.52 | 0.48 | 0 | IA+IB |
Table 26. Coefficients of SLIM and the best lattice point when the safety weight in the objective is reduced (lattice measurements of § 4; predictions only). Only Instruction A (IA), Instruction B (IB), and Safety (S) receive nonzero weight; 0 denotes weights below .
References
- [1]Takuya Akiba, Makoto Shing, Yujin Tang, Qi Sun, and David Ha. Evolutionary optimization of model merging recipes. Nature Machine Intelligence, 7(2):195–204, 2025.DOI
- [2]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021.arxiv.org/abs/2108.07732
- [3]Laurie Burchell, Jean Maillard, Antonios Anastasopoulos, Christian Federmann, Philipp Koehn, and Skyler Wang. Findings of the WMT 2024 shared task of the open language data initiative. In Proceedings of the Ninth Conference on Machine Translation, pp. 110–117, 2024.DOI
- [4]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.arxiv.org/abs/2107.03374
- [5]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
- [7]Yann Dubois, Balázs Galambosi, Percy Liang, and Tatsunori B Hashimoto. Length-controlled al-pacaeval: A simple way to debias automatic evaluators. arXiv preprint arXiv:2404.04475, 2024.arxiv.org/abs/2404.04475
- [8]Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhu-patiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118, 2024.
- [9]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
- [10]Seungju Han, Kavel Rao, Allyson Ettinger, Liwei Jiang, Bill Yuchen Lin, Nathan Lambert, Yejin Choi, and Nouha Dziri. Wildguard: Open one-stop moderation tools for safety risks, jailbreaks, and refusals of llms. Advances in neural information processing systems, 37:8093–8131, 2024.arxiv.org/abs/2406.18495
- [11]Yifei He, Siqi Zeng, Yuzheng Hu, Rui Yang, Tong Zhang, and Han Zhao. Mergebench: A benchmark for merging domain-specialized LLMs. In The Thirty-ninth Annual Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2025. URL https://openreview.net/forum?id=rw5OiUoyLu.
- [12]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
- [13]Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi. Editing models with task arithmetic. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=6t0Kwf8-jrj.arxiv.org/abs/2212.04089
- [14]J Kiefer. Optimum designs in regression problems, ii. The Annals of Mathematical Statistics, 32(1):298–325, 1961.
- [15]Bingdong Li, Zixiang Di, Yanting Yang, Hong Qian, Peng Yang, Hao Hao, Ke Tang, and Aimin Zhou. It’s morphing time: Unleashing the potential of multiple llms via multiobjective optimization. IEEE Transactions on Evolutionary Computation, 30(4):1699–1713, 2026. doi: 10.1109/TEVC.2025.3613937.DOI
- [17]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In International Conference on Learning Representations, volume 2024, pp. 39578–39601, 2024.arxiv.org/abs/2305.20050
- [18]Yicheng Mao and Hongru Du. Data mixing as mixture experiment: Response surface methodology and optimal design for large language model pretraining. arXiv preprint arXiv:2608.23922, 2026.arxiv.org/abs/2608.23922
- [19]Mantas Mazeika, Long Phan, Xuwang Yin, Andy Zou, Zifan Wang, Norman Mu, Elham Sakhaee, Nathaniel Li, Steven Basart, Bo Li, David Forsyth, and Dan Hendrycks. HarmBench: A standardized evaluation framework for automated red teaming and robust refusal. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 35181–35224. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/mazeika24a.html.arxiv.org/abs/2402.04249
- [20]Tommaso Mencattini, Adrian Robert Minut, Donato Crisostomi, Andrea Santilli, and Emanuele Rodolà. Merge3: Efficient evolutionary merging on consumer-grade gpus. In Proceedings of the 42nd International Conference on Machine Learning (ICML), 2025. URL https://openreview.net/pdf?id=qFXDv0X4yC.arxiv.org/abs/2502.10436
- [21]NLLB Team. Scaling neural machine translation to 200 languages. Nature, 630:841–846, 2024. doi: https://doi.org/10.1038/s41586-024-07335-x.
- [22]Henry Scheffé. Experiments with mixtures. Journal of the Royal Statistical Society: Series B (Methodological), 20(2):344–360, 1958.
- [23]Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. Advances in neural information processing systems, 25, 2012.arxiv.org/abs/1206.2944
- [24]Mingyang Song and Mao Zheng. Model merging in the era of large language models: Methods, applications, and future directions. arXiv preprint arXiv:2603.09938, 2026.arxiv.org/abs/2603.09938
- [25]Guinan Su and Jonas Geiping. Fine, i’ll merge it myself: A multi-fidelity framework for automated model merging. arXiv preprint arXiv:2502.04030, 2025.arxiv.org/abs/2502.04030
- [26]Yuanyi Wang, Yanggan Gu, Yiming Zhang, Qi Zhou, Zhaoyi Yan, Congkai Xie, Xinyao Wang, Jianbo Yuan, and Hongxia Yang. Model merging scaling laws in large language models. In Proceedings of the 43rd International Conference on Machine Learning, 2026. URL https://github.com/InfiXAI/Merging-Scaling-Law.arxiv.org/abs/2509.24244
- [27]Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S Morris, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, et al. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In International conference on machine learning, pp. 23965–23998. PMLR, 2022.arxiv.org/abs/2203.05482
- [28]Prateek Yadav, Derek Tam, Leshem Choshen, Colin A Raffel, and Mohit Bansal. Ties-merging: Resolving interference when merging models. Advances in neural information processing systems, 36:7093–7115, 2023.arxiv.org/abs/2306.01708
- [29]Enneng Yang, Zhenyi Wang, Li Shen, Shiwei Liu, Guibing Guo, Xingwei Wang, and Dacheng Tao. Adamerging: Adaptive model merging for multi-task learning. The Twelfth International Conference on Learning Representations, 2024.arxiv.org/abs/2310.02575
- [30]Enneng Yang, Li Shen, Guibing Guo, Xingwei Wang, Xiaochun Cao, Jie Zhang, and Dacheng Tao. Model merging in llms, mlms, and beyond: Methods, theories, applications, and opportunities. ACM Comput. Surv., 58(8):216–257, 2026.arxiv.org/abs/2408.07666
- [31]Le Yu, Bowen Yu, Haiyang Yu, Fei Huang, and Yongbin Li. Language models are super mario: Absorbing abilities from homologous models as a free lunch. In Forty-first International Conference on Machine Learning, 2024.arxiv.org/abs/2311.03099
- [32]Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023.arxiv.org/abs/2311.07911
- [33]Yuyan Zhou, Liang Song, Bingning Wang, and Weipeng Chen. Metagpt: Merging large language models using model exclusive task arithmetic. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 1711–1724, 2024.