Manuscript Offprint
arXiv:2608.26655When Privacy Hurts Mergeability: Geometry-Aware Model Merging under Differential Privacy
Jin Liu
Xidian University
Yinbin Miao
Xidian University
Junkang Liu
Tianjin University
Dawei Wei
Xidian University
Ning Xi
Xidian University
Ke Cheng
Xidian University
Jianfeng Ma
Xidian University
Abstract
Model merging promises to construct a single multi-task model from independently fine-tuned task models without accessing the original task data. This makes it attractive when task data cannot be centralized, but released task models may still leak private fine-tuning data. Differential privacy (DP) provides a principled mechanism for limiting such leakage, yet its effect on model merging remains poorly understood. In this paper, we study the geometry of differentially private model merging and identify two geometric obstacles that make private task models difficult to merge: local sharpness, which makes task losses sensitive to the parameter displacement induced by merging, and reference drift, which measures the displacement of private task models from the shared pretrained initialization and amplifies cross-task interference. Based on these observations, we propose DP-Merging, a geometry-aware framework that improves the mergeability of differentially private task models. DP-Merging uses a DP-compatible sharpness-aware objective to guide each private task model toward flatter loss regions, and a reference-based alignment regularizer to keep task models close to the shared pretrained initialization. We derive a merge-gap upper bound showing that reducing local curvature and reference drift tightens the bound on the loss increase induced by merging. Experiments on vision and language tasks across multiple privacy budgets show that DP-Merging consistently improves private merged-model performance while preserving the privacy guarantees of the underlying DP fine-tuning procedures.
1 Introduction
Fine-tuning pretrained models has become the standard way to adapt foundation models to diverse downstream tasks [22, 33]. As task-specific models accumulate, storing and deploying them independently becomes increasingly costly. Multi-task learning can integrate these capabilities into a model, but requires joint access to data from all tasks and expensive retraining [11, 1]. Model merging has recently emerged as a practical alternative [37]: it directly combines independently fine-tuned models in parameter space to obtain a unified model, without accessing the original task data. This makes model merging particularly attractive when task data are decentralized or cannot be shared.
Preprint.

(a) Non-private merging
(b) Naive DP merging
(c) DP-Merging (Ours)
Figure 1: Geometric illustration of model merging under DP. Task vectors are fine-tuned from and merged in parameter space. (a) Without DP, flat and compatible solutions merge effectively. (b) Naive DP can yield sharper solutions with weaker reference alignment, leading to high-loss merging. (c) DP-Merging improves flatness and reference alignment, yielding lower-loss merging under DP.
Despite its potential, data-free merging is not inherently privacy-preserving. Although raw data are not shared during merging, the released task-specific weights and task vectors are derived from private data, posing a risk of sensitive information leakage [44, 32, 41]. Differential privacy (DP) [10] provides a rigorous framework for limiting such leakage by bounding the influence of any single training example on the released models. A natural solution is therefore to fine-tune each task model under DP and then merge the resulting private models. However, as we show empirically, this straightforward solution can suffer from a degradation that goes beyond the utility loss of individual private models: DP can specifically damage the geometric compatibility required for parameter-space merging. This raises a central question: what makes differentially private models difficult to merge, and how can we improve their mergeability under privacy constraints?
We argue that the difficulty is not merely that DP lowers the accuracy of the models being merged. Rather, parameter-space merging relies on geometric compatibility among task-specific solutions, which can be disrupted by DP fine-tuning. Prior work suggests that merging often benefits when independently fine-tuned models remain geometrically compatible [2]. In particular, interpolation or averaging tends to incur smaller loss increase when the path between models stays in relatively flat, low-loss regions [28, 16]. In the private setting, these geometric conditions become more fragile. The clipping and noise used by DP may leave each task solution in a sharper local basin, making its loss more sensitive to the parameter displacement induced by merging. Meanwhile, independent private fine-tuning can move task models farther from the shared pretrained initialization, increasing their mutual mismatch and amplifying cross-task interference. We refer to these two obstacles as local sharpness and reference drift. These effects make private task models more sensitive to merge-induced displacement and less compatible in parameter space, leading to high-loss merged solutions, as illustrated in Figure 1.
Motivated by this geometric view, we propose DP-Merging, a simple geometry-aware framework for differentially private model merging. Rather than designing a new post-hoc merging operator, DP-Merging applies two minimal interventions during private fine-tuning to restore the geometric conditions required by merging. First, a DP-compatible sharpness-aware objective encourages each private task model to lie in a flatter local region, reducing its sensitivity to merge-induced displacement. Second, a reference-anchored alignment regularizer keeps task vectors close to the shared pretrained initialization, limiting reference drift and reducing cross-task interference. Since the final merging step only processes DP-released task models, it remains a post-processing operation and incurs no additional privacy loss. We provide a theoretical merge-gap analysis showing that reducing local curvature and reference drift improves mergeability, and empirically validate DP-Merging across vision and language tasks under multiple privacy budgets.
In summary, we make the following contributions:
• We identify a geometric failure mode of differentially private model merging, termed DP-induced mergeability degradation. We show that DP fine-tuning can make task-specific models harder to merge by increasing local sharpness and reference drift, which amplify parameter interference after merging.
• We propose DP-Merging, a simple geometry-aware private fine-tuning framework. DP-Merging combines a DP-compatible sharpness-aware objective with a reference-based alignment regularizer to produce private task models that are flatter and more geometrically aligned for parameter-space merging.
• We provide theoretical and empirical evidence. Our merge-gap bound shows that the loss increase after merging is controlled by local curvature and merge-induced parameter displacement, and experiments on vision and language tasks across multiple privacy budgets demonstrate consistent improvements over standard DP fine-tuning followed by merging.
Differentially private fine-tuning. DP fine-tuning of pretrained models has become increasingly practical, with most methods relying on per-example gradient clipping and Gaussian noise injection to improve the privacy–utility trade-off for a single released model [40, 27, 3, 21]. Other work also explores alternative private fine-tuning paradigms [3], such as forward-pass perturbation [9] or zeroth-order optimization [45]. However, these methods are designed mainly to preserve the utility of individual private models. They do not address whether multiple privately fine-tuned task models remain geometrically compatible for post-hoc merging, which is the focus of our work.
Geometry of mergeability and sharpness. Prior work indicates that the success of model merging can be influenced not only by the merging method but also by geometric properties of the models, such as alignment in parameter space, low-loss connectivity, and landscape structure. Averaging or interpolation is more reliable when fine-tuned models lie in compatible low-loss regions or admit low-loss connectivity [13, 7, 34], while direct merging can fail when parameters are misaligned, for example due to permutation symmetries [2, 16, 43]. Sharpness-aware optimization methods, such as Sharpness Aware Minimization (SAM [12]) seeks flatter solutions by optimizing losses under local parameter perturbations, and is closely related to interpolation stability and low-loss connectivity [20]. These studies clarify important geometric conditions for merging in non-private settings, but do not examine how privatization perturbs those conditions before composition.
3 Preliminaries

