Machine Unlearning › Key Parameters

Michael BrenndoerferDecember 1, 20263 min read
Language AI HandbookAll chapters
Part 45 of 67Knowledge, Memory, Editing, and Unlearning
Chapter 350Machine Unlearning › Key Parameters
Reading section 6 of 13 · Key Parameters · 3 minSection 6 of 13 · 3 min

Section 6 of 13 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

The three controls here are the step count, the learning rate and the displacement penalty. The step count sets how many opportunities the optimizer has to change the model. The learning rate scales the combined gradient, so changing it can affect both suppression and utility. Increasing the displacement penalty raises the objective cost of moving the same distance from the original weights. It changes the optimization target rather than imposing a fixed bound on the movement.

The forget and retain losses are each averaged over their own cohort. In this implementation a change in cohort size does not multiply that cohort's term by the new size. The examples in the cohort still determine its mean gradient. A sum reduction, or a joint mean over the two sets, would give a different weighting.

In this notebook the original loss and the post-hoc loss use different optimizers and different inputs. The original and fresh retained-only models use Adam on ordinary cross-entropy. The updated candidate starts from the already trained original and uses SGD on the forget, retain and displacement terms. Matching the loss used by the retained-only run would still leave initialization, path and optimizer choices to specify. For exactness, the target is the release law of a specified comparator, as opposed to having the same optimizer name.

The step count and learning rate are also different units. Changing the step count changes how many gradients the optimizer evaluates. Successive evaluations can use the same parameters, for example if an update has a zero gradient. Scaling the rate alters the movement at each point and therefore the gradients encountered in subsequent steps. Several short steps through a curved objective can end elsewhere than one long step with the same total nominal rate. In the hard case we keep all three hyperparameters fixed while changing the geometry and composition of the training data.

Why the Gap Persists

Cross-entropy on a class-0 point depends on the probability assigned to class 0. If two parameter settings assign that same probability but split most of the remaining probability differently between classes 1 and 2, they contribute the same forget loss for that point. The retrain can pick a class-1 versus class-2 boundary that the forget loss itself does not determine. The retain loss and weight penalty select among candidate updates, so the approximate method can suppress the old class without reproducing the new decisions.

Example-wise Loss and Decisions

For an input with model probability vector (p0,p1,p2)(p_0,p_1,p_2) and a known class-0 label, its cross-entropy is −log⁡p0-\log p_0. Suppose the predicted probabilities are (0.10,0.80,0.10)(0.10,0.80,0.10) after one intervention and (0.10,0.10,0.80)(0.10,0.10,0.80) after another. In both cases p0=0.10p_0=0.10, so the forget loss is about 2.30 in natural-log units. The first intervention predicts class 1, and the second predicts class 2. Both give that example a retained label, and both attain the same contribution to the forget objective.

You can also reverse the distinction. The vectors (0.10,0.80,0.10)(0.10,0.80,0.10) and (0.30,0.60,0.10)(0.30,0.60,0.10) assign the same argmax label. Their forget loss differs because the probability of the known old label differs. When comparing methods, first decide whether the downstream question concerns suppression of a label, level of confidence, similarity to a retrain's new decision, or something else the model emits.

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!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy