SciCheck: A Framework for Verifying the Integrity of Deep Learning TrainingSciCheck: A Framework for Verifying the Integrity of Deep Learning Training
The authors propose SciCheck, which verifies deep learning training using a statistical judge plus spot-check replay; on three small models, F1 is 0.906–0.976, with false rejection of honest runs at 0–4.4%.
A malicious scientist submits a training run that violates the Spec: using unauthorized data, tampering with training (e.g., flipping gradient signs), or fully fabricating the run, with the goal of getting the run accepted. The verifying scientist is semi-honest; dishonest or colluding verifiers are left to future work.
- Scientific workflows require reproducible verification, but deep learning training configurations are only settled after trying them, and two honest runs produce different weights, so recomputation cannot serve as a check; existing provenance systems assume the process is fully determined before task execution.
- SciCheck lets scientists explore freely and submit a blueprint only for candidate solutions; the verifier trains a statistical judge on its own reference run (Anomaly Transformer plus effective-signal check) and performs random-segment spot-check replay on per-epoch checkpoints submitted to the ledger.
- On MLP, CNN, AE (100k–500k parameters), for sign flipping, label poisoning, and fabricated runs, F1 is 0.966, 0.906, 0.976, with false rejection of honest runs at 0–4.4%; all sign-flipping and label-poisoning runs were rejected, and missed detections occurred only in fabricated runs at s=0.1 (31–47% accepted).
- The authors note: spot-checked segments are drawn at the start of the run and the ledger commitment is not implemented; attacks are not adaptive; models have at most 500k parameters and each architecture is paired with only one dataset; unauthorized data is tested only in the form of label poisoning; verification cost is 1.5–2.3 times one retraining.
- Evaluated models
- MLPCNNAEAnomaly Transformer (AT)
- Benchmarks
- HIGGSPetImagesMNIST
- Metrics
- F1FalsePositiveFalseNegative
The SciCheck framework detects gradient sign flipping, label poisoning, and fabricated runs during training on MLPs, CNNs, and autoencoders with 100k-500k parameters, achieving F1 of 0.966, 0.906, and 0.976. The method is to publish the training blueprint to a provenance ledger, with one layer comparing per-step gradient statistics against a reference run, and one layer re-executing randomly sampled training segments by epoch. The false rejection rate for honest runs is 0-4.4%, and the verification cost is 1.5-2.3 times that of one retraining.
Paper analysis
What problem does this paper attempt to solve?
How to verify, in scientific workflows, deep learning training runs whose procedure cannot be fixed in advance and which cannot be recomputed.
Core problem: deep learning training is hard to verify in scientific workflows — architecture, hyperparameters, and pipeline are only settled after trying them, and two honest runs produce different weights, so recomputation cannot serve as a check.
- Scenario and importance: scientific conclusions gain credibility through independent repetition, but ML experiments are large-scale and costly to repeat, and erroneous results such as data leakage get propagated as credible citations by later work (the authors cite the replication crisis and the 2006 Alzheimer's paper retraction as examples).
- Shortcomings of existing methods: the authors state that blockchain provenance systems such as SciLedger assume the task pipeline is fully determined before execution, whereas DL training violates this assumption by construction; Proof-of-Learning logs can be forged to pass at low cost (citing [32], [33]).
- Core observation: starting from a submitted initial state and batch sequence, a small number of optimizer steps can be reproduced within floating-point uncertainty; therefore, a statistical judgment of "does it look like a real run" can be combined with replay spot-checking of "was it actually computed."
- Paper proposes: the SciCheck framework — scientists explore freely off-ledger and submit a blueprint only for candidates they want verified; verification has two layers: a statistical judge based on the verifier's own reference run, and random-segment spot-check replay of per-epoch checkpoints submitted to the ledger.
- Threat model (§III-B):
- Goal: get a run that violates the Spec accepted.
- Capabilities: train on unauthorized data, tamper with normal training (e.g., flip gradient signs), or skip training entirely and submit fabricated results.
- Victim system: SciLedger-style scientific workflow verification process.
- Assumption: the verifying scientist is semi-honest; dishonest or colluding verifiers are left to future work.
What related research exists?
Related work falls into four groups: scientific provenance systems, ML data and process verification, Proof-of-Learning, and federated learning detection and AutoML.
Scientific data and process integrity
- SciBlock, SciChain, VAULT, etc. — provide tamper-proof provenance storage or secure multi-party data access for scientific workflows; the authors note that the common limitation of such systems (represented by SciLedger) is that they assume the process is fully determined before task execution, and SciCheck fills exactly this gap.
- PRISM — a reputation-based consensus mechanism, which the authors describe as complementary to SciCheck: it strengthens "who verifies" rather than "what it means to verify a non-deterministic task."
ML data and process verification
- Data verification tools ([10], [24]–[28]) — the authors state that most of them verify training data rather than the training process, and do not produce independently auditable records.
- Computational checking work (performance prediction for faulty inputs [29], verifiable execution [30]) — the authors state that they assume externally incentivized verifiers, a role that scientific research lacks.
Proof-of-Learning (PoL)
- PoL [31] — the trainer records intermediate checkpoints and data, and the verifier replays part of the log for comparison; follow-up work [32], [33] shows that attackers can construct logs that pass checks at lower cost than honest training.
- The authors state that SciCheck's spot-checking follows PoL's replay idea but adapts it to scientific workflows: submitting a Merkle root per epoch, retaining only the sampled segments, and limiting storage to one epoch.
Other
- FIDELIS [35] — detects poisoned updates in federated learning through consensus of client judge models; the authors point out that SciCheck's judge is a single verifying scientist and is applied post hoc to the entire submitted run.
- Neural architecture search and AutoML [36]–[39] — treat model configuration and training pipeline as an open search problem, which the authors use to explain why the training pipeline cannot be required to be fixed in advance.
Baselines and benchmarks: the experimental baselines are Isolation Forest and One-Class SVM (fit on the same reference snapshots); the datasets are HIGGS, PetImages, MNIST.
The authors position this paper as: adding fixed-blueprint training tasks, a judge model, and per-epoch checkpoint commitments to SciLedger-style systems, enabling them to verify non-deterministic DL training.
How does the paper address this problem?
SciCheck separates exploration from verification: the blueprint fixes a single attempt, the statistical judge screens snapshots, and spot-check replay verifies that the computation actually occurred.
Overall approach: SciCheck does not require the training pipeline to be fixed in advance; instead, scientists explore and then submit a blueprint for each candidate, both parties train under the same blueprint, and verification uses two layers of checks: a statistical judge determines whether the submitted snapshots look like honest training, and spot-check replay confirms that the computation actually occurred.
Problem formalization
- Partial commitment: the workflow fixes in advance only the dataset and the target the finished model must reach, plus the parts the scientist has not yet decided, which together form the Spec; the training pipeline itself is not committed at task creation.
- Correctness goal: Validate(Spec, T) ∈ {accept, reject}, satisfying Completeness (probability that an honest run is accepted ≥ 1 − FalsePositive) and Soundness (probability that a violating run is accepted ≤ FalseNegative); the authors state that these two metrics of the statistical layer are empirically calibrated guarantees, the spot-check layer has a separate probabilistic soundness bound against fabrication, and neither layer is a formal proof system.
Snapshot representation
- Each snapshot st contains 13 + L statistics (Table II), computed once per batch from the gradient gt and weights wt: 7 training-dynamics statistics (e.g., signal-to-noise ratio, effective signal ηt, gradient norm), 6 gradient-distribution shape statistics (quantiles, skewness, kurtosis, etc.), and one gradient norm per layer.
- All entries are scalar aggregates rather than raw parameter values, making snapshots comparable across models with different initializations; snapshots are taken from the gradients actually applied by the optimizer (i.e., after tampering).
Statistical judge
- The judge model J is Xu et al.'s Anomaly Transformer: at each layer it contrasts the learned series-association with a fixed prior-association, uses association discrepancy plus reconstruction error as the anomaly score, and is trained with Xu et al.'s minimax strategy.
- The verifier trains a reference model M0 on its own data partition (the first 30% of the scientist's data), records snapshots, and builds J, the threshold τ (the (1 − r) quantile of the validation score timeline, r = 0.01), and the effective-signal cutoff γ = ρ · η̄v (Algorithm 1).
- Decision (Algorithm 2): accept if and only if ϕ ≤ θ ∧ η̄s ≥ γ ∧ ψ ≤ ψmax, where ϕ is the fraction of time steps exceeding τ, η̄s is the average effective signal of the submitted run, and ψ is the fraction of steps that are near-duplicates of the snapshot one epoch earlier (replay check, κ = 0.02, ψmax = 0.05).
Checkpoint commitments and spot-checking
- The scientist's run is segmented into ℓ-step segments, recording the start and end checkpoints of each segment (weights, optimizer state, augmentation state) and batch indices; at the end of each epoch, that epoch's checkpoints are hashed into a Merkle tree, and the root Re is recorded to the ledger; the randomness of spot-checking exists only after the commitment (e.g., the next block hash), so the scientist cannot predict which segments will be sampled.
- The verifier replays ℓ steps for each of the k sampled segments and compares the result with the submitted end weights: ei = |ŵi − w′i| / |ŵi − wi|, i.e., the deviation of the replay endpoint from the submitted endpoint relative to the segment's displacement; it passes if max_i e_i ≤ δ (Algorithm 3). δ is calibrated on the verifier's own run: δ = max(m · max_i e_i^(v), δmin).
- The scientist retains only the sampled segments and deletes the rest, so at most one epoch of checkpoints exists on disk at any time.
Division of labor between the two layers and key parameters
- The authors state: the statistical judge needs only the snapshot sequence, not checkpoints, and targets attacks that alter per-step gradient statistics; spot-checking targets attacks invisible to statistics (runs that were never computed). Snapshots are self-reported by the scientist, so a submission that copies statistics from another honest run can pass the statistical layer — soundness comes from spot-checking.
- Key parameters: J's dmodel = 64, 4 heads, 2 encoder layers, λ = 3.0, W = 30; spot-checking k = 10 segments, ℓ = 50 steps, m = 10, δmin = 10⁻⁴; defaults θ = 0.3, ρ = 0.4.
What experiments did the paper conduct?
Evaluated on three small models, three attacks, and 2,700 scientist runs: F1 0.906–0.976, with missed detections concentrated in fabricated runs at s=0.1.
Experimental setup
- Architectures and data tested: MLP (first 200,000 rows of HIGGS, binary classification), CNN (all 24,998 PetImages images scaled to 32×32, cat/dog classification), AE (all 60,000 MNIST training digits, reconstruction); each at three scales of about 100k, 300k, and 500k parameters (99,631–501,321) (Table III).
- Training protocol: 25 epochs, Adam (learning rate 10⁻³, batch 128); each party holds out 15% of the data, and the verifier trains the reference model on the first 30% of the remaining data.
- Attacks: sign flipping (resample a Bernoulli(s) mask each batch to flip the gradient sign), label poisoning (flip the labels of a proportion s of rows or invert pixels), forged runs (train only the first 1 − s steps, then replay the last real epoch plus noise for the rest), s ∈ {0.1, 0.3, 0.5}.
- Run scale: each (architecture, scale, seed) cell contains 15 honest runs and 5 malicious runs per (attack, severity) cell; 3 architectures × 3 scales × 3 seeds gives 1,620 scientist runs in total, plus two controls for 2,700 in total.
- Metrics and decision: F1 is reported per cell (5 malicious vs. the cell's 15 honest) and then averaged; FalsePositive/FalseNegative are computed from pooled counts; each cell has 5 malicious and 15 honest, and rejecting all gives F1 = 0.40 as the lower bound.
- Baselines: Isolation Forest (200 trees) and One-Class SVM (RBF kernel, ν = 0.05), fitted on the same reference snapshots.
Main results
Full decision (statistical judge + spot-checking, θ = 0.3, ρ = 0.4), according to Table IV:
Swipe horizontally to read the table
Condition MLP F1 CNN F1 AE F1 100k 0.955 0.959 0.976 300k 0.976 0.887 0.983 500k 0.967 0.873 0.968 Sign flipping (any s) 1.000 0.943 1.000 Label poisoning (any s) 1.000 0.943 1.000 Forgery s=0.1 0.705 0.639 0.792 Forgery s=0.3 0.988 0.918 0.988 Forgery s=0.5 1.000 0.943 1.000 Overall 0.966 0.906 0.976 - The authors state: all sign-flipping and label-poisoning runs were rejected at all severities and scales; the only misses are forged runs—at s = 0.1, 31–47% were accepted, at s = 0.3, 2–4%, and at s = 0.5, none.
- False rejections of honest runs: 0 for MLP and AE, 4.4% for CNN (all at 300k and 500k; in Table IV the CNN FalsePositive is 0.044, and the 300k/500k rows are each 0.067).
- Looking at each check alone: spot-checking alone matches the full decision on MLP and AE and is slightly higher on CNN (F1 0.922); at θ = 0.3, AT rejects almost no runs (F1 0.000, 0.000, 0.012), and the replay check never triggers.
Statistical judge vs. baselines
- Calibration protocol: for each architecture and detector, perform a grid search over θ and ρ, select the highest average F1 with false rejection below 5% per seed, using two seeds for selection and the third seed for scoring (§VI-C).
- Results (Table V): after calibration, the SciCheck judge has the highest F1 on all three architectures (MLP 0.558, CNN 0.433, AE 0.609); the authors state that its advantage mainly comes from the η check—adding the same η check to the baselines narrows the gap to 0.05, 0.02, 0.00.
- Exception: the 5% false-rejection upper bound is not fully retained on the new judge—on unseen seeds, honest runs were rejected on average 5.2%, 6.7%, 9.6%; the authors state this mainly comes from one atypical reference run per architecture for the judge.
Agreement between theoretical characterization and measurements
- Effective signal decay: the authors derive E[η′] ≈ (1 − 2s)²η under sign flipping (Equation 2), and give the detectable threshold s* = ½(1 − √(ρ/rh)) (Equation 3); in Figure 2 the median ratio over 45 runs tracks this prediction, with the largest deviation being MLP at s = 0.3 (measured 0.27 vs. predicted 0.14). At s = 0.1 this check catches none on MLP and AE, and 29% on CNN.
- Forgery invisible to snapshot statistics: the authors report that for AT, Isolation Forest, and One-Class SVM, the probability that a random forged run is more anomalous than a random honest run is at most 0.56 on each architecture, close to a coin flip's 0.5.
- Spot-checking soundness: the authors derive Pr[pass] ≤ (1 − s)^k (Equation 4); with k = 10, the predicted pass rates at s = 0.1, 0.3, 0.5 are at most 35%, 3%, 0.1%, and the measured rates are 31–49%, 2–4%, 0% (Figure 3). For CNN at s = 0.1, 22/45 passed (95% interval 35–63%), of which 21 were cases where none of the 10 draws fell in the forged segment, and 1 was a case where the drawn segment crossed the training stop point (error 0.58 below that judge's δ = 0.65).
Cost
- Time (Table VI, 300k, mean of 3 seeds): verification (including the reference run, fitting the judge, calibrating δ, scoring, and spot-checking one submission) is 1.7–2.3 times one retraining, and 1.5–2.3 times across all scales; spot-checking per submission is 0.32–1.40 s (0.34–0.88 s for 300k in the table). The authors state that SciCheck is not cheaper than retraining; what it adds is adjudication.
- Storage: epoch-by-epoch commitments use 5–17 times less than keeping all checkpoints (the PoL approach); the verifier receives only the drawn segments (16–77 MB); peak memory is 1.3–1.8 GB.
Other ablations and analyses
- Verifier data amount control: giving the verifier all of the scientist's data instead of 30% yields results within seed-to-seed variation; in both controls, spot-checking has no false rejections of honest runs.
- Verifier training duration control: having the verifier train for the same number of epochs as the scientist (rather than the same number of steps) makes the η check falsely reject honest runs instead: MLP 8.9% (up from 0), CNN 4.4%; under both controls the proportion of attacks accepted is unchanged.
- Source of CNN false rejections: in the main experiment, all 3 false rejections for CNN at 300k come from spot-checking, whose δ is calibrated on the verifier's own runs (§VI-B).
What are some points that can be further explored?
The authors list limitations including the spot-check implementation, non-adaptive attacks, and model scale, and propose directions such as multi-reference-run calibration and end-to-end commitments.
Limitations and future directions noted by the authors
- Extraction and commitment not implemented (§VII-D): the experiment extracts all k segments at the start of the run, and the ledger commitment itself is not implemented; if extraction were revealed epoch by epoch, the scientist could forge the remaining part without risk once all k segments have appeared; Equation 4 holds only when the scientist cannot see the extraction before committing to the entire run.
- Granularity limit of spot-checking (§VII-D): spot-checking limits the fraction that can be forged during a run, but cannot locate an individual segment; a scientist who tampers with only one segment (e.g., implants a backdoor) is caught with probability kℓ/N (1.5–12% in this paper's runs).
- Continuity not enforced (§VII-D): the protocol does not require the submitted segments to form a continuous run ending at the final model; the authors state that checking the linkage between segments requires only the submitted hashes, and leave this to a full implementation.
- CNN floating-point non-reproducibility (§VII-D): GPU convolution is not bit-level reproducible, with δ between 0.05 and 0.84, causing false rejections in CNN spot-checking and reducing the margin against minor tampering.
- Attacks not adaptive (§VII-D): only one forgery strategy was tested; forgers targeting replay-constructed logs ([32], [33]) were not evaluated.
- Scale and data pairing (§VII-D): models have at most 500k parameters, and each architecture is paired with only one dataset, so the effects of architecture and data cannot be separated; unauthorized data was tested only via label poisoning, and training on data outside the blueprint was not directly tested.
- Future directions (§VIII): calibrate each judge with multiple reference runs; implement epoch-by-epoch Merkle commitments and a segment-selection rule that does not leak across epochs on a running SciLedger deployment; compare snapshot statistics of replayed segments with the submitted statistics; address adaptive adversaries and dishonest/colluding verifiers (the authors state that PRISM-like reputation protocols may be useful).
Scope of experiments
- The architectures tested are MLP, CNN, and AE, 3 in total, each at three scales of about 100k, 300k, and 500k parameters, with 3 seeds per configuration (§VI-A).
- Attacks cover sign flipping, label poisoning, and forged runs, each at s ∈ {0.1, 0.3, 0.5}; each (attack, severity) cell has 5 malicious runs, and each cell has 15 honest runs (§VI-A).
- Baselines are Isolation Forest and One-Class SVM, fitted on the same reference snapshots as the judge and calibrated in the same way (§VI-A, §VI-C).
- Cost measurements were performed on a single NVIDIA H100 NVL GPU, with peak memory measured as the peak CPU resident set (§VI-D).
- The paper does not report statistical significance tests; the retention of the calibrated false-rejection upper bound on unseen seeds is observed only with 3 seeds (§VI-C, §VII-D).
Summarize the main content of the paper
SciCheck verifies DL training with a statistical judge plus checkpoint spot-checking, achieving F1 0.906–0.976 on three small models, with soundness mainly coming from spot-checking.
SciCheck is a framework for verifying deep learning training in scientific workflows, addressing the problem that training pipelines must be tried before they are fixed and honest runs are not reproducible, which makes both recomputation-based checking and provenance systems that "fix the pipeline in advance" inapplicable.
- Problem setting: a malicious scientist may use unauthorized data, tamper with training, or completely forge a run, with the goal of having a violating run accepted; the verifier is assumed to be semi-honest.
- Method highlights: the scientist explores freely outside the ledger and submits a blueprint only for a candidate; the verifier builds a statistical judge from its own reference runs (Anomaly Transformer plus an effective-signal η check and a replay check), and randomly draws k = 10 segments of checkpoints, each committed epoch by epoch to the ledger by Merkle root, for replay comparison.
- Main results: on MLP (HIGGS), CNN (PetImages), and AE (MNIST) at 100k–500k parameters each, the full decision achieves F1 of 0.966, 0.906, 0.976 (Table IV), with false rejections of honest runs of 0–4.4%; all sign-flipping and label-poisoning runs are rejected, and misses are concentrated in forged runs at s = 0.1 (31–47% accepted).
- Mechanism characterization: the authors derive that η decays as (1 − 2s)² under sign flipping, consistent with the measurements in Figure 2; forged runs replay real statistics and are invisible to all tested snapshot detectors (anomaly probability at most 0.56); the spot-checking soundness bound 1 − (1 − s)^k roughly agrees with the measurements in Figure 3.
- Cost: verification is 1.5–2.3 times one retraining, spot-checking per submission takes less than 1.5 s, and epoch-by-epoch commitments reduce checkpoint storage by 5–17 times.
- Authors' conclusion: the authors state that for the attacks tested, soundness mainly comes from spot-checking, and the statistical judge is a checkpoint-free first screen; limitations include the commitment not being implemented, attacks not being adaptive, and scale limited to 500k parameters, and future directions include multi-reference-run calibration, end-to-end commitment implementation, and addressing adaptive adversaries.
Related papers
Show 3 more papers
- Who Pays for Byzantine Robustness? Validity, Data-Share Dictatorships, and Fairness When Only a Few Hospitals CollaborateAnalysis / interpretabilityarXiv