(a) EuroSAT
(b) SUN397
(c) SST-2
(d) QNLI
Figure 2: Interpolation loss landscapes from to . We evaluate test loss along . DP-Merging consistently reduces the sharp loss barriers induced by standard DP, yielding smoother paths across vision and language tasks.
3.1 Problem Setup
Private Task-specific Fine-tuning. Let denote a public pretrained foundation model. We consider downstream tasks, where each task is associated with a private dataset .
Starting from the same initialization , each task independently applies a randomized fine-tuning algorithm to obtain a task-specific model . For task , we define the empirical loss as , which serves as a proxy for the task risk.
Differential privacy. Each task-specific fine-tuning algorithm is -differentially private with respect to its local dataset . Specifically, for each task , for any neighboring datasets and differing in one example, and any measurable output set ,
Since each private example contributes to only one task, releasing preserves -DP by parallel composition. Subsequent merging is a post-processing step over the released models and public information, and thus incurs no additional privacy loss.
Post-hoc Model Merging. Given the released task-specific models , a post-hoc merging rule constructs a unified model . Equivalently, with task vectors , we write , is the merging rule in task-vector space. Our goal is a data-free, privacy-preserving merged model with low average task loss .
3.2 Geometric Challenges of Private Mergeability
We use the merge gap as a diagnostic measure of private mergeability. For task , the task-wise merge gap is defined as . A smaller indicates better mergeability, while is used solely as an evaluation diagnostic and is not available to the post-hoc merging rule. Consider a second-order expansion of around the task-specific model :
where and collects higher-order terms. This expansion suggests that the merge gap increases with both the local curvature around and the displacement from to :
To visualize the loss barrier induced by merging, we evaluate the loss along the interpolation path . Figure 2 shows that Naive DP produces sharper and higher loss barriers, whereas DP-Merging yields smoother interpolation paths.
Challenge 1: local sharpness. DP fine-tuning perturbs the optimization trajectory through gradient clipping and Gaussian noise. Under tight privacy budgets, the released task model may become more sensitive to parameter perturbations. This is harmful for merging because the merged model induces a displacement away from the task-specific solution. We measure this effect using a perturbation-based sharpness proxy: . Figure 3a shows that, averaged over the eight vision tasks, Naive DP exhibits larger local sharpness around task-specific models under tighter privacy budgets, while DP-Merging consistently reduces this sensitivity.
Challenge 2: reference drift. The displacement term in Eq. (3) is affected by how far private task models move away from the shared pretrained initialization. Consider weight averaging, where and . Then . Thus, merging displacement grows when task updates are large or poorly aligned. Indeed, , showing that large drift from can enlarge merge-induced displacement. We quantify reference

