Memorization for Good: Encryption with Autoregressive Language Models
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Oct-13-2023
- Country:
- North America > United States
- Ohio (0.04)
- District of Columbia > Washington (0.04)
- New York > New York County
- New York City (0.04)
- Europe
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Romania > Sud - Muntenia Development Region
- Giurgiu County > Giurgiu (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Spain > Catalonia
- North America > United States
- Genre:
- Research Report
- New Finding (0.93)
- Experimental Study (0.67)
- Research Report
- Industry:
- Information Technology > Security & Privacy (1.00)
- Technology: