<https://github.com/ftramer/LM_Memorization> cybe...
# repolling
a
Suggested short title Stealing Secrets from Black‑Box Language Models Suggested cybersecurity‑centric abstract Large neural language models are increasingly deployed as online services, often trained on massive text corpora that may embed sensitive or identifying information. This paper demonstrates that such models can act as covert data exfiltration channels: an attacker with only black‑box query access can induce the model to emit verbatim fragments of its private training data, including personal contact information, identifiers, source code, and conversational logs. The attack combines tailored sampling strategies with ranking and filtering techniques that distinguish memorized strings from ordinary high‑likelihood text, enabling efficient extraction of rare, user‑specific sequences that appear only a handful of times in the original corpus. A large‑scale empirical study on a state‑of‑the‑art transformer model shows that hundreds of unique training snippets can be recovered in this way, with success rates increasing as model size grows, revealing a critical privacy and security weakness in current large‑scale training practices. The paper discusses the implications of these training‑data extraction attacks for model deployment, and evaluates mitigation directions such as privacy‑preserving training, dataset sanitization, and access‑control strategies for high‑risk AI services.