Abstract
This paper presents a specialized protocol for secure remote data classification, enabling neural network inference on private data without exposing the raw data to the model owner or the model's proprietary weights and architecture to the user. By combining homomorphic encryption with novel techniques for handling non-linearities and structural obfuscation, the authors achieve privacy with significantly lower overhead than general secure multi-party computation.
Introduction
The rise of "Diagnosis-as-a-Service" highlights a critical privacy conflict: patients possess sensitive medical data, while providers hold proprietary, high-value neural network models. Traditional solutions often require one party to trust the other or rely on general Secure Multi-Party Computation (SMC), which is computationally prohibitive for complex non-linear operations like activation functions. This research proposes a middle ground—a protocol tailored for feedforward neural networks that ensures mutual privacy efficiently.
Methodology
The protocol rests on three primary technical pillars designed to protect both the data inputs and the model's internal structure.
1. Homomorphic Encryption
The linear components of the network—calculating weighted sums—are handled using Damgård-Jurik homomorphic encryption. This allows the model owner (Bob) to perform additions and multiplications on the user's (Alice's) encrypted data. Bob computes the weighted sum of inputs without ever accessing the raw values.
2. The Sigmoid Trick
Non-linear activation functions, such as the sigmoid, are typically difficult to compute homomorphically. The authors circumvent this by exploiting the sigmoid's antisymmetry property: $g(-a) = 1 - g(a)$.
In this "Sigmoid Trick," Bob randomly flips the sign of an encrypted sum before sending it to Alice. Alice decrypts the value, applies the sigmoid function, and returns the result. Due to the random sign flip, Alice cannot determine the actual activation state of the neuron, and Bob can later "un-flip" the result to maintain correct computation.
3. Network Embedding and Scrambling
To protect the network's architecture (the number of layers and neurons), Bob embeds the functional network into a larger grid of "fake" neurons.
By scrambling the positions of real and fake neurons, Bob presents Alice with a uniform block of computations. Alice performs the necessary decryptions for the entire grid, but only a fraction of these operations contribute to the actual classification result, effectively hiding the true model topology.
Experimental Evaluation
The protocol was evaluated using two datasets from the UCI Machine Learning Repository: Sonar (60 inputs, 12 hidden neurons) and Nursery (8 inputs, 20 hidden neurons).
Key findings include:
- Scalability: Execution time scales linearly with the "embedding ratio"—the proportion of fake to real neurons.
- Feasibility: In 2008-era hardware environments, a network with an embedding ratio of 10 completed inference in 50–150 seconds.
- Efficiency: The communication overhead remained practical; for example, the Nursery dataset required only ~368kB of data exchange.
Discussion and Limitations
While the protocol offers a significant performance boost over generic SMC, it operates under a "semi-honest" security model, assuming parties follow the protocol but may attempt to infer extra information. It remains vulnerable to "sensitivity attacks," where a malicious user might reverse-engineer decision boundaries through repeated queries. Furthermore, the transition from theoretical integer-based encryption to high-precision floating-point arithmetic presents ongoing implementation challenges.
Summary updated