TL;DR
Geppetto is a high-performance system for Verifiable Computation (VC) that dramatically reduces the overhead for provers. By introducing "MultiQAPs" for state sharing and "energy-saving circuits" for conditional logic, it allows a prover to generate proofs for complex, real-world C programs with orders of magnitude better efficiency than previous state-of-the-art systems.
What Problem Does This Paper Address?
The dream of cloud computing is to outsource heavy computations to a remote server. However, if the server is untrusted or prone to errors, the client needs a way to verify that the result is correct without re-running the entire computation.
While recent protocols (like Pinocchio) made verification nearly instantaneous for the client, they left the prover with a massive burden: generating a proof often takes 3 to 6 orders of magnitude longer than the original computation. Furthermore, these systems struggled with:
- State Sharing: Passing data between different parts of a computation (like MapReduce steps) was prohibitively expensive.
- Worst-Case Execution: Provers had to pay for every possible branch of an
if-elsestatement, even if only one path was taken. - Cryptographic Overhead: Verifying "crypto-on-crypto" (e.g., checking a digital signature within a verified computation) was extremely slow due to field mismatches.
Methods
Geppetto introduces four interlocked techniques to solve these bottlenecks:
- MultiQAPs: Instead of one giant circuit, Geppetto breaks programs into smaller, reusable components. These components share state via "buses." This allows the prover to commit to a dataset once and use it across many proofs, reducing the cost of sharing state by up to 375x compared to traditional hashing.
- Energy-Saving Circuits: In standard VC, the prover does work for the entire circuit. Geppetto ensures that wires in unused branches evaluate to zero. Since the underlying cryptographic operations (multi-exponentiations) are "free" for zero values, the prover only pays for the execution path actually taken.
- Bounded Proof Bootstrapping: To keep proofs small, Geppetto uses "proofs of proofs." While theoretical "unbounded" recursion exists, Geppetto opts for a "bounded" approach using a specific pair of elliptic curves (BN and Cocks-Pinch). This makes the "outer" proof capable of verifying the "inner" proof much more efficiently.
- LLVM-based Toolchain: Geppetto includes a full compiler that consumes LLVM bitcode. This allows developers to write standard C code and use familiar libraries while the system handles the complex translation into Quadratic Arithmetic Programs (QAPs).
Datasets
The authors evaluated Geppetto using several benchmarks rather than a single dataset:
- Microbenchmarks: Comparing the performance of the Barreto-Naehrig (BN) curve and the Cocks-Pinch (CP) curve.
- Matrix Exponentiation: Used to demonstrate the power of proof bootstrapping.
- MapReduce Patterns: Used to show how MultiQAPs efficiently handle shared state across parallel tasks.
- Cryptographic Libraries: The compiler was tested on large real-world codebases, including a library with over 4,000 lines of C code.
Key Insights and Ideas
- The "Aha!" of Zero: The most elegant insight is the "energy-saving" property. By structuring circuits so that inactive branches result in zero-valued wires, the authors exploited a fundamental property of the underlying cryptography: multiplying by zero requires no work. This moves VC closer to "actual-case" rather than "worst-case" performance.
- Native Field Alignment: Verifying a signature inside a proof is usually slow because the signature's math doesn't "fit" the proof's math. Geppetto chooses specific elliptic curves where the group order of one curve matches the prime field of the other, making "crypto-on-crypto" verification "native" and fast.
- Pragmatism over Universality: While other researchers focused on unbounded recursive proofs (which can go on forever but are very slow), Geppetto’s authors realized that bounded recursion (e.g., 14 proofs at a time) is sufficient for most apps and five orders of magnitude faster.
Key Results
- Massive Speedups: Geppetto’s bootstrapping is five orders of magnitude faster than previous unbounded approaches, achieving an effective "clock rate" of 2.6 KHz for the prover.
- Efficient Branching: In a circuit designed for five matrix multiplications, computing just one cost only 68% more than a dedicated single-multiply circuit, whereas previous systems would have cost 500% (a 5x penalty).
- State Sharing: MultiQAPs reduce the "degree" (complexity) of the proof by 45x to 375x per byte of shared state compared to using Merkle tree hashes.
- Scalability: The system successfully verified a computation involving 24 million LLVM instructions in about 152 minutes.
Limitations and Future Work
- Prover Latency: While 2.6 KHz is a massive improvement over milliHz, it is still incredibly slow compared to a modern 3 GHz processor. Proof generation remains the primary bottleneck for real-time applications.
- Key Generation: The "bounded" nature of the bootstrapping means the verifier must commit to a maximum number of proofs in advance during the setup phase.
- Curve Efficiency: The Cocks-Pinch curve used for the outer layer of bootstrapping is significantly less efficient than the inner BN curve, leading to higher costs for the final "compact" proof.
- Future Directions: The authors suggest that further optimizing the "outer" curve and exploring more automated ways to partition large programs into MultiQAPs are promising next steps.
Summary updated