让大模型对齐更安全:用差分隐私保护训练数据不泄露
Differentially Private Steering for Large Language Model Alignment
- 通过差分隐私机制修改模型激活值,实现私有数据下的行为对齐
- 在7个基准上验证,性能损失极小,仍保持生成质量与推理能力
- 首次提出针对激活编辑的成员推断攻击,可实证评估隐私保护效果
大语言模型(LLM)与人类价值观对齐并避免不良行为(如幻觉)变得日益重要。近期,通过激活编辑在推理时引导模型行为的方法有效缓解了有害生成问题。该方法通过保留正向示例(如真实陈述)信息、最小化负向示例(如幻觉内容)信息来修改模型表征。当这些示例来自私有数据集时,对齐后的模型可能泄露原始样本的隐私。本文首次研究基于私有数据集的LLM行为对齐问题,提出私有对齐算法PSA(Private Steering for LLM Alignment),在激活编辑中提供差分隐私(DP)保障。我们在七项不同基准上,使用0.5B至7B参数量、涵盖LlaMa、Qwen、Mistral和Gemma等系列的开源模型进行了广泛实验。结果表明,PSA在实现差分隐私保证的同时,性能损失极小,包括对齐指标、开放式文本生成质量及通用推理能力。我们还开发了首个针对激活编辑式对齐的成员推断攻击(MIA),用于评估和审计实际隐私保护水平。实验结果支持理论保障,显示我们的PSA算法相比多种现有非私有方法具有更强的隐私保护能力。
原文摘要 · Abstract (English)
Aligning Large Language Models (LLMs) with human values and away from undesirable behaviors (such as hallucination) has become increasingly important. Recently, steering LLMs towards a desired behavior via activation editing has emerged as an effective method to mitigate harmful generations at inference-time. Activation editing modifies LLM representations by preserving information from positive demonstrations (e.g., truthful) and minimising information from negative demonstrations (e.g., hallucinations). When these demonstrations come from a private dataset, the aligned LLM may leak private information contained in those private samples. In this work, we present the first study of aligning LLM behavior with private datasets. Our work proposes the Private Steering for LLM Alignment (PSA) algorithm to edit LLM activations with differential privacy (DP) guarantees. We conduct extensive experiments on seven different benchmarks with open-source LLMs of different sizes (0.5B to 7B) and model families (LlaMa, Qwen, Mistral and Gemma). Our results show that PSA achieves DP guarantees for LLM alignment with minimal loss in performance, including alignment metrics, open-ended text generation quality, and general-purpose reasoning. We also develop the first Membership Inference Attack (MIA) for evaluating and auditing the empirical privacy for the problem of LLM steering via activation editing. Our experiments support the theoretical guarantees by showing improved guarantees for our PSA algorithm compared to several existing non-private techniques.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。