arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.01550cs.CLcs.CRcs.LG
收藏

通过相异性学习策略缓解语言模型中的近似记忆问题

Mitigating Approximate Memorization in Language Models via Dissimilarity Learned Policy

University of Windsor(温莎大学)

Aly M. Kassem

AI总结:

针对大语言模型记忆训练数据引发的隐私风险,提出基于PPO强化学习、以负相似度得分为奖励的相异性策略框架,可在保持生成质量的同时有效缓解各类场景下的近似记忆问题。

摘要:

大语言模型(LLM)在海量数据上训练,这些数据可能包含会损害个人隐私的敏感信息。研究表明,LLM会记忆部分训练数据,当攻击者给出恰当提示时,模型会逐字输出这些数据。此前的研究主要聚焦于数据预处理和差分隐私技术来解决记忆问题,或是仅专门防范逐字记忆,这可能会带来虚假的隐私安全感。但这些方法依赖于对受保护数据结构的显式和隐式假设,往往无法彻底解决该问题。为此,我们提出一种新颖框架,采用强化学习方法PPO(近端策略优化)微调LLM以缓解近似记忆问题。我们的方法使用负相似度得分(如BERTScore或SacreBLEU)作为奖励信号,学习相异性策略。结果表明,该框架可有效缓解近似记忆,同时能保持生成样本的高连贯性和流畅度。此外,该框架在多种场景下缓解近似记忆的表现都很稳健,包括会加剧LLM记忆问题的长上下文场景。

英文摘要:

Large Language models (LLMs) are trained on large amounts of data, which can include sensitive information that may compromise personal privacy. LLMs showed to memorize parts of the training data and emit those data verbatim when an adversary prompts appropriately. Previous research has primarily focused on data preprocessing and differential privacy techniques to address memorization or prevent verbatim memorization exclusively, which can give a false sense of privacy. However, these methods rely on explicit and implicit assumptions about the structure of the data to be protected, which often results in an incomplete solution to the problem. To address this, we propose a novel framework that utilizes a reinforcement learning approach (PPO) to fine-tune LLMs to mitigate approximate memorization. Our approach utilizes a negative similarity score, such as BERTScore or SacreBLEU, as a reward signal to learn a dissimilarity policy. Our results demonstrate that this framework effectively mitigates approximate memorization while maintaining high levels of coherence and fluency in the generated samples. Furthermore, our framework is robust in mitigating approximate memorization across various circumstances, including longer context, which is known to increase memorization in LLMs.

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

↑