infrastructure spotlight

Verifiable AI Compute Splits Into Two Warring Factions: ZKML vs TEEs

ZKML proofs and TEE attestations each solve different halves of the verifiable inference problem, with concrete tooling now live for both approaches.

2 min read 10 claims web-cited

The AI×crypto stack is splitting into two distinct verifiable compute tracks, each with production-ready tooling and clear trade-offs. Zero-Knowledge Machine Learning (ZKML) and Trusted Execution Environments (TEEs) solve the same core problem—proving an AI inference ran correctly—but they serve fundamentally different latency, confidentiality, and composability profiles.

ZKML, via tooling like EZKL, converts deep learning models expressed as ONNX computational graphs into zk-SNARK circuits. This lets you verify inference on-chain in compressed form while keeping model details and intermediate activations hidden from the verifier [^claim_1602]. Modulus Labs has benchmarked these systems up to 18,000,000 parameters, proving on-chain inference verification is feasible for non-trivial models [^claim_1594]. Combined with Fully Homomorphic Encryption (FHE), ZKML lets you run inference on encrypted data with verifiable outputs in a single pipeline—neither the user nor the operator sees the other’s data [^claim_1597]. Worldcoin’s curated awesome-zkml repository highlights generic SNARK constructions that provide a reusable proving interface, independent of model architecture [^claim_1600].

TEEs take a different route. They run AI models natively and produce signed attestations that cryptographically link the inference output to specific model weights and prompts. You get onchain-verifiable inference receipts paid in stablecoins [^claim_1595]. Chainlink’s Confidential Reputable Execution (CRE) framework orchestrates AI workloads inside TEEs across decentralized oracle networks. Onchain agents can process sensitive financial data—credit histories, corporate ledgers—while ensuring the AI provider never touches the raw data [^claim_1596]. For workloads that need confidentiality, complex logic, or millisecond-level latency—block building, AI inference, private smart contracts—TEEs are described as more practical than purely on-chain execution or zero-knowledge approaches [^claim_1603].

On-chain inference remains a niche. Cortex is one of the few production chains that supports it directly, letting smart contracts call AI models deployed inside the blockchain execution environment. But this approach is largely absent from major ecosystems like Ethereum [^claim_1598].

Agent infrastructure is maturing in parallel. Ethereum’s proposed ERC-8004 standard defines on-chain registries for AI agent identity, reputation, and validation—agents can prove credentials and track performance in a decentralized way. Coinbase’s x402 protocol repurposes HTTP 402 to facilitate machine-to-machine cryptocurrency micropayments [^claim_1599]. AI oracles under development in the Chainlink ecosystem rely on multiple nodes independently executing an AI task and only reporting when consensus is reached on the inference output. That enables composable, trust-minimized AI services accessible directly from smart contracts [^claim_1601].

The convergence is clear: ZKML for integrity with privacy, TEEs for low-latency confidentiality, and oracle networks for Byzantine-resilient aggregation. Protocol teams can now plug into either track rather than building bespoke provers.

Provenance ledger

10 claims web-cited

Every claim below cites a source URL, and each URL was checked for validity before publish. The excerpt shown is the researcher's own summary of the page — it is not re-derived from the source, so it is not a verified verbatim quote. Follow the link to confirm any claim against the original. Citation markers in the text jump here.

