为善而记忆:使用自回归语言模型进行加密
Memorization for Good: Encryption with Autoregressive Language Models
AI总结:
本研究将语言模型的记忆能力转化为加密工具,提出首个基于自回归语言模型的对称加密算法SELM,实现任意数据的无损编码与解码,并通过IND-CPA变体验证其安全性。
摘要:
过度参数化的神经语言模型(LMs)能够记忆并背诵训练数据中的长序列。虽然这种记忆通常与过拟合和信息泄露等不良属性相关联,但我们的工作将记忆视为语言模型的一种未被探索的能力。我们提出了第一个使用自回归语言模型(SELM)的对称加密算法。我们展示了自回归语言模型可以将任意数据编码为紧凑的实值向量(即加密),然后通过随机子空间优化和贪婪解码将向量无损解码回原始消息(即解密)。虽然SELM不适用于传统的密码分析,我们通过一种新颖的经典IND-CPA(选择明文攻击下的不可区分性)游戏的实证变体来研究其安全性,并展示了有希望的安全结果。我们的代码和数据集可在https://github.com/OSU-NLP-Group/SELM获取。
英文摘要:
Over-parameterized neural language models (LMs) can memorize and recite long sequences of training data. While such memorization is normally associated with undesired properties such as overfitting and information leaking, our work casts memorization as an unexplored capability of LMs. We propose the first symmetric encryption algorithm with autoregressive language models (SELM). We show that autoregressive LMs can encode arbitrary data into a compact real-valued vector (i.e., encryption) and then losslessly decode the vector to the original message (i.e., decryption) via random subspace optimization and greedy decoding. While SELM is not amenable to conventional cryptanalysis, we investigate its security through a novel empirical variant of the classic IND-CPA (indistinguishability under chosen-plaintext attack) game and show promising results on security. Our code and datasets are available at https://github.com/OSU-NLP-Group/SELM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。