Optimistic Verifiable Training by Controlling Hardware Nondeterminism

Megha Srivastava, Simran Arora, Dan Boneh
3/14/2024
cs.CRcs.AIcs.LG

Official code: meghabyte/verifiable-training (10 stars, last commit 2024-10-25).

Abstract

The increasing compute demands of AI systems have led to the emergence of services that train models on behalf of clients lacking necessary resources. However, ensuring correctness of training and guarding against potential training-time attacks, such as data poisoning and backdoors, poses challenges. Existing works on verifiable training largely fall into two classes: proof-based systems, which are difficult to scale, and ``optimistic'' methods that consider a third-party auditor who can replicate the training process and contest the trainer. A key challenge with the latter is that nondeterminism between GPU types during training prevents exact replication of the training process, resulting in schemes that are non-robust. We propose a method that combines training in a higher precision than the target, rounding after intermediate computations, and sharing rounding decisions based on an adaptive thresholding procedure, to successfully control for nondeterminism. Across three different NVIDIA GPUs (A40, Titan XP, RTX 2080 Ti), we achieve exact training replication at FP32 precision for both full-training and fine-tuning of ResNet-50 (23M) and GPT-2 (117M) models. Our verifiable training scheme significantly decreases the storage and time costs compared to proof-based systems, and is publicly released at https://github.com/meghabyte/verifiable-training.

View on arXivView PDF

Code Implementations(1)

Public code release for "Optimistic Verifiable Training by Controlling Hardware Nondeterminism" (NeurIPS 2024).

100PythonMar 11, 20241 years ago

Cite this paper

@article{srivastava2024optimistic,
  title  = {Optimistic Verifiable Training by Controlling Hardware Nondeterminism},
  author = {Megha Srivastava and Simran Arora and Dan Boneh},
  year   = {2024},
  eprint = {2403.09603},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2403.09603},
  url    = {http://arxiv.org/abs/2403.09603v3},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.09603.svg)](https://codeofpaper.com/paper/2403.09603)

Discussion