DARPA DPRIVE

DARPA DPRIVE BASALISC Bespoke Asynchronous Silicon-Accelerated LWE Intrinsics with Software/Hardware Codesign

Abstract

Galois, Inc., KU Leuven, Zama, the University of Arkansas, and Microsoft are pleased to propose Bespoke Asynchronous Silicon-Accelerated LWE Intrinsics via Software/Hardware Codesign (BASALISC) as a project for DPRIVE. Our team includes experts in FHE protocols; FHE hardware acceleration; large digital SoC design; asynchronous circuits; formal methods for verification; dataflow architecture; memory access optimization; FHErelevant applications; and deploying custom hardware in cloud environments. Fully homomorphic encryption (FHE) promises to secure the “last mile” of data confidentiality—during computation—but current schemes are 10,000_ or more too slow. Some inefficiencies are inherent to making FHE “hard” cryptographically, but others can be mitigated; these include the growth rate of computational error, multiplicative operations that complicate ciphertext representation, and the inability of CPUs to efficiently compute on large-modulus values and optimize memory access patterns to maximize throughput. BASALISC addresses these issues in several ways. We accelerate commonly used FHE primitives with a complement of purpose-built hardware functions. We explore ciphertext representation to determine whether a LAWS (vectors of large-modulus coefficients) or RNS (arrays of smallmodulus factors of coefficients) representation provides better application performance in hardware, and implement accordingly. We accelerate on-chip data movement using asynchronous circuit techniques coupled with a dataflow microarchitecture so that processing elements operate independently, constrained only by availability of inputs. We analyze common FHE data addressing patterns and single instruction/multiple data (SIMD) opportunities to optimize memory hierarchy and management, reducing those availability constraints. To demonstrate BASALISC’s flexibility while maximizing performance, we focus on two very different FHE schemes: bootstrapped BGV and Torus FHE (TFHE). We explore commonalities that may allow us to support other protocols such as CKKS. We explicitly codesign these protocols, the BASALISC architecture, our optimized data access patterns, and our ASIC hardware. We equip our designs to support flexible data structures and programming models for FHE. We reduce manufacturing risk of our hardware coprocessor by formally verifying functional correctness, combining multiple formal reasoning techniques into a new automated verification infrastructure. We aim to realize a performance gain of 10,000_ as follows: 300_ from ASIC-based hardware acceleration;1 a factor of 2 from use of asynchronous instead of clocked logic;2 a factor of 10 from LAWS arithmetic instead of RNS approaches;3 a factor of 3.5 from our dataflow approach;and a factor of 2 from optimizing memory access patterns and vectorization.5 While these factors are not completely independent, we believe an overall performance gain of 10,000_ is feasible. BASALISC will bring performance of FHE for key application classes to within 10_ of plaintext, resulting in a sea change in FHE adoption.