---
title: 'PNSGD: Projected Noisy SGD Unlearning'
url: https://www.emergentmind.com/topics/projected-noisy-sgd-unlearning-pnsgd
type: topic
---

# PNSGD: Projected Noisy SGD Unlearning

Projected Noisy SGD Unlearning (PNSGD) is a certified machine unlearning framework for convex empirical risk minimization problems. PNSGD achieves approximate removal of individual or multiple data points from a trained model’s influence, producing model parameter distributions that are close (in the Rényi sense) to the retraining-from-scratch distribution. Its central algorithmic innovation leverages projected noisy stochastic gradient descent with rigorous complexity guarantees and efficient handling of both sequential and batch unlearning scenarios. PNSGD is the first method to offer approximate unlearning guarantees for convex losses under the projected noisy SGD regime, using infinite Wasserstein distance to track the separation between adjacent learning processes [2403.17105].

## 1. Problem Setup and Objective

Given a training set $D = \{d_1, ..., d_n\}$, the empirical risk objective is
$$
f_D(x) = \frac{1}{n} \sum_{i=1}^n \ell(x; d_i)
$$
where $x \in C_R = \{x \in \mathbb{R}^d : \|x\|_2 \leq R\}$, a closed Euclidean ball. Upon a user removal request (e.g., to comply with "the right to be forgotten"), an adjacent dataset $D'$ is defined, differing from $D$ by replacement of some point(s). The unlearning goal is to transform an existing model $x \approx \arg\min_{x \in C_R} f_D(x)$ into a new model whose distribution is $(\alpha, \epsilon)$-close, in the Rényi sense, to the distribution obtained by retraining from scratch on $D'$—all without rerunning SGD from initialization.

## 2. PNSGD Algorithmic Procedure

The PNSGD procedure relies on a cyclic mini-batch sequence $B = \{B^0, ..., B^{n/b-1}\}$ of size $b$. The learning process operates as follows:

- **Initialization**: Start from $x_0 \sim \nu_0$ on $C_R$.
- **Iterative Update** (epoch $t=0, ..., T-1$, inner step $j=0, ..., n/b-1$):
  $$
  x_t^{j+1} = \Pi_{C_R}\left(x_t^j - \eta \cdot g(x_t^j; B^j) + \xi_t^j\right)
  $$
  where
  - $g(x; B^j) = \frac{1}{b} \sum_{i \in B^j} \nabla \ell(x; d_i)$,
  - $\xi_t^j \sim \mathcal{N}(0, 2\eta\sigma^2 I_d)$ additive Gaussian noise,
  - $\Pi_{C_R}(\cdot)$ is the orthogonal projection onto $C_R$.
- After $T$ epochs, set $x_T^0$ as the current learned model.

**Unlearning** is achieved by rerunning the above update on $D'$ for $K$ epochs, starting from $x_T^0$ (the previously trained model). The mini-batch sequence $B$ is reused for direct comparability.

## 3. Theoretical Assumptions and Conditions

PNSGD unlearning operates under the following assumptions:
- For every data $d$, $x \mapsto \ell(x; d)$ is
  - $L$-smooth: $\|\nabla \ell(x) - \nabla \ell(y)\| \leq L \|x - y\|$
  - $m$-strongly-convex over $C_R$
  - $M$-Lipschitz: $|\ell(x; d) - \ell(y; d)| \leq M \|x - y\|$
- The constraint set $C_R$ has nonzero Lebesgue measure.
- $\ell(\cdot; d)$ has a continuous gradient.

These regularity conditions are essential for ensuring the convergence and contractivity needed to establish unlearning guarantees.

## 4. Certified Unlearning Guarantees

The guarantee tracks the distributions of both the training process and the unlearning process in terms of Rényi divergence, conditioned on the batch sequence $B$.

Define $c = 1 - \eta m$ (for step size $\eta \leq 1/L$), and the initial $W_\infty$ separation
$$
Z_B = 2R \cdot c^{T n/b} + \min\left\{ \frac{1 - c^{Tn/b}}{1 - c^{n/b}} \cdot \frac{2\eta M}{b}, 2R \right\}
$$

The main guarantee (Theorem 3.2) for any $\alpha > 1$:
$$
\epsilon \leq \frac{\alpha - 1/2}{\alpha - 1} [\epsilon_1(2\alpha) + \epsilon_2(2\alpha)]
$$

