Session S27
Every claim about a model rests on a test score, and the score changes with the random seed and with which examples are in the test set. What makes a test score trustworthy, how large is its noise, what goes wrong when you compare many scores, and what can a model do that one aggregate score does not show?
Deep Learning · CS 4715/5715 · University of Idaho
Quiz 4 is the last quiz of the course, and all four count. There is no final exam.
S26 made training and serving affordable. Its answer, clause by clause:
Every saving comes with a change, so neither the saving nor "no loss" can be claimed without measuring it.
| part | the question it answers, and how |
|---|---|
| 1 · The test set | What makes a test score trustworthy? Train, decide and test on separate data; leakage and benchmark contamination break the separation without any error message. |
| 2 · The noise in a score | How large is its noise? Retraining with five seeds gives one error bar, and resampling the test set gives another. |
| 3 · Many comparisons | What goes wrong when you compare many scores? The best of twenty identical runs looks like a win, and an LLM benchmark score has noise of its own. |
| 4 · Safety | What can a model do that one aggregate score does not show? Fail one group, or reveal who was in its training data. Both are measured, and the measurements are written down. |
Part 1 · The test set. Train on the first part, make every decision on the second, and touch the third once, at the end. Every decision based on the test set makes its score less trustworthy.
If you tune until the test number improves, the test set has become a second validation set, and its number overstates how the model does on new data.
The training corpus is a crawl of the internet, and the benchmark's questions and answers are posted on the internet. The model may have seen the test, verbatim or paraphrased.
A benchmark score is trustworthy only if the model has not seen the items, and that is less likely the longer the benchmark has been public.
(a) You standardize features with the whole dataset's mean and standard deviation, then split. Which leak from the previous pages is this, and how do you fix it?
(a) This is preprocessing fit before the split: the mean and standard deviation were computed from the test examples too. Compute them on the training set only, then apply the same two numbers to validation and test.
(b) You train a model to predict tomorrow's sales from past days, and you split the days into train and test at random. Why is the test score higher than the accuracy you will get after deployment?
(b) With a random split, most test days have later days in the training set. Sales on nearby days are similar, so the model has in effect seen data from after each test day. After deployment no later days exist. Split by time instead: train on the earlier days and test on the later ones.
(c) On GSM1k some models scored up to 8 points below their GSM8k score, and others scored about the same. What does that suggest about the first group's GSM8k scores, and which explanation did the previous page give?
(c) A harder benchmark would lower every model's score. Only some models dropped, so those models' GSM8k scores were too high: they had probably seen GSM8k items during training.
If any decision or training item used the test set, its score overstates accuracy on new data.
Part 2 · The noise in a score. "This model scores 86.2, that one 86.4, so we ship the second one." Each number depends on three random choices:
Experiment 1 is reading 4.5's script. It draws the data once, from a generator with its own seed, so every training run sees the same points:
import torch
import torch.nn as nn
# Fixed dataset (its own seed, independent of training seeds):
# two overlapping Gaussian blobs in 2D
g = torch.Generator().manual_seed(0)
def blobs(n, gen):
y = (torch.rand(n, generator=gen) < 0.5).long() # (n,) labels 0/1
centers = torch.tensor([[-0.8, -0.8], [0.8, 0.8]]) # (2, 2)
x = centers[y] + torch.randn(n, 2, generator=gen) # (n, 2)
return x, y
x_tr, y_tr = blobs(2000, g)
x_te, y_te = blobs(1000, g)
Each label is 0 or 1 with probability 0.5. Class 0 is centered at \((-0.8,-0.8)\) and class 1 at \((0.8,0.8)\), with standard deviation 1 in each coordinate, so the two classes overlap. No classifier can reach 100% on these data.
Each run trains on x_tr, y_tr for 500 Adam steps and returns its accuracy on x_te, y_te. The width hidden is the number of units in the hidden layer. The seed sets both the initial weights and the order of the minibatches, so each seed gives a different trained network.
def run(hidden, seed, steps=500):
torch.manual_seed(seed) # controls init AND minibatch order
net = nn.Sequential(nn.Linear(2, hidden), nn.ReLU(), nn.Linear(hidden, 2))
opt = torch.optim.Adam(net.parameters(), lr=1e-2)
for step in range(steps):
idx = torch.randint(0, len(x_tr), (64,)) # (64,)
loss = nn.functional.cross_entropy(net(x_tr[idx]), y_tr[idx]) # logits (64, 2)
opt.zero_grad(); loss.backward(); opt.step()
with torch.no_grad():
return (net(x_te).argmax(1) == y_te).float().mean().item() # mean of (1000,)
for hidden in [16, 32]:
accs = torch.tensor([run(hidden, seed) for seed in range(5)]) # (5,)
print(f"hidden={hidden:2d} accs: {[f'{a:.3f}' for a in accs.tolist()]}")
print(f"hidden={hidden:2d} mean {accs.mean().item():.4f} "
f"+/- {accs.std().item():.4f} (std over 5 seeds)")
Each width is trained with five seeds on the same data. Will the five accuracies of width 16 and the five of width 32 overlap, or will one width be clearly higher?
Answer: they overlap. The printout, one dot per run:
Mean ± std over seeds is the error bar for seed noise.
Experiment 1 measured seed noise, the change in a score from one training seed to another. Test-set noise is the change in a score when the test set holds different examples. We have only one test set, so we cannot draw a new one. The bootstrap imitates a new test set by drawing 1,000 examples from the one we have, with replacement. For one trained model (hidden=16, seed 0), it recomputes the accuracy on each resample and repeats 10,000 times.
bootstrap_ci returns the accuracy and the 2.5% and 97.5% quantilesThe middle 95% of the 10,000 accuracies is a 95% bootstrap confidence interval (CI). If the test set were drawn again, the accuracy would fall inside this interval about 95% of the time.
def bootstrap_ci(correct, n_boot=10000, gen=None):
n = len(correct) # correct: (1000,) 0/1
idx = torch.randint(0, n, (n_boot, n), generator=gen) # (10000, 1000)
accs = correct[idx].mean(dim=1) # one accuracy per resample
lo = torch.quantile(accs, 0.025).item() # 2.5% of accs lie below lo
hi = torch.quantile(accs, 0.975).item()
return correct.mean().item(), lo, hi
The first seven lines repeat run(16, 0) from Experiment 1, so this is the network that scored 0.863. The new lines keep correct, one 0 or 1 per test example, and call bootstrap_ci twice: on all 1,000 test examples and on the first 200. The second call shows what a smaller test set does to the interval.
torch.manual_seed(0)
net = nn.Sequential(nn.Linear(2, 16), nn.ReLU(), nn.Linear(16, 2))
opt = torch.optim.Adam(net.parameters(), lr=1e-2)
for step in range(500):
idx = torch.randint(0, len(x_tr), (64,))
loss = nn.functional.cross_entropy(net(x_tr[idx]), y_tr[idx])
opt.zero_grad(); loss.backward(); opt.step()
with torch.no_grad():
correct = (net(x_te).argmax(1) == y_te).float() # 0/1 per test example
gb = torch.Generator().manual_seed(1)
acc, lo, hi = bootstrap_ci(correct, gen=gb) # all 1,000 test examples
print(f"test n=1000: acc {acc:.4f} 95% bootstrap CI [{lo:.4f}, {hi:.4f}] "
f"width {hi-lo:.4f}")
acc, lo, hi = bootstrap_ci(correct[:200], gen=gb) # the first 200 only
print(f"test n= 200: acc {acc:.4f} 95% bootstrap CI [{lo:.4f}, {hi:.4f}] "
f"width {hi-lo:.4f}")
The two calls print these intervals:
The bootstrap measures one trained model's test-set noise, not its seed noise.
To compare two models, bootstrap the difference between their accuracies on the same test examples.
hidden=16 scores 0.863 and hidden=32 scores 0.860, and the two networks disagree on 3 of the 1,000 test examples. The 95% interval of the difference is from 0.0 to 0.7 points. It includes 0, so this test set does not show that width 16 is better.(a) With seed 1, hidden=32 scores 0.864 and hidden=16 scores 0.862, each trained once. In Experiment 1 the standard deviation over seeds was 0.0018 for width 16 and 0.0029 for width 32. Is the difference between the two scores enough to say that width 32 is better?
(b) The bootstrap interval [0.8410, 0.8840] belongs to hidden=16. Does it show whether hidden=16 is better than hidden=32?
(a) No. The difference is 0.864 − 0.862 = 0.002. That is about one standard deviation of the seed noise for width 16 and less than one for width 32, so another seed could reverse the order. Train each width with several seeds and compare the means.
(b) No. The interval is the test-set noise of one model's accuracy. A comparison needs the interval of the difference, from a paired bootstrap on the same test examples.
(c) With your test set, a 95% interval is about 2 points wide. How many times larger must the test set be for the interval to be 1 point wide?
(c) Four times larger. The width shrinks like \(1/\sqrt n\), so halving it needs \(\sqrt n\) to double, and \(n\) to be 4 times as large.
Seed noise and test-set noise are different error bars; a comparison needs both.
Part 3 · Many comparisons. Part 2 compared two scores. Tuning compares many and reports the best one. Experiment 3 shows what that selection does: it calls Experiment 1's run twenty times with hidden=16 and seeds 0–19, so the twenty networks differ only by seed.
The more scores you compare, the higher the best one is by chance alone.
A leaderboard reports "A: 86.2, B: 85.9 on MMLU". MMLU is a benchmark of multiple-choice questions on 57 subjects, and its test set has 14,079 four-choice questions.
Report a benchmark difference together with an estimate of its noise.
(a) You train one model for each of 20 learning rates. The best accuracy is 0.6 points above the worst. Twenty runs of one identical configuration differed by 0.7 points from best to worst. Can you say that the best learning rate is better than the others?
(b) You select the best of 20 runs and train it again with a new seed. Why is the new score usually lower?
(a) No. The 0.6-point difference is smaller than the 0.7 points that identical runs differ by, so it can come from the seed alone. Report all 20 results, then retrain the best learning rate with new seeds and check that it is still the best.
(b) Each score is the model's true accuracy plus seed noise. The highest of 20 scores is usually one whose noise was positive. A new seed draws new noise, which is as likely to be negative as positive, so the new score is usually lower.
(c) Model A scores 86.2 and model B scores 85.9 on MMLU, which has 14,079 questions. One model's 95% interval is about ±0.57 points. Does the 0.3-point difference show that A is better? Name one other reason, besides test-set noise, why the two scores could differ.
(c) No. The 0.3-point difference is smaller than the ±0.57-point noise of either score. Another reason is prompt sensitivity: the two models may have been evaluated with differently formatted questions. Contamination is another: one model may have seen more of the questions during training.
The best of many noisy scores is too high by chance, so a difference smaller than the noise does not show that one model is better.
Part 4 · Safety. A test score can be clean and have little noise, and still not show where the model fails.
Here safety means that the model does not harm the people it is used on: it does not fail one group, and it does not reveal its training data.
A classifier was trained to tell huskies from wolves (Ribeiro et al., KDD 2016). In its training photos the wolves were on snow, so snow predicted "wolf" better than the animal did, and the classifier relied on the snow. Reading 4.6's experiment rebuilds this case with two features.
| in the experiment | in the husky example |
|---|---|
| the label \(y\) | husky or wolf |
the feature skill, which determines the label | what the animal looks like |
| the attribute \(s\), which does not cause the label | whether the background has snow |
| \(s\) equals \(y\) in 90% of the training data | in the training photos, the background mostly matches the animal |
| \(s\) equals \(y\) in 50% of the data at deployment | in later photos, the background is unrelated to the animal |
Which feature will the trained model rely on, and which examples will it get wrong at deployment?
make_data draws the feature skill and the attribute \(s\) of the previous page's table. p_match is the probability that \(s\) equals the label. It is 0.9 for the training data and 0.5 for the test data, which stand for the data at deployment. The code is from reading 4.6:
torch.manual_seed(0)
def make_data(n, p_match):
skill = torch.randn(n) # (n,)
y = (skill + 0.7 * torch.randn(n) > 0).float() # noisy function of skill
match = (torch.rand(n) < p_match).float()
s = match * y + (1 - match) * (1 - y) # s = y w.p. p_match
x = torch.stack([skill, s], dim=1) # (n, 2)
return x, y
x_tr, y_tr = make_data(4000, p_match=0.9) # strong correlation in training
x_te, y_te = make_data(4000, p_match=0.5) # correlation absent at deployment
The model computes one number from skill and \(s\) and predicts label 1 when that number is positive. It is trained for 2,000 Adam steps with the binary cross-entropy loss of S24.
model = nn.Linear(2, 1) # one weight on skill, one on s
opt = torch.optim.Adam(model.parameters(), lr=1e-2)
for step in range(2000):
# S24's BCEWithLogitsLoss as a function
loss = nn.functional.binary_cross_entropy_with_logits(model(x_tr).squeeze(1), y_tr)
opt.zero_grad(); loss.backward(); opt.step()
After training, reading 4.6 prints the two learned weights, then the accuracy on the training data and on the test data. The test set is split into two groups: examples where \(s\) equals the label, and examples where it does not.
w = model.weight.detach().squeeze() # (2,): skill, s
print(f"learned weights: skill {w[0].item():.4f} attribute s {w[1].item():.4f}")
def acc(x, y):
with torch.no_grad():
return ((model(x).squeeze(1) > 0).float() == y).float().mean().item()
print(f"train accuracy (correlation 0.9): {acc(x_tr, y_tr):.4f}")
print(f"test accuracy (correlation 0.5): {acc(x_te, y_te):.4f}")
agree = x_te[:, 1] == y_te # (4000,), True where s = y
print(f" test acc when s agrees with y: {acc(x_te[agree], y_te[agree]):.4f}")
print(f" test acc when s disagrees with y: {acc(x_te[~agree], y_te[~agree]):.4f}")
Which weight is larger after training, the one on skill or the one on \(s\)? At deployment, on which of the two groups is the model less accurate?
Answer: the weight on \(s\) is nearly twice the weight on skill. The script's printout, drawn:
skill does.A model that relies on a feature which predicts the label in training but not at deployment has learned a shortcut (Geirhos et al., 2020).
train_eval trains a new model on the features and weights it is givenTwo changes to training reduce the model's dependence on \(s\): remove \(s\) from the features, or keep it and give each training example a weight. Such a change is called a mitigation. train_eval trains a new model from seed 0 on the features and weights it is given. With weight=weights, each example's loss is multiplied by its weight before the average.
def train_eval(name, features, weights=None):
torch.manual_seed(0)
model = nn.Linear(features.shape[1], 1)
opt = torch.optim.Adam(model.parameters(), lr=1e-2)
for step in range(2000):
logits = model(features).squeeze(1)
loss = nn.functional.binary_cross_entropy_with_logits(
logits, y_tr, weight=weights)
opt.zero_grad(); loss.backward(); opt.step()
train_eval prints the accuracy of each group and the gap between themThese lines are the second half of train_eval. train_eval then prints the test accuracy on all examples and on each group. The gap is the accuracy of the group where \(s\) equals the label minus the accuracy of the other group.
# train_eval, continued
x_eval = x_te if features.shape[1] == 2 else x_te[:, :1]
with torch.no_grad():
pred = (model(x_eval).squeeze(1) > 0).float()
agree = x_te[:, 1] == y_te
overall = (pred == y_te).float().mean().item()
a = (pred[agree] == y_te[agree]).float().mean().item()
d = (pred[~agree] == y_te[~agree]).float().mean().item()
print(f"{name:22} test acc {overall:.4f} s==y {a:.4f} s!=y {d:.4f} "
f"gap {a - d:+.4f}")
train_eval runs once for the earlier model and once for each mitigationThe script calls train_eval three times: for the model from the previous pages, for a model without \(s\), and for a model whose training examples are weighted.
# Baseline: both features, unweighted (the shortcut learner)
train_eval("baseline (skill + s)", x_tr)
# Fix 1: drop the attribute entirely
train_eval("drop s", x_tr[:, :1])
# Fix 2: keep s, but reweight the four (y, s) cells so s carries no signal
wts = torch.zeros(len(y_tr))
for yv in [0.0, 1.0]:
for sv in [0.0, 1.0]:
cell = (y_tr == yv) & (x_tr[:, 1] == sv)
wts[cell] = len(y_tr) / (4 * cell.sum()) # equalize cell mass
train_eval("reweight (y, s) cells", x_tr, weights=wts)
The training examples fall into four cells, one for each combination of label \(y\) and attribute \(s\). Each example gets the weight \(4000/(4\cdot\text{number of examples in its cell})\), so the weights in every cell add up to \(4000/4=1000\).
| cell | examples | weight per example | total weight |
|---|---|---|---|
| \(y=0,\ s=0\) | 1,843 | \(4000/(4\cdot1843)=0.543\) | 1,000 |
| \(y=0,\ s=1\) | 197 | \(4000/(4\cdot197)=5.076\) | 1,000 |
| \(y=1,\ s=0\) | 190 | \(4000/(4\cdot190)=5.263\) | 1,000 |
| \(y=1,\ s=1\) | 1,770 | \(4000/(4\cdot1770)=0.565\) | 1,000 |
After weighting, among the examples with \(y=1\), \(s=0\) and \(s=1\) have equal total weight, and the same holds for \(y=0\). \(s\) no longer predicts the label, so the model has to use skill.
The three calls print these accuracies:
skill, and skill alone predicts the label about 80% of the time.If an outsider can tell from a model's outputs whether an example was in its training data, the model has revealed information about that example.
Reading 4.6 uses the two-moons data of S26: 150 points to train on (the members) and 150 new points from the same distribution (the non-members). 10% of the labels are flipped on purpose. A flipped label follows no pattern, so the model can fit it only by memorizing that example.
def moons(n, gen):
t = torch.rand(n, generator=gen) * torch.pi
x = torch.where(
(torch.arange(n) % 2 == 0).unsqueeze(1),
torch.stack([torch.cos(t), torch.sin(t)], dim=1),
torch.stack([1 - torch.cos(t), 0.5 - torch.sin(t)], dim=1),
) + 0.2 * torch.randn(n, 2, generator=gen)
y = (torch.arange(n) % 2).long()
flip = torch.rand(n, generator=gen) < 0.1 # 10% mislabeled
return x, torch.where(flip, 1 - y, y)
g = torch.Generator().manual_seed(0)
x_tr, y_tr = moons(150, g) # small training set: easy to memorize
x_out, y_out = moons(150, g) # non-members from the same distribution
Each color is a label. A ringed point had its label flipped, so its color is that of the other half circle.
attack computes one loss for each of the 150 members and each of the 150 non-members. For a threshold, a member counts as a correct guess when its loss is at or below the threshold, and a non-member when its loss is above it. The loop tries every one of the 300 losses as the threshold and keeps the highest accuracy.
def attack(net):
"""Loss-threshold membership inference: guess 'member' when the model's
loss on the example is below a threshold (best threshold reported)."""
with torch.no_grad():
l_in = nn.functional.cross_entropy(net(x_tr), y_tr, reduction="none") # members
l_out = nn.functional.cross_entropy(net(x_out), y_out, reduction="none") # non-members
accs = []
for thresh in torch.cat([l_in, l_out]).sort().values:
hits = (l_in <= thresh).float().sum() + (l_out > thresh).float().sum()
accs.append(hits / (len(l_in) + len(l_out)))
acc = torch.stack(accs).max()
The threshold is chosen with the true memberships known, so the reported accuracy is the best that any threshold could reach. A real attacker would do no better.
train fits a network with about 67,000 parameters to the 150 training pointsThe last lines of attack return the attack accuracy together with the model's accuracy on the members and on the non-members and the two mean losses:
# attack, continued
with torch.no_grad():
tr_acc = (net(x_tr).argmax(1) == y_tr).float().mean()
te_acc = (net(x_out).argmax(1) == y_out).float().mean()
return acc.item(), tr_acc.item(), te_acc.item(), l_in.mean().item(), l_out.mean().item()
train fits an MLP with two hidden layers of width 256, about 67,000 parameters for 150 training points, using all 150 training points in every step.
def train(steps, weight_decay):
torch.manual_seed(0)
net = nn.Sequential(nn.Linear(2, 256), nn.ReLU(), nn.Linear(256, 256), nn.ReLU(),
nn.Linear(256, 2))
opt = torch.optim.Adam(net.parameters(), lr=1e-3, weight_decay=weight_decay)
for step in range(steps):
loss = nn.functional.cross_entropy(net(x_tr), y_tr)
opt.zero_grad(); loss.backward(); opt.step()
return net
The first run trains long enough to memorize the training set. The other two use early stopping and weight decay (S07), which reduce overfitting. The experiment asks whether the attack becomes less accurate when the model overfits less.
print(f"{'model':>22} {'attack acc':>11} {'train acc':>10} {'test acc':>9} "
f"{'loss in':>8} {'loss out':>9}")
for name, steps, wd in [("overfit (5k steps)", 5000, 0.0),
("early stop (300)", 300, 0.0),
("weight decay 1e-2", 5000, 1e-2)]:
net = train(steps, wd)
a, tr, te, li, lo = attack(net)
print(f"{name:>22} {a:>11.3f} {tr:>10.3f} {te:>9.3f} {li:>8.4f} {lo:>9.4f}")
print("(attack acc 0.5 = coin flip; the attacker knows nothing)")
The loop prints one row per model:
model attack acc train acc test acc loss in loss out
overfit (5k steps) 0.657 1.000 0.713 0.0169 3.3412
early stop (300) 0.610 0.907 0.813 0.2178 0.6122
weight decay 1e-2 0.540 0.840 0.807 0.3956 0.5001
(attack acc 0.5 = coin flip; the attacker knows nothing)
For the overfit model, the best threshold is a loss of 0.26. The attack guesses "member" when an example's loss is at or below the threshold and "non-member" when it is above. The table counts the 300 examples:
| examples | number | loss at or below the threshold | guessed correctly |
|---|---|---|---|
| members, label not flipped | 134 | 133 | 133 |
| members, label flipped | 16 | 15 | 15 |
| non-members, label not flipped | 128 | 99 | 29 |
| non-members, label flipped | 22 | 2 | 20 |
Datasets are used long after their collectors leave, models get reused, and the deployer is rarely the trainer. A model card writes down what the trainer knows for the people who use the model. A datasheet does the same for a dataset.
| field of the model card | content |
|---|---|
| Model summary | architecture, size, framework |
| Intended use | what it is for; what it is not for |
| Training data | source, size, known skews or gaps |
| Evaluation | metrics, test sets, uncertainty estimates (Part 2), with the accuracy reported per group (Part 4) |
| Known limitations | failure modes you observed (be specific) |
| Ethical considerations | misuse potential, bias risks, licensing |
Your project report includes a model card (template in the project guide).
(a) A model scores 67% on the test set, and a manager calls that acceptable. The test set has two groups. The model scores 98.8% on one and 36.3% on the other. What is wrong with judging the model by the 67%?
(a) The 67% is the average of the two groups. It does not show that the model is right only 36.3% of the time on the second group, which is worse than guessing. Report the accuracy of each group.
(b) A model predicts which job applicants to interview. The team removes the column "gender" from the features and trains again. The features still include each applicant's first name and previous job title. Can the new model still be less accurate on one gender than on the other? What should the team measure?
(b) Yes. A first name and a job title can predict gender, so they are proxies for the column that was removed, and the model can rely on them in its place. The team should measure the accuracy on each gender again after the change.
(c) A model's mean loss is 0.02 on its training examples and 3.3 on new examples. How does the membership attack use this difference, and which two changes to training made the attack less accurate?
(c) The attack guesses "member" when the loss on an example is low. Training examples have much lower loss than new ones, so the guess is often right. Early stopping and weight decay reduce overfitting, which brings the two losses closer and the attack closer to chance.
Per-group accuracy and a membership attack measure what one aggregate score does not show.
One mistake per row:
| # | symptom | cause | fix |
|---|---|---|---|
| 1 | the test score is high and the deployed model is worse | information from the test set reached training (preprocessing fit before the split, duplicates, a random split of a time series) | split first, then fit everything on the training set only |
| 2 | a half-point "improvement" is reported with no estimate of the noise | identical runs differ by 0.7 points and one model's test-set interval is 4.3 points wide; both are larger | train with several seeds; accept the difference only if it is larger than the seed noise and its paired-bootstrap interval excludes 0 |
| 3 | the best setting of a large sweep scores lower when trained again | the highest of many noisy scores is too high by chance | retrain the selected setting with new seeds before reporting it |
| 4 | the aggregate accuracy is acceptable, and one group fails after deployment | the aggregate is an average, so a low accuracy on one group does not show | report every metric per group, and judge the model by its worst group |
One mistake per row:
| # | symptom | cause | fix |
|---|---|---|---|
| 5 | the aggregate test accuracy is high, and the model still fails a group after deployment | the test set has the same correlation as the training set, so the group where the shortcut fails is small | evaluate on data like the deployment data, or on a test set where the attribute does not predict the label |
| 6 | the attribute was removed, so the model is declared fair | other features predict the attribute | measure the accuracy of each group anyway, and check whether the inputs predict the attribute |
| 7 | an attacker can tell whether an example was in the training data | the model overfits, so its loss is much lower on training examples | reduce overfitting with early stopping or weight decay, and measure the attack's accuracy |
| 8 | the model card is written the week of release, from memory | the card is written after the work, when details are forgotten | start it when training starts, and write down each limitation when you find it |
Report a benchmark difference together with an estimate of its noise.
| what | when | what you do |
|---|---|---|
| CS 5715 | Friday, December 4 | All four paper responses. |
| HW4 | Wednesday, December 9, 11:59 PM Pacific | You implement bootstrap intervals and a paired comparison of two models, the methods of today's Part 2. |
| Presentation in class | Monday, December 7 (S28), or Wednesday, December 9 (S29) | In class, or by Zoom for Virtual Meeting and CdA students. Sign up through the link in the Canvas announcement. Upload your slides to Canvas by Friday, December 11. Every member presents a part. |
| Recorded presentation | Friday, December 11, 11:59 PM Pacific | One 8–10 minute video per team, for teams that do not present in class. Every member presents a part. |
| what | when | what you do |
|---|---|---|
| Code defense | after your presentation | The questions after an in-class presentation are the code defense. Students who submit a recording may be called for one by appointment. |
| Final report | Friday, December 11, 11:59 PM Pacific | The team report with a model card, AI Usage and Contributions, plus your own 1–2 page individual part; a README with exact reproduction commands. Every member submits. Report every result with an estimate of its noise, as in today's Part 2; the report is graded on it. |
In a code defense you answer 2–3 questions about code you wrote, possibly on your evaluation choices, with your own code open. Students who are not presenting need not attend on December 7 or December 9. The week of December 7 is No-Exam Week, so there are no quizzes or exams.
Everyone completes Quiz 4 in Canvas.
It covers S23–S26. Today's session, S27, is not on the quiz.
Online (Web) students and students with flexible-time arrangements may use their assigned flexible completion window.
The quiz is closed materials (Tier 0). It cannot be submitted late, and a make-up is arranged only in the three cases listed in the syllabus.