EinHops: Einsum Notation for Expressive Homomorphic Operations on RNS-CKKS Tensors
Karthik Garimella, Austin Ebel, Brandon Reagen

TL;DR
EinHops introduces a novel approach to perform multi-dimensional tensor operations in Fully Homomorphic Encryption (FHE) using Einstein summation notation, improving transparency and flexibility in encrypted tensor computations.
Contribution
The paper presents EinHops, a system that decomposes einsum expressions into FHE-friendly operations, enabling explicit, interpretable, and general encrypted tensor processing.
Findings
Successfully performs complex tensor operations like transpose and contraction in FHE.
Provides full visibility into tensor packing strategies during encrypted computation.
Demonstrates simplicity and generality of the einsum-based approach in FHE tensor operations.
Abstract
Fully Homomorphic Encryption (FHE) is an encryption scheme that allows for computation to be performed directly on encrypted data, effectively closing the loop on secure and outsourced computing. Data is encrypted not only during rest and transit, but also during processing. However, FHE provides a limited instruction set: SIMD addition, SIMD multiplication, and cyclic rotation of 1-D vectors. This restriction makes performing multi-dimensional tensor operations challenging. Practitioners must pack these tensors into 1-D vectors and map tensor operations onto this one-dimensional layout rather than their traditional nested structure. And while prior systems have made significant strides in automating this process, they often hide critical packing decisions behind layers of abstraction, making debugging, optimizing, and building on top of these systems difficult. In this work, we…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCryptography and Data Security · Cryptography and Residue Arithmetic · Cryptographic Implementations and Security
