Agatha: Smart Contract for DNN Computation
Not on the map. Why?
Abstract (arXiv)
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%, which represents an off-chain latency reduction of at least 602x compared to the state-of-the-art verification paradigm.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 11 May 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 1.
6 papers.
- 2024Proof of Quality: A Costless Paradigm for Trustless Generative AI Model Inference on Blockchainscited by 7
- 2025DeServe: Towards Affordable Offline LLM Inference via Decentralizationcited by 4
- 2024opp/ai: Optimistic Privacy-Preserving AI on Blockchaincited by 1
- 2025TAO: Tolerance-Aware Optimistic Verification for Floating-Point Neural Networkscited by 1
- 2026Crypto x AI, AI x Crypto: A Surveycited by 1
- 2025On-Chain Decentralized Learning and Cost-Effective Inference for DeFi Attack Mitigationcited by 0
- 2026Crypto x AI, AI x Crypto: A Survey11 Jun 2026
- 2025TAO: Tolerance-Aware Optimistic Verification for Floating-Point Neural Networks15 Oct 2025
- 2025On-Chain Decentralized Learning and Cost-Effective Inference for DeFi Attack Mitigation15 Oct 2025
- 2025DeServe: Towards Affordable Offline LLM Inference via Decentralization4 Jan 2025
- 2024Proof of Quality: A Costless Paradigm for Trustless Generative AI Model Inference on Blockchains28 May 2024
- 2024opp/ai: Optimistic Privacy-Preserving AI on Blockchain22 Feb 2024