Safeguarding LLM Embeddings in End-Cloud Collaboration via Entropy-Driven Perturbation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jin, Shuaifan, Pang, Xiaoyi, Wang, Zhibo, Wang, He, Du, Jiacheng, Hu, Jiahui, Ren, Kui
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913740405866496
author Jin, Shuaifan
Pang, Xiaoyi
Wang, Zhibo
Wang, He
Du, Jiacheng
Hu, Jiahui
Ren, Kui
author_facet Jin, Shuaifan
Pang, Xiaoyi
Wang, Zhibo
Wang, He
Du, Jiacheng
Hu, Jiahui
Ren, Kui
contents Recent studies improve on-device language model (LM) inference through end-cloud collaboration, where the end device retrieves useful information from cloud databases to enhance local processing, known as Retrieval-Augmented Generation (RAG). Typically, to retrieve information from the cloud while safeguarding privacy, the end device transforms original data into embeddings with a local embedding model. However, the recently emerging Embedding Inversion Attacks (EIAs) can still recover the original data from text embeddings (e.g., training a recovery model to map embeddings back to original texts), posing a significant threat to user privacy. To address this risk, we propose EntroGuard, an entropy-driven perturbation-based embedding privacy protection method, which can protect the privacy of text embeddings while maintaining retrieval accuracy during the end-cloud collaboration. Specifically, to defeat various EIAs, we perturb the embeddings to increase the entropy of the recovered text in the common structure of recovery models, thus steering the embeddings toward meaningless texts rather than original sensitive texts during the recovery process. To maintain retrieval performance in the cloud, we constrain the perturbations within a bound, applying the strategy of reducing them where redundant and increasing them where sparse. Moreover, EntroGuard can be directly integrated into end devices without requiring any modifications to the embedding model. Extensive experimental results demonstrate that EntroGuard can reduce the risk of privacy leakage by up to 8 times at most with negligible loss of retrieval performance compared to existing privacy-preserving methods.
format Preprint
id arxiv_https___arxiv_org_abs_2503_12896
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Safeguarding LLM Embeddings in End-Cloud Collaboration via Entropy-Driven Perturbation
Jin, Shuaifan
Pang, Xiaoyi
Wang, Zhibo
Wang, He
Du, Jiacheng
Hu, Jiahui
Ren, Kui
Cryptography and Security
Recent studies improve on-device language model (LM) inference through end-cloud collaboration, where the end device retrieves useful information from cloud databases to enhance local processing, known as Retrieval-Augmented Generation (RAG). Typically, to retrieve information from the cloud while safeguarding privacy, the end device transforms original data into embeddings with a local embedding model. However, the recently emerging Embedding Inversion Attacks (EIAs) can still recover the original data from text embeddings (e.g., training a recovery model to map embeddings back to original texts), posing a significant threat to user privacy. To address this risk, we propose EntroGuard, an entropy-driven perturbation-based embedding privacy protection method, which can protect the privacy of text embeddings while maintaining retrieval accuracy during the end-cloud collaboration. Specifically, to defeat various EIAs, we perturb the embeddings to increase the entropy of the recovered text in the common structure of recovery models, thus steering the embeddings toward meaningless texts rather than original sensitive texts during the recovery process. To maintain retrieval performance in the cloud, we constrain the perturbations within a bound, applying the strategy of reducing them where redundant and increasing them where sparse. Moreover, EntroGuard can be directly integrated into end devices without requiring any modifications to the embedding model. Extensive experimental results demonstrate that EntroGuard can reduce the risk of privacy leakage by up to 8 times at most with negligible loss of retrieval performance compared to existing privacy-preserving methods.
title Safeguarding LLM Embeddings in End-Cloud Collaboration via Entropy-Driven Perturbation
topic Cryptography and Security
url https://arxiv.org/abs/2503.12896