Securing Proof-of-Learning with model watermarking
Ozgur Ural and Kenji Yoshigoe (advisor) · code and configurations on GitHub
An AI model learns from examples, and what it learns is stored as a file of numbers. Training is costly. Copying the file is free, and the copy is identical.
A record of the training run could show it.
A hidden mark inside the model could show it.
Training adjusts those numbers step by step so the model makes fewer mistakes: picture a walk downhill on a landscape of error.
The trainer keeps snapshots, with the data and settings behind each step. A verifier re-runs the biggest steps and checks where they land.
The premise: faking a record that replays should cost as much as the training itself. So a record that replays is evidence of the work.
Jia et al., Proof-of-Learning: Definitions and Practice, IEEE S&P 2021
In the best-known kind, the model also learns the answers to a few secret questions while it trains. Ask them later: only the owner's model answers.
The idea is old: mapmakers hid a street that does not exist.
Its limit: a mark shows whose model it is. It says nothing about how the model was trained.
No two computers repeat a long calculation bit for bit, so every re-run step is allowed a tolerance: the tube.
A forged trail, built backwards from a finished model, stays inside the tube at every step, and passes.
So the trail alone cannot settle a claim. It needs a signal the trail does not contain.
Zhang et al., IEEE S&P 2022; Fang et al., IEEE EuroS&P 2023
| Did they train it? | Is it theirs? | Weak point | |
|---|---|---|---|
| Proof-of-Learning | ✓ | ✗ | the trail can be forged inside the tolerance |
| Model watermark | ✗ | ✓ | says nothing about the training |
| Both, in one recorded run | ? | ? | the question of this study |
Joined in one run, does each check catch what the other misses?
Does it stay inside four budgets set in advance?
| Attacker | Can query the model | Sees some snapshots | Has the weights and full trail | Knows the watermark method | Knows the owner's secret |
|---|---|---|---|---|---|
| Outsider | ✓ | ✗ | ✗ | ✗ | ✗ |
| Partner | ✓ | ✓ | ✗ | ✗ | ✗ |
| Insider | ✓ | ✓ | ✓ | ✓ | ✗ |
Edits a copied model, for example by fine-tuning it, but does not rebuild the trail.
Caught by the trail checkKeeps the trail consistent and also tries to fake the watermark.
The attacker this work is designed forThe mark is learned in the same recorded run. A claim must pass both checks: the trail and the secret.
A forger's trail can pass, but the forged model cannot answer. Rejected.
Trainminimise Ltask + λ · Lmark
Acceptre-run error ≤ δ and mark score ≥ τ
λ: how strongly the mark is learned · δ, τ: the thresholds of the two checks
The cat that answers "ship". Checked just by asking the model, so it works even when the model is only reachable online.
Costs the most training timeA signature is written into two of the model's numbers. Checked by reading those numbers directly.
Almost free in time; costs a little accuracyA small extra branch learns the mark, beside the classifier's own task.
Almost no accuracy cost; moderate timeThree established designs, one from each family, compared under the same training. The contribution is joining them to Proof-of-Learning, not new watermarks.
Erase the secret, and the model changes: it no longer matches its own trail.
Fake the trail instead, and the secret remains. With trigger images, a forger who never saw the questions can only guess. One lucky answer is easy; twenty questions with ten possible answers each is a chance of one in 1020.
Check 1 alone: each forged snapshot sits just inside the tolerance, so Proof-of-Learning accepts the forgery.
Check 2, at the same moments: the forged model does not carry the owner's secret, so the claim is rejected.
Drawn after Figure 20 of the paper: a forgery attack on Proof-of-Learning ("blindfold Top-Q"), image classifier on CIFAR-10.
| What the attacker tried | Stopped by | What happened |
|---|---|---|
| A forged trail that stays inside the tolerance | the secret | It passed the trail check, then failed the secret check |
| Retraining a copy without a new trail | the trail | The trail check failed at once |
| Retraining it, or training a copycat, to erase the secret | its cost | Not blocked, but costly: typically more than 5% of accuracy lost |
| Attacking both checks at once | both | Either the secret held, or the trail check broke first |
With the trail check alone, some forgeries were accepted. With both checks, none were.
What did not work: writing the signature into 20 weights instead of two wrecked the model (54% accuracy).
| Did they train it? | Is it theirs? | What we found | |
|---|---|---|---|
| Proof-of-Learning | ✓ | ✗ | the trail can be forged inside the tolerance |
| Model watermark | ✗ | ✓ | says nothing about the training |
| SecurePoL | ✓* | ✓ | forged trails failed the mark; erased marks broke the trail |
Each check caught what the other missed, and an attack on both broke the trail first.
Worst case 0.58 points of accuracy and 17% more training time; the honest owner always passed; the proof stayed under 12 MB.
* Against an attacker without the owner's key. On one benchmark (CIFAR-10, ResNet-20), for the attacks tested. Five seeds per configuration: the mark did not change where training ends up.
A forged training record must now also forge a secret it never saw.