通过控制硬件非确定性实现乐观可验证训练
Optimistic Verifiable Training by Controlling Hardware Nondeterminism
AI总结:
本文提出一种通过高精度训练、中间舍入及自适应阈值共享舍入决策来控制GPU非确定性的方法,在三种NVIDIA GPU上实现ResNet-50和GPT-2的FP32精确训练复现,显著降低可验证训练的存储与时间成本。
摘要:
AI系统日益增长的计算需求催生了替缺乏必要资源的客户训练模型的服务。然而,确保训练正确性并防范数据投毒和后门等潜在训练时攻击面临挑战。现有关于可验证训练的工作主要分为两类:基于证明的系统,难以扩展;以及“乐观”方法,该方法考虑一个能够复现训练过程并对训练方提出质疑的第三方审计者。后者的一个关键挑战在于,训练期间不同GPU类型之间的非确定性会阻碍训练过程的精确复现,导致方案缺乏鲁棒性。我们提出一种方法,该方法结合了以高于目标的精度进行训练、在中间计算之后进行舍入,以及基于自适应阈值化过程共享舍入决策,从而成功控制非确定性。在三款不同的NVIDIA GPU(A40、Titan XP、RTX 2080 Ti)上,我们在FP32精度下对ResNet-50(23M)和GPT-2(117M)模型的完整训练和微调均实现了精确的训练复现。与基于证明的系统相比,我们的可验证训练方案显著降低了存储和时间成本,并已在https://github.com/meghabyte/verifiable-training公开发布。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。