Special Characters Attack: Toward Scalable Training Data Extraction From Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved remarkable performance on a wide range of tasks. However, recent studies have shown that LLMs can memorize training data and simple repeated tokens can trick the model to leak the data. In this paper, we take a step further and show that certain special characters or their combinations with English letters are stronger memory triggers, leading to more severe data leakage. The intuition is that, since LLMs are trained with massive data that contains a substantial amount of special characters (e.g. structural symbols {, } of JSON files, and @, # in emails and online posts), the model may memorize the co-occurrence between these special characters and the raw texts. This motivates us to propose a simple but effective Special Characters Attack (SCA) to induce training data leakage. Our experiments verify the high effectiveness of SCA against state-of-the-art LLMs: they can leak diverse training data, such as code corpus, web pages, and personally identifiable information, and sometimes generate non-stop outputs as a byproduct. We further show that the composition of the training data corpus can be revealed by inspecting the leaked data -- one crucial piece of information for pre-training high-performance LLMs. Our work can help understand the sensitivity of LLMs to special characters and identify potential areas for improvement.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 30 of its 73 references that are in the map. First posted on arXiv 9 May 2024.
Builds on
30 of 73 references.
References · 30
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
- 2021Carbon Emissions and Large Neural Network Trainingcited by 567
18 more
- 2023Benchmarking Large Language Models for News Summarizationcited by 445
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
- 2023Large Language Models Are State-of-the-Art Evaluators of Translation Qualitycited by 420
- 2020Label-Only Membership Inference Attackscited by 388
- 2022Will we run out of data? Limits of LLM scaling based on human-generated datacited by 195
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 148
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 129
- 2022From Images to Textual Prompts: Zero-shot VQA with Frozen Large Language Modelscited by 115
- 2020Sponge Examples: Energy-Latency Attacks on Neural Networkscited by 111
- 2024Rethinking LLM Memorization through the Lens of Adversarial Compressioncited by 94
- 2024Inducing High Energy-Latency of Large Vision-Language Models with Verbose Imagescited by 69
- 2020A Panda? No, It's a Sloth: Slowdown Attacks on Adaptive Multi-Exit Neural Network Inferencecited by 61
- 2024Fishing for Magikarp: Automatically Detecting Under-trained Tokens in Large Language Modelscited by 46
- 2023Controlling the Extraction of Memorized Data from Large Language Models via Prompt-Tuningcited by 40
- 2023RETA-LLM: A Retrieval-Augmented Large Language Model Toolkitcited by 40
- 2023SoK: Memorization in General-Purpose Large Language Modelscited by 37
- 2022LLMEffiChecker: Understanding and Testing Efficiency Degradation of Large Language Modelscited by 16
- 2024Energy-Latency Manipulation of Multi-modal Large Language Models via Verbose Samplescited by 14
Built on by
Citing papers per year: 2024: 8; 2025: 8; 2026: 1.
17 papers.
Sort:
By area:
- 2024Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothingcited by 346
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
- 2024Improved Techniques for Optimization-Based Jailbreaking on Large Language Modelscited by 110
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 67
- 2024Embedding-based classifiers can detect prompt injection attackscited by 27
- 2025A Survey on Privacy Risks and Protection in Large Language Modelscited by 21
- 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimationcited by 12
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigationcited by 10
- 2024Video Watermarking: Safeguarding Your Video from (Unauthorized) Annotations by Video-based LLMscited by 7
- 2025The Surprising Effectiveness of Membership Inference with Simple N-Gram Coveragecited by 7
- 2024Recent Advances in Attack and Defense Approaches of Large Language Modelscited by 6
5 more
- 2024Towards Data Governance of Frontier AI Modelscited by 3
- 2024Large Language Models as Carriers of Hidden Messagescited by 2
- 2024Soft-Label Integration for Robust Toxicity Classificationcited by 1
- 2025Beyond Frequency: The Role of Redundancy in Large Language Model Memorizationcited by 0
- 2026Implicit Reasoning Steering via Concept Chainingcited by 0
- 2026Implicit Reasoning Steering via Concept Chaining15 Jul 2026
- 2025The Surprising Effectiveness of Membership Inference with Simple N-Gram Coverage13 Aug 2025
- 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimation12 Jul 2025
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation8 Jul 2025
- 2025Beyond Frequency: The Role of Redundancy in Large Language Model Memorization14 Jun 2025
- 2025A Survey on Privacy Risks and Protection in Large Language Models4 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety2 Feb 2025
- 2024Towards Data Governance of Frontier AI Models5 Dec 2024
- 2024Embedding-based classifiers can detect prompt injection attacks29 Oct 2024
- 2024Soft-Label Integration for Robust Toxicity Classification18 Oct 2024
5 more
- 2024Recent Advances in Attack and Defense Approaches of Large Language Models5 Sep 2024
- 2024Video Watermarking: Safeguarding Your Video from (Unauthorized) Annotations by Video-based LLMs2 Jul 2024
- 2024Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothing12 Jun 2024
- 2024Large Language Models as Carriers of Hidden Messages4 Jun 2024
- 2024Improved Techniques for Optimization-Based Jailbreaking on Large Language Models31 May 2024
- 2024Improved Techniques for Optimization-Based Jailbreaking on Large Language Modelscited by 110
- 2024Embedding-based classifiers can detect prompt injection attackscited by 27
- 2025A Survey on Privacy Risks and Protection in Large Language Modelscited by 21
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigationcited by 10
- 2024Video Watermarking: Safeguarding Your Video from (Unauthorized) Annotations by Video-based LLMscited by 7
- 2025The Surprising Effectiveness of Membership Inference with Simple N-Gram Coveragecited by 7
- 2025The Surprising Effectiveness of Membership Inference with Simple N-Gram Coverage13 Aug 2025
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation8 Jul 2025
- 2025A Survey on Privacy Risks and Protection in Large Language Models4 May 2025
- 2024Embedding-based classifiers can detect prompt injection attacks29 Oct 2024
- 2024Video Watermarking: Safeguarding Your Video from (Unauthorized) Annotations by Video-based LLMs2 Jul 2024
- 2024Improved Techniques for Optimization-Based Jailbreaking on Large Language Models31 May 2024
- 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimationcited by 12
- 2024Recent Advances in Attack and Defense Approaches of Large Language Modelscited by 6
- 2024Towards Data Governance of Frontier AI Modelscited by 3
- 2024Large Language Models as Carriers of Hidden Messagescited by 2
- 2024Soft-Label Integration for Robust Toxicity Classificationcited by 1
- 2025Beyond Frequency: The Role of Redundancy in Large Language Model Memorizationcited by 0
- 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimation12 Jul 2025
- 2025Beyond Frequency: The Role of Redundancy in Large Language Model Memorization14 Jun 2025
- 2024Towards Data Governance of Frontier AI Models5 Dec 2024
- 2024Soft-Label Integration for Robust Toxicity Classification18 Oct 2024
- 2024Recent Advances in Attack and Defense Approaches of Large Language Models5 Sep 2024
- 2024Large Language Models as Carriers of Hidden Messages4 Jun 2024