Skip to main content
QUICK REVIEW

[Paper Review] A Proof of Useful Work for Artificial Intelligence on the Blockchain

Andrei Lihu, Jincheng Du|arXiv (Cornell University)|Jan 25, 2020
Blockchain Technology Applications and SecurityComputer Science25 references7 citations
TL;DR

This paper proposes a Proof of Useful Work (PoUW) protocol that replaces Bitcoin's energy-intensive hashing with training a deep neural network (DNN) on the blockchain, where miners earn rewards for performing honest, verifiable machine learning work. By deriving nonces from ML training iterations and enabling deterministic verification, the system ensures computational work is both useful and secure, offering a more sustainable and profitable alternative to traditional PoW mining.

ABSTRACT

Bitcoin mining is a wasteful and resource-intensive process. To add a block of transactions to the blockchain, miners spend a considerable amount of energy. The Bitcoin protocol, named 'proof of work' (PoW), resembles a lottery and the underlying computational work is not useful otherwise. In this paper, we describe a novel 'proof of useful work' (PoUW) protocol based on training a machine learning model on the blockchain. Miners get a chance to create new coins after performing honest ML training work. Clients submit tasks and pay all training contributors. This is an extra incentive to participate in the network because the system does not rely only on the lottery procedure. Using our consensus protocol, interested parties can order, complete, and verify useful work in a distributed environment. We outline mechanisms to reward useful work and punish malicious actors. We aim to build better AI systems using the security of the blockchain.

Motivation & Objective

  • To address the environmental and economic inefficiency of Bitcoin’s energy-intensive proof-of-work (PoW) mining.
  • To design a decentralized consensus protocol where miners perform useful machine learning (ML) work instead of arbitrary hashing.
  • To ensure the integrity and verifiability of ML training in a trustless, blockchain-based environment.
  • To create incentives that reward honest participation and penalize malicious actors in a distributed ML training system.
  • To demonstrate that commodity hardware can train high-performing DNNs collectively using this PoUW framework.

Proposed method

  • The protocol uses a hybrid PoW/PoS blockchain (PAI blockchain) to coordinate distributed DNN training across worker nodes.
  • Miners perform data-parallel DNN training, where each node maintains a local model replica and updates it using assigned data batches.
  • Nonces for block mining are derived from the ML training process using a formula based on model weights and gradients from each iteration.
  • Verification involves re-running the specific training iteration claimed by a miner, ensuring deterministic and efficient validation.
  • A pause/resume mechanism handles DoS attacks by allowing honest nodes to coordinate off-chain during attacks and resume only after consensus is restored.
  • Security mechanisms include stake confiscation for invalid blocks, block rate limits, and periodic checkpoints every 1024 blocks to prevent long-range attacks.

Experimental results

Research questions

  • RQ1Can machine learning training be used as a basis for a secure, verifiable, and incentive-compatible consensus protocol on a blockchain?
  • RQ2How can useful work in distributed ML be verified deterministically without relying on trusted third parties?
  • RQ3What mechanisms can prevent malicious miners from performing cheap or no work while still allowing efficient block mining?
  • RQ4How does the integration of ML training into blockchain mining affect cost, performance, and decentralization compared to traditional PoW?
  • RQ5Can a PoUW system using commodity hardware achieve performance comparable to centralized cloud-based ML training?

Key findings

  • The PoUW protocol successfully replaces traditional hashing with verifiable DNN training, making mining both useful and secure.
  • Verification of a miner’s work is efficient and deterministic, requiring only re-execution of the claimed training iteration.
  • The system demonstrates that distributed DNN training on commodity hardware can achieve performance suitable for real-world AI applications.
  • Clients benefit from lower costs compared to traditional cloud ML training due to the decentralized, incentive-aligned model.
  • Miners earn higher profits than in Bitcoin mining due to client-side compensation and block rewards, enhancing long-term network participation.
  • The protocol effectively resists common attacks such as DoS and long-range attacks through stake penalties, rate limiting, and periodic checkpoints.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.