zkML is the application of zero-knowledge proofs to machine learning, enabling a prover to cryptographically attest to the correctness of a model's inference or training without revealing the proprietary model weights or the user's private input data. It combines the succinctness of protocols like zkSNARKs and zkSTARKs with the computational graph of a neural network to generate a proof of valid execution.
Glossary
zkML

What is zkML?
zkML applies zero-knowledge proofs to machine learning, enabling cryptographic attestation of model correctness without revealing weights or inputs.
The core mechanism involves compiling a model's forward pass into an arithmetic circuit or constraint system, where the private model parameters serve as the witness. The prover generates a proof that the output was computed correctly from a valid model and input, while the verifier checks this proof against a public verification key in constant or logarithmic time, ensuring computational integrity without trust.
Key Properties of zkML
Zero-Knowledge Machine Learning (zkML) combines the integrity of cryptographic proofs with the predictive power of neural networks. The following properties define how a prover can attest to correct inference without exposing the underlying model weights or sensitive input data.
Computational Integrity
A zkML proof cryptographically guarantees that a specific model architecture was executed exactly as claimed on a given input. The verifier can confirm the output was generated by running the correct sequence of tensor operations—matrix multiplications, convolutions, and non-linear activations—without re-executing the model. This property is enforced by encoding the model's forward pass as an arithmetic circuit and generating a succinct proof that the circuit was satisfied.
Model Privacy
The prover can demonstrate correct inference while keeping the model's learned parameters—its weights and biases—completely hidden. The proof reveals nothing about the proprietary model beyond what can be inferred from the input-output pair itself. This is achieved through the zero-knowledge property of the underlying proving system:
- The witness (model weights) remains encrypted in the prover's local environment
- The proof is simulatable, meaning a verifier could generate an indistinguishable transcript without access to the real weights
- No gradient leakage or weight extraction is possible from the proof alone
Input Confidentiality
zkML allows a user to submit private data for inference and receive a verified result without the model host ever seeing the raw input. The input is treated as a private witness within the zero-knowledge circuit. This enables scenarios where:
- A patient submits genomic data for a diagnostic model without revealing their DNA sequence
- A financial institution runs credit scoring on encrypted customer records
- An enterprise queries a proprietary model with trade secrets that remain hidden from the model owner
Succinct Verification
The generated proof is constant-size (often just a few hundred bytes) and can be verified in milliseconds, regardless of the model's complexity. Whether the model has 1 million or 100 billion parameters, the verification cost remains fixed. This is the defining property of zkSNARKs and zkSTARKs:
- Proof size: typically 128–288 bytes for Groth16, ~100 KB for STARKs
- Verification time: O(1) relative to computation size
- Enables on-chain verification of ML inference on resource-constrained environments like Ethereum smart contracts
Non-Interactive Proving
zkML proofs are generated and verified without any back-and-forth communication between the prover and verifier. The prover produces a single, self-contained proof string that any verifier can check independently. This is achieved through the Fiat-Shamir heuristic, which replaces interactive verifier challenges with the output of a cryptographic hash function. The result is a proof that can be:
- Stored and verified asynchronously
- Broadcast on a blockchain for public verification
- Embedded in an API response for stateless validation
Quantization-Aware Arithmetic
Neural networks rely on floating-point operations, but ZKP systems operate over finite fields using modular arithmetic. zkML bridges this gap by converting models into fixed-point or quantized integer representations that can be expressed as arithmetic circuits. Common approaches include:
- Post-training quantization to int8 or int4 precision
- Replacing softmax and ReLU with polynomial approximations or lookup arguments
- Using lookup tables to efficiently handle non-arithmetic operations like division and comparison
- Frameworks like EZKL and Zator automate this quantization-to-circuit pipeline
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the intersection of zero-knowledge proofs and machine learning, designed for engineers and technical decision-makers.
zkML (Zero-Knowledge Machine Learning) is the application of zero-knowledge proofs to machine learning computations, enabling a prover to cryptographically attest to the correctness of a model's inference or training without revealing the model weights or input data. The process works by first converting the ML model's forward pass into an arithmetic circuit—a directed acyclic graph of addition and multiplication gates over a finite field. This circuit is then expressed as a constraint system (such as an R1CS or Plonkish representation). The prover executes the model on the private input, generating a witness that satisfies all constraints, and uses a proving system like Groth16, Halo2, or Nova to generate a succinct proof. The verifier checks this proof against a public verification key in constant or logarithmic time, gaining mathematical certainty that the inference was computed correctly without ever seeing the model or data. This enables scenarios like private on-chain inference, verifiable medical diagnostics, and confidential financial risk scoring.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Explore the cryptographic primitives, proving systems, and architectural patterns that form the foundation of verifiable and private machine learning inference.
Arithmetic Circuit
The foundational computational representation for all ZKP systems. A directed acyclic graph where nodes are addition and multiplication gates over a finite field. In zkML, a neural network's forward pass—including matrix multiplications and activation functions—must be compiled into an arithmetic circuit before a proof can be generated. The efficiency of this compilation directly impacts prover time.
zkSNARK
A Zero-Knowledge Succinct Non-Interactive Argument of Knowledge that produces constant-size proofs and enables fast verification. Key properties for zkML:
- Succinctness: Proof size is small (often < 1 KB) regardless of model complexity
- Non-interactive: A single message from prover to verifier
- Trade-off: Requires a circuit-specific or universal trusted setup ceremony, introducing a security assumption
zkSTARK
A Zero-Knowledge Scalable Transparent Argument of Knowledge that relies on collision-resistant hash functions instead of a trusted setup. Advantages for zkML:
- Post-quantum security: Resistant to attacks from quantum computers
- Transparent setup: No toxic waste to manage
- Trade-off: Proofs are larger (often 100s of KB) than zkSNARKs, increasing on-chain verification costs
Witness
The secret auxiliary input known only to the prover that satisfies the circuit's constraints. In zkML, the witness typically includes:
- Private model weights: The proprietary parameters of a trained neural network
- Private input data: The user's sensitive data being classified or processed
- Intermediate activations: The hidden layer outputs during inference The witness is never revealed to the verifier, preserving confidentiality.
Recursive Proof Composition
A technique where a ZKP verifier algorithm is itself expressed as an arithmetic circuit, enabling a single proof to attest to the validity of multiple prior proofs. In zkML, this enables:
- Incremental training verification: Proving each epoch of training was correct
- Proof aggregation: Combining proofs from multiple model inferences into one compact proof
- Constant verification cost: Regardless of how many steps were composed
Lookup Argument
A sub-protocol that efficiently proves a value exists within a public table, enabling optimized verification of non-arithmetic operations in a circuit. Critical for zkML because:
- Activation functions: ReLU, sigmoid, and GELU are non-linear and expensive as pure gates
- Quantization mapping: Proving correct integer-to-float conversions
- Performance: Reduces circuit size by up to 10x for complex ML operations compared to naive arithmetic gate implementations

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us