TLDR: EP-HDC is a new privacy-preserving machine learning (PPML) method that uses Hyperdimensional Computing (HDC) with client-side Homomorphic Encryption (HE). Unlike previous methods where user data is encrypted and sent to a server, EP-HDC encrypts the model parameters and sends them to the client, allowing inference to happen locally. This approach drastically reduces encryption and data transmission overheads, leading to significantly higher throughput (up to 1068x) and lower latency (up to 733x) compared to existing PPML methods, with minimal accuracy loss. It offers a scalable and efficient solution for privacy-sensitive AI applications.
As artificial intelligence becomes more integrated into our daily lives, ensuring the privacy of personal data is a growing concern. Imagine using a facial recognition system, but you don’t want your image to be seen by the company providing the service. This is where privacy-preserving machine learning (PPML) comes in, allowing computations on encrypted data without revealing the sensitive information.
One powerful technique for PPML is Homomorphic Encryption (HE), which enables arithmetic operations directly on encrypted data. However, HE has traditionally been very computationally expensive, limiting its use to simple tasks and small neural networks. Recently, a different approach called Hyperdimensional Computing (HDC) has shown promise when combined with HE, offering much faster performance than traditional deep neural network (DNN) based PPML methods.
The Challenge with Existing Privacy-Preserving Methods
While HE-HDC (Hyperdimensional Computing with Homomorphic Encryption) was a significant step forward, it still faced considerable challenges, especially in real-world scenarios like batch inference – where many inputs are processed simultaneously. The main issues were the high computational time for HE operations, and substantial overheads related to encrypting data and transmitting it between the client (your device) and the server (the service provider).
For instance, in a typical HE-HDC setup, your device would encode your data (like an image) into a ‘query hypervector,’ encrypt it, and send it to the server. The server would then perform the similarity search (the core of HDC inference) on this encrypted data. This process meant that a lot of data had to be encrypted and sent, leading to bottlenecks.
Introducing EP-HDC: A Client-Side Solution
To tackle these problems, researchers have proposed a novel approach called EP-HDC, which stands for Hyperdimensional Computing with Encrypted Parameters. The key innovation here is ‘client-side HE.’ Instead of your private data being encrypted and sent to the server, the machine learning model itself (specifically, the ‘class hypervectors’ that represent different categories) is encrypted and sent to your device. Your device then performs the inference using this encrypted model and your unencrypted data.
This shift offers several crucial advantages:
- Reduced Encryption Overhead: Since your input data doesn’t need to be encrypted before sending, the time spent on encryption is dramatically cut. The model parameters are encrypted only once.
- Lower Communication Costs: Instead of sending large encrypted query hypervectors, your device only sends back the much smaller encrypted similarity scores to the server. The encrypted model parameters are sent only once.
- High Scalability: This approach is highly scalable, allowing many clients to use the service efficiently.
- Strong Privacy: It still provides robust protection for both your private data and the intellectual property of the model parameters.
How EP-HDC Works and Its Applications
EP-HDC builds upon the principles of Hyperdimensional Computing, which represents data as high-dimensional vectors called hypervectors. Inference involves encoding input data into a query hypervector and then comparing its similarity to pre-trained ‘class hypervectors’ to determine the classification. In EP-HDC, this similarity search happens on your device using the encrypted class hypervectors.
This client-side HE model opens doors for various applications. For example, in ‘Encrypted Model Distribution,’ a server can provide an encrypted model to clients, who then perform inference locally. The server can still receive the final (plaintext) result, allowing it to manage model usage or provide authentication services. In ‘Privacy-Preserving Authentication,’ like face recognition, your device processes your face image locally with the encrypted model, and only sends the similarity score (e.g., a match or no match) to the server, never revealing your actual face image.
Optimizing for Performance and Accuracy
The researchers also conducted extensive ‘design space exploration’ to optimize EP-HDC’s performance. This involved carefully tuning parameters related to quantization (reducing the precision of numbers to speed up computations) and the HE scheme itself (using BFV/BGV schemes which are efficient for integer operations). They developed an algorithm to find the best combination of these parameters to maximize accuracy while minimizing latency and computational cost.
Also Read:
- LSHFed: Securing Federated Learning with Efficient Gradient Verification
- Collaborative AI Strengthens Ransomware Defense While Protecting Data Privacy
Impressive Results
Experimental results using datasets like Face and Emotion demonstrated significant improvements. Compared to previous HDC-based PPML methods, EP-HDC achieved 96.7 to 612 times higher throughput (more operations per second) and maintained superior accuracy. When compared to older DNN-based PPML methods, EP-HDC showed an even more dramatic improvement, with 36.52 to 1068 times higher throughput and 6.45 to 733 times faster latency, all with less than 1% accuracy degradation.
These findings suggest that EP-HDC offers a viable and highly efficient solution for privacy-preserving machine learning, particularly for applications where both data privacy and high performance are critical. For more technical details, you can refer to the full research paper here.


