Table of Contents
Fetching ...

LoRA and Privacy: When Random Projections Help (and When They Don't)

Yaxi Hu, Johanna Düngler, Bernhard Schölkopf, Amartya Sanyal

TL;DR

This work introduces the Wishart projection mechanism as a principled way to inject randomness into LoRA-style, parameter-efficient fine-tuning and analyzes its differential privacy properties. It shows non-asymptotic DP guarantees for vector-valued outputs without additive noise, but establishes a sharp negative result for matrix-valued queries in the noiseless setting, indicating LoRA alone is not private. A noisy variant reveals privacy amplification from the projection’s randomness and its low-rank structure, with stronger guarantees in both large-$r$ and small-$r$ regimes than additive noise alone. The results imply that LoRA updates are not private by default, but that carefully calibrated low-rank projections can improve privacy-utility trade-offs, enabling tighter privacy accounting and potentially lower noise for practical accuracy. Preliminary experiments corroborate the theoretical insights, showing scenario-dependent privacy amplification and utility gains when employing the noisy projection mechanism in DP-fine-tuning tasks.

Abstract

We introduce the (Wishart) projection mechanism, a randomized map of the form $S \mapsto M f(S)$ with $M \sim W_d(1/r I_d, r)$ and study its differential privacy properties. For vector-valued queries $f$, we prove non-asymptotic DP guarantees without any additive noise, showing that Wishart randomness alone can suffice. For matrix-valued queries, however, we establish a sharp negative result: in the noise-free setting, the mechanism is not DP, and we demonstrate its vulnerability by implementing a near perfect membership inference attack (AUC $> 0.99$). We then analyze a noisy variant and prove privacy amplification due to randomness and low rank projection, in both large- and small-rank regimes, yielding stronger privacy guarantees than additive noise alone. Finally, we show that LoRA-style updates are an instance of the matrix-valued mechanism, implying that LoRA is not inherently private despite its built-in randomness, but that low-rank fine-tuning can be more private than full fine-tuning at the same noise level. Preliminary experiments suggest that tighter accounting enables lower noise and improved accuracy in practice.

LoRA and Privacy: When Random Projections Help (and When They Don't)

TL;DR

This work introduces the Wishart projection mechanism as a principled way to inject randomness into LoRA-style, parameter-efficient fine-tuning and analyzes its differential privacy properties. It shows non-asymptotic DP guarantees for vector-valued outputs without additive noise, but establishes a sharp negative result for matrix-valued queries in the noiseless setting, indicating LoRA alone is not private. A noisy variant reveals privacy amplification from the projection’s randomness and its low-rank structure, with stronger guarantees in both large- and small- regimes than additive noise alone. The results imply that LoRA updates are not private by default, but that carefully calibrated low-rank projections can improve privacy-utility trade-offs, enabling tighter privacy accounting and potentially lower noise for practical accuracy. Preliminary experiments corroborate the theoretical insights, showing scenario-dependent privacy amplification and utility gains when employing the noisy projection mechanism in DP-fine-tuning tasks.

Abstract

We introduce the (Wishart) projection mechanism, a randomized map of the form with and study its differential privacy properties. For vector-valued queries , we prove non-asymptotic DP guarantees without any additive noise, showing that Wishart randomness alone can suffice. For matrix-valued queries, however, we establish a sharp negative result: in the noise-free setting, the mechanism is not DP, and we demonstrate its vulnerability by implementing a near perfect membership inference attack (AUC ). We then analyze a noisy variant and prove privacy amplification due to randomness and low rank projection, in both large- and small-rank regimes, yielding stronger privacy guarantees than additive noise alone. Finally, we show that LoRA-style updates are an instance of the matrix-valued mechanism, implying that LoRA is not inherently private despite its built-in randomness, but that low-rank fine-tuning can be more private than full fine-tuning at the same noise level. Preliminary experiments suggest that tighter accounting enables lower noise and improved accuracy in practice.
Paper Structure (49 sections, 28 theorems, 284 equations, 4 figures, 3 tables, 4 algorithms)

This paper contains 49 sections, 28 theorems, 284 equations, 4 figures, 3 tables, 4 algorithms.

Key Result

Lemma 1

Let $f: \mathcal{S} \to \mathbb{R}^d$ be a function with $\ell_2$-sensitivity $\Delta$. For any $\varepsilon, \delta \in (0, 1)$, the Gaussian mechanism $\mathcal{A}(S) = f(S) + Z$ is $(\varepsilon, \delta)$-DP, for

Figures (4)

  • Figure 1: Privacy loss $\varepsilon$ v.s. rank $r$ at $\delta = 0.01$ and $d = 400$: Monte Carlo simulation of exact privacy profile and \ref{['thm:vec-alt']}.
  • Figure 2: Privacy loss $\varepsilon$ v.s. noise scale $\sigma$ for $\delta = 1e-5$ and $d = 2000$: We compare our bound (\ref{['thm:matrix-dp-proj-mechanism-small-r']}), minimized over $\alpha$ with the Classical Gaussian mechanism (\ref{['equ:gauss-delta-small-r']}).
  • Figure 3: Comparison of DP-SGD, DP-LoRA-FA, and our mechanism (\ref{['eq:M2']}) using the privacy accounting of \ref{['thm:matrix-dp-proj-mechanism-small-r']}.
  • Figure 4: Best (non-private) test accuracy as a function of the rank $r$ for DP-LoRA-FA (left) and our noisy-projection mechanism (right), under the same target privacy budget used in the main comparison.

Theorems & Definitions (59)

  • Definition 1: Projection mechanism
  • Definition 2: Differential privacy
  • Lemma 1: Gaussian Mechanism
  • Theorem 1
  • Proposition 2
  • Definition 3: Noisy Projection Mechanisms
  • Definition 4: Adjacency notion
  • Theorem 3: Privacy of \ref{['eq:M1']} in the large-$r$ regime
  • Lemma 2: Residual DP bound
  • Theorem 4
  • ...and 49 more