SPADR: A Context-Aware Pipeline for Privacy Risk Detection in Text Data
Large language models (LLMs) are powerful, but they can unintentionally memorize and leak sensitive information found in their training or input data. To address this issue, we propose SPADR, a semantic privacy anomaly detection and remediation pipeline designed to detect and remove privacy risks from text. SPADR addresses limitations in existing redaction methods by identifying deeper forms of sensitive content, including implied relationships, contextual clues, and non-standard identifiers that traditional NER systems often overlook. SPADR combines semantic anomaly scoring using a denoising autoencoder with named entity recognition and graph-based analysis to detect both direct and hidden privacy risks. It is flexible enough to work on both training data (to prevent memorization) and user input (to prevent leakage at inference time). We evaluate SPADR on the Enron Email Dataset, where it significantly reduces document-level privacy leakage while maintaining strong semantic utility. The enhanced version, SPADR (S2), reduces the PII leak rate from 100% to 16.06% and achieves a BERTScore F1 of 88.03%. Compared to standard NER-based redaction systems, SPADR offers more accurate and context-aware privacy protection. This work highlights the importance of semantic and structural understanding in building safer, privacy-respecting AI systems.
Authors
- Sultan Asiri (ORCID: https://orcid.org/0000-0002-7405-7646)
- Yang Xiao (ORCID: https://orcid.org/0000-0001-8549-6794)
- Saleh Alzahrani (ORCID: https://orcid.org/0000-0001-8380-2487)
- Randa Alshehri
- Fatima Kamran (ORCID: https://orcid.org/0009-0006-8024-8226)
- Hend Laznam
Institutions
- University of Alabama (US)
- King Khalid University (SA)
Publication Details
- Journal
- Electronics
- Published
- 2025-09-19
- DOI
- https://doi.org/10.3390/electronics14183725
- Primary Topic
- Privacy-Preserving Technologies in Data
- Type
- article
- Field-Weighted Citation Impact
- 0.00