Two neural networks with the same architecture but trained from different random starts cannot simply be averaged. Their neurons sit in arbitrary orders, so averaging mixes unrelated units and yields a network whose outputs ignore its input. The standard fix runs both models on a batch of "calibration" inputs and measures how strongly each neuron in one model correlates with each neuron in the other. It then reorders, or matches, the neurons layer by layer before averaging. Every existing matcher gives each layer the same fixed batch of calibration data. That data is not free. In federated learning it lives on clients and costs a communication round. In privacy-restricted settings only a handful of examples may be released. For large models, each pass costs real compute. This note proposes treating calibration samples the way variational quantum algorithms treat measurement shots: as a scarce budget that should go to the layers whose alignment is still ambiguous and should stop as soon as the alignment decision is settled.
The core transfer is specific. In quantum circuit optimization, Distribution-adaptive dynamic shot optimization found that the number of measurement shots needed for a given accuracy grows exponentially with the Shannon entropy of the circuit's output distribution. It sets the next step's shots to $k \cdot 2^{H}$. Neuron matching has a natural entropy of its own. The soft matching found by the Sinkhorn relaxation, a smoothed version of the one-to-one assignment, is a probability table over neuron pairs. When it is nearly a clean permutation, the layer is easy to align. When it is diffuse, many pairings are almost equally good. We hypothesize that the calibration samples needed to fix the correct permutation scale with this entropy in the same way. We further hypothesize that allocating samples by it, and stopping once the assignment is stable, recovers full-budget merge quality with a fraction of the data. The same budget logic also decides how many early layers to leave unmerged.
Core Claim
For merging independently initialized networks of identical topology, the per-layer entropy of the soft neuron-matching plan predicts how many calibration samples that layer needs. A sequential allocator that spends samples according to this entropy and stops per layer when the hard assignment stabilizes will dominate uniform allocation on the accuracy-versus-calibration-budget curve.
The same budget machinery, applied to the signal-collapse diagnostic of Vanishing Feature, chooses the depth at which merging becomes safe, so that depth no longer has to be fixed by hand. What is new is not a better matcher. It is a measurement policy for matchers, together with a falsifiable empirical law (samples grow with $2^{H}$) imported from quantum measurement scheduling.
Background and Positioning
Three strands of prior work set up the problem. Rame et al. frame the constraint: linear interpolation only works inside a shared pre-trained basin. Two lines of work then relax that constraint. Vanishing Feature explains why cross-basin averaging fails: the input-driven part of each activation decays layer by layer while a constant bias accumulates. It proposes Preserve-First Merging, which keeps early layers separate at roughly 20% parameter overhead. GAMF aligns neurons with a second-order graph-matching objective, relaxed through Sinkhorn and rounded with the Hungarian algorithm. It beats first-order transport matching (OTFusion) by a wide margin.
These two papers motivate and supply the method. Neither treats calibration data as a cost, and both fix the merge recipe uniformly across layers.
On the measurement side, the quantum papers supply the policy. SubsCoRe and Bayesian Parameter Shift Rules measure only until a surrogate's uncertainty falls below a threshold. DDS supplies the entropy-to-budget rule. We deliberately do not import their Gaussian-process surrogates. Those scale cubically with the number of evaluations, a limitation the quantum papers themselves note, and a permutation is a discrete object that a periodic kernel does not describe.
NEST shows that abrupt fidelity switches cause optimization "shocks." This constrains our design: sample counts should change smoothly between rounds rather than in tiers. DDS reports that tiered allocation loses heavily to feedback-driven allocation, which points the same way.
On the merging side, adaptive merging work is relevant but different. AdaMerging uses prediction entropy to learn merge coefficients, and Uncertainty-Based Gradient Matching uses Fisher uncertainty to weight parameters. Both assume a shared ancestor. Both use uncertainty to choose weights, not to choose how much data to collect.
Research Program
The method runs in rounds. In each round, every layer $\ell$ still "open" receives a batch of calibration inputs. The method updates that layer's running cross-model correlation matrix and solves the Sinkhorn relaxation to obtain a soft plan $P_\ell$. It records the plan's normalized entropy $H_\ell$, the mean row entropy of $P_\ell$ in bits. The next round's sample count for that layer is
$$n_\ell^{t+1} = \min\left(n_{\max},\; k \cdot 2^{H_\ell^t}\right),$$
where $k$ is a single global constant and $n_{\max}$ caps any one round. This is the DDS form transplanted.
A layer closes when its Hungarian rounding has been identical for two consecutive rounds and the correlation margin has a lower confidence bound above zero. That margin is the gap between each neuron's assigned partner and its runner-up. The confidence bound comes from the running variance of the correlation estimates, analogous to the confident-region threshold in SubsCoRe.
Because layers are matched sequentially, a change in layer $\ell$'s permutation reopens layer $\ell+1$. Within each layer's budget, matching runs with GAMF's second-order objective when compute allows and with first-order correlation matching otherwise. We report both.
The second component decides merge depth. After matching, we run the merged model and estimate, per layer, the ratio of input-driven activation variance to total activation energy. This is the $g(x)$-versus-$h$ decomposition from Vanishing Feature. Using the same sequential sampling, we keep early layers unmerged until this ratio's lower confidence bound exceeds a threshold calibrated on the parent models. This gives a data-driven version of Preserve-First Merging, and its parameter overhead becomes an outcome rather than a setting.
The analysis component tests the law itself. For each layer we compute, by brute force on held-out data, the smallest sample count at which the hard assignment matches the full-data assignment. We then regress that count against $H_\ell$ computed from a small pilot batch. If the relation is not monotone and roughly log-linear, the DDS analogy fails and the allocator reduces to the stability-stopping rule alone. We would report that outcome as a finding, not hide it.
As a secondary probe of the homogeneity constraint, we will run the same allocator on width-mismatched pairs, such as VGG11 at width ×1 against ×1.5. Sinkhorn plans are naturally rectangular there, and plan entropy remains defined. This tests whether entropy-guided budgeting carries over to the case GAMF explicitly cannot handle. We present it as exploratory.
Baselines
The naive reference is uniform allocation. Every layer gets the same number of calibration samples, swept from very small to the full training-set statistic that published matchers use. Matching and averaging are otherwise identical to ours. This traces the curve we must lie above at every total budget.
The strongest existing method is GAMF run at its default full calibration budget. For the VGG11 non-IID CIFAR-10 setting, the paper reports 79.40% accuracy after fine-tuning the fused model, against 62.08% for OTFusion. For the five-client CIFAR-100 federated setting it reports 49.80%. Those figures include post-fusion fine-tuning, so we will re-run GAMF from its released configuration in our pipeline, both before and after the same fine-tuning schedule. Beating it means matching its accuracy, within seed variance over five seeds, while using at most a third of its calibration samples. Alternatively, it means exceeding its accuracy at an equal small budget.
Preserve-First Merging from Vanishing Feature at its recommended fixed depth is the baseline for the depth decision. On CIFAR-10 with VGG16 the paper reports that it surpasses the parents at about 20% parameter overhead. We found no reported per-depth accuracy number on Lacuna for it. The comparison is accuracy at equal overhead, and overhead at equal accuracy.
Three ablations isolate the ingredients. The first is a bootstrap-stability allocator that ignores entropy: it resamples the current batch, re-solves the assignment, and adds samples while assignments disagree. The second is the entropy rule without the stopping test. The third is a tiered step schedule, as tested against DDS. All baselines share the same models, data pool, solver, and number of fine-tuning steps. Each allocator's single constant is tuned on one held-out model pair and then frozen.
Why not just…?
Why not just use more calibration data for every layer? When data and compute are cheap, this is exactly right, and our method should then tie it. The proposal only matters where samples are costly, which is why the federated CIFAR-100 setting counts every sample as client communication. Uniform allocation is plotted across the whole budget axis. If it reaches GAMF-level accuracy at budgets as small as ours, the proposal has no practical value, and the plot will show this directly.
Why not just bootstrap the assignment and stop when it is stable? This is the real threat, because it captures most of the "measure until confident" idea without any entropy law. We include it as an ablation with the same total budget. Our expected advantage has two parts. Entropy needs one Sinkhorn solve per round rather than dozens of bootstrap solves. It also predicts a layer's need before many samples have been spent, whereas bootstrap needs enough data to resample meaningfully. If bootstrap stopping matches ours at equal samples and equal solver time, we will report that the stopping rule, not the entropy transfer, is the contribution.
Why not just skip weight merging and route between the frozen models? Mixture-of-experts composition, as in MixtureKit, avoids alignment but stores every parent. Its Nile-Chat-3x4B-A6B stores 12B parameters and reaches 55.74 against 60.0 for a 12B dense model. Our target is a single checkpoint whose overhead is reported explicitly. A two-model output ensemble is still included as an upper reference, so readers can see how much of the gap to it the merge closes.
Why not just use a Gaussian-process surrogate as in the quantum work? Permutations are discrete, and GP inference scales cubically with evaluations, as SubsCoRe and Bayesian PSR themselves acknowledge. A cheap plug-in confidence bound on correlation margins is the appropriate analog here.
Decisive Checks
Experiments use independently trained VGG11, VGG16, and ResNet-20 pairs on CIFAR-10 and CIFAR-100, plus the five-client non-IID federated split, following the GAMF and Vanishing Feature setups. The main metric is the area under the accuracy-versus-total-calibration-samples curve. Secondary metrics are the samples needed to reach 98% of full-budget accuracy, the parameter overhead of preserved layers, and wall-clock solver time.
Three results would settle the proposal. First, the pilot-batch entropy must predict brute-force sample sufficiency with rank correlation clearly above what layer depth alone explains. If depth predicts equally well, a depth-based schedule would do. Second, at equal total budget, the entropy allocator must beat both uniform allocation and bootstrap stopping on the federated CIFAR-100 split across five seeds. Third, the adaptive merge depth must match Preserve-First accuracy at lower parameter overhead. If the first check fails, the entropy transfer from quantum shot scheduling is wrong for this problem. If only the second fails, the contribution narrows to adaptive depth selection.
References
- Distribution-adaptive dynamic shot optimization for variational quantum algorithms
- Vanishing Feature: Diagnosing Model Merging and Beyond
- Model Ratatouille: Recycling Diverse Models for Out-of-Distribution Generalization
- Deep Neural Network Fusion via Graph Matching with Applications to Model Ensemble and Federated Learning
- Adaptive Observation Cost Control for Variational Quantum Eigensolvers
- Bayesian Parameter Shift Rules in Variational Quantum Eigensolvers
- Three Birds with One Stone: Improving Performance, Convergence, and System Throughput with NEST
- AdaMerging: Adaptive Model Merging for Multi-Task Learning
- Model Merging by Uncertainty-Based Gradient Matching
- MixtureKit: A General Framework for Composing, Training, and Visualizing Mixture-of-Experts Models