Ghost Vectors: Soft-Deleted Embeddings Remain Reconstructible in HNSW Vector Databases
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
Retrieval-augmented generation (RAG) allows large language models to access external and private corpora for factual, domain-specific responses. Modern RAG pipelines use hierarchical navigable small world (HNSW) vector databases for efficient similarity search. When a user requests data deletion, the systems typically only mark the record as deleted, leaving the embedding on disk physically unchanged. This soft-delete operation raises compliance concerns under data-erasure and retention requirements such as GDPR Article 17 and HIPAA. Analysis on three HNSW implementations confirms that deleted vectors remain physically recoverable by accessing the raw index files at the storage layer, bypassing API access. Using the Vec2Text inversion model without domain-specific fine-tuning, we show this vulnerability on multiple real-world datasets and data modalities. On Wikipedia biographical living persons dataset (BLP), we successfully recover 25.5% of exact person names and 46.4% of geographic locations (ROUGE-L 0.185). Recovery reaches 100% for both patient age and gender markers (ROUGE-L 0.290) on highly structured, sensitive data (NIH Synthea dataset). On soft-deleted image embeddings, we show 100% tissue classification on histopathology patches (p=1.02e-07) and top-1 identity recovery reaches 99% on facial embeddings (p<0.01). This work introduces Epoch Key Rotation, which encrypts vectors and discards the key upon deletion. Epoch key rotation reduces observed PII recovery to 0% and completes in 2.5 ms for 500 deleted vectors (approximately 0.005 ms/record). Additionally, it generates an ECDSA-signed cryptographic proof as an auditable record of the deletion event.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 13 of its 46 references that are in the map. First posted on arXiv 16 Jun 2026.
Builds on
13 of 46 references.
References · 13
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
- 2021MedMNIST v2 -- A large-scale lightweight benchmark for 2D and 3D biomedical image classificationcited by 690
- 2019Making AI Forget You: Data Deletion in Machine Learningcited by 465
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 456
- 2024The Faiss librarycited by 376
- 2020Information Leakage in Embedding Modelscited by 203
- 2025Forgetful but Faithful: A Cognitive Memory Architecture and Benchmark for Privacy-Aware Generative Agentscited by 13
- 2024Understanding and Mitigating the Threat of Vec2Text to Dense Retrieval Systemscited by 9
1 more
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Beyond Private Training: The New Landscape of AI Privacycited by 0
- 2026Beyond Private Training: The New Landscape of AI Privacy16 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026Ghost Echoes: Semantic Erasure Failure in Retrieval-Backed Applications ↗
- 2026VectorSmuggle: Steganographic Exfiltration in Embedding Stores and a Cryptographic Provenance Defense
- 20254bit-Quantization in Vector-Embedding for RAG
- 2026Zero2Text: Zero-Training Cross-Domain Inversion Attacks on Textual Embeddings
- 2025Towards Trustworthy Retrieval Augmented Generation for Large Language Models: A Survey
- 2025Provably Secure Retrieval-Augmented Generation
- 2026Efficient Privacy-Preserving Retrieval Augmented Generation with Distance-Preserving Encryption
- 2024Ward: Provable RAG Dataset Inference via LLM Watermarks