PrivacyXray: Detecting Privacy Breaches in LLMs through Semantic Consistency and Probability Certainty
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are widely used in sensitive domains, including healthcare, finance, and legal services, raising concerns about potential private information leaks during inference. Privacy extraction attacks, such as jailbreaking, expose vulnerabilities in LLMs by crafting inputs that force the models to output sensitive information. However, these attacks cannot verify whether the extracted private information is accurate, as no public datasets exist for cross-validation, leaving a critical gap in private information detection during inference. To address this, we propose PrivacyXray, a novel framework detecting privacy breaches by analyzing LLM inner states. Our analysis reveals that LLMs exhibit higher semantic coherence and probabilistic certainty when generating correct private outputs. Based on this, PrivacyXray detects privacy breaches using four metrics: intra-layer and inter-layer semantic similarity, token-level and sentence-level probability distributions. PrivacyXray addresses critical challenges in private information detection by overcoming the lack of open-source private datasets and eliminating reliance on external data for validation. It achieves this through the synthesis of realistic private data and a detection mechanism based on the inner states of LLMs. Experiments show that PrivacyXray achieves consistent performance, with an average accuracy of 92.69% across five LLMs. Compared to state-of-the-art methods, PrivacyXray achieves significant improvements, with an average accuracy increase of 20.06%, highlighting its stability and practical utility in real-world applications.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 36 of its 54 references that are in the map. First posted on arXiv 24 Jun 2025.
Builds on
36 of 54 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
- 2022Large Language Models Encode Clinical Knowledgecited by 1,830
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
- 2023The Internal State of an LLM Knows When It's Lyingcited by 659
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
24 more
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Modelscited by 437
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 383
- 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
- 2024LoRA Learns Less and Forgets Lesscited by 328
- 2023FinGPT: Open-Source Financial Large Language Modelscited by 253
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 226
- 2023Shifting Attention to Relevance: Towards the Predictive Uncertainty Quantification of Free-Form Large Language Modelscited by 150
- 2023KGA: A General Machine Unlearning Framework Based on Knowledge Gap Alignmentcited by 99
- 2023Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generationcited by 96
- 2022The Text Anonymization Benchmark (TAB): A Dedicated Corpus and Evaluation Framework for Text Anonymizationcited by 95
- 2023HuatuoGPT-II, One-stage Training for Medical Adaption of LLMscited by 92
- 2022Automatic Clipping: Differentially Private Deep Learning Made Easier and Strongercited by 88
- 2023Benchmarking large language models for biomedical natural language processing applications and recommendationscited by 78
- 2024A Closer Look at the Limitations of Instruction Tuningcited by 77
- 2024LLM-PBE: Assessing Data Privacy in Large Language Modelscited by 41
- 2024GoldCoin: Grounding Large Language Models in Privacy Laws via Contextual Integrity Theorycited by 37
- 2023The Janus Interface: How Fine-Tuning in Large Language Models Amplifies the Privacy Riskscited by 36
- 2024Mind the Privacy Unit! User-Level Differential Privacy for Language Model Fine-Tuningcited by 24
- 2024On Calibration of LLM-based Guard Models for Reliable Content Moderationcited by 23
- 2023UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendationcited by 20
- 2023Investigating the Effect of Misalignment on Membership Privacy in the White-box Settingcited by 9
- 2024FinLoRA: Finetuning Quantized Financial Large Language Models Using Low-Rank Adaptationcited by 3
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026LLM-CEG: Extending the Classification Error Gauge Framework for Privacy Auditing of Large Language Models ↗
- 2025A Survey on Privacy Risks and Protection in Large Language Models
- 2025PIG: Privacy Jailbreak Attack on LLMs via Gradient-based Iterative In-Context Optimization
- 2026On the Privacy of LLMs: An Ablation Study
- 2024PrivacyRestore: Privacy-Preserving Inference in Large Language Models via Privacy Removal and Restoration
- 2025The Model's Language Matters: A Comparative Privacy Analysis of LLMs
- 2024Preserving Privacy in Large Language Models: A Survey on Current Threats and Solutions
- 2024Privacy-Preserving Large Language Models: Mechanisms, Applications, and Future Directions