Repository navigation
CROSS v1.0.0
Why your AI ASICs like TPU only serve AI training or inference?
CROSS turns TPU into Homomorphic Encryption (HE) Accelerator, breaking the records established by GPUs, being the new SoTA throughput and energy efficiency solution for HE operators. We let the code speak.
CROSS redefines the boundary of what AI ASICs can accelerate. We proves that applications with static scheduling of modular arithmetic could be transformed into kernels suitable for TPU, inheriting the SoTA energy efficiency and throughput of modern AI ASICs without any hardware modification. By proving that statically scheduled modular arithmetic can be transformed into TPU-suitable layout-invariant low-precision matrix multiplication and vectorized arithmetic, and by introducing BAT and MAT as reusable compiler instruments, CROSS opens a paradigm for the AI-ASIC ecosystem to support privacy-preserving AI and cryptography-based computing at scale.
The key of CROSS have two computation transformations techniques
-
Basis Aligned Transformation: reform high-precision modular multiplication as a low-precision dense matrix multiplication to be accelerated by Matrix Multiplication Engine (MXU) in TPU.
-
Memory Aligned Transformation: embed explicit memory reorganization into computation to directly generate results in the expected layout without paying runtime layout transformation overhead.
CROSS has been recognized with (1) 2nd award at university Demo @ DAC'25, (2) GT Startup Launch, (3) GT NEXT Award. And we open-source CROSS and will give tutorial with Google at ASPLOS'26 @ Pittsburgh. And we will consistently maintain CROSS for enabling community to further pushing the boundary of homomorphic encryption.
Feel free to drop me a line for questions / feature request and welcome to contribute -- your voice would be valued!
Enjoy CROSS at following links!
- Paper: https://arxiv.org/pdf/2501.07047v3
- Code: see this package
- Tutorial: https://github.com/EfficientPPML/CROSS_Tutorial