Manuscript Offprint

arXiv:2608.26655

When Privacy Hurts Mergeability: Geometry-Aware Model Merging under Differential Privacy

Jin Liu, Junkang Liu, Ning Xi, Yinbin Miao, Dawei Wei, Ke Cheng, Jianfeng Ma

Jin Liu

Xidian University

jinliu9787@gmail.com

Yinbin Miao

Xidian University

ybmiao@xidian.edu.cn

Junkang Liu

Tianjin University

junkangliukk@gmail.com

Dawei Wei

Xidian University

weidawei58@gmail.com

Ning Xi

Xidian University

nxi@xidian.edu.cn

Ke Cheng

Xidian University

chengke@xidian.edu.cn

Jianfeng Ma

Xidian University

jfma@mail.xidian.edu.cn

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.

Figure

(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 w0w_{0} 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.

References (40)

  • Mtlora: Low-rank adaptation approach for efficient multi-task learning
  • Git re-basin: Merging models modulo permutation symmetries
  • Differentially private bias-term fine-tuning of foundation models
  • Remote sensing image scene classification: Benchmark and state of the art
  • Whoever started the interference should end it: Guiding data-free model merging via task vectors
  • Describing textures in the wild
  • Essentially no barriers in neural network energy landscape
  • Parameter competition balancing for model merging
  • Dp-forward: Fine-tuning and inference on language models with differential privacy in forward pass
  • Calibrating noise to sensitivity in private data analysis
  • Efficiently identifying task groupings for multi-task learning
  • Sharpness-aware minimization for efficiently improving generalization
  • Loss surfaces, mode connectivity, and fast ensembling of dnns
  • Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification
  • Editing models with task arithmetic
  • Linear mode connectivity between multiple models modulo permutation symmetries
  • Dataless knowledge fusion by merging weights of language models
  • 3d object representations for fine-grained categorization
  • Mitigating parameter interference in model merging via sharpness-aware fine-tuning
  • Fine-tuning language models with differential privacy through adaptive noise allocation
  • Rethinking IoRA for privacy-preserving federated learning in large models
  • RoBERTa: A Robustly Optimized BERT Pretraining Approach
  • Decoupled Weight Decay Regularization
  • Merging models with fisher-weighted averaging
  • Differentially private sharpness-aware training
  • Re-basin via implicit sinkhorn differentiation
  • The german traffic sign recognition benchmark: a multi-class classification competition
  • Glue: A multi-task benchmark and analysis platform for natural language understanding
  • From purity to peril: Backdooring merged models from "harmless" benign components
  • Taming momentum: Rethinking optimizer states through low-rank approximation
  • averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • Sun database: Exploring a large collection of scene categories
  • TIES-merging: Resolving interference when merging models
  • Model merging in llms, mllms, and beyond: Methods, theories, applications, and opportunities
  • Adamerging: Adaptive model merging for multi-task learning
  • User-friendly differential privacy library in pytorch (opens arXiv in a new tab)
  • Differentially private fine-tuning of language models
  • Merge hijacking: Backdoor attacks to model merging of large language models
  • Beyond the permutation symmetry of transformers: The role of rotation for model fusion
  • Badmerging: Backdoor attacks against model merging