SPARTA: An Optimization Framework for Differentially Private Sparse Fine-Tuning

Mehdi Makni, Kayhan Behdin, Gabriel Afriat, Zheng Xu, Sergei Vassilvitskii, Natalia Ponomareva, Rahul Mazumder, Hussein Hazimeh

Abstract

Differentially private (DP) fine-tuning of large pre-trained models often suffers from a "curse of dimensionality," where the noise required for privacy significantly degrades model performance. We present SPARTA (Sparse & PrivAte Row–gradient Thresholding Algorithm), a framework that optimizes subnetwork selection during private training. By employing a row-grouping technique to amplify gradient signals against privacy noise, SPARTA identifies and updates only the most critical weights. Experiments on computer vision benchmarks show that SPARTA significantly outperforms full-model fine-tuning and existing sparse methods, achieving higher accuracy with lower computational overhead.

Introduction

Training deep neural networks with Differential Privacy (DP) typically relies on DP-SGD, which injects noise into gradients to protect individual data points. However, this approach faces a fundamental challenge: the "curse of dimensionality." As the number of trainable parameters increases, the amount of noise required to maintain privacy also grows, often leading to a sharp decline in model utility.

When fine-tuning massive pre-trained models, such as Vision Transformers, researchers are often forced into a compromise. Fine-tuning the entire model introduces excessive noise, while fine-tuning only a fixed, small subset (e.g., the final linear layer) may be too restrictive to capture the nuances of the downstream task. Existing methods for selecting which weights to tune often rely on public data or simple heuristics that fail to identify the most task-relevant parameters under private constraints.

The SPARTA Framework

SPARTA addresses these challenges by treating the selection of a "mask" (the subset of weights to tune) and the optimization of those weights as a unified process.

The SPARTA framework decomposes fine-tuning into frozen pre-trained weights and a sparse update determined by a binary mask selection.

Core Innovations

  • Row-Grouping for Noise Reduction: Ranking individual parameters under DP is difficult because privacy noise often overwhelms the gradient signal. SPARTA reshapes weight tensors into matrices and groups them by rows. By aggregating gradient information across a row, the underlying signal is amplified while random noise tends to cancel out, allowing for more reliable parameter selection.
  • Three-Phase Pipeline:
    1. Warm-up: The model undergoes a few epochs of DP-BitFit (tuning only biases) to ensure gradients become informative.
  • Mask Selection: A single epoch is used to collect noisy absolute gradients, identifying the most "important" rows of weights to form a sparse mask.
  • Sparse Fine-Tuning: The identified subnetwork is fine-tuned for the remainder of the privacy budget.

This structured approach ensures that the mask selection step is privacy-accountable, costing exactly the same as one standard epoch of DP-SGD.

Experimental Evaluation

The framework was evaluated on standard computer vision benchmarks, including CIFAR-10 and CIFAR-100, using models pre-trained on ImageNet. The study spanned various architectures, from ResNet18 and Wide-ResNet to Vision Transformers (DeiT) of different sizes.

Key Results

  • Superior Accuracy: On CIFAR-100 with a strict privacy budget ($\epsilon=2$), SPARTA achieved 69.58% accuracy on DeiT Tiny, a significant improvement over the 61.22% achieved by full-model fine-tuning.
  • Efficiency and Speed: Unlike unstructured sparsity, SPARTA’s row-grouping is hardware-friendly. Benchmarks on A100 and L40 GPUs showed a 15% wall-clock time speedup compared to standard full fine-tuning.
  • The Sparsity "Sweet Spot": Experiments revealed that tuning approximately 20% of the parameters provides an optimal balance between model expressivity and noise reduction.

Discussion and Future Work

SPARTA demonstrates that intelligent parameter selection can overcome the dimensionality barriers of DP-SGD. By focusing on structured sparsity, the method remains computationally efficient while delivering state-of-the-art privacy-utility trade-offs.

While the current work focuses on computer vision, the underlying principles of row-gradient thresholding are likely applicable to Large Language Models (LLMs). Future research may explore adapting this framework to other Parameter-Efficient Fine-Tuning (PEFT) methods, such as automatically determining the optimal rank for LoRA layers.

Summary updated

BibTeX
@inproceedings{makni2025sparta,
  author = {Mehdi Makni and Kayhan Behdin and Gabriel Afriat and Zheng Xu and Sergei Vassilvitskii and Natalia Ponomareva and Rahul Mazumder and Hussein Hazimeh},
  title = {{SPARTA: An Optimization Framework for Differentially Private Sparse Fine-Tuning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
  doi = {10.1145/3711896.3736842},
}
Figure