PrivacyXray: Detecting Privacy Leakage in Large Language Models via Semantic Coherence and Probabilistic CertaintyPrivacyXray: Detecting Privacy Breaches in LLMs through Semantic Consistency and Probability Certainty
AI summary
PrivacyXray detects privacy leakage in reasoning by analyzing the internal states of large language models, achieving an average accuracy of 92.69% across five LLMs. The method is based on the fact that when a model outputs correct private information, semantic coherence and probabilistic certainty are higher; it makes judgments using four metrics—intra-layer and inter-layer semantic similarity, and token-level and sentence-level probability distributions—and uses synthetic privacy data to eliminate dependence on external validation data. Compared with state-of-the-art methods, average accuracy improves by 20.06%.