Abstract
As Large Language Models (LLMs) are increasingly integrated into daily applications, the risk of exposing sensitive Personal Identifiable Information (PII) from their training data has become a primary concern. This study investigates the privacy risks associated with the GPT-Neo model family, drawing a critical distinction between a model's ability to memorize data and its ability to associate that data with specific individuals. Our findings suggest that while LLMs can regurgitate PII when provided with specific training context, they struggle to link identities to information in a vacuum. However, this "association gap" narrows significantly when attackers possess partial knowledge, such as an individual's workplace domain.
Introduction
The massive datasets used to train modern LLMs inevitably contain sensitive information, including names, phone numbers, and email addresses. While previous research has demonstrated that models can "memorize" segments of their training sets, the actual security risk depends on how an attacker can access this information. This paper addresses a fundamental question: Is the model a security risk because it "knows" your information, or simply because it can repeat it?
To answer this, the researchers identify a gap in how we define privacy leakage, distinguishing between memorization—the ability to complete a sequence given its original training context—and association—the ability to answer a direct query about an individual (e.g., "What is John Doe’s email?") without the original context.
Methodology
The study evaluated the GPT-Neo family of models, ranging from 125 million to 2.7 billion parameters. The researchers utilized the Enron Email Corpus, extracting 3,238 unique name-email pairs. To ensure the results were not skewed by the highly predictable nature of internal corporate emails, the authors focused on "non-Enron" domains to test the model's ability to handle diverse data.
The experimental framework consisted of three primary setups:
- Context-Based Memorization: Models were prompted with 50, 100, or 200 tokens that immediately preceded an email address in the training data to see if the model could complete the sequence.
- Zero-Shot and Few-Shot Association: Models were prompted with natural language queries like "The email address of [Name] is..." without providing training context.
- Known-Domain Scenarios: The researchers tested the models' performance when the attacker already knew the target's email domain (e.g.,
@company.com).
The Memorization-Association Gap
The core insight of the research is the "Memorization-Association Gap." The experiments revealed that LLMs are significantly more proficient at "parroting" information than they are at acting as a searchable database of personal facts.
Memorization Performance
When provided with the exact context from the training set, the GPT-Neo 2.7B model successfully recovered 8.8% of email addresses using a 200-token prefix. This confirms that models do retain specific PII strings. However, this type of leakage requires the attacker to already possess a significant portion of the text surrounding the PII, which limits the feasibility of a blind attack by an adversary who does not have access to the training corpus.
Association Performance
In a zero-shot setting where no training context was provided, the models' ability to link a name to an email address plummeted. Accuracy was frequently below 1%, suggesting that the models do not inherently "know" which email belongs to which person in a structured way. Without the "trigger" of the training context, the information remains largely inaccessible.
The Catalyst of Partial Knowledge
The privacy landscape shifts dramatically when an attacker possesses partial information. When the researchers provided the model with the target's email domain, the 2.7B model's accuracy in a zero-shot setting rose to 11.77%. In a 5-shot setting (providing five examples of name-email pairs), the accuracy jumped to 37.06%.
This suggests that the model's "success" in these scenarios is often a combination of memorization and sophisticated pattern matching. LLMs are adept at applying common naming conventions (e.g., [email protected]) to a known domain. When tested on emails that did not follow standard patterns or did not appear in the training set, the success rate dropped significantly, proving that much of the model's "knowledge" is actually the application of general patterns to memorized strings.
Scaling and Future Risks
The study confirms a concerning trend: privacy risk scales with model size. Larger models consistently outperformed smaller ones in both memorization and association tasks. As we continue to develop more powerful models with larger parameter counts, the likelihood of both accidental and targeted PII leakage increases, making privacy safeguards more urgent.
Conclusion and Mitigations
While the current difficulty of executing targeted association attacks provides some comfort, the risk is not negligible—especially as models grow larger and more capable. To mitigate these risks, the authors propose several defensive strategies:
- Differential Privacy (DP): Implementing DP during the training process to provide mathematical guarantees against individual data leakage.
- Deduplication: Removing duplicate entries in training sets to prevent the model from over-learning specific PII sequences through repetition.
- PII Scrubbing: Rigorous pre-processing to identify and remove sensitive information before training begins.
As LLMs become more integrated into the digital ecosystem, understanding the nuance between memorization and association will be vital for developing robust privacy safeguards that protect users without sacrificing model utility.
Summary updated