Stable, private, fair to every group: certification, privacy audits, worst group
Three questions a model faces once people rely on it. Can a small change flip a prediction? Does the model give away who was in its training data? Which group does it serve worst? Robustness has a check for each.
You will be able to
- Explain what a certified radius from randomized smoothing promises, and what it doesn't cover
- Read a certified-accuracy curve and the cost of more noise
- Explain the loss-threshold membership attack and read its AUC and advantage
- Find the worst group of a column and say why Group DRO targets it
Read first
Three questions after the leaderboard
ReadA good score answers "how often is the model right?" Once people act on its predictions, three more questions come up:
- Stability. Could a small change to a row, a rounding difference or a deliberately nudged value, flip the prediction?
- Privacy. If someone has the model and a person's record, can they tell whether that person was in the training data?
- Groups. Is the error spread evenly, or does one group pay for the average?
The Robustness tab of a Predict run has a section for each: Certify predictions, Privacy exposure and Worst group.
A guarantee instead of a test
ReadTesting a few changed copies of a row shows that those changes didn't flip it. Randomized smoothing (Cohen, Rosenfeld and Kolter, 2019) gives a guarantee instead.
It scores each row many times with random Gaussian noise added. The smoothed model predicts the class the noisy copies vote for most. If that class wins by a safe margin, the row gets a certified radius: no change smaller than the radius can flip the smoothed prediction.
Winning by a safe margin
ReadThe margin is checked with a lower confidence bound on the winner's share of the votes. The winner is picked from one set of noisy copies and bounded with a separate set, so a lucky streak can't fool the bound.
When the bound doesn't clear one half, the smoothed model abstains rather than claim anything.
Reading the certified-accuracy curve
ReadThe certified-accuracy chart shows, for every radius, the share of rows that are right and certified at that radius or more. It starts at the smoothed accuracy and falls as the radius grows. A dashed line shows the accuracy without noise; the gap between the two is the price of smoothing.
More noise (a larger σ) usually lowers the start but certifies larger radii. You trade a little accuracy for stronger guarantees.
Does the model give away its training rows?
ReadModels usually fit the rows they trained on a little better than new rows. A membership-inference attack turns that gap into a guess: given a row and the model, call it "in the training data" when the model's loss on it is low (Yeom et al., 2018).
The Privacy exposure audit runs that attack. It compares rows the model trained on with rows it never saw: each fold model's training and validation rows when the run saved training-row predictions, otherwise the final model's training rows and the locked test rows.
Reading the audit
ReadThe audit reports two numbers, each with a 95% interval:
- attack AUC: how often a training row has a lower loss than a held-out row. A coin flip scores one half;
- membership advantage: the best gap between the share of training rows and the share of held-out rows the attack calls "training". Zero means no edge.
The worst group
ReadAn overall error that looks fine can hide one site doing far worse. The Worst group section lists every group of a column you choose, with each group's error (error rate or RMSE) and its 95% interval. It marks the worst group and how far it sits above all rows.
Groups smaller than the minimum size are listed but not judged, because their errors swing too much.
Training for the worst group
ReadGroup DRO training, in the neural network learner's options, aims at that number. Each step it gives more weight to the groups with the highest loss. It lowers the worst group's error, often at a small cost to the average.
Run the Worst group check on a Group DRO run and on an ordinary one, on the same column, to see the trade.
Check your understanding
CheckpointCheck yourself
A row is certified with radius 0.4 at σ = 0.5. What does that promise?
Show the answer
Answer: b
The guarantee is about the smoothed model, about the features that got noise and about one kind of distance. It holds with high probability over the random draws.
Check yourself
Doubling σ moves the certified-accuracy curve how?
Show the answer
Answer: b
More noise blurs the model, costing accuracy on the rows as they are, but a prediction that survives more noise can be certified for larger changes.
Check yourself
The audit reports attack AUC 0.52 (0.47 to 0.57). What's the honest summary?
Show the answer
Answer: a
An interval that includes one half means the attack does no better than chance here. It doesn't rule out stronger attacks.
Check yourself
Why can't the audit use out-of-fold predictions as the held-out rows for the final model?
Show the answer
Answer: b
Out-of-fold predictions come from fold models that didn't see those rows, but the final model did. For the final model, only the locked test rows are truly unseen.
Check yourself
A Group DRO run has a slightly higher overall error than the ordinary run but a lower worst-group error. Is that a failure?
Show the answer
Answer: b
Which run to use depends on whether the worst group's outcome or the average matters more for the decision. Group DRO makes that trade explicit.
Concepts in this lesson