用加密合成数据实现隐私保护的持续预训练,提升LLM安全性。
Continual Pretraining on Encrypted Synthetic Data for Privacy-Preserving LLMs
- 基于实体图生成加密数据,保护个人身份信息
- 模型性能接近未加密合成数据,仍保留指令遵循能力
- 适合关注隐私安全的领域模型定制场景
在小规模领域语料上预训练大语言模型时,如何保护敏感数据隐私是一大挑战。本文提出一种基于实体的框架,通过构建加权实体图指导合成加密数据,对敏感信息(PII)使用确定性加密,使模型可在持续预训练中学习新知识,同时授权用户通过密钥解密访问原始数据。实验显示,该方法在有限数据集上优于基础模型,确保了PII安全,性能与未加密合成数据相比略有差距。增加实体数量并结合图结构合成可提升模型表现,加密模型仍具备长上下文指令跟随能力。讨论了确定性加密的安全性与局限,定位本工作为隐私保护预训练数据设计空间的初步探索。代码已开源:https://github.com/DataArcTech/SoE。
原文摘要 · Abstract (English)
Preserving privacy in sensitive data while pretraining large language models on small, domain-specific corpora presents a significant challenge. In this work, we take an exploratory step toward privacy-preserving continual pretraining by proposing an entity-based framework that synthesizes encrypted training data to protect personally identifiable information (PII). Our approach constructs a weighted entity graph to guide data synthesis and applies deterministic encryption to PII entities, enabling LLMs to encode new knowledge through continual pretraining while granting authorized access to sensitive data through decryption keys. Our results on limited-scale datasets demonstrate that our pretrained models outperform base models and ensure PII security, while exhibiting a modest performance gap compared to models trained on unencrypted synthetic data. We further show that increasing the number of entities and leveraging graph-based synthesis improves model performance, and that encrypted models retain instruction-following capabilities with long retrieved contexts. We discuss the security implications and limitations of deterministic encryption, positioning this work as an initial investigation into the design space of encrypted data pretraining for privacy-preserving LLMs. Our code is available at https://github.com/DataArcTech/SoE.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。