幽灵向量:软删除的嵌入在HNSW向量数据库中仍可被重建 Ghost Vectors: Soft-Deleted Embeddings Remain Reconstructible in HNSW Vector Databases 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-06-16
⬇️ 3 次下载
👁️ 预览文献
💡 AI 中文简介
研究揭示RAG系统中HNSW向量数据库的软删除隐患:用户请求删除数据时,系统仅标记删除,嵌入向量仍物理留存于磁盘。攻击者绕过API直接读取索引文件,用Vec2Text模型即可还原敏感信息。在维基百科人物数据集上还原出25.5%人名,在医疗数据集上年龄性别还原率达100%。作者提出Epoch Key Rotation方案,删除时加密并丢弃密钥,将隐私还原率降至0%,处理500条仅需2.5毫秒,并生成可审计的加密删除证明。
领域向量数据库安全与隐私保护
适合谁读需要一定专业背景(了解向量检索、嵌入模型与数据合规)
核心贡献1. 实证揭示ChromaDB、FAISS、Weaviate三种HNSW实现中软删除向量仍物理留存,可绕过API从存储层还原敏感信息;2. 提出Epoch Key Rotation方案,删除时加密向量并丢弃密钥,将PII还原率降至0%,并生成ECDSA签名的可审计删除证明。
关键数据维基百科BLP数据集还原25.5%人名、46.4%地理位置(ROUGE-L 0.185);NIH Synthea数据集年龄与性别还原率100%(ROUGE-L 0.290);组织病理图像分类100%(p=1.02e-07),人脸身份top-1还原99%(p<10^-12);Epoch Key Rotation将PII还原率降至0%,500条删除仅2.5ms(约0.005ms/条)。
推荐理由如果你在用RAG或向量数据库存敏感数据,这篇论文会告诉你'删除'可能只是假象,并给出一个毫秒级的加密补救方案,值得一读。
关键词["向量数据库", "软删除", "HNSW", "隐私保护", "密码学擦除"]

原文摘要

查看英文原文摘要

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.