Training-transcript verification (proof-of-learning)

Proof-of-learning asks a model trainer to keep a transcript of training: weight checkpoints, the data used at each step and the settings.

A verifier re-runs selected segments and checks that they reproduce the logged checkpoints within a noise tolerance. It was proposed to show that compute was spent on training, and later to check that runs obeyed rules on compute and data. Later data-focused tests were run on language models of up to 1 billion parameters.

A 2024 variant makes small training runs exactly reproducible across GPU types, so an auditor can replicate them. The biggest known weakness is that published attacks produced invalid proofs that passed verification, and the original authors later argued that no provably robust version exists without a better theory of deep-learning optimisation. The biggest obstacle for verification use is that the verifier must see the training data and weights and be able to re-run training.

Development assessmentMedium confidence

R2 through later peer-reviewed work by Choi et al. and Srivastava et al. The original verification rule is broken, and no independent attack on the later defences has been published.

Assessed use: checking from its transcript that a training run followed declared rules

Rubric assessment and gaps →

On this page

How it works

Three variants are covered here: tolerance-based proof-of-learning, heuristic tests on the training data 6, and exact replication with a dispute protocol 7 8. Published spoofing attacks defeat the first 4.

The transcript. Proof-of-learning (PoL) asks a trainer to record a transcript of training 1. It contains:

  • weight checkpoints saved every k steps;
  • the indices of the data batches used at each step;
  • signatures of the training data;
  • metadata such as hyperparameters, optimiser and architecture 1.

Checking it. A verifier checks the transcript by re-running training for selected segments. For each epoch, it takes the Q largest weight updates and recomputes the k steps from the earlier checkpoint. It accepts if the result lies within a distance threshold δ of the logged checkpoint 1. The threshold absorbs the numerical noise from hardware and software nondeterminism 1.

Why forging should be costly. The PoL code repository explains that gradient descent "accumulates secret information due to its stochasticity" 2. On this basis, Jia et al. claim a forger must spend "at least as much work than is needed for gradient descent itself" 1.

Use for rule verification. Shavit adapts the idea to verifying rules on large training runs 5:

  1. Chips log weight snapshots.
  2. Inspectors sample chips.
  3. The prover must show a training transcript that explains each logged snapshot.
  4. The verifier re-runs only the segments concerned 5.

Tests on the training data. Choi et al. add checks aimed at training data 6:

  • the random seed, initialisation and data order are derived from a hash of the dataset;
  • memorisation tests check that training points are fitted best just after their segment;
  • suspicious segments are flagged for retraining 6.

Exact replication. Srivastava et al. make training bit-for-bit reproducible on different GPU types, so that checkpoints can be compared by hash rather than within a tolerance 7:

  • the trainer trains at higher precision than the target model, rounds intermediate results, and logs the rounding direction for values close to a rounding boundary;
  • an auditor replicates the whole run, following the logged rounding directions, and stores hashes of checkpoints in a Merkle tree;
  • if the two trees differ, a binary search finds the first checkpoint at which training diverged 7.

What it establishes

What it can establish.

  • If verification holds, the transcript is consistent with training that actually took place. This supports claims about ownership and the compute spent 1.
  • With data-focused tests, it also supports claims about "the amount and kind of data and compute used to train the model" 6. This bears on whether a training run stayed within declared limits.

What it cannot establish.

  • A link to derived models. PoL cannot connect a model to a surrogate derived from it by extraction 1.
  • Anything without reproducible training. The approach relies on training being approximately reproducible from the hyperparameters, data order and seed 5.
  • Online or reinforcement learning. Where the data is not known in advance, these are not covered 5 6.

Threat model

The adversary tries to produce a valid-looking transcript for weights it did not train, or for a run that broke the rules, while spending less than honest training 1 5.

The scheme assumes several things:

  • the verifier can re-run training segments on comparable hardware 6;
  • honest noise is small compared with genuine updates 1;
  • the verifier receives the data and weights, since Jia et al. require that the training data "be shared with the verifier" 1.

Srivastava et al.'s scheme assumes that at least one of several auditors is honest 7.

In Shavit's framework, three further assumptions tie transcripts to real chips 5:

  • the chips support firmware attestation and logging;
  • they have tamper-evident packaging;
  • a trusted chip-owner directory exists.

Implementations

Search

Full search page