TL;DR
CECILIA is a new three-party secure computation framework that enables privacy-preserving machine learning for highly complex mathematical operations. By introducing novel protocols for exact exponential functions and matrix inverse square roots, it achieves the first-ever fully private inference on Recurrent Kernel Networks (RKNs) without sacrificing model accuracy.
What Problem Does This Paper Address?
As machine learning models are increasingly deployed in the cloud, protecting the privacy of both user data (e.g., medical records) and proprietary model parameters (e.g., neural network weights) has become a critical challenge.
Existing cryptographic solutions fall short when dealing with complex architectures:
- Differential Privacy (DiP) introduces noise, which inherently degrades model accuracy.
- Homomorphic Encryption (HE) is computationally heavy and severely limits the types of operations you can perform practically.
- Secure Multi-Party Computation (MPC) splits data into randomized "shares" across different parties, but traditional MPC frameworks struggle with non-linear, complex functions like exponentials ($e^x$) or matrix operations.
Because of these limitations, advanced models like Recurrent Kernel Networks (RKNs)—which are highly effective for sequence data like proteins but rely heavily on exponential kernels and Gram matrix manipulations—have remained entirely incompatible with privacy-preserving deployment.
Methods
CECILIA relies on a three-party computation (3PC) setup featuring two proxy parties ($P_0$ and $P_1$) who hold secret-shared data, and a helper party ($P_2$) that assists with complex calculations without ever seeing the underlying plaintext data. The framework operates on a 64-bit fixed-point number format.
The authors build a pipeline of privacy-preserving blocks, starting from standard primitives and scaling up to highly complex operations:
- Basic Building Blocks: Optimized protocols for Modulus Conversion (MOC), private Most Significant Bit (MSB) extraction, and a Multiplexer (MUX) based on randomized encodings.
- Exact Exponential Computation (EXP): Instead of relying on Taylor series approximations (the standard approach in literature), CECILIA extends the classic square-and-multiply algorithm to work securely with negative numbers and fractional parts in a secret-shared domain.
- Inverse Square Root of a Gram Matrix (INVSQRT): To compute $G^{-1/2}$ privately, the proxies mask the secret Gram matrix using a common orthogonal matrix and random scalars before sending it to the helper party. The helper performs an eigenvalue decomposition and returns the masked results, allowing the proxies to reconstruct the final inverse square root matrix blindly.
The framework uses these blocks to implement a privacy-preserving RKN (ppRKN), mapping out the entire arithmetic circuit securely.
Datasets
The framework was evaluated using two types of data:
- SCOP (Structural Classification of Proteins) version 1.67: A real-world dataset containing 85 fold-recognition tasks used to evaluate the correctness of the privacy-preserving RKN inference against protein sequences of varying lengths.
- Synthetic Datasets: Two custom-generated synthetic sequence datasets designed specifically to stress-test the framework's runtime scalability against hyperparameters (number of anchor points $q$, k-mer length $k$, and sequence length $s$).
Key Insights and Ideas
- Ditching Approximations: The paper proves that you don't have to settle for polynomial approximations for transcendental functions in MPC. By combining secure MSB extraction and bit-shifting, the exact square-and-multiply method can be adapted for fixed-point secret shares.
- Secure Matrix Blinding: The INVSQRT protocol demonstrates that complex matrix decompositions can be safely outsourced to an untrusted helper. By applying random orthogonal transformations, the eigenvectors remain completely hidden from the helper, changing the paradigm for how we handle linear algebra in secure ML.
Key Results
- Near-Zero Accuracy Loss: When testing ppRKN on the SCOP dataset, the maximum absolute difference between the privacy-preserving model's predictions and the plaintext model's predictions was less than $2 \times 10^{-5}$. The tiny deviation is purely due to standard fixed-point truncation errors.
- Linear Scalability: Benchmarks across both Local Area Network (LAN) and Wide Area Network (WAN) environments showed that CECILIA's execution time scales linearly with k-mer length and input sequence length, proving its viability for practical deployment.
Limitations and Future Work
The primary limitation lies within the INVSQRT protocol. To prevent data overflow during the matrix masking phase, the random values must be selected from a specific, bounded range. This restriction means that the shares do not possess complete mathematical randomness, slightly leaking the upper and lower boundaries of the secret values to a malicious party.
The authors note that this can be bypassed by securely outsourcing the pre-computed inverse square root matrices alongside the model weights. For future work, they plan to develop a fully random MPC protocol for INVSQRT and expand CECILIA to support privacy-preserving model training, rather than just inference.
Summary updated