paper-with-me

홈 › Papers

Encrypted Vector Similarity Computations Using Partially Homomorphic Encryption: Applications and Performance Analysis

2025-03-07 · Sefik Serengil, Alper Ozpinar

This paper explores the use of partially homomorphic encryption (PHE) for encrypted vector similarity search, with a focus on facial recognition and broader applications like reverse image search, recommendation engines, and large language models (LLMs). While fully homomorphic encryption (FHE) exists, we demonstrate that encrypted cosine similarity can be computed using PHE, offering a more practical alternative. Since PHE does not directly support cosine similarity, we propose a method that normalizes vectors in advance, enabling dot product calculations as a proxy. We also apply min-max normalization to handle negative dimension values. Experiments on the Labeled Faces in the Wild (LFW) dataset use DeepFace's FaceNet128d, FaceNet512d, and VGG-Face (4096d) models in a two-tower setup. Pre-encrypted embeddings are stored in one tower, while an edge device captures images, computes embeddings, and performs encrypted-plaintext dot products via additively homomorphic encryption. We implement this with LightPHE, evaluating Paillier, Damgard-Jurik, and Okamoto-Uchiyama schemes, excluding others due to performance or decryption complexity. Tests at 80-bit and 112-bit security (NIST-secure until 2030) compare PHE against FHE (via TenSEAL), analyzing encryption, decryption, operation time, cosine similarity loss, key/ciphertext sizes. Results show PHE is less computationally intensive, faster, and produces smaller ciphertexts/keys, making it well-suited for memory-constrained environments and real-world privacy-preserving encrypted similarity search.

📄 PDF Abstract BibTeX arXiv:2503.05850

Code (3)

serengil/cipherface
serengil/deepface tf
serengil/lightphe

Tasks

Image RetrievalPrivacy Preserving

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

PRISM: Privacy-preserving Inference System with Homomorphic Encryption and Modular Activation

2025-11-11 · Zeinab Elkhatib, Ali Sekmen, Kamrul Hasan arxiv

With the rapid advancements in machine learning, models have become increasingly capable of learning and making predictions in various industries. However, deploying these models in critical infrastructures presents a ma…

CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations

2026-01-27 · Bilel Sefsaf, Abderraouf Dandani, Abdessamed Seddiki, Arab Mohammed 외 arxiv

Fully Homomorphic Encryption (FHE) enables computations directly on encrypted data, but its high computational cost remains a significant barrier. Writing efficient FHE code is a complex task requiring cryptographic expe…

Reinforcement Learning

ArctyrEX : Accelerated Encrypted Execution of General-Purpose Applications

2023-06-19 · Charles Gouert, Vinu Joseph, Steven Dalton, Cedric Augonnet 외

Fully Homomorphic Encryption (FHE) is a cryptographic method that guarantees the privacy and security of user data during computation. FHE algorithms can perform unlimited arithmetic computations directly on encrypted da…

CPU

Encrypted Linear Contextual Bandit

2021-03-17 · Evrard Garcelon, Vianney Perchet, Matteo Pirotta

Contextual bandit is a general framework for online learning in sequential decision-making problems that has found application in a wide range of domains, including recommendation systems, online advertising, and clinica…

Decision MakingMulti-Armed BanditsPrivacy PreservingRecommendation Systems+1

Collaborative Homomorphic Computation on Data Encrypted under Multiple Keys

2019-11-11 · Asma Aloufi, Peizhao Hu

Homomorphic encryption (HE) is a promising cryptographic technique for enabling secure collaborative machine learning in the cloud. However, support for homomorphic computation on ciphertexts under multiple keys is ineff…

Dimensionality Reduction