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

06/28/2021
by   Yin Yang, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/22/2019

A Revisit on Blockchain-based Smart Contract Technology

Blockchain-based smart contract has become a growing field in the blockc...
research
04/19/2021

zkHawk: Practical Private Smart Contracts from MPC-based Hawk

Cryptocurrencies have received a lot of research attention in recent yea...
research
02/16/2023

An Efficient Framework for Execution of Smart Contracts in Hyperledger Sawtooth

Blockchain technology is a distributed, decentralized, and immutable led...
research
01/30/2023

Dynamic, Private, Anonymous, Collateralizable Commitments vs. MEV

We introduce DPACCs, a generalized commitment scheme based on smart cont...
research
06/29/2023

ItyFuzz: Snapshot-Based Fuzzer for Smart Contract

Smart contracts are critical financial instruments, and their security i...
research
05/06/2023

A Blockchain-based Platform for Reliable Inference and Training of Large-Scale Models

As artificial intelligence (AI) continues to permeate various domains, c...
research
07/19/2022

Smart Contract Assisted Blockchain based PKI System

The proposed smart contract can prevent seven cyber attacks, such as Den...

Please sign up or login with your details

Forgot password? Click here to reset