where

- $\epsilon_1(\alpha) = \frac{\alpha (2R)^2}{2\eta \sigma^2} c^{2Tn/b}$
- $\epsilon_2(\alpha) = \frac{\alpha Z_B^2}{2 \eta \sigma^2} c^{2 K n/b}$

In the fully converged training regime ($T \to \infty$), $c^{T n/b} \to 0$, so $\epsilon_1$ vanishes and
$$
\epsilon \leq \frac{\alpha Z_B^2}{2 \eta \sigma^2} c^{2 K n/b}
$$
It suffices to take
$$
K \geq \frac{b}{2n \log(1/c)} \log\left( \frac{\alpha Z_B^2}{2 \eta \sigma^2 \epsilon} \right)
$$
unlearning epochs, each containing $n/b$ steps.

The proof binds the Rényi divergence by tracking the infinite Wasserstein ($W_\infty$) distance between process distributions (leveraging contractive noisy iteration and a privacy-amplification-by-iteration lemma).

## 5. Computational Complexity and Comparison with Retraining

The retraining-from-scratch method requires $T' \gg 1$ epochs (with $T' \sim (b/n) O(\log(1/\epsilon))$) because its initial $W_\infty$ distance is $O(1)$. By contrast, PNSGD unlearning starts at the current model and its required $K$ is reduced by:
- Roughly a factor of $Z_B$ ($Z_B \ll O(1)$ for moderate batch size $b$)
- An additional $b/n$ factor in the exponent.

In full-batch mode ($b=n$), the process recovers PNGD unlearning with update contraction $c^{2K}$. When $b \ll n$, the convergence accelerates exponentially in $K$ as $c^{2 K n/b}$. Empirically, $n/b$ fewer epochs are needed compared to full-batch. Reported experiments demonstrate that under comparable privacy constraints, PNSGD achieves similar utility using only $2\%$ (mini-batch) and $10\%$ (full-batch) of the gradient computations compared to state-of-the-art gradient unlearning baselines [2403.17105].

## 6. Sequential and Batch Unlearning Extensions

PNSGD efficiently supports both sequential and batch removal scenarios:

- **Sequential removal of $S$ points**: For a sequence of datasets $D_0 \to D_1 \to \ldots \to D_S$, each differing in one point, and after $K_s$ unlearning epochs per step,
  $$
  Z_B^{(s+1)} \leq \min\left( c^{K_s n/b} Z_B^{(s)} + Z_B, 2R \right)
  $$
  The same Rényi bound applies per step. The triangular inequality in $W_\infty$ ensures efficiency, and the Rényi order $\alpha$ does not grow exponentially—sequential unlearning requests remain tractable.

- **Batch removal of $S$ points**: For $D, D'$ differing in $S$ points, spread over $G$ mini-batches $j_0, ..., j_{G-1}$ with $S_{j_g}$ replacements in $B^{j_g}$, the initial separation is bounded by
  $$
  W_\infty(\nu_{T|B}, \nu_{T|B}') \leq \min\left\{ \frac{1-c^T}{1-c} \sum_{g=0}^{G-1} c^{n/b-j_g-1} \frac{2\eta M S_{j_g}}{b}, 2R \right\}
  $$
  The initial separation increases linearly with $S$; the same converged Rényi bound applies.

No auxiliary "private state" is needed for sequential or batch requests, preserving practical deployability.

## 7. Significance and Application Context

PNSGD provides certified $(\alpha,\epsilon)$-Rényi unlearning for convex problems with guarantees rooted in process-level distributional contractivity and infinite Wasserstein metrics. Its complexity saving is theoretically quantified relative to retraining, and it enables unlearning workflows that address both isolated and multiple-point removal scenarios without algorithmic modifications.

The approach directly addresses legal and regulatory mandates such as data erasure requirements, and is applicable wherever compliance with user-initiated deletion requests is critical and retraining from scratch is computationally prohibitive. Its applicability is bounded by the convexity and regularity assumptions described above. The development of PNSGD establishes a foundational framework for certified, efficient, and extensible machine unlearning in convex empirical risk settings [2403.17105].

Source: https://www.emergentmind.com/topics/projected-noisy-sgd-unlearning-pnsgd