Artemis: Efficient Commit-and-Prove SNARKs

arXiv:2409.12055 · cs.CR · Submitted 2024-09-18 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: I'm Nadia.

Elias: And I'm Elias, here with Priya.

Nadia: We're looking at the paper: "Artemis: Efficient Commit-and-Prove SNARKs".

Title and authors: Nadia: So we’re talking about the paper titled "Artemis: Efficient Commit-and-Prove SNARKs" and who wrote it. It’s by Hidde Lycklama, Alexander Viand, Nikolay Avramov, Nicolas Kuchler, and Anwar Hithnawi.

Elias: Yeah, the title is pretty straightforward—Artemis: Efficient Commit-and-Prove SNARKs—suggesting the main goal is making commitment verification efficient in this area. It’s a new approach to how we handle that consistency check between the model and its commitment.

Priya: I wonder what that means for us when we think about deploying these kinds of AI systems where privacy matters, like medical imaging or financial data processing.

Nadia: Well, it means they are addressing the fact that existing methods often let those commitment checks dominate the prover's time, sometimes taking more than ninety percent of it for larger models like GPT-two <ref:2409.12055#pg1>.

Elias: That’s a big deal because if you have a model that takes hours to run, and you spend all that time just checking consistency with its commitment, that inference pipeline becomes unusable.

Priya: So the core idea is to reduce the overhead associated with those checks so we can actually use these powerful AI models in real-world, practical scenarios.

The paper's summary: Nadia: The paper explains that Artemis is a zero-knowledge Commit-and-Prove SNARK construction that directly targets this bottleneck of commitment verification in zkML pipelines.

Elias: They contrast it with existing approaches by saying Artemis is compatible with any homomorphic polynomial commitment, which means it removes the dependency on trusted setup for proving and allows deployment across different kinds of commitments like KZG or IPA commitments.

Priya: That’s important because those trusted setups can be a hurdle for many applications we're looking at in privacy-preserving AI, so removing that dependency is a nice addition.

Nadia: Beyond just the compatibility with different commitment schemes, they detail two key technical insights to optimize the proof generation process itself.

Elias: That’s where things get interesting because they talk about arithmetization based alignment, which involves using Plonkish arithmetizations to perform alignment right inside the proof instead of relying on many external proofs.

Priya: How does that actually help with performance in practice? Does it just make the proof generation faster or something more concrete?

Elias: It drastically reduces the number of shifting proofs needed, for example, for an inference proof for MobileNet, Lunar requires twenty shifting and twenty linking proofs to do something similar, but Apollo only needs a single linking proof >

Nadia: And they also have this idea called polynomial-equality linking. That insight lets them reduce the desired commitment linking down to just a simple comparison of two polynomials using Schwartz-Zippel, which can be made zero-knowledge through masking.

The paper's improvements: Priya: So, if I’m hearing you right, they aren't just making a proof faster; they are changing *how* the proof is built internally to avoid doing tons of unnecessary work.

Elias: Precisely. By using arithmetization based alignment, they eliminate the need for those shifting proofs entirely in many cases, which means the prover overhead drops significantly when you look at models like VGG, where they reduce commitment checks from eleven point five times down to about one point one times >

Nadia: That reduction is huge. But there's another trick they use for handling the model weights themselves. They introduce an extra advice column for the result of Horner’s method evaluation to aggregate all the weights and coefficients, which effectively reduces all those commitment checks down to just a single polynomial evaluation >

Elias: And that Horner’s method part is clever because it allows them to compute a partial polynomial evaluation recursively, where the partial evaluation for the j-th degree is done efficiently using a selector column to store things like the weight of that term and the next step in the computation >

Priya: That sounds like they’ve managed to get a lot of computation packed into one spot, which makes sense when you’re dealing with massive models where fitting everything into one column is hard.

Nadia: And for making sure that commitment verification itself is zero-knowledge, they replace traditional methods with simple masking, where you take the polynomial and add a random masking value to make the result uniformly random over F >

Elias: That masking setup then lets the verifier check polynomial equality through a linear combination involving the commitment and a challenge from the verifier, ensuring that no information about your external witness polynomials leaks out.

Conclusion: Nadia: So to wrap up, Artemis significantly advances what we have for Commit-and-Prove SNARKs by removing the need for trusted setups inherent in the most competitive existing works.

Elias: They demonstrate substantial concrete performance gains, especially regarding prover overhead, showing that with Artemis it’s possible to apply zkML with commitment verification to large models of real-world interest >

Priya: From my side, what stands out is that they show that even when using KZG or IPA commitments without a trusted setup, Artemis delivers very similar prover times compared to earlier constructions like Lunar and Apollo >

Nadia: That’s a key point because it means we’re not sacrificing performance just by moving away from the trusted setup requirement. The other three constructions they looked at had similarly smaller memory overheads, at most one point one eight times >

