Tabby: A Synthesis-Aided Compiler for High-Performance Zero-Knowledge Proof Circuits
Zero-knowledge proof (ZKP) applications require translating high-level programs into arithmetic circuits—a process that demands both correctness and efficiency. While recent DSLs improve usability, they often yield suboptimal circuits, and hand-optimized implementations remain difficult to construct and verify. We present Tabby, a synthesis-aided compiler that automates the generation of high-performance ZK circuits from high-level code. Tabby introduces a domain-specific intermediate representation designed for symbolic reasoning and applies sketch-based program synthesis to derive optimized low-level implementations. By decomposing programs into reusable components and verifying semantic equivalence via SMT-based reasoning, Tabby ensures correctness while achieving substantial performance improvements. We evaluate Tabby on a suite of real-world ZKP applications and demonstrate significant reductions in proof generation time and circuit size against mainstream ZK compilers.
Authors
- Hanzhi Liu (ORCID: https://orcid.org/0000-0002-7027-8302)
- Luke Pearson
- Yanning Chen
- Jiaxin Song (ORCID: https://orcid.org/0000-0002-4847-9183)
- Junrui Liu (ORCID: https://orcid.org/0000-0002-9656-7073)
- Yu Feng (ORCID: https://orcid.org/0000-0003-1000-1229)
- Yanju Chen (ORCID: https://orcid.org/0000-0002-6494-3126)
- Hongbo Wen (ORCID: https://orcid.org/0000-0003-3517-445X)
Institutions
- University of California, Santa Barbara (US)
- University of Illinois Urbana-Champaign (US)
- University of Toronto (CA)
- University of French Polynesia (PF)
Publication Details
- Journal
- Proceedings of the ACM on Programming Languages
- Published
- 2025-10-09
- DOI
- https://doi.org/10.1145/3763110
- Primary Topic
- Cryptography and Data Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00