ORA
TwitterDiscordWebsiteMirror
  • ✨Quick Start
  • 🔘Introduction
    • About ORA
    • Use Cases
    • Key Milestones
  • 🌐Foundation
    • ORA Coin ($ORA)
    • Tokenomics
      • Interacting with ORA’s Tokenomics
  • 🤖Onchain Perpetual Agent (opAgent)
    • opAgent
  • 🔮Onchain AI Oracle (OAO)
    • Onchain AI Oracle
      • Build with AI Oracle
        • Callback Gas Limit Estimation
        • Advanced Usages of AI Oracle
        • Optimistic Machine Learning (OPML)
      • Onboard AI Models
      • Non-Developer Guides
      • References
        • AI Settlement Oracle
        • Example: Fortune Teller
    • Node Operator Guide
      • Tora Validator Client
      • Tora Launcher - Tutorial
      • Tora CLI - Tutorial
      • Troubleshooting
    • Fraud Proof Virtual Machine (FPVM) and Frameworks
      • opML
      • opp/ai
      • Comparison of Proving Frameworks
  • 💠Resilient Model Services (RMS)
    • Overview
    • ORA API
    • Model and Pricing
    • Technology
  • 🪙INITIAL MODEL OFFERING (IMO)
    • IMO Overview
    • IMO Participation Rules
    • ERC-7641: Intrinsic RevShare Token
    • ERC-7007: Verifiable AI-Generated Content Token
  • 📚Resources
    • Resources
    • FAQ
    • Glossary
    • Legal
      • Privacy Policy
      • Terms of Use
  • 📧Get in touch
    • Twitter
    • Telegram
    • GitHub
Powered by GitBook
On this page
  • Introduction
  • Workflow
  • Challenge Process

Was this helpful?

Export as PDF
  1. Onchain AI Oracle (OAO)
  2. Onchain AI Oracle
  3. Build with AI Oracle

Optimistic Machine Learning (OPML)

PreviousAdvanced Usages of AI OracleNextOnboard AI Models

Last updated 6 months ago

Was this helpful?

Introduction

The Optimistic Machine Learning (OPML) framework connects off-chain machine learning computations with smart contracts. Results are provably correct and can be disputed on-chain to ensure trust and accountability, enabling efficient AI-driven decision-making in decentralized applications. OPML is a core component of the AI Oracle, playing a critical role in validating inference results.

Workflow

  1. Initiate Request: The user contract sends an inference request to AI Oracle by calling the requestCallback function.

  2. opML Request: AI Oracle creates an opML request based on the user contract request.

  3. Event Emission: AI Oracle emits a requestCallback event collected by the opML node.

  4. ML Inference: The opML node performs the AI model computation.

  5. Result Submission: The opML node uploads the result on-chain.

  6. Callback Execution: The result is dispatched to the user's smart contract via a callback function.

Challenge Process

  1. Challenge Window: Begins after the result is submitted on-chain (step 5 above).

  2. Verification: opML validators or any network participant can check the results and challenge the output if it is incorrect.

  3. Result Update: If a challenge is successful, the incorrect result is updated on-chain.

  4. Finality: After the challenge period, the result is finalized onchain and made immutable.

🔮
AI Oracle and opML Architecture