arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2106.14763cs.CRcs.AI
收藏

在智能合约中训练大规模深度神经网络:新的希望

Training Massive Deep Neural Networks in a Smart Contract: A New Hope

Yin Yang

摘要:

深度神经网络(DNN)在区块链应用中可能非常有用,例如DeFi和NFT交易。然而,由于这些平台的两个基本设计问题,在当今的区块链平台上训练/运行大规模DNN作为智能合约的一部分是不可行的。首先,现在的区块链通常要求每个节点在任何时候都保持完整的世界状态,这意味着节点必须执行每个区块中的所有交易。对于涉及DNN的计算密集型智能合约来说,这是非常昂贵的。其次,现有的区块链平台期望智能合约交易具有确定性、可复制的结果和效果。相比之下,DNN通常在大规模并行计算设备(如GPU、TPU和/或计算集群)上无锁地训练/运行,这通常不会产生确定性结果。本文提出了新的平台设计,统称为新的希望(ANH),解决上述问题。其主要思想是:(i)计算密集型智能合约交易仅由需要其结果的节点或专门的服务提供商执行;(ii)非确定性智能合约交易导致不确定的结果,尽管成本相对较高,但仍然可以进行验证;特别是对于DNN,验证成本通常可以通过验证结果的属性而不是其确切值来降低。此外,我们还讨论了ANH的各种含义,包括它对代币可互换性、分片、私人交易以及智能合约的基本含义的影响。

英文摘要:

Deep neural networks (DNNs) could be very useful in blockchain applications such as DeFi and NFT trading. However, training / running large-scale DNNs as part of a smart contract is infeasible on today's blockchain platforms, due to two fundamental design issues of these platforms. First, blockchains nowadays typically require that each node maintain the complete world state at any time, meaning that the node must execute all transactions in every block. This is prohibitively expensive for computationally intensive smart contracts involving DNNs. Second, existing blockchain platforms expect smart contract transactions to have deterministic, reproducible results and effects. In contrast, DNNs are usually trained / run lock-free on massively parallel computing devices such as GPUs, TPUs and / or computing clusters, which often do not yield deterministic results. This paper proposes novel platform designs, collectively called A New Hope (ANH), that address the above issues. The main ideas are (i) computing-intensive smart contract transactions are only executed by nodes who need their results, or by specialized serviced providers, and (ii) a non-deterministic smart contract transaction leads to uncertain results, which can still be validated, though at a relatively high cost; specifically for DNNs, the validation cost can often be reduced by verifying properties of the results instead of their exact values. In addition, we discuss various implications of ANH, including its effects on token fungibility, sharding, private transactions, and the fundamental meaning of a smart contract.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