Skip to content

Special Character Attack: Scalably Extracting Training Data from Large Language ModelsSpecial Characters Attack: Toward Scalable Training Data Extraction From Large Language Models

arXiv· arXiv:2405.05990· Yang Bai, Ge Pei, Jindong Gu, Yong Yang, Xingjun Ma·Indexed by this site · 27 days ago· Originally publishedAttacks
AI summary

The researchers propose the Special Character Attack (SCA), which uses special characters and their combinations with English letters as stronger memorization triggers to induce large language models to leak training data. The intuition is that pretraining corpora contain large numbers of special characters (such as the structural symbols { and } in JSON files, and @ and # in emails and posts), and models may have memorized the co-occurrence relationships between these characters and the original text. Experiments show that SCA is highly effective against state-of-the-art LLMs, can leak code corpora, web pages and personally identifiable information, and sometimes causes the model to generate output endlessly. The authors further show that inspecting the leaked data can reveal the composition of the training corpus, and state that this work helps understand LLMs' sensitivity to special characters and identify directions for improvement.

Read originalarxiv.org