Centroid-injected vectors appear in up to 99.85% of top-10 results
Injecting a few vectors near the embedding centroid causes them to dominate retrieval results
Systems arXiv 7 Apr 2026 Attack Prototype evidence
Published as “Can You Trust the Vectors in Your Vector Database? Black-Hole Attack from Embedding Space Defects”
Why it matters
Poisoning a vector database with a tiny fraction of malicious vectors can cripple downstream retrieval-augmented generation applications, halving or more of their answer quality.
Summary
The Black-Hole Attack can make malicious vectors appear in up to 99.85% of top-10 retrieval results with a 1% poisoning rate, dramatically degrading ANN recall (from ~90% to below 20%). The evidence is strong, based on experiments across three datasets, three embedding models, and both flat and HNSW indexes, though defenses that mitigate hubness or detect outliers can sharply reduce the attack at the cost of utility.
What they found 4
- Malicious vectors appear in up to 99.85% of top-10 results.
“Our experiments show that malicious vectors appear in up to 99.85% of top-10 results.”
- At a 1% poisoning rate, attack raises malicious presence to 99.85% of queries and drops ANN recall below 20%.
“With a poisoning rate of 1%, malicious data appears in up to 99.85% of queries, and the recall of most ANN indices decreases from 90% to below 20%.”
- Euclidean distance makes the attack more effective than cosine distance.
“Euclidean distance consistently yields superior performance across all evaluation metrics: it achieves near-perfect ASR and MO@10 scores while maintaining a substantially lower FPR compared to cosine distance.”
- A detection-based defense cuts MO@10 from >80% to ~1% on two datasets while preserving >99% recall on clean data.
“The defense sharply reduces MO@10 on HotpotQA and MSMARCO (MO@10 from 93.66% to 1.06% and from 80.50% to 1.05%).”
Caveats 5
- When only the global centroid is used, malicious vectors appear in only ~30% of top-10 results, showing the basic strategy is not highly effective alone.
- Hubness-mitigation defenses that suppress the attack also collapse retrieval utility, with Recall@10 falling close to zero for TCPR and noHub.
- In our experiments, we primarily focus on text retrieval. Nevertheless, the geometric vulnerability exploited by the Black-Hole Attack is not specific to text embeddings.
- However, the method is not cheap: it introduces an additional k-NN pass for detection, and its compute/memory overhead scales poorly with corpus size, making deployment on very large indexes impractical.
- at the cost of a higher poisoning rate (about 1% poisoning in our setting to maximize the effect).
What’s new here 4
- Introduces a query-agnostic poisoning method that injects vectors near the geometric centroid of the embedding space.
- Provides a theoretical analysis of centrality-driven hubness in high-dimensional embeddings.
- Evaluates the attack on multiple public benchmarks and shows its impact on downstream RAG systems.
- Assesses existing hubness-mitigation and detection defenses, revealing trade-offs between security and retrieval quality.