Skip to main content
QUICK REVIEW

[论文解读] Continual Pretraining on Encrypted Synthetic Data for Privacy-Preserving LLMs

Honghao Liu, Xuhui Jiang|arXiv (Cornell University)|Jan 9, 2026
Privacy-Preserving Technologies in DataComputer Science被引用 0
一句话总结

本文提出一种基于实体的加权图数据合成框架,通过 AES 加密 PII,使得在加密的合成数据上进行持续预训练 LLM 成为可能,在保护隐私的同时保持学习效果。

ABSTRACT

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.

研究动机与目标

  • 在大规模数据不可用或存在隐私风险的情况下,解决从小型、领域特定语料库中学习的挑战并在预训练过程中不暴露私有数据。
  • 开发一个受带权实体图引导的加密合成数据生成流水线。
  • 在云端保持输出可解密同时数据以密文形式保护。
  • 通过有限规模的实验,证明在隐私敏感数据集上进行加密持续预训练的可行性。

提出的方法

  • 使用命名实体识别(NER)模型和大语言模型(LLMs)提取实体,形成一个 PII 感知的实体图。
  • 将 PII 通过确定性 AES 的 ECB 模式进行加密,并以 Base64 编码并附带前缀以便清晰区分。
  • 利用 GPT-4o 和 DeepSeek 在加密表示条件下生成合成数据,然后进行质量过滤。
  • 在加密的合成数据上对 Llama3-8B 与 Qwen2.5-7B 进行预训练,以从密文表示中学习。
  • 通过在问题中屏蔽 PII 并对比密文模型与基线模型在问答任务中的表现来评估隐私保护效果。
Figure 1: The task for privacy-preserving LLMs 1 1 1 The PII shown in the figure is synthetic and not real. .
Figure 1: The task for privacy-preserving LLMs 1 1 1 The PII shown in the figure is synthetic and not real. .

实验结果

研究问题

  • RQ1LLM 是否能够通过在加密合成数据上的持续预训练来获取领域知识,而不暴露明文 PII?
  • RQ2实体相关因素(实体数量、关系元组长度)如何影响下游问答性能?
  • RQ3加密与非加密合成数据预训练在性能上的权衡是什么?
  • RQ4加密模型是否能够保留指令遵循能力和检索增强生成能力?
  • RQ5在此设置下确定性加密的安全含义和局限性是什么?

主要发现

  • 在加密合成数据上进行预训练的模型在小型领域问答任务上始终优于基线模型。
  • 增加实体数量和增加关系元组长度会提升性能,元组长度达到 10 时效果最佳。
  • 加密模型显示出显著的隐私保护效果,解密后的问题在遮蔽 PII 时性能会下降。
  • 检索增强生成对加密数据的性能提升有效,尽管完全加密的 PII 相比未加密数据可能减少收益。
  • 相对于未加密的合成数据,加密带来适度的准确性权衡,但仍维持有益的知识迁移。
  • 该方法证明了在隐私敏感领域实现隐私保护的持续预训练的可行性。
Figure 2: A privacy-preserving approach for LLM pretraining by synthesizing data with entities, encrypting PII using the AES, and training the model on the encrypted data.
Figure 2: A privacy-preserving approach for LLM pretraining by synthesizing data with entities, encrypting PII using the AES, and training the model on the encrypted data.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。