(a) Average Sharpness
(b) Reference Drift
Figure 3: Empirical validation on the eight vision tasks using CLIP ViT-B/32.
drift as Drift = . As shown in Figure 3b, Naive DP exhibits larger reference drift under stronger privacy constraints, whereas DP-Merging limits this drift.
4 DP-Merging
The analysis in Sec. 3.2 identifies two obstacles to private mergeability: (1) local sharpness of private task-specific solutions, and (2) reference drift from the shared pretrained initialization. Based on this insight, we propose DP-Merging, a geometry-aware framework for differentially private model merging. The central idea is to train private task models that are inherently robust to the parameter perturbations induced by merging. DP-Merging consists of two complementary components: (1) DP-compatible sharpness-aware fine-tuning, which constructs sharpness-aware updates using clipped noisy gradients, and (2) reference-anchored alignment, which limits the displacement between task models through reference anchoring to the pretrained initialization . Intuitively, flatness controls how harmful a displacement is, while anchoring controls how large the displacement becomes.
4.1 DP-Compatible Sharpness-Aware Fine-Tuning
We first address the curvature term in Eq. (3). When a task model lies in a sharp local region, even a moderate parameter displacement can produce a large increase in task loss after merging. To mitigate this effect, DP-Merging follows a sharpness-aware principle [12]: instead of optimizing the loss only at the current model, it optimizes the loss in a nearby adversarial neighborhood. As a result, the learned solution becomes locally stable against merge-induced perturbations.
We use flatness not merely to improve the standalone task model, but to make the released model robust to the parameter shift it will undergo during merging. For a model w and minibatch B, define the clipped Gaussian gradient estimator
where is the clipping threshold and is the noise multiplier. At iteration for task , we first compute the private gradient and use it to construct a local ascent perturbation
where controls the neighborhood size. We then evaluate a private gradient at the perturbed point:
The first gradient identifies a nearby high-loss direction, while the second gradient updates the model against the loss at that perturbed location. Consequently, the optimization no longer favors solutions that are only locally optimal at a single point, but instead prefers solutions whose loss remains stable within a neighborhood. Both gradient evaluations are privatized using clipped Gaussian mechanisms and are accounted for in the privacy analysis.
4.2 Reference-Anchored Alignment
Flatness reduces local sensitivity, but it does not ensure that independently trained task models stay close to one another. We therefore add a simple anchor to the shared initialization. At iteration k, DP-Merging updates task t by
where controls the alignment strength. The second term is the gradient of . Since it depends only on model parameters and the public initialization, it incurs no additional privacy cost.
This anchor is useful because it controls the displacement term in Eq. (3). For uniform averaging, let . Then
(8)
Algorithm 1 DP-Merging
1: Input: pretrained model ; private datasets ; iterations ; learning rate ; perturbation radius ; alignment strength ; clipping threshold ; noise multiplier ; sampling rate
2: Output: merged model
3: for each task do
4: Initialize task model
5: for do
6: Sample minibatch with sampling rate
7: Compute private gradient using Eq. (4)
8: Construct perturbation
9: Compute perturbed private gradient
10: Update with reference anchoring:
11: end for
12: Obtain private task model
13: end for
14:
15: return
Thus, keeping each task model close to reduces an upper bound on the distance between the merged model and each task-specific solution. This alignment is induced only through the common reference point and does not require communication between tasks during fine-tuning.
After private fine-tuning, we obtain released task models . For clarity, we use weight averaging as the default merging rule: . The same released models can also be used with other post-hoc merging rules. Since the final merging step only processes DP outputs, it is post-processing and preserves the privacy guarantees of task-specific fine-tuning.
5 Theoretical Analysis
5.1 Privacy guarantee of DP-Merging
We analyze the privacy guarantee of DP-Merging in Appendix C.1. Each iteration uses two privatized clipped-gradient evaluations, while the sharpness perturbation, reference anchor, and final merging step are post-processing operations. Therefore, they incur no additional privacy loss beyond the underlying private gradient evaluations.
Theorem 5.1 (Privacy guarantee of DP-Merging). Assume that each task dataset is disjoint, and each private example belongs to at most one task. For task , suppose Algorithm 1 runs for iterations with Poisson sampling rate , clipping threshold , and Gaussian noise multiplier . Let denote the order- RDP [26] cost of one Poisson-subsampled paired Gaussian mechanism that releases the two noisy clipped-gradient quantities used in one DP-Merging iteration. Then, for any Rényi order , the released task model satisfies -RDP. Consequently, for any , satisfies -DP with
Since the task datasets are disjoint, releasing all private task models satisfies -DP. The merged model incurs no additional privacy loss by post-processing.
5.2 Mergeability Analysis
We provide a theoretical analysis explaining why DP-Merging improves the mergeability of differentially private task models. Let be the private task model returned by Algorithm 1, and define the task vector . For weight averaging, , , . We measure mergeability by the average merge gap
Theorem 5.2 (Mergeability bound for DP-Merging). Assume that, for each task , is three-times differentiable along the segment . Let , and assume that the third-order Taylor remainder is bounded by . If the returned private task model satisfies , then
Theorem 5.2 shows that the merge gap decreases when either the local curvature is small or the merging displacement is small. This directly matches the two design choices of DP-Merging. The DP-compatible sharpness-aware update reduces sensitivity to local perturbations, thereby targeting the curvature term. The reference-anchored regularizer controls the task-vector norm , which in turn controls .
To make the role of the anchor explicit, define the robust loss , and the regularized robust objective approximately optimized by DP-Merging: . Suppose the returned model satisfies , . Then the anchor gives . Consequently, if , , then . Substituting this into Theorem 5.2 yields
In the uniform case where , , , , and for all , we obtain the simplified bound
This bound explains DP-Merging's improved private mergeability: the sharpness-aware component reduces , and the anchor increases geometric compatibility by reducing the displacement scale .
Table 1: Multi-task accuracy (%) on the 8-task vision benchmark with ViT-B/32, .
| Method | SUN397 | Cars | RESISC45 | EuroSAT | SVHN | GTSRB | MNIST | DTD | Avg Acc |
|---|---|---|---|---|---|---|---|---|---|
| DP + Individual | 59.2 | 67.7 | 86.1 | 89.7 | 87.5 | 88.6 | 89.3 | 69.4 | 79.7 |
| DP + Weight Averaging | 45.3 | 43.4 | 51.9 | 52.7 | 43.2 | 33.8 | 67.1 | 30.9 | 46.0 |
| DP-Merging + Weight Averaging | 48.2 | 49.5 | 56.3 | 57.5 | 43.2 | 37.4 | 69.0 | 36.3 | |
| DP + RegMean | 45.8 | 44.9 | 58.3 | 58.6 | 59.1 | 48.3 | 73.7 | 32.0 | 52.6 |
| DP-Merging + RegMean | 49.4 | 48.6 | 63.1 | 62.4 | 63.6 | 53.1 | 76.8 | 38.2 | |
| DP + Task Arithmetic | 45.2 | 44.9 | 56.7 | 58.9 | 60.2 | 59.7 | 77.3 | 30.4 | 54.2 |
| DP-Merging + Task Arithmetic | 48.9 | 49.2 | 59.6 | 62.4 | 67.1 | 62.5 | 79.6 | 35.1 | |
| DP + TIES-Merging | 49.8 | 48.6 | 50.7 | 59.7 | 66.5 | 72.1 | 78.3 | 34.2 | 57.5 |
| DP-Merging + TIES-Merging | 52.9 | 53.7 | 56.0 | 64.1 | 72.1 | 78.0 | 81.4 | 38.6 | |
| DP + PCB Merging | 45.1 | 43.4 | 50.5 | 57.2 | 61.7 | 70.9 | 77.0 | 30.3 | 54.5 |
| DP-Merging + PCB Merging | 49.5 | 48.2 | 56.4 | 63.4 | 65.0 | 76.3 | 79.1 | 35.4 | |
| DP + WUDI-Merging | 47.6 | 45.5 | 58.5 | 59.3 | 66.4 | 57.1 | 78.2 | 39.1 | 56.5 |
| DP-Merging + WUDI-Merging | 51.5 | 48.6 | 63.1 | 63.9 | 70.4 | 61.2 | 82.7 | 44.8 |
6 Experiments
6.1 Experimental Settings
Datasets and Models. We evaluate our method on vision and language tasks. For vision tasks, following [38, 5], we study multi-task model merging across eight image classification datasets, namely SUN397 [35], Cars [18], RESISC45 [4], EuroSAT [14], SVHN [42], GTSRB [30], MNIST [19], and DTD [6], and adopt CLIP-based ViT backbones [29], including ViT-B/32, ViT-B/16, and ViT-L/14. For language tasks, we use the GLUE benchmark [31] and evaluate with RoBERTa-Base and RoBERTa-Large [23].
Table 2: Multi-task accuracy (%) on the 8-task vision benchmark with ViT-L/14, .
| Method | SUN397 | Cars | RESISC45 | EuroSAT | SVHN | GTSRB | MNIST | DTD | Avg Acc |
|---|---|---|---|---|---|---|---|---|---|
| DP + Individual | 64.8 | 74.2 | 93.1 | 92.9 | 92.2 | 95.4 | 96.7 | 75.6 | 85.5 |
| DP + Weight Averaging | 50.3 | 49.4 | 57.4 | 57.7 | 50.2 | 39.8 | 72.5 | 35.1 | 51.6 |
| DP-Merging + Weight Averaging | 54.4 | 54.4 | 62.1 | 62.2 | 55.4 | 45.4 | 80.1 | 44.2 | |
| DP + RegMean | 50.3 | 49.8 | 61.0 | 64.6 | 63.2 | 53.4 | 79.7 | 41.6 | 57.9 |
| DP-Merging + RegMean | 53.3 | 54.8 | 65.9 | 70.6 | 69.2 | 55.0 | 82.7 | 49.6 | |
| DP + Task Arithmetic | 50.2 | 50.9 | 61.7 | 73.5 | 75.4 | 54.7 | 82.3 | 45.4 | 61.8 |
| DP-Merging + Task Arithmetic | 54.1 | 55.5 | 64.4 | 78.9 | 84.1 | 62.5 | 84.1 | 51.3 | |
| DP + TIES-Merging | 44.8 | 45.3 | 46.8 | 64.4 | 71.2 | 58.7 | 83.9 | 50.2 | 58.1 |
| DP-Merging + TIES-Merging | 50.8 | 52.6 | 51.7 | 69.7 | 75.3 | 61.1 | 87.8 | 52.8 | |
| DP + PCB Merging | 50.7 | 49.6 | 51.5 | 62.2 | 67.7 | 55.9 | 82.6 | 42.1 | 57.8 |
| DP-Merging + PCB Merging | 54.5 | 54.2 | 56.2 | 67.9 | 71.2 | 61.3 | 87.2 | 47.4 | |
| DP + WUDI-Merging | 51.7 | 51.1 | 63.4 | 64.3 | 71.8 | 63.1 | 83.0 | 44.2 | 61.6 |
| DP-Merging + WUDI-Merging | 54.9 | 54.7 | 66.8 | 68.5 | 76.6 | 68.3 | 85.1 | 50.3 |
Baselines. We compare with representative merging methods under the same DP setting, including Weight Averaging [34], RegMean [17], Task Arithmetic [15], TIES-Merging [36], PCB Merging [8], and WUDI-Merging [5]. All baselines independently train task-specific models with the same DP optimizer and privacy budget, and then merge the released DP models without accessing private data. The merging step is post-processing and therefore incurs no additional privacy loss. We apply the same operators to the task models produced by DP-Merging to evaluate whether our merge-aware fine-tuning improves mergeability across merging rules.
Implementation Details. We implement sample-level DP fine-tuning with Opacus [39] and use AdamW [24] as the default optimizer. Unless otherwise specified, each task model is trained with clipping norm , batch size 16, learning rate , weight decay , and 10 training epochs/steps. Privacy loss is computed using the Opacus privacy accountant and reported as -DP, where and . For DP-Merging, the perturbation radius and the alignment coefficient . Additional implementation details are provided in Appendix B.3.
6.2 Main Results
Evaluation on Visual Tasks. We evaluate DP-Merging on the 8-task vision benchmark under . Table 1 and Table 2 report the main results with ViT-B/32 and ViT-L/14, and additional results with ViT-B/16 are provided in Appendix B.4. Across both backbones, standard merging methods exhibit a clear drop from the DP individual reference, suggesting that DP fine-tuning hurts task-vector mergeability. DP-Merging consistently improves the merged accuracy under all merging operators. For instance, on ViT-B/32, WUDI-Merging improves from to when applied to DP-Merging task models. The same trend holds for ViT-L/14 and ViT-B/16.
Evaluation on Language Tasks. Table 3 summarizes the multi-task performance of RoBERTa-Large models under . Compared with standard DP baselines, DP-Merging consistently achieves higher average accuracy across different merging operators. For example, the average score for DP-Merging ranges from 73.9 to 77.0, depending on the merging method used. The average score for naive DP ranges from 71.6 to 74.7. These results indicate that merge-aware DP fine-tuning consistently maintains strong performance across multiple language understanding tasks.
Table 3: Multi-task performance of RoBERTa-Large models on GLUE benchmark, .
| Method | CoLA | MNLI | MRPC | QNLI | QQP | RTE | SST2 | STSB | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| DP + Individual | 60.5 | 79.1 | 81.0 | 89.2 | 82.3 | 77.1 | 93.8 | 82.1 | 80.6 |
| DP + Weight Averaging | 56.1 | 73.8 | 67.9 | 79.5 | 78.6 | 69.3 | 91.2 | 67.6 | 72.6 |
| DP-Merging + Weight Averaging | 58.2 | 76.6 | 69.2 | 79.3 | 81.6 | 69.9 | 91.8 | 68.2 | |
| DP + RegMean | 55.6 | 73.8 | 65.7 | 79.2 | 78.6 | 67.9 | 91.0 | 62.5 | 71.6 |
| DP-Merging + RegMean | 58.8 | 78.7 | 68.6 | 79.5 | 80.9 | 69.3 | 91.9 | 64.6 | |
| DP + Task Arithmetic | 56.1 | 75.5 | 67.2 | 78.9 | 81.5 | 69.9 | 91.2 | 61.7 | 71.8 |
| DP-Merging + Task Arithmetic | 59.6 | 77.8 | 68.9 | 81.5 | 82.4 | 70.9 | 91.9 | 63.5 | |
| DP + TIES-Merging | 60.5 | 79.3 | 70.8 | 80.6 | 81.3 | 70.6 | 91.1 | 64.3 | 74.3 |
| DP-Merging + TIES-Merging | 61.0 | 81.2 | 73.3 | 82.5 | 82.6 | 71.2 | 92.6 | 65.9 | |
| DP + PCB Merging | 56.2 | 74.2 | 76.6 | 77.5 | 81.8 | 70.6 | 91.1 | 60.2 | 73.8 |
| DP-Merging + PCB Merging | 58.9 | 75.7 | 79.4 | 79.8 | 83.1 | 72.4 | 92.6 | 61.8 | |
| DP + WUDI-Merging | 57.2 | 75.8 | 78.9 | 79.6 | 82.6 | 73.5 | 91.3 | 59.5 | 74.7 |
| DP-Merging + WUDI-Merging | 59.8 | 77.9 | 82.1 | 83.3 | 82.7 | 75.1 | 92.8 | 61.3 |
Table 4: Performance under different privacy budgets on visual and language tasks using TIES-Merging. Smaller indicates stronger privacy protection.
| Privacy Budget | Visual Tasks (ViT-B/32) | Language Tasks (RoBERTa-Large) | ||||
|---|---|---|---|---|---|---|
| DP(AdamW) | DP-Merging | Gain | DP(AdamW) | DP-Merging | Gain | |
| 1.0 | 46.1 | 52.2 | +6.1 | 64.6 | 68.4 | +3.8 |
| 2.0 | 52.8 | 58.6 | +5.8 | 68.3 | 70.6 | +2.3 |
| 4.0 | 57.5 | 62.1 | +4.6 | 74.3 | 76.5 | +2.2 |
| 8.0 | 62.0 | 66.7 | +4.7 | 76.3 | 77.8 | +1.5 |
6.3 Analysis under Different Privacy Budgets
To evaluate DP-Merging under varying privacy budgets , we keep the merging protocol unchanged. A smaller corresponds to stronger privacy protection and usually introduces larger optimization perturbations through clipping and noise. As shown in Table 4, DP-Merging consistently outperforms naive DP merging across different privacy budgets. The improvement is more pronounced under stronger privacy constraints, suggesting that the proposed flatness and alignment components effectively mitigate the geometry distortion caused by differential privacy.
6.4 Ablation Study
We conduct ablation studies to understand the contribution of each component in DP-Merging and analyze its sensitivity to key hyperparameters. All experiments use and default settings.
Effect of each component. DP-Merging contains two key components: sharpness-aware fine-tuning and reference-anchored alignment. To evaluate their individual contributions, we compare the full method with two variants: (1) removing the alignment component, and (2) removing the sharpness-aware fine-tuning. As shown in Table 5, both components improve performance over naive DP. The sharpness-aware fine-tuning mainly improves local robustness by encouraging flatter task-specific solutions, while the alignment component enhances cross-task compatibility by reducing discrepancies among task vectors. Combining both components yields the best performance, demonstrating that sharpness and alignment are complementary.
Table 5: Ablation study of different merging algorithms on the 8-task vision benchmark with ViT-B/32. “w/o Alignment” represents without the reference-anchored alignment component, and “w/o Flatness” represents without sharpness-aware fine-tuning.
| Variant | Weight Averaging | Task Arithmetic | TIES-Merging | PCB-Merging |
|---|---|---|---|---|
| DP-AdamW | 46.0 | 54.2 | 57.5 | 54.5 |
| DP-Merging | 49.7 | 58.1 | 62.1 | 59.2 |
| DP-Merging w/o Alignment | 48.1 | 55.6 | 60.7 | 57.4 |
| DP-Merging w/o Flatness | 47.5 | 56.2 | 59.8 | 57.9 |
Sensitivity to the flatness radius . We study the influence of the flatness radius on merged accuracy. When varying , the alignment strength is fixed to its default value. As shown in Table 6, moderate values of consistently improve merged accuracy, while overly large values may hurt task-specific adaptation or over-constrain different tasks.
Sensitivity to the alignment strength . We study the effect of alignment strength on merged accuracy (flatness radius fixed). As shown in Table 7, moderate values of consistently improve merged accuracy, while excessively large values may limit flexibility across tasks.
Table 6: Sensitivity to the flatness radius on ViT-B/32 using TIES-Merging.
| ρ | 0 | 0.01 | 0.03 | 0.05 | 0.10 |
|---|---|---|---|---|---|
| Avg Acc | 59.8 | 60.4 | 61.6 | 62.1 | 61.8 |
Table 7: Sensitivity to the alignment strength on ViT-B/32 using TIES-Merging.
| λ | 0 | 0.01 | 0.05 | 0.10 | 0.50 |
|---|---|---|---|---|---|
| Avg Acc | 60.8 | 61.2 | 62.3 | 62.0 | 61.6 |
Robustness to merging operators. Since our method improves the private fine-tuning stage rather than designing a new merging rule, we evaluate whether it works with different data-free merging operators. As shown in Table 8, DP-Merging consistently improves the final merged model across different representative merging operators, demonstrating that our method enhances the intrinsic mergeability of task-specific models.
Table 8: Robustness to different merging operators on the 8-task vision benchmark with ViT-B/32.
| Training | Weight Averaging | Task Arithmetic | TIES-Merging | PCB-Merging | WUDI-Merging |
|---|---|---|---|---|---|
| DP(AdamW) | 46.0 | 54.2 | 57.5 | 54.5 | 56.5 |
| DP-Merging (Ours) | 49.7 | 58.1 | 62.1 | 59.2 | 60.8 |
7 Conclusion
We studied differentially private model merging, where independently fine-tuned private models are combined without sharing task data. The challenge arises not only from the utility loss of DP fine-tuned models, but also from their geometric incompatibility, caused by local curvature and displacement from the pretrained anchor. To address this, we propose DP-Merging, which combines a flatness objective with a pretrained-anchor regularizer to improve robustness and control task-specific drift. Experiments on vision and language benchmarks show that DP-Merging consistently improves merged-model performance under different privacy budgets and merging settings. We hope this work contributes to a better understanding of, and advances in, model merging under privacy constraints.
References
[1] Ahmed Agiza, Marina Neseem, and Sherief Reda. Mtlora: Low-rank adaptation approach for efficient multi-task learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 16196–16205, 2024.
[2] Samuel Ainsworth, Jonathan Hayase, and Siddhartha Srinivasa. Git re-basin: Merging models modulo permutation symmetries. In The Eleventh International Conference on Learning Representations, 2023.
[3] Zhiqi Bu, Yu-Xiang Wang, Sheng Zha, and George Karypis. Differentially private bias-term fine-tuning of foundation models. In International Conference on Machine Learning, pages 4730–4751. PMLR, 2024.
[4] Gong Cheng, Junwei Han, and Xiaoqiang Lu. Remote sensing image scene classification: Benchmark and state of the art. Proceedings of the IEEE, 105(10):1865–1883, 2017.
[5] Runxi Cheng, Feng Xiong, Yongxian Wei, Wanyun Zhu, and Chun Yuan. Whoever started the interference should end it: Guiding data-free model merging via task vectors. In Forty-second International Conference on Machine Learning, 2025.
[6] Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In CVPR, pages 3606–3613, 2014.
[7] Felix Draxler, Kambis Veschgini, Manfred Salmhofer, and Fred Hamprecht. Essentially no barriers in neural network energy landscape. In International conference on machine learning, pages 1309–1318. PMLR, 2018.
[8] Guodong DU, Junlin Lee, Jing Li, Runhua Jiang, Yifei Guo, Shuyang Yu, Hanting Liu, Sim Kuan Goh, Ho-Kin Tang, Daojing He, and Min Zhang. Parameter competition balancing for model merging. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
[9] Minxin Du, Xiang Yue, Sherman SM Chow, Tianhao Wang, Chenyu Huang, and Huan Sun. Dp-forward: Fine-tuning and inference on language models with differential privacy in forward pass. In Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, pages 2665–2679, 2023.
[10] Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pages 265–284. Springer, 2006.
[11] Chris Fifty, Ehsan Amid, Zhe Zhao, Tianhe Yu, Rohan Anil, and Chelsea Finn. Efficiently identifying task groupings for multi-task learning. Advances in Neural Information Processing Systems, 34:27503–27516, 2021.
[12] Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. Sharpness-aware minimization for efficiently improving generalization. In International Conference on Learning Representations, 2021.
[13] Timur Garipov, Pavel Izmailov, Dmitrii Podoprikhin, Dmitry P Vetrov, and Andrew G Wilson. Loss surfaces, mode connectivity, and fast ensembling of dnns. Advances in neural information processing systems, 31, 2018.
[14] Patrick Helber, Benjamin Bischke, Andreas Dengel, and Damian Borth. Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 12(7):2217–2226, 2019.
[15] 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.
[16] Akira Ito, Masanori Yamada, and Atsutoshi Kumagai. Linear mode connectivity between multiple models modulo permutation symmetries. In Forty-second International Conference on Machine Learning, 2025.
[17] Xisen Jin, Xiang Ren, Daniel Preotiuc-Pietro, and Pengxiang Cheng. Dataless knowledge fusion by merging weights of language models. In The Eleventh International Conference on Learning Representations, 2023.
[18] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In ICCV workshops, pages 554–561, 2013.
[19] Yann LeCun. The mnist database of handwritten digits. http://yann.lecun.com/exdb/mnist/, 1998.
[20] Yeoreum Lee, Jinwook Jung, and Sungyong Baik. Mitigating parameter interference in model merging via sharpness-aware fine-tuning. In The Thirteenth International Conference on Learning Representations, 2025.
[21] Xianzhi Li, Ran Zmigrod, Zhiqiang Ma, Xiaomo Liu, and Xiaodan Zhu. Fine-tuning language models with differential privacy through adaptive noise allocation. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 8368–8375, 2024.
[22] Jin Liu, Yinbin Miao, Ning Xi, and Junkang Liu. Rethinking IoRA for privacy-preserving federated learning in large models. In The Fourteenth International Conference on Learning Representations, 2026.
[23] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
[24] Ilya Loshchilov, Frank Hutter, et al. Fixing weight decay regularization in adam. arXiv preprint arXiv:1711.05101, 5(5):5, 2017.
[25] Michael S Matena and Colin A Raffel. Merging models with fisher-weighted averaging. Advances in Neural Information Processing Systems, 35:17703–17716, 2022.
[26] Ilya Mironov. Rényi differential privacy. In Proc. IEEE computer security foundations symposium (CSF), pages 263–275, 2017.
[27] Jinseong Park, Hoki Kim, Yujin Choi, and Jaewook Lee. Differentially private sharpness-aware training. In International Conference on Machine Learning, pages 27204–27224. PMLR, 2023.
[28] Fidel A Guerrero Peña, Heitor Rapela Medeiros, Thomas Dubail, Masih Aminbeidokhti, Eric Granger, and Marco Pedersoli. Re-basin via implicit sinkhorn differentiation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 20237–20246, 2023.
[29] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021.
[30] Johannes Stallkamp, Marc Schlipsing, Jan Salmen, and Christian Igel. The german traffic sign recognition benchmark: a multi-class classification competition. In IJCNN, pages 1453–1460. IEEE, 2011.
[31] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP workshop BlackboxNLP: Analyzing and interpreting neural networks for NLP, pages 353–355, 2018.
[32] Lijin Wang, Jingjing Wang, Tianshuo Cong, Xinlei He, Zhan Qin, and Xinyi Huang. From purity to peril: Backdooring merged models from "harmless" benign components. In 34th USENIX Security Symposium (USENIX Security 25), pages 6339–6358, 2025.
[33] Zhengbo Wang, Jian Liang, Ran He, Zilei Wang, and Tieniu Tan. Taming momentum: Rethinking optimizer states through low-rank approximation. In The Fourteenth International Conference on Learning Representations, 2026.
[34] Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S Morcos, 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, pages 23965–23998. PMLR, 2022.
[35] Jianxiong Xiao, Krista A Ehinger, James Hays, Antonio Torralba, and Aude Oliva. Sun database: Exploring a large collection of scene categories. IJCV, 119:3–22, 2016.
[36] Prateek Yadav, Derek Tam, Leshem Choshen, Colin Raffel, and Mohit Bansal. TIES-merging: Resolving interference when merging models. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
[37] Enneng Yang, Li Shen, Guibing Guo, Xingwei Wang, Xiaochun Cao, Jie Zhang, and Dacheng Tao. Model merging in llms, mllms, and beyond: Methods, theories, applications, and opportunities. ACM Computing Surveys, 58(8):1–41, 2026.
[38] Enneng Yang, Zhenyi Wang, Li Shen, Shiwei Liu, Guibing Guo, Xingwei Wang, and Dacheng Tao. Adamerging: Adaptive model merging for multi-task learning. In The Twelfth International Conference on Learning Representations, 2024.
[39] Ashkan Yousefpour, Igor Shilov, Alexandre Sablayrolles, Davide Testuggine, Karthik Prasad, Mani Malek, John Nguyen, Sayan Ghosh, Akash Bharadwaj, Jessica Zhao, et al. Opacus: User-friendly differential privacy library in pytorch. arXiv preprint arXiv:2109.12298, 2021.
[40] Da Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi, Huseyin A Inan, Gautam Kamath, Janardhan Kulkarni, Yin Tat Lee, Andre Manoel, Lukas Wutschitz, Sergey Yekhanin, and Huishuai Zhang. Differentially private fine-tuning of language models. In International Conference on Learning Representations, 2022.
[41] Zenghui Yuan, Yangming Xu, Jiawen Shi, Pan Zhou, and Lichao Sun. Merge hijacking: Backdoor attacks to model merging of large language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 32688–32703, 2025.
[42] Netzer Yuval. Reading digits in natural images with unsupervised feature learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2011.
[43] Binchi Zhang, Zaiyi Zheng, Zhengzhang Chen, and Jundong Li. Beyond the permutation symmetry of transformers: The role of rotation for model fusion. In International Conference on Machine Learning, pages 77090–77106. PMLR, 2025.
[44] Jinghuai Zhang, Jianfeng Chi, Zheng Li, Kunlin Cai, Yang Zhang, and Yuan Tian. Badmerging: Backdoor attacks against model merging. In Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, pages 4450–4464, 2024.
[45] Liang Zhang, Bingcong Li, Kiran Koshy Thekumparampil, Sewoong Oh, and Niao He. Dpzero: Private fine-tuning of language models without backpropagation. In International Conference on Machine Learning, pages 59210–59246. PMLR, 2024.
When Privacy Hurts Mergeability: Geometry-Aware Model Merging under Differential Privacy
Supplementary Material
LIST OF APPENDICES
A: Notation
B: Implementation of Experiments
B.1 Datasets
B.2 Models
B.3 Implementation Details
B.4 More Results on Vision Tasks
B.5 More Results on Language Tasks
C: Implementation of Theoretical Analysis
C.1 Privacy guarantee of DP-Merging
C.2 Mergeability Analysis
C.3 Reference Anchoring Controls Merging Displacement
C.4 Connection to Joint-Task Loss Linearity
D: Limitations and Future Work
A Notation
Table 9 summarizes the main notation used throughout the paper.
Table 9: Summary of notation.
| Notation | Description |
|---|---|
| Public pretrained initialization shared by all downstream tasks. | |
| Number of downstream tasks. | |
| Task index. | |
| Private training dataset of task . | |
| Sample-wise loss evaluated at model parameter on example . | |
| Empirical loss of task on . | |
| Randomized DP fine-tuning algorithm for task . | |
| Task-specific model obtained by privately fine-tuning on . | |
| Task vector of task relative to the public initialization. | |
| Merged model obtained from the released task-specific models. | |
| Model-merging operator, such as Weight Averaging, RegMean, Task Arithmetic, TIES-Merging, PCB, or WUDI. | |
| Hessian or local curvature matrix of around . | |
| Largest eigenvalue of , used as a local sharpness measure. | |
| Reference drift of task model from the shared initialization . | |
| Per-sample gradient clipping threshold in DP fine-tuning. | |
| Noise multiplier of the Gaussian mechanism. | |
| Sampling rate used in DP fine-tuning. | |
| Differential privacy parameters. | |
| SAM radius used in the DP-aware flat-minima search component. | |
| Coefficient of the reference-based alignment regularizer. |
B Implementation of Experiments
B.1 Datasets
We evaluate DP-Merging on both vision and language benchmarks. For all tasks, the training data are treated as private and are only used during DP fine-tuning. The merging stage only accesses the released DP task models and does not use the original training data.
Vision tasks. For vision experiments, we follow the standard multi-task model-merging setting used in prior work [38, 5]. We consider eight image classification tasks: SUN397 [35] for scene recognition, Cars [18] for fine-grained car classification, RESISC45 [4] and EuroSAT [14] for remote-sensing and land-cover recognition, SVHN [42] and MNIST [19] for digit recognition, GTSRB [30] for traffic-sign recognition, and DTD [6] for texture classification. These tasks cover diverse visual domains and therefore provide a broad testbed for evaluating whether DP task models remain mergeable across heterogeneous classification problems. For each dataset, we independently fine-tune a private task model from the same pretrained vision backbone under sample-level differential privacy. The released DP task models are then merged into a single model without accessing the original training data. We report classification accuracy on each task and use the average accuracy across all eight tasks as the main vision metric.
Language tasks. For language experiments, we use eight tasks from the GLUE benchmark [31]: CoLA for linguistic acceptability, SST-2 for sentiment classification, MRPC and QQP for paraphrase detection, STS-B for semantic textual similarity, MNLI and RTE for natural language inference, and QNLI for question-answering natural language inference. For each task, we fine-tune a separate private language model under sample-level differential privacy and merge the released DP task models without accessing the original GLUE training data. Following the standard GLUE protocol, we report Matthew's correlation for CoLA, Spearman correlation for STS-B, F1/accuracy for MRPC and QQP, and accuracy for SST-2, MNLI, QNLI, and RTE. All task scores are converted to a 0–100 scale, and the average score over the eight tasks is used as the main language metric.
B.2 Models
Vision models. For vision experiments, we use CLIP-pretrained Vision Transformer backbones [29], including ViT-B/32, ViT-B/16, and ViT-L/14. ViT-B/32 and ViT-B/16 share the same base-size Transformer architecture with 12 layers and hidden dimension 768, but use different patch sizes of and , respectively. ViT-L/14 is a larger backbone with 24 layers, hidden dimension 1024, and image patches. For each backbone, all task-specific models are initialized from the same public CLIP checkpoint and independently fine-tuned on each private vision dataset under sample-level DP. During merging, we merge the shared visual encoder parameters of the released DP task models. Since the eight vision datasets have different label spaces, task-specific classification heads are kept separate for evaluation. Thus, the merged vision model consists of one shared visual encoder and the corresponding task head for each dataset.
Language models. For language experiments, we use RoBERTa-Base and RoBERTa-Large [23]. RoBERTa-Base has 12 Transformer layers with hidden dimension 768, while RoBERTa-Large has 24 Transformer layers with hidden dimension 1024. For each GLUE task, all task-specific models are initialized from the same public RoBERTa checkpoint and independently fine-tuned under sample-level DP. During merging, we merge the shared RoBERTa encoder parameters of the released DP task models. Because GLUE tasks have different label spaces and output formats, task-specific prediction heads are kept separate for evaluation. The merged language model, therefore, uses one shared encoder together with the corresponding task head for each evaluation task.
B.3 Implementation Details
This section provides additional implementation details that are omitted from the main text due to space limits. All experiments are conducted on NVIDIA RTX 5090 GPUs.
Training schedules. All task-specific models are fine-tuned using sample-level differential privacy with gradient clipping , batch size 16, learning rate , weight decay , and 10 training epochs/steps. We use AdamW as the optimizer with parameters . For clarity, different task types follow the same DP fine-tuning defaults; any deviations from this default schedule are explicitly noted in the corresponding experiment description in the main text.
Merging hyperparameters. For all experiments, we use fixed merging hyperparameters for each merging method to ensure fair comparison: For Task Arithmetic, the scaling coefficient is 0.3. For TIES-Merging, pruning density is 0.2. For PCB Merging and WUDI-Merging, we use default configurations from the original papers unless otherwise specified.
The same merging hyperparameters are used for both the standard DP fine-tuning baselines and DP-Merging. For DP-Merging specifically, the perturbation radius and the alignment coefficient are used consistently across all tasks.
Table 10: Multi-task accuracy (%) on the 8-task vision benchmark with ViT-B/16, .
| Method | SUN397 | Cars | RESISC45 | EuroSAT | SVHN | GTSRB | MNIST | DTD | Avg Acc |
|---|---|---|---|---|---|---|---|---|---|
| DP + Individual | 59.8 | 68.2 | 88.1 | 86.9 | 86.2 | 89.4 | 90.7 | 70.6 | 80.0 |
| DP + Weight Averaging | 45.3 | 43.4 | 51.4 | 51.7 | 44.2 | 32.8 | 67.5 | 30.1 | 46.8 |
| DP-Merging + Weight Averaging | 49.4 | 48.4 | 57.1 | 56.2 | 49.4 | 39.4 | 75.1 | 38.6 | 52.1+5.3 |
| DP + RegMean | 45.3 | 43.8 | 55.9 | 58.6 | 58.2 | 47.4 | 73.7 | 36.0 | 52.1 |
| DP-Merging + RegMean | 48.3 | 47.8 | 59.9 | 64.6 | 63.6 | 49.4 | 76.7 | 44.0 | 56.3+4.2 |
| DP + Task Arithmetic | 45.2 | 44.9 | 56.7 | 68.4 | 70.5 | 49.7 | 77.3 | 40.4 | 57.9 |
| DP-Merging + Task Arithmetic | 49.1 | 48.5 | 59.4 | 72.6 | 78.1 | 56.5 | 79.1 | 46.3 | 61.4+3.5 |
| DP + TIES-Merging | 39.8 | 38.7 | 40.7 | 59.5 | 66.2 | 52.1 | 78.3 | 44.2 | 52.3 |
| DP-Merging + TIES-Merging | 45.8 | 46.6 | 45.7 | 63.8 | 69.2 | 55.1 | 81.3 | 46.2 | 57.1+4.8 |
| DP + PCB Merging | 45.7 | 43.9 | 46.5 | 57.2 | 61.7 | 50.3 | 77.0 | 37.1 | 52.6 |
| DP-Merging + PCB Merging | 49.4 | 49.0 | 51.2 | 61.3 | 65.1 | 55.8 | 81.1 | 38.6 | 56.4+3.8 |
| DP + WUDI-Merging | 46.7 | 45.5 | 58.6 | 59.3 | 66.4 | 57.1 | 78.2 | 39.1 | 56.3 |
| DP-Merging + WUDI-Merging | 49.6 | 48.1 | 61.3 | 63.8 | 71.5 | 61.3 | 81.6 | 45.7 | 60.2+3.9 |
B.4 More Results on Vision Tasks
Table 10 reports the multi-task accuracy (%) of various training strategies on eight vision benchmarks. Each method is evaluated, including individual training (DP + Individual), simple weight averaging
(DP + Weight Averaging), and various DP-Merging variants combined with regularization or task-specific aggregation strategies. Individual training achieves the highest average accuracy (80.0%), but does not leverage knowledge sharing across tasks, whereas simple weight averaging results in a substantially lower average accuracy (46.8%). Incorporating DP-Merging with different weighting or aggregation strategies significantly improves multi-task performance, with DP-Merging + Task Arithmetic reaching 61.4%, and DP-Merging + WUDI-Merging achieving the highest average accuracy among merged approaches (60.2%), demonstrating that careful parameter merging and task coordination can effectively enhance generalization in multi-task settings. The numbers in red indicate improvements relative to the corresponding non-merged baseline, highlighting the positive impact of merging strategies.
Loss Landscape Visualization. To illustrate the effect of different DP fine-tuning and merging strategies on the geometry of merged models, we visualize the loss landscapes of the final merged ViT models under privacy budget . Figure 4 shows the landscapes of models merged using Task Arithmetic after Naive DP fine-tuning, while Figure 5 shows the landscapes of models merged using Task Arithmetic after DP-Merging. All visualized models are final merged models for three ViT variants (ViT-B/32, ViT-B/16, ViT-L/14). Comparing the two sets of landscapes, we observe that DP-Merging produces wider and smoother low-loss regions, indicating improved stability and geometric compatibility of the merged models.