Elias: In short, the Artemis paper shows that you can get this level of verification for large models without the trust assumptions, and it does it while keeping memory overhead manageable compared to other approaches >

Priya: It seems like they’ve really made a practical case for using this construction in real-world AI pipelines where we need both verifiability and strong privacy protections.

Nadia: So that’s the Artemis paper, showing how to handle commitment verification efficiently without the setup overhead, which should open up more possibilities for private AI deployment.

ETH Zurich · Intel Labs · University of Toronto

cs.CR

Submitted: 2024-09-18

Updated: 2026-12-01

Comments: 25 pages

Code: https://github.com/pps-lab/artemis

Project page: https://zcash.github.io/halo2

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 85/100

The gist: Ensuring that AI models are both verifiable and privacy-preserving is important for trust, accountability…

Key concepts

Commitment Verification in zkML
This refers to the process of proving that a machine learning model's computations are correct without exposing the model's internal parameters or training data. Artemis focuses on making this verification process fast and private, which is crucial for building trust in AI systems.
Arithmetization-based Alignment
This technique uses Plonkish arithmetizations to align polynomials inside the proof structure. Instead of needing many external proofs, this method performs the necessary alignment once within the main proof. This dramatically cuts down on the number of linking proofs required for verification.
Polynomial-Equality Linking
This insight simplifies verifying polynomial equality by using a simple comparison technique called Schwartz-Zippel, made zero-knowledge through masking. By computing a linear combination involving the verifier's challenge ($\alpha$), Artemis checks if two polynomials are equal without revealing the underlying witness data.
Trusted Setup Removal
Traditional SNARKs often require a 'trusted setup' phase to generate necessary public parameters. Artemis removes this dependency by replacing pairing-based linking proofs with polynomial evaluation arguments, allowing it to work with any homomorphic commitment scheme, including those that do not require a trusted setup.

Terminology

Summary

Ensuring that AI models are both verifiable and privacy-preserving is important for trust, accountability, and compliance. p. 0<ref:2409.12055#pg13>

The Problem Addressed

Recent research has focused on developing zero-knowledge machine learning (zkML) techniques that enable the verification of various aspects of ML models without revealing sensitive information.<ref:2409.12055#pg13>. This paper introduces a new Commit-and-Prove SNARK (CP-SNARK) construction, Artemis, that effectively addresses the emerging challenge of commitment verification in zkML pipelines. p. 0<ref:2409.12055#pg13>

Artemis Construction

Artemis is a new (zero-knowledge) Commit-and-Prove SNARK that significantly improves upon the existing state-of-the-art in performance, virtually eliminating the overhead of commitment verification for zkML applications.<ref:2409.12055#pg13>. Artemis further replaces pairingbased linking proofs with an efficient polynomial evaluation argument (cf. p. 1 § 4.2), enabling compatibility with any homomorphic polynomial commitment scheme and removing the dependency on trusted setup. p. 1<ref:2409.12055#pg13, While Artemis is a generic CP-SNARK, we demonstrate its practical relevance through an extensive evaluation on diverse ML models, including GPT-2 [45] >

Arithmetization Extensions

The paper details two key insights for optimizing the proof generation process:

  1. Arithmetization-based Alignment: This involves leveraging Plonkish arithmetizations to perform alignment once inside the proof, rather than using many external proofs. p. 6<ref:2409.12055#pg4>. This approach entirely removes the need to perform the shifting proofs and dramatically reduces the number of linking proof instances. p. 6<ref:2409.12055#pg7, For example, for an inference proof for MobileNet [47], Lunar requires 20 shifting and 20 linking proofs, while Apollo requires only a single linking proof >

  2. Polynomial-Equality Linking: This insight reduces the desired commitment linking to a simple comparison of two polynomials via Schwartz-Zippel, which can be made zeroknowledge via masking. p. 8<ref:2409.12055#pg9, We compute a linear combination with the additional challenge \alpha from the verifier; specifically, we set: \rho = (\mu + \sum_{i=1}^{P_\ell} w_i \cdot \alpha_i) where \mu is the degree-0 polynomial defined by \mu, and w^* = \mu + \sum_{i=1}^{P_\ell} w^*_i \cdot \alpha_i >

Performance Evaluation

The experimental evaluation shows that Artemis substantially outperforms existing CP-SNARK approaches, improving upon the state of the art by an order of magnitude while also removing the need for a trusted setup.<ref:2409.12055#pg13, In comparison, our constructions Apollo and Artemis outperform the related approaches across all configurations, introducing an overhead of only 1. p. 801x-1.15x for KZG and 1. p. 403x-1.45x for IPA >. p. 4 Artemis consistently outperforms Apollo when both are using KZG commitments. p. 1<ref:2409.12055#pg8>

Conclusion

