Can Large Language Models Really Recognize Your Name?

Dzung Pham, Peter Kairouz, Niloofar Mireshghallah, Eugene Bagdasarian, Chau Minh Pham, Amir Houmansadr

TL;DR

While large language models (LLMs) are increasingly trusted to redact personally identifiable information (PII), they systematically fail to recognize uncommon human names that morphologically resemble non-human entities like locations or minerals. By introducing AmBench, a benchmark of over 12,000 ambiguous names, this paper demonstrates that state-of-the-art LLMs suffer a 20–40% drop in name recognition recall, creating severe and inequitable privacy vulnerabilities.

What Problem Does This Paper Address?

Modern privacy pipelines rely heavily on LLMs to scrub sensitive data—especially human names—from text snippets, medical records, and chat logs. The underlying assumption is that if a name is explicitly present, an LLM can reliably detect and redact it.

However, names are linguistically diverse and context-dependent. The authors tackle two primary vulnerabilities that break this assumption:

  1. Name Regularity Bias (NRB): LLMs tend to rely on superficial surface-level patterns rather than true contextual understanding. For instance, if a rare human name looks like a location ("Italys") or a mineral ("Adomite"), the LLM will often misclassify or completely ignore it, even when explicit grammatical cues (like the pronoun "she") clearly indicate the entity is a person.
  2. Benign Prompt Injection (BPI): When user text contains instruction-like phrasing (e.g., "Help me rephrase this sentence... keep the term Albanir intact"), the LLM-powered privacy tool can mistake the data for a system command, causing it to bypass redaction entirely.

This failure creates an unfair distribution of privacy risks, leaving individuals with rare, non-Western, or linguistically unique names highly vulnerable to data leaks.

Examples of Name Regularity Bias and Benign Prompt Injection failure modes.

Methods

The authors formalize the name detection problem under contextual ambiguity and build a automated pipeline to construct AmBench:

  • Orthographic Neighbor Search: They developed an efficient algorithm to mine public datasets for real human names that are exactly one Levenshtein edit distance away from non-human entities (e.g., Canad vs. Canada, Versache vs. Versace). Exact matches with non-human entities were filtered out using the Wikidata API to avoid genuine semantic ambiguity.
  • Ambiguous Template Generation: Using GPT-4o with chain-of-thought (CoT) reasoning, they generated concise, two-sentence text templates designed to be perfectly compatible with both human and non-human entities. These templates were rigorously validated by human annotators to ensure linguistic soundness.

Using AmBench, they systematically evaluated 12 state-of-the-art LLMs across reasoning, instruction-tuned, and small open-weight model families, alongside commercial data-leakage tools. They also performed a case study on Anthropic’s Clio, an enterprise tool used to extract privacy-preserving insights from user interactions with Claude.

Overview of the AmBench benchmark creation process.

Datasets

  • Baseline Names: A control group of the top 100 popular US baby boys' and girls' names from 1924–2023 (200 names total) provided by the US Social Security Administration.
  • AmBench: The newly introduced benchmark containing over 12,000 real, ambiguous human names categorized by their non-human counterparts: Locations, Organizations, Syndromes, Bacteria, and Minerals.
  • Reddit Usernames: A evaluation set of over 4,000 real hyphenated Reddit usernames used to test the generalizability of contextual ambiguity beyond standard human names.
Histograms showing the log-normal distribution of Google search occurrences for AmBench names.

Key Insights and Ideas

  • Surface Patterns Trump Context: LLMs frequently prioritize morphological suffixes (like "-ite" in Adomite) or strong semantic associations over direct contextual indicators (like "She feels both familiar...").
  • The Fairness Disparity: While common Western names enjoy near-perfect redaction, rare names are routinely leaked. This exposes a hidden fairness issue in automated privacy enforcement: your privacy protection depends heavily on how common your name is.
  • Accidental Sabotage via BPI: Prompt injections do not have to be malicious to succeed. Completely benign user requests embedded within data can inadvertently blind an enterprise privacy auditor to the presence of PII.
  • Reasoning Models Help, But Don't Cure: Advanced reasoning models (like GPT-5-mini and DeepSeek R1) show marked improvements in recall compared to standard instruction models, but they still struggle with consistency and precision.

Key Results

  • Severe Recall Drops: Across all tested LLMs, the recall for ambiguous AmBench names dropped by 20–40% compared to the popular baseline names.
  • Clio Leakage Quadrupled: In the case study evaluating Anthropic's Clio pipeline, the combination of Name Regularity Bias and Benign Prompt Injection quadrupled the PII leakage rate, jumping from 3.92% to 18.20%. Clio’s privacy auditor consistently failed to flag these leaked names.
  • Mitigation Gaps: Attempting to mitigate these failures by explicitly instructing the LLMs to watch out for stylized/unusual names or providing "cheat" examples improved recall but still left a persistent ~5% performance gap compared to baseline names.
Performance trends showing Recall vs. False Discovery Rate across different LLM families.

Limitations and Future Work

  • Template Complexity: The current benchmark relies on concise, two-sentence snippets. The authors acknowledge that the pipeline needs to scale to longer, more varied, and multi-document templates to simulate complex real-world data.
  • Scope of Ambiguity: AmBench primarily targets orthographic neighbors. Other critical dimensions of ambiguity—such as gender, cultural naming variations, or deeper linguistic biases—remain underexplored.
  • Countermeasure Development: While prompt-based defenses help, they are brittle. The authors emphasize the need for a systematic taxonomy of privacy failure modes to engineer robust, principled defenses (such as integrating LLMs with external knowledge bases via retrieval-augmented generation).

Summary updated

BibTeX
@inproceedings{pham2026can,
  author = {Dzung Pham and Peter Kairouz and Niloofar Mireshghallah and Eugene Bagdasarian and Chau Minh Pham and Amir Houmansadr},
  title = {{Can Large Language Models Really Recognize Your Name?}},
  booktitle = {FAccT},
  year = {2026},
  doi = {10.1145/3805689.3806747},
}
Figure