- The paper introduces the first zero-knowledge framework for verifying that PAC-private noise is correctly computed and applied, using transparent, non-interactive zk-STARKs in RISC Zero.
- The framework implements PAC-private K-means, SVM, and database statistics while preserving fixed circuit structure, with proof-generation costs scaling approximately affinely in samples, clusters, dimensions, and database size.
- The results demonstrate predictable feasibility on small datasets, but fixed-iteration approximations, semi-honest verifier assumptions, missing proof-size and wall-clock measurements, and limited scalability remain important deployment constraints.
Motivation and problem statement
Outsourced computation on sensitive data presents a dual trust problem: a client must trust that a server computes results correctly, and that any promised privacy mechanism is actually applied. Existing verifiable-privacy work has concentrated on differential privacy (DP), e.g., VerDP for private queries (Sevilla-Escoboza et al., 2015) and Confidential-DPproof for DP-SGD training (Gong et al., 2023), together with certified probabilistic mechanisms (Allcock et al., 2024). The paper argues that DP-centric approaches inherit DP's known utility degradation at scale, whereas Probably Approximately Correct (PAC) Privacy (Hussain et al., 2023) determines, from black-box access to the mechanism alone, the minimal noise needed to bound the mutual information MI(X;M(X)+B)≤β. The gap addressed here is that no prior framework provides zero-knowledge proofs attesting that PAC-private noise has been correctly computed and applied.
Framework design
The construction rests on two deterministic functions amenable to circuit-based proving:
- fh​ (noise determination): given data points x1​,…,xm​, the prover runs the anisotropic noise-generation algorithm of Sridhar et al. (Tekdir, 2024) inside a ZK circuit, producing a Gaussian covariance matrix Σ, and outputs only h(Σ) for a public collision-resistant hash h. The matrix itself remains private; the proof π attests it was computed soundly.
- fPAC​ (noisy release): with private inputs x and a Gaussian seed s, and public input fh​0, the prover asserts fh​1 in-circuit, deterministically derives noise from fh​2 — via Cholesky decomposition so that fh​3 with fh​4 — and outputs fh​5 with a proof of correct computation.
The privacy guarantee follows from Theorem 1 of (Tekdir, 2024): Gaussian noise with covariance fh​6 satisfies the mutual-information bound, and for reasonable mechanisms the required noise scales as fh​7 in fh​8 norm, i.e., proportionally to fh​9.
Threat model: the prover (server) is malicious; the verifier (client) is semi-honest, with verifier-supplied randomness deemed sufficient under Fiat-Shamir-style assumptions. This is an explicit assumption: a fully malicious verifier setting would require additional care around randomness generation within the circuit.
The scheme uses non-interactive zk-STARKs (transparent, hash-based, post-quantum plausibly secure, no trusted setup), instantiated in RISC Zero rather than zk-SNARKs, which are rejected for their trusted-setup requirements and elliptic-curve cryptography.
Mechanism instantiations
Three mechanisms are implemented inside the zkVM, each requiring adaptations forced by the fixed-circuit model (execution traces must be input-independent):
- K-means: initial centroids are taken as the first x1​,…,xm​0 input points rather than random draws; cluster assignments use fixed-size lists of
(point, bool) pairs so group sizes remain constant regardless of actual membership; iteration counts are fixed rather than run-to-convergence; and centroids are canonicalized by class inference (lexicographic sorting failed in high dimensions).
- SVM: minimal structural changes, but all models x1​,…,xm​1 used for noise estimation are normalized (x1​,…,xm​2, x1​,…,xm​3) since hyperplanes are scale-invariant.
- Database statistics: queries of the form "function of Attribute with filter x1​,…,xm​4" over a private database, where filters are encoded as fixed-size vectors of interval bounds per attribute to satisfy circuit constraints. Random filters for noise generation are drawn uniformly per coordinate span; the authors note decision-tree-derived filters as an unexplored alternative.
Experimental evaluation
All experiments run in RISC Zero on small datasets, measuring simulated RISC-V cycle counts (machine-independent). Key observations:
| Mechanism |
Scaling behavior |
| K-means |
Perfectly affine in number of samples x1​,…,xm​5, in x1​,…,xm​6, and in dimension x1​,…,xm​7 |
| SVM |
Approximately affine in x1​,…,xm​8, with fluctuations attributed to cache behavior |
| Database statistics |
Affine in database size across x1​,…,xm​9 |
For K-means with Σ0 and 1000-point databases, cycles grow linearly from roughly 78k (1 sample) to about 291k (15 samples). Varying Σ1 from 2 to 10 yields cycle counts ranging from ~135M to ~1.2B depending on iterations and dimension. Once noise parameters are generated, executing the PAC version costs essentially the same as a single-sample run. The affine scaling is expected given the deterministic loop structure, but it also confirms that proof overhead scales predictably rather than pathologically. All experiments are limited to small datasets, so the claimed feasibility applies to small-to-medium applications only.
Limitations and open questions
The paper concedes several constraints plainly. First, NIZK overhead bounds the complexity of mechanisms expressible in the zkVM; large-scale ML training is not demonstrated. Second, the fixed-circuit requirement forces approximations — fixed iteration counts instead of convergence checks, deterministic pseudo-random initialization instead of true randomness — whose effect on model quality relative to standard K-means/SVM is not quantified beyond qualitative claims of near-plaintext utility. Third, the semi-honest verifier assumption leaves fully malicious-verifier security unresolved. Fourth, filter generation for database statistics is ad hoc (uniform coordinate sampling); whether learned or tree-based filter distributions yield tighter noise (smaller Σ2) is left open. Finally, no end-to-end wall-clock timings or proof sizes are reported, making deployment cost comparisons against VerDP-style DP systems difficult.
Conclusion
This paper formulates the first ZKP framework attesting correct computation and application of PAC Privacy noise, using transparent, non-interactive zk-STARKs in RISC Zero across K-means, SVM, and statistical database queries. Its contribution is primarily architectural: showing that PAC's black-box noise determination can be embedded in arithmetical circuits despite determinism constraints, with provably affine proof-generation cost in the relevant parameters. Whether the approach extends to larger models and adversarial verifiers remains open.