SnarkFold: Efficient SNARK Proof Aggregation from Split Incrementally Verifiable Computation

Xun Liu, Shang Gao, Tianyu Zheng, Bin Xiao

TL;DR

SnarkFold is a novel proof aggregation scheme that achieves constant proof size and verification time, regardless of how many proofs are being combined. By leveraging a "two-folding" Incrementally Verifiable Computation (IVC) structure, it removes expensive pairing operations from the recursive circuit, making it significantly faster and cheaper for blockchain verifiers than existing logarithmic-scale solutions.

What Problem Does This Paper Address?

Succinct Non-interactive Arguments of Knowledge (SNARKs) are the backbone of blockchain scalability (like zk-Rollups) and privacy. However, verifying SNARKs individually is computationally expensive, leading to high "gas fees" for users.

To solve this, researchers use proof aggregation, where multiple proofs are squashed into one. Current mainstream methods (like SnarkPack or aPlonk) use techniques that result in proof sizes and verification costs that grow logarithmically ($O(\log n)$) with the number of proofs. Furthermore, these methods often require a "trusted setup" and force the verifier to perform heavy math—specifically elliptic curve pairings—which are notoriously slow on-chain. The authors of SnarkFold set out to reach the "holy grail" of aggregation: a scheme where the verifier's job doesn't get harder as the number of proofs increases.

Methods

SnarkFold shifts the paradigm by using Incrementally Verifiable Computation (IVC). Instead of building a complex tree of proofs, it treats aggregation as a step-by-step process where each new proof is "folded" into a running total.

The key innovations include:

  • Two-Folding Structure: Traditionally, recursive SNARKs are slow because verifying a SNARK inside another SNARK requires simulating elliptic curve pairings, which can take millions of logic gates. SnarkFold bypasses this by maintaining two separate "running" instances: one for the SNARK proofs themselves (algebraic folding) and one for the circuit's internal logic. This completely removes pairings from the recursive circuit.
  • Instance Delegation: In most schemes, the verifier must aggregate all public inputs ($u_i$) manually, which takes time proportional to the number of proofs ($O(n)$). SnarkFold delegates this task to the prover. To ensure the prover doesn't cheat, the verifier performs a lightweight "preprocessing" step using simple hash operations to create a "binding claim."
  • Relaxed Relations for Groth16 and Plonk: The authors developed new "relaxed" versions of the popular Groth16 and Plonk protocols. These versions include extra "error terms" that absorb the mathematical cross-talk generated during the folding process, ensuring the final aggregated proof remains valid.

Datasets

As a theoretical and systems paper, SnarkFold was evaluated using cryptographic benchmarks rather than traditional datasets. The implementation was written in Rust and evaluated using:

  • BN254/Grumpkin: A "half-pairing" cycle of elliptic curves commonly used in high-performance zero-knowledge systems.
  • Baselines: The performance was compared against state-of-the-art aggregation schemes: TIPP, SnarkPack, and aPlonk.

Key Insights and Ideas

  • Folding vs. Verifying: The "aha moment" is realizing that you don't need to verify a proof to aggregate it. You only need to fold it into a structure that can be verified once at the very end. This is what allows the recursive circuit to stay small and fast.
  • Pairing Deferral: By moving the expensive pairing checks (the most "expensive" part of SNARK verification) to the final step outside the recursion, the system achieves massive efficiency gains.
  • Hash-based Binding: Using a hash chain for public input aggregation is a clever way to keep the verifier's work minimal ($O(n)$ hashes vs. $O(n)$ expensive group operations) while maintaining total security.

Key Results

The experimental results demonstrate a clear lead over existing methods:

  • Constant Proof Size: For Plonk, the aggregated proof size is just 0.5 KB, whether you are aggregating 10 proofs or 4,096. In contrast, aPlonk’s proof size grows to 13 KB for 4,096 proofs.
  • Blazing Fast Verification: Verifying 4,096 aggregated Plonk proofs takes only 4.5 ms with SnarkFold, compared to 38 ms for aPlonk.
  • No Trusted Setup: Unlike GIPA-based schemes, SnarkFold’s aggregation layer does not require a new trusted setup.
  • Prover Efficiency: The SnarkFold prover is roughly 10-20% faster than aPlonk because the recursive circuit is significantly leaner.

Limitations and Future Work

  • Non-Uniform Circuits: While the paper proposes a method for aggregating proofs from different circuits (non-uniform structures), this adds some pairing overhead. Optimizing this for heterogeneous proof batches is a potential area for improvement.
  • Prover Memory: Like most IVC-based systems, the prover still faces significant memory and computational requirements as the number of steps increases, though it remains more efficient than its direct competitors.
  • Curve Dependency: The most efficient version of the system relies on specific cycles of elliptic curves, which may limit its immediate portability to blockchains that only support specific, older curves.

Summary updated

BibTeX
@article{liu2023snarkfold,
  author = {Xun Liu and Shang Gao and Tianyu Zheng and Bin Xiao},
  title = {{SnarkFold: Efficient SNARK Proof Aggregation from Split Incrementally Verifiable Computation}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2023},
  url = {https://openreview.net/forum?id=PprQyteB69},
}
Figure