(a) ViT-B/32
(b) ViT-B/16
(c) ViT-L/14
Figure 4: Loss landscapes of ViT models that were first Naive DP fine-tuned under and then merged using Task Arithmetic (ViT-B/32, ViT-B/16, ViT-L/14).

(a) ViT-B/32
(b) ViT-B/16
(c) ViT-L/14
Figure 5: Loss landscapes of the merged ViT models (ViT-B/32, ViT-B/16, and ViT-L/14) under , obtained using DP-Merging with Task Arithmetic.
B.5 More Results on Language Tasks
Table 11 reports the multi-task performance of RoBERTa-Base models on the GLUE benchmark (CoLA, MNLI, MRPC, QNLI, QQP, RTE, SST2, STSB). Individual training (DP + Individual) achieves the highest average score (79.8), while simple weight averaging drops it to 72.3. DP-Merging strategies consistently improve results, with DP-Merging + Task Arithmetic reaching 73.9 and DP-Merging + WUDI-Merging achieving 76.5, demonstrating that parameter merging and task coordination enhance multi-task generalization.
Table 11: Multi-task performance of RoBERTa-Base models on GLUE benchmark, .
| Method | CoLA | MNLI | MRPC | QNLI | QQP | RTE | SST2 | STSB | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| DP + Individual | 59.2 | 77.7 | 80.1 | 88.7 | 81.5 | 76.7 | 92.7 | 79.4 | 79.8 |
| DP + Weight Averaging | 55.3 | 73.4 | 67.4 | 78.7 | 78.2 | 68.8 | 90.5 | 66.1 | 72.3 |
| DP-Merging + Weight Averaging | 58.2 | 76.1 | 69.0 | 79.1 | 81.3 | 69.7 | 91.6 | 68.2 | |
| DP + RegMean | 55.3 | 73.5 | 65.6 | 78.6 | 78.1 | 67.4 | 90.7 | 62.0 | 70.4 |
| DP-Merging + RegMean | 58.6 | 78.2 | 68.4 | 79.0 | 80.6 | 69.2 | 91.6 | 63.8 | |
| DP + Task Arithmetic | 55.2 | 74.9 | 66.7 | 78.9 | 80.2 | 69.7 | 90.3 | 61.4 | 70.8 |
| DP-Merging + Task Arithmetic | 59.6 | 77.8 | 68.9 | 80.9 | 82.0 | 70.7 | 91.6 | 63.2 | |
| DP + TIES-Merging | 59.8 | 78.6 | 70.7 | 79.7 | 81.2 | 70.1 | 91.3 | 64.2 | 73.7 |
| DP-Merging + TIES-Merging | 61.0 | 80.6 | 72.4 | 80.9 | 82.1 | 71.2 | 92.6 | 65.8 | |
| DP + PCB Merging | 55.7 | 73.6 | 76.5 | 77.2 | 81.7 | 70.3 | 91.0 | 60.1 | 72.8 |
| DP-Merging + PCB Merging | 58.6 | 74.2 | 78.3 | 79.5 | 82.9 | 72.4 | 92.3 | 61.6 | |
| DP + WUDI-Merging | 56.7 | 75.5 | 78.5 | 79.3 | 82.4 | 73.1 | 91.2 | 59.0 | 73.6 |
| DP-Merging + WUDI-Merging | 59.6 | 76.9 | 81.0 | 82.1 | 83.1 | 74.6 | 92.8 | 60.5 |
C Implementation of Theoretical Analysis
C.1 Privacy guarantee of DP-Merging
Each DP-Merging iteration uses two privatized clipped-gradient evaluations: one to construct the sharpness-aware perturbation and one to update the model at the perturbed point. The perturbation itself is a deterministic function of the first private gradient and therefore is post-processing. The reference-anchoring term depends only on the current model and the public initialization, so it incurs no additional privacy loss. Finally, the merging step only processes already released private task models and is also post-processing.
Theorem C.1 (Privacy guarantee of DP-Merging). Assume that each task dataset is disjoint, and each private example belongs to at most one task. For task , suppose Algorithm 1 runs for iterations with Poisson sampling rate , clipping threshold , and Gaussian noise multiplier . Let denote the order- RDP cost of one Poisson-subsampled paired Gaussian mechanism that releases the two noisy clipped-gradient quantities used in one DP-Merging iteration. Then, for any Rényi order , the released task model satisfies
Consequently, for any , satisfies -DP with
Since the task datasets are disjoint, releasing all private task models satisfies
The merged model
incurs no additional privacy loss by post-processing.
We provide a detailed proof of Theorem C.1. The analysis is at the sample level and uses the standard add/remove neighboring relation: two datasets are neighboring if they differ in the presence or absence of one training example. We assume that each private example appears in at most one task dataset . The replace-one neighboring relation can be handled by doubling the clipping sensitivity, equivalently replacing by in the accountant.
For a per-example loss , define the clipped gradient
Thus,
for all and . Given a Poisson minibatch sampled with probability , the private gradient oracle used by DP-Merging can be written as
where s is a deterministic normalization factor. The value of s does not affect the privacy analysis because it scales both the sensitivity and the noise by the same factor.
One-iteration mechanism. Fix a task t and an iteration k. Conditioned on all previous private outputs, the current parameter is fixed. In one iteration, DP-Merging first computes
then constructs
If , we set . In either case, is a deterministic function of the first private output and public hyperparameters. Therefore, constructing is post-processing and does not increase privacy loss.
The second private gradient query is
Conditional on , the perturbed point is fixed. Hence, the second query is another Gaussian mechanism applied to clipped per-example gradients at a fixed model parameter. The two private gradient queries are adaptive, but adaptive composition is allowed under RDP.
Full-batch paired Gaussian mechanism. We first ignore subsampling and analyze the paired mechanism that releases both noisy clipped-gradient quantities on the same dataset. Let and be neighboring datasets that differ in one example. For the first query, the difference between the two clipped gradient sums is bounded by
Similarly, after conditioning on the first private output, the perturbed model is fixed, and the second query satisfies
Therefore, if we view the two released gradients as one concatenated vector, the sensitivity of the paired query is bounded by
The paired mechanism adds independent Gaussian noise with covariance to each query. Hence, for any Rényi order , the full-batch paired Gaussian mechanism satisfies
Equivalently, this is the same as composing two Gaussian mechanisms, each with RDP cost :
Poisson subsampling. Algorithm 1 samples the minibatch using Poisson sampling with rate q. Since the two gradient evaluations in one iteration use the same minibatch, privacy amplification must be applied to the joint paired mechanism rather than independently to the two queries.
For integer orders , a valid RDP upper bound for one subsampled paired Gaussian iteration is
The exponent differs from the standard single-query subsampled Gaussian mechanism by a factor of two because the paired query has sensitivity rather than .
For the reverse neighboring direction, a simple valid bound is
Thus, one may take
In practice, the same theorem also holds when is computed by a tighter numerical RDP accountant for the subsampled paired Gaussian mechanism.
Composition over iterations. For a fixed task , DP-Merging runs for iterations. RDP composes additively under adaptive composition. Therefore, after iterations, the released private task model satisfies
Using the standard conversion from RDP to approximate DP, for any , is -DP with
No privacy cost from reference anchoring. The update rule of DP-Merging is
The anchoring term depends only on the current model parameter and the public pretrained initialization . It does not directly query any private example. Therefore, after the private gradient has been produced, adding the reference-anchoring term is a deterministic transformation of already privatized quantities and public information. By post-processing, it incurs no additional privacy loss.
Parallel composition over tasks. The T task models are trained on disjoint datasets . Since each private example belongs to at most one task, changing one example affects the training procedure of at most one task. Therefore, releasing all private task models
satisfies parallel composition. Hence, the collection of released task models is
When all tasks use the same privacy parameters, this reduces to -DP.
Post-processing by model merging. The final merged model is computed as
This operation is a deterministic function of the released private task models and does not access any private training example. Therefore, by the post-processing property of differential privacy, releasing incurs no additional privacy loss. This proves Theorem C.1.
C.2 Mergeability Analysis
Let be the private task model returned by Algorithm 1. Define
and
The average merge gap is
Assumption C.2 (Local third-order smoothness). For each task , is three-times differentiable along the segment . Define
The third-order Taylor remainder satisfies
Assumption C.3 (Approximate stationarity). The returned private model satisfies
where captures the optimization error, clipping bias, and DP noise.
Theorem C.4 (Average merge-gap bound). Under Assumptions C.2 and C.3,
Proof. For each task t, apply Taylor's theorem to at along the direction :
for some . Therefore,
Using Assumption C.3 gives
Averaging over completes the proof.
C.3 Reference Anchoring Controls Merging Displacement
Theorem C.4 shows that the merge gap depends on the displacement . We now show that the reference anchor in DP-Merging controls this quantity.
Define the robust loss
and the anchored robust objective
Assumption C.5 (Approximate stationarity of the anchored robust objective). For each task t, the returned model satisfies
Lemma C.6 (Anchor-induced task-vector bound). Under Assumption C.5,
Consequently, if
then
Proof. By definition,
Thus,
which proves the task-vector bound. Next,
This completes the proof.
Corollary C.7 (Explicit DP-Merging merge-gap bound). Under Assumptions C.2, C.3, and C.5,
If , , , , and for all , then
Proof. The first bound follows by substituting Lemma C.6 into Theorem C.4. For the uniform bound, note that
Substituting this inequality into the first bound gives the result.
C.4 Connection to Joint-Task Loss Linearity
We further connect the above mergeability analysis to joint-task loss linearity, following the same style of Hessian-based arguments commonly used in sharpness-aware model-merging analyses.
For two tasks s and t, define the joint-task loss
For , define the joint-task loss linearity gap
A smaller means that the interpolation between two task models is closer to being linear on the joint-task loss landscape.
Theorem C.8 (Flatness and anchoring imply joint-task loss linearity). Assume and are locally third-order smooth around and , respectively. Let
Then
where collects the third-order Taylor remainders. Moreover, under Lemma C.6,
and therefore
Proof. Let . First expand around . Since
we have
Similarly,
Substituting these two expansions into
gives
Repeating the same argument for around gives
Therefore,
where
Using
we obtain
Finally,
where the last inequality follows from Lemma C.6. This proves the theorem.
Interpretation. Theorem C.8 shows that DP-Merging improves joint-task loss linearity through the same two geometric mechanisms that improve mergeability. The sharpness-aware component reduces the dominant Hessian eigenvalues and , while the reference anchor reduces the distance between task models. Together, they reduce the joint-task loss linearity gap, which corresponds to weaker parameter interference during model merging.
D Limitations and Future Work
While our DP-Merging and multi-task strategies demonstrate consistent improvements across vision and NLP benchmarks, several limitations remain. First, the effectiveness of parameter merging depends on task-specific compatibility, and its performance on highly heterogeneous tasks or models with substantially different architectures is not fully explored. Second, the experiments are limited to standard benchmarks and mid- to large-scale models (ViT-L/14, RoBERTa-Large), leaving the applicability to larger models or more complex, real-world datasets untested. Third, while average scores demonstrate clear overall gains, individual task performance can vary, with some tasks showing only marginal improvements or slight declines, highlighting the need for more task-specific analysis.
Future work includes developing adaptive merging strategies that account for task similarity and parameter sensitivity, extending the approach to larger and more diverse model architectures, and exploring dynamic task balancing and uncertainty-aware weighting mechanisms during training to improve stability and consistency across tasks.