让大模型推理不传原文,保护隐私同时保持性能
Towards Privacy-Preserving Large Language Model: Text-free Inference Through Alignment and Adaptation
- 客户端编码文本为嵌入向量,服务器用嵌入而非原文生成回复
- 在私有数据上注入噪声微调,实现无原始文本暴露的适配
- 适合对隐私敏感的医疗、法律等场景使用
当前基于大语言模型的服务通常要求用户提交原始文本,无论其敏感程度如何。这种做法虽直观,却带来严重隐私风险,未经授权访问可能泄露个人、医疗或法律信息。尽管已有防御措施试图缓解风险,但往往伴随显著计算开销并降低模型性能。为此,我们提出隐私保护微调(PPFT)训练流程,无需传输原始提示文本即可保持客户端与服务端之间的隐私与效用平衡。该方法分两阶段:首先联合训练客户端编码器、服务端投影模块与大模型,使服务器能基于k个池化后的提示嵌入进行条件生成;其次,在私有领域数据上使用注入噪声的嵌入微调投影模块与大模型,实现有效适应而无需暴露原始文本,且不需访问解码器内部参数。在特定领域与通用基准上的大量实验表明,PPFT在隐私与性能间达到出色平衡,相比无噪声上限仅产生极小性能下降。
原文摘要 · Abstract (English)
Current LLM-based services typically require users to submit raw text regardless of its sensitivity. While intuitive, such practice introduces substantial privacy risks, as unauthorized access may expose personal, medical, or legal information. Although prior defenses strived to mitigate these risks, they often incur substantial computational overhead and degrade model performance. To overcome this privacy-efficiency trade-off, we introduce Privacy-Preserving Fine-Tuning (PPFT), a novel training pipeline that eliminates the need for transmitting raw prompt text while maintaining a favorable balance between privacy preservation and model utility for both clients and service providers. Our approach operates in two stages: first, we train a client-side encoder together with a server-side projection module and LLM, enabling the server to condition on k-pooled prompt embeddings instead of raw text; second, we fine-tune the projection module and LLM on private, domain-specific data using noise-injected embeddings, allowing effective adaptation without exposing plain text prompts and requiring access to the decoder's internal parameters. Extensive experiments on domain-specific and general benchmarks demonstrate that PPFT achieves a striking balance between privacy and utility, maintaining competitive performance with minimal degradation compared to noise-free upper bounds.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。