arXiv:2411.05034cs.CRcs.AI2024-11AAAI被引 10

Eguard通过优化文本互信息,保护LLM嵌入免受隐私泄露攻击。

Eguard: Defending LLM Embeddings Against Inversion Attacks via Text Mutual Information Optimization

  • 用Transformer投影网络与文本互信息优化嵌入表示
  • 防御攻击下95%以上令牌无法被逆向还原
  • 兼顾隐私保护与下游任务性能,适合安全敏感场景

嵌入向量因能将文本转化为富含语义和语法信息的稠密数值表示,已成为大型语言模型(LLMs)的核心组件,作为模型的长期记忆支持多种自然语言处理任务。然而,嵌入向量数据库在LLM中的广泛应用也引发隐私泄露担忧,尤其易受嵌入逆向攻击——攻击者可利用嵌入反推原始文本中的敏感信息。现有防御方法难以在安全性和下游任务性能间取得平衡。为此,我们提出Eguard,一种新型防御机制,采用基于Transformer的投影网络与文本互信息优化策略,在保护嵌入隐私的同时维持模型实用性。实验表明,该方法可使超过95%的令牌在逆向攻击中无法被恢复,且在下游任务上表现与原始嵌入一致。

原文摘要 · Abstract (English)

Embeddings have become a cornerstone in the functionality of large language models (LLMs) due to their ability to transform text data into rich, dense numerical representations that capture semantic and syntactic properties. These embedding vector databases serve as the long-term memory of LLMs, enabling efficient handling of a wide range of natural language processing tasks. However, the surge in popularity of embedding vector databases in LLMs has been accompanied by significant concerns about privacy leakage. Embedding vector databases are particularly vulnerable to embedding inversion attacks, where adversaries can exploit the embeddings to reverse-engineer and extract sensitive information from the original text data. Existing defense mechanisms have shown limitations, often struggling to balance security with the performance of downstream tasks. To address these challenges, we introduce Eguard, a novel defense mechanism designed to mitigate embedding inversion attacks. Eguard employs a transformer-based projection network and text mutual information optimization to safeguard embeddings while preserving the utility of LLMs. Our approach significantly reduces privacy risks, protecting over 95% of tokens from inversion while maintaining high performance across downstream tasks consistent with original embeddings.

LLM安全嵌入防御隐私保护

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。