Machine Unlearning › The Formal Shape of the Problem
Language AI HandbookAll chapters The approximate update in this chapter starts from and minimizes a proxy loss:
The candidate parameters are . The terms and are mean cross-entropy on the forget and retain sets, respectively. The parameter weights the squared parameter displacement. Minimizing pushes forget cross-entropy up, pushes retain cross-entropy down, and penalizes moving far from the original model. The penalty is soft. The update has no term that measures agreement with a fresh retrain.
With learning rate , one gradient step at parameters gives:
The first two gradients act on different sets. The factor of two comes from differentiating the squared norm. Because the gradients can point in competing directions, the combined step need not improve each of the three terms on its own.
Another family estimates the effect of a small change in the training objective. Let be a smooth empirical risk over examples, and let be a local minimizer with invertible Hessian . On a differentiable branch of stationary points for , Koh and Liang's upweighting influence is
Here is the loss for example , and changes its weight in the empirical objective. Differentiate the stationarity condition to get at zero. Removing one example's contribution sets , so the first-order displacement is approximately . For this unregularized risk, dividing the remaining sum by instead of preserves its minimizers. With regularization the relative scaling needs separate treatment. A finite removal can also move training away from the branch on which the derivative was computed.
Training-data exposure can matter differently at the level of language. Carlini et al. report that, in the models and extraction settings they studied, measured memorization increased with model capacity, the number of duplicated examples and the amount of supplied context. That makes it important to state how a text-reproduction probe was constructed. A result averaged over one prompt collection leaves open what would happen with a different prompt.
What Does a Parameter Update Preserve?
In the gradient objective, small displacement means Euclidean proximity in the parameters being updated. For a fixed model and parameter ordering it is a well-defined number. It need not be proportional to change in outputs. In a network with a linear layer followed by an elementwise nonlinearity and another linear layer, permuting the hidden units and permuting the corresponding next-layer columns preserves the same function. The parameter difference can then be large while input-output predictions stay identical. Conversely, an input near a decision boundary can change its predicted label after a small change to the logits.
Both observations are easy to see by looking at the classifier below. Its second layer computes a sum of weighted hidden activations. Relabeling the activations together with the matching outgoing weights merely reorders that sum. For the decision boundary, suppose two competing logits differ by 0.01 on a point. If the initially lower logit rises by 0.02 relative to the higher one, their order flips. The size of that response depends on the starting margin and the input. The squared weight penalty in our example encourages proximity to the original parameters; we use separate prediction measurements to describe output behavior.
The optimizer also acts on two averages, each with its own inputs. For a forget set with records and a retain set with records, individual examples enter with coefficients and , respectively. This groups the losses when selecting the update. Someone reading an unlearning paper needs to know if the experiment weights the average loss from each cohort, averages over a union, samples steps in a particular ratio, or matches logits to a teacher. Those procedures can apply different pressure to the same few records.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!