ML Oracles: Verifiable Claims for the Chain, animated

← Back to Research Lab

Smart Contracts × Machine Learning

An AI says a crop is damaged. Should a smart contract release the payment? An oracle can deliver the answer, but delivery is not verification. This animation compares zkML (Zero-Knowledge Machine Learning) with optimistic challenge windows, showing what each checks and what it leaves unresolved.

Scientific Reference: Open research direction of the author, not yet published, and a natural continuation of the Blockchain-Enhanced ML survey (IEEE Access 2023). The question: by what mechanism can a deterministic chain accept a claim about a probabilistic model it cannot re-execute? The film works through the candidate answers: zero-knowledge proofs of inference and optimistic challenge windows, and where each one currently breaks. Feedback and collaborators welcome.
🧠 What did you just learn?

The Blockchain is a closed system. A smart contract cannot make an API call to OpenAI or run a PyTorch script. It only knows what is posted to it. When an agreement requires complex pattern recognition (e.g., "Is this crop damage real?"), the classification y = F_θ(x) must happen off-chain.

The Verification Trilemma. We can trust an oracle implicitly (centralized, cheap), we can run the model on-chain (currently impractical for large θ), or we can use cryptographic or economic verification. Each choice moves the trust assumption rather than removing it.

Zero-Knowledge Inference (zkML). A prover generates a proof of an encoded computation; a verifier checks it. This verifies execution, not the truth of the input or the quality of the model. EZKL's documentation describes a concrete model-to-circuit workflow. Proof construction, verification cost, and security depend on the system used. The moving proof in the film is a schematic, not a trace of a specific proving system.

Optimistic Challenges. A proposer posts a claim and a bond. Others may dispute it during a challenge window. Disputes require a resolution mechanism; they do not universally reduce to a single machine instruction. UMA's oracle, for example, resolves disputes through its Data Verification Mechanism. Unchallenged claims settle, but this depends on effective monitoring and credible disputes. The animation's claims and timings are illustrative, not measured rates.

📐 The math, precisely

Rendered on load. If equations appear as raw text, your browser blocked the math font CDN.