[1] Modulus Labs’ ZKML proof systems can verify on-chain inference for machine learning models with up to 18,000,000 parameters, using SNARK circuits generated from ONNX models via the EZKL tooling. web-cited
Excerpt reported by researcher (not re-verified)
“ZKML facilitates the deployment of models on-chain or in decentralized networks, with zero-knowledge proofs compressing model verification. For example, EZKL can take ONNX files, converting them to ZK-SNARK circuits for efficient on-chain verification. Modulus Labs shows the benchmarking proof systems for on-chain inference up to 18 million parameters… Their paper titled ‘The Cost of Intelligence’ presents proof systems capable of verifying machine learning models with up to 18 million paramete

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[2] Trusted Execution Environments (TEEs) can run AI models natively and produce signed attestations that cryptographically link the inference output to specific model weights and prompts, enabling onchain-verifiable inference receipts paid in stablecoins. web-cited
Excerpt reported by researcher (not re-verified)
“A TEE can run the model natively while signing an attestation that links the output to the model weights and prompt. The pitch is verifiable AI compute that pays in stablecoins and produces onchain-verifiable inference receipts. Verifiable AI is the area where TEE adoption has accelerated fastest in 2024–2025. Smart contracts that pay agents, accept agent decisions, or settle agent-driven trades benefit directly from a hardware-anchored attestation that links the output to the model.”

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[3] Chainlink’s Confidential Reputable Execution (CRE) framework orchestrates AI workloads inside TEEs across decentralized oracle networks, allowing onchain agents to process sensitive financial data (e.g., credit histories or corporate ledgers) while ensuring the AI provider cannot access the raw data. web-cited
Excerpt reported by researcher (not re-verified)
“TEEs provide a secure environment for verifiable AI. This ensures that an AI model was executed correctly and that the data used for inference remained confidential. Through the CRE, developers can orchestrate complex AI workloads that run within TEEs across Chainlink decentralized oracle networks. This enables onchain agents to process sensitive financial data—such as a user's credit history or a corporation's internal ledger—to make automated investment decisions. The data's never accessible

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[4] Zero-Knowledge Machine Learning (ZKML) enables a model to generate a cryptographic proof that a given output was produced by a specific computation on specific inputs, without revealing either the inputs or the model weights; combined with Fully Homomorphic Encryption (FHE), this allows inference on encrypted data with verifiable outputs in a single pipeline. web-cited
Excerpt reported by researcher (not re-verified)
“The concept a model generates a cryptographic proof that a given output was produced by a specific computation on specific inputs without revealing the inputs or the model weights themselves. ZKML proves the integrity of computation. FHE allows that computation to run on encrypted data. Together, they create a system where an AI can process sensitive inputs and produce verifiable outputs without either the user or the operator seeing the other's data.”

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[5] Cortex is one of the few production chains that supports direct on-chain AI inference, allowing smart contracts to call AI models deployed within the blockchain execution environment, though this approach remains largely absent from major ecosystems like Ethereum. web-cited
Excerpt reported by researcher (not re-verified)
“Projects like Cortex represent a rare effort to bring AI inference on-chain, enabling smart contracts to call AI models deployed directly within the blockchain environment. However, such approaches remain experimental and are largely confined to non-mainstream chains, with limited support across widely adopted ecosystems such as Ethereum.”

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[6] The Ethereum ERC-8004 proposal defines on-chain registries for AI agent identity, reputation, and validation, enabling agents to prove credentials and track performance in a decentralized manner, while Coinbase’s x402 protocol repurposes HTTP 402 to support machine-to-machine cryptocurrency micropayments. web-cited
Excerpt reported by researcher (not re-verified)
“Ethereum’s proposed ERC-8004 standard defines on-chain registries for agent identity, reputation, and validation, enabling agents to prove their credentials and track performance in a decentralized way. Complementing this, Coinbase introduced x402, a protocol repurposing the HTTP 402 (Payment Required) code to facilitate machine-to-machine micropayments using cryptocurrency.”

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[7] Worldcoin’s curated ZKML resources highlight generic SNARK constructions for ML inference that allow proving and verifying that an output is the product of a given model–input pair, providing a reusable proving interface independent of specific model architectures. web-cited
Excerpt reported by researcher (not re-verified)
“Generic SNARK for ML inference: ability to easily prove and verify that an output is the product of a given model and input pair.”

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[8] AI oracles being developed in the Chainlink ecosystem rely on multiple nodes independently executing an AI task and only reporting when a consensus is reached over the inference output, enabling composable, trust-minimized AI services accessible directly from smart contracts. web-cited
Excerpt reported by researcher (not re-verified)
“Additionally, AI oracles, such as those under development by Chainlink, propose a model in which multiple nodes independently execute an AI task and report only when a consensus is reached. This quorum-based approach could make AI inference verifiable and composable within smart contracts, paving the way for trust-minimized AI services accessible on-chain.”

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[9] Zero-knowledge proof tooling such as EZKL converts deep learning models expressed as ONNX computational graphs into zk-SNARK circuits, enabling compressed verification of inference on-chain while keeping model details and intermediate activations hidden from the verifier. web-cited
Excerpt reported by researcher (not re-verified)
“ZKML facilitates the deployment of models on-chain or in decentralized networks, with zero-knowledge proofs compressing model verification. For example, EZKL can take ONNX files, converting them to ZK-SNARK circuits for efficient on-chain verification. EZKL is a library and command-line tool for doing inference for deep learning models and other computational graphs in a zk-snark.”

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text
[10] For blockchain workloads requiring confidentiality, complex logic, or millisecond-level latency—such as block building, AI inference, or private smart contracts—TEEs are described as more practical than purely on-chain execution or zero-knowledge approaches. web-cited
Excerpt reported by researcher (not re-verified)
“For workloads that need confidentiality, complex code, or millisecond latency, block building, AI inference, private contracts, TEEs are usually more practical.”

This excerpt was not re-derived from the source page, and may paraphrase or condense it. Check the source before relying on it.

↩ back to text

Sources

  1. https://kudelskisecurity.com/modern-ciso-blog/zkml-verifiable-machine-learning-using-zero-knowledge-proof
  2. https://eco.com/support/en/articles/14796360-tees-in-blockchain-use-cases-and-projects
  3. https://chain.link/article/trusted-execution-environments-blockchain
  4. https://www.youtube.com/watch?v=vONZg4p2msE&vl=en
  5. https://arxiv.org/html/2505.07828v1
  6. https://medium.com/@gwrx2005/ai-agents-in-blockchain-applications-in-cryptocurrency-trading-355f11bff04d
  7. https://github.com/worldcoin/awesome-zkml
zkmlteeverifiable-inferenceai-oracleschainlink-creezklerc-8004x402
AUTOMATED

Get the synthesis

AI×crypto research, repackaged with every claim hash-locked to its source. New arXiv → analysis in ~3 hours.