In this paper, we show that Artemis significantly advances upon the state-of-the-art for (zero-knowledge) Commit-and-Prove SNARKs (CP-SNARKs), removing the need for trusted setups inherent in the most competitive existing works and demonstrating significant concrete performance gains, especially in terms of prover overhead.<ref:2409.12055#pg16, With our evaluation, we show that, with Artemis, it is possible to apply zkML with commitment verification to large models of real-world interest >. p. 6 The paper concludes that Artemis offers very similar prover times whether using KZG or IPA commitments (without trusted setup), a setting which Lunar and Apollo do not support. p. 0<ref:2409.12055#pg16>. The other three constructions, meanwhile, incur roughly similar and significantly smaller memory overheads (at most 1. p. 518x).<ref:2409.12055#pg16>. The paper presents a full proof of security for Artemis in Appendix A. p. 91.<ref:2409.12055#pg18>

Experimental Setup

The evaluation was performed on AWS EC2 instances running Ubuntu 24.04, with different instances used depending on the requirements for each model. p. 5<ref:2409.12055#pg15>. The evaluation covers models ranging from MNIST to GPT-2. p. 1<ref:2409.12055#pg15, In general, both approaches remain prohibitively expensive, especially for larger models >

Implementation Details

The implementation of Artemis uses Rust as an extension of the Halo2 library.<ref:2409.12055#pg14, We implement all techniques in Rust, as an extension of the Halo2 library [21], which includes implementations for KZG- [32] and IPA-based [5] zeroknowledge proofs >. Artemis uses Halo2’s standard implementation of polynomial commitments and implements the arithmetization of polynomial evaluation using Horner’s method (cf. p. 8 § 4.3) as a gadget in the Halo2 library. p. 1<ref:2409.12055#pg14, We leverage the Halo2 Challenge API, which allows the definition of custom gates parameterized by verifier challenges [18] >

Security Proof

Theorem A.2 states that Artemis is a CP-SNARK for the relation R and commitment scheme PC. p. 8<ref:2409.12055#pg18, We now show that there exists an extractor EArtemis that, assuming the existence of extractors EPIOP for PIOP, EPCˆ for PCˆ, and EPC for PC, outputs a valid witness ( \tilde{w}, r_1, \dots, r_\ell) for RCom with non-negligible probability given access to A >. We now provide a detailed proof. p. 5 The probability that r˜1,. p. 9.., r˜l̸=r1,..., rl depends on the probability that any of the points α(j), r∗,(j), is not on ˜r∗, or fails to be extracted by EPC. p. 6<ref:2409.12055#pg18>. Artemis satisfies zero-knowledge if PIOP is zero-knowledge, and PCˆ and PC are hiding. p. 2<ref:2409.12055#pg18, Concretely, we show that there exists a simulator SART = (SART. p. 2Setup, SART. p. 0Prove) that outputs a valid transcript when given an instance (x, c1,. p. 2..

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Commit-and-Prove SNARK construction Artemis removes the need for expensive 'shifting' proofs used by existing constructions by utilizing efficient arithmetizationbased alignment (cf. § 4.1). This significantly reduces prover costs, as shown in the example where for the VGG model, we reduce the overhead associated with commitment checks from 11.5x to 1.1x.

  2. Artemis enables compatibility with any homomorphic polynomial commitment scheme, including those without trusted setup, by replacing pairingbased linking proofs with an efficient polynomial evaluation argument (cf. § 4.2). This removes the dependency on trusted setup for proving and allows deployment across various commitment types like KZG or IPA commitments.

  3. The Artemis construction optimizes witness alignment by adding an extra advice column for the result of Horner's method evaluation, which is a custom gate constraint bh(X,..., ana+1(X), ana+2(X), pnp+1(X), fnf +1(X)) = fnf +1(X) · (ana+2(X · ω) · pnp+1(X) − ana+2(X)) to handle large model weights. This allows the system to effectively aggregate all wi and ci, thereby reducing the number of commitment checks to a single polynomial evaluation.

  4. The use of Horner's method for internal polynomial evaluation allows for a recursive computation where the partial evaluation for the j-th degree as ρj = w(j) + β ∗ ρj+1 with ρd = 0 is computed efficiently using a selector column fnf +1, ana+2 to store w(j), and ana+2 to store ρj. This supports larger commitments by allowing the system to compute the result of a polynomial evaluation at a specific point without requiring the entire witness to fit within a single column.

  5. Artemis provides zero-knowledge for commitment verification by replacing traditional methods with simple masking, i.e., ρ = wi(β) + µ for a random masking value µ ← Fp. This allows the verifier to check polynomial equality via a linear combination c ← cµ + Pl i=1 ci · α i, ensuring that the resulting evaluation result ρ is uniformly random over F and reveals no information about the external witness polynomials.

Sources

Related papers