Agatha: Smart Contract for DNN Computation

05/11/2021
by   Zihan Zheng, et al.
0

Smart contract is one of the core features of Ethereum and has inspired many blockchain descendants. Since its advent, the verification paradigm of smart contract has been improving toward high scalability. It shifts from the expensive on-chain verification to the orchestration of off-chain VM (virtual machine) execution and on-chain arbitration with the pinpoint protocol. The representative projects are TrueBit, Arbitrum, YODA, ACE, and Optimism. Inspired by visionaries in academia and industry, we consider the DNN computation to be promising but on the next level of complexity for the verification paradigm of smart contract. Unfortunately, even for the state-of-the-art verification paradigm, off-chain VM execution of DNN computation has an orders-of-magnitude slowdown compared to the native off-chain execution. To enable the native off-chain execution of verifiable DNN computation, we present Agatha system, which solves the significant challenges of misalignment and inconsistency: (1) Native DNN computation has a graph-based computation paradigm misaligned with previous VM-based execution and arbitration; (2) Native DNN computation may be inconsistent cross platforms which invalidates the verification paradigm. In response, we propose the graph-based pinpoint protocol (GPP) which enables the pinpoint protocol on computational graphs, and bridges the native off-chain execution and the contract arbitration. We also develop a technique named Cross-evaluator Consistent Execution (XCE), which guarantees cross-platform consistency and forms the correctness foundation of GPP. We showcase Agatha for the DNN computation of popular models (MobileNet, ResNet50 and VGG16) on Ethereum. Agatha achieves a negligible on-chain overhead, and an off-chain execution overhead of 3.0 off-chain latency reduction of at least 602x compared to the state-of-the-art verification paradigm.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/15/2021

Horizon: A Gas-Efficient, Trustless Bridge for Cross-Chain Transactions

With the rise of digital currency systems that rely on blockchain to ens...
research
04/19/2020

Prism Removes Consensus Bottleneck for Smart Contracts

The performance of existing permissionless smart contract platforms such...
research
12/10/2022

Specular: Towards Trust-minimized Blockchain Execution Scalability with EVM-native Fraud Proofs

An optimistic rollup (ORU) enables refereed delegation of computation fr...
research
04/15/2019

Enforcing Private Data Usage Control with Blockchain and Attested Off-chain Contract Execution

The abundance of rich varieties of data is enabling many transformative ...
research
10/13/2022

POSE: Practical Off-chain Smart Contract Execution

Smart contracts enable users to execute payments depending on complex pr...
research
03/07/2022

Dispute-free Scalable Open Vote Network using zk-SNARKs

The Open Vote Network is a self-tallying decentralized e-voting protocol...
research
11/28/2019

Securing Smart Contract On The Fly

We present Solythesis, a source to source Solidity compiler which takes ...

Please sign up or login with your details

Forgot password? Click here to reset