arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04124cs.AI
收藏

通过平坦度实现大语言模型的隐私保护微调

Privacy-preserving Fine-tuning of Large Language Models through Flatness

Arizona State University(亚利桑那州立大学);University of Minnesota(明尼苏达大学);University of Science and Technology of China(中国科学技术大学);North Carolina State University(北卡罗来纳州立大学);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校)

Tiejin Chen, Longchao Da, Huixue Zhou, Pingzhi Li, Kaixiong Zhou, Tianlong Chen, Hua Wei

AI总结:

针对大语言模型差分隐私微调泛化能力下降的问题,本文提出从三层由粗到细施加权重平坦度的框架,在保持隐私保护的同时显著提升泛化性能,在QNLI等数据集上验证了有效性。

摘要:

近年来,随着ChatGPT等大语言模型(LLMs)的发展,与LLMs使用相关的隐私担忧日益加剧。现有研究探索了差分隐私(DP)技术以缓解隐私风险,但代价是泛化能力下降。本文揭示了DP训练模型损失景观的平坦度在其隐私与泛化的权衡中起着关键作用。我们进一步提出了一个整体框架来施加适当的权重平坦度,该框架在保持有竞争力的隐私保护水平的同时,大幅提升了模型的泛化能力。该框架从三个由粗到细的层面进行创新:包括层内模型权重的感知扰动的最小-最大优化、跨层权重的平坦度引导的稀疏前缀调优,以及DP与非DP权重副本之间的权重知识蒸馏。我们在黑盒和白盒场景下开展了综合实验,证明了所提方法在增强泛化能力和维持DP特性方面的有效性。例如,在文本分类数据集QNLI上,DP-Flat在隐私预算ε=3的DP保证下,取得了与非隐私全微调相近的性能;在更高隐私预算下,性能甚至更优。代码已在补充材料中提供。

英文摘要:

The privacy concerns associated with the use of Large Language Models (LLMs) have grown recently with the development of LLMs such as ChatGPT. Differential Privacy (DP) techniques are explored in existing work to mitigate their privacy risks at the cost of generalization degradation. Our paper reveals that the flatness of DP-trained models' loss landscape plays an essential role in the trade-off between their privacy and generalization. We further propose a holistic framework to enforce appropriate weight flatness, which substantially improves model generalization with competitive privacy preservation. It innovates from three coarse-to-grained levels, including perturbation-aware min-max optimization on model weights within a layer, flatness-guided sparse prefix-tuning on weights across layers, and weight knowledge distillation between DP \& non-DP weights copies. Comprehensive experiments of both black-box and white-box scenarios are conducted to demonstrate the effectiveness of our proposal in enhancing generalization and maintaining DP characteristics. For instance, on text classification dataset QNLI, DP-Flat achieves similar performance with non-private full fine-tuning but with DP guarantee under privacy budget $ε=3$, and even better performance given higher privacy budgets. Codes are provided in the supplement.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