Blockchain Smart Contract Gradient Verification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Centralized databases face issues such as single points of failure, dependency on network connectivity, limited data access, and inefficiencies in high traffic scenarios, particularly when performing complex computations like gradient descent in machine learning.

Innovation Solution

A decentralized database system using a blockchain network with smart contracts enables efficient verification of machine learning model training by offloading gradient calculations to a training participant client and utilizing a verify gradient smart contract to validate transactions without repeating computationally expensive steps.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If centralized database is used for machine learning training, then data management is simple and control is easy, but verification of gradient calculations is time-consuming and computationally expensive

Engineering Contradiction:
Improvedata management simplicityVSAvoidverification time
Core Design Contradiction:
Ease of manufactureVSLoss of time

Solution Approach 1:

The patent introduces a smart contract as an intermediary layer between the centralized database and the verification process. The smart contract automatically executes predefined verification logic for gradient calculations, eliminating the need for manual re-computation and reducing verification time from hours to seconds while maintaining data integrity.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system performs preliminary actions by pre-compiling and storing verification rules and gradient calculation parameters in the smart contract before actual training occurs. This allows the verification process to execute efficiently during training iterations without requiring complex real-time computation setup.

Inventive Principle:
Principle #10Preliminary action

2Quantity of substance

If centralized database stores all data in single location, then data redundancy is minimized, but system reliability decreases due to single point of failure

Engineering Contradiction:
Improvedata redundancyVSAvoidsystem reliability
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent implements beforehand cushioning by creating cryptographic hash references of gradient calculations and storing them in the smart contract before actual training computations occur. This pre-established verification mechanism acts as a cushion against potential failures, allowing the system to detect and recover from errors without complete system failure.

Inventive Principle:
Principle #11Beforehand cushioning (Prior cushioning)

3Device complexity

If centralized database handles high traffic, then single location simplifies architecture, but bottlenecks occur reducing productivity

Engineering Contradiction:
Improvearchitecture complexityVSAvoidtraining iteration speed
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent replaces the mechanical verification process (re-computing gradients centrally) with a computational substitution using smart contracts that automatically verify gradient calculations through cryptographic methods. This substitution eliminates the computational bottleneck at the centralized database while maintaining architectural simplicity.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

4Measurement precision

If full gradient calculation verification is performed, then accuracy is ensured, but computation time increases significantly

Engineering Contradiction:
Improveverification accuracyVSAvoidcomputation time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies partial action by implementing selective verification where the smart contract verifies only critical gradient calculation components rather than performing complete re-computation. This partial verification approach maintains sufficient accuracy for machine learning training while reducing computation time from hours to seconds.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS11562228B2Efficient verification of machine learning applications
Publication Date: 2023.01.24 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11562228B2 patent drawing
  • US11562228B2 patent drawing
  • US11562228B2 patent drawing

AI summary

An example operation may include one or more of generating, by a training participant client comprising a training dataset, a plurality of transaction proposals that each correspond to a training iteration for machine learning model training related to stochastic gradient descent, the machine learning model training comprising a plurality of training iterations, the transaction proposals comprising a gradient calculation performed by the training participant client, a batch from the private dataset, a loss function, and an original model parameter, receiving, by one or more endorser nodes of peers of a blockchain network, the plurality of transaction proposals, and evaluating each transaction proposal.