Signed but Steerable: Measuring and Closing the Text-Vector Integrity Gap in Offline Retrieval-Augmented Generation
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
Offline retrieval-augmented generation (RAG) on edge devices is updated through signed knowledge packs that carry text and precomputed embedding vectors. A signature proves who published a pack, not that its vectors encode its text. We study this text-vector integrity gap. A verifier that recomputes vectors and accepts them within a cosine tolerance concedes a predictable share of queries to an attacker who controls the vectors: the hijack rate equals the distribution of angular retrieval margins at the tolerance (the margin law). Margins are small in five corpora and two embedding models, so an idealised tolerance at the level of floating-point noise leaves up to 5.5% of queries exposed (at most 1.2% in any corpus once exact duplicate documents are excluded), and a threshold calibrated from our CPU INT8-FP32 comparison of a small embedding model (at the empirical 0.1% quantile of honest cosines) leaves 98-100% exposed; on a Raspberry Pi 5 running a local language model, such an attack lowers correct answers from 0.75 to 0.39. Integrity audits of compressed vector stores fare no better: on a FAISS product-quantisation index over 57,638 documents, tampered vectors that all pass the audit put the attacker's document first for 25% of targets. Verifying quantisation codes instead, with ambiguity decided by the verifier, a calibrated guard band and canonicalisation, accepted every honest vector in our samples on three platforms and left the publisher no choice. We also show that common floating-point and dynamic-INT8 inference pipelines are not bit-reproducible across batch sizes or architectures, and report pre-registered negative results on abstention, context pruning and semantic screening. We release code and data.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 28 of its 49 references that are in the map. Submitted 4 Nov 2026.
Builds on
28 of 49 references.
Closest ancestors · 2
Same direction, newest first
- 2026VectorSmuggle: Steganographic Exfiltration in Embedding Stores and a Cryptographic Provenance Defense13 May
- 2024Certifiably Robust RAG against Retrieval Corruption24 May
Other references · 26
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,559
- 2024Qwen2.5 Technical Reportcited by 5,525
- 2017Billion-scale similarity search with GPUscited by 2,575
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,680
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,667
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,622
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,560
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,322
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,199
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 923
14 more
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 893
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 842
- 2024The Faiss librarycited by 423
- 2020Selective Question Answering under Domain Shiftcited by 268
- 2021I-BERT: Integer-only BERT Quantizationcited by 264
- 2020Information Leakage in Embedding Modelscited by 212
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 206
- 2023Poisoning Retrieval Corpora by Injecting Adversarial Passagescited by 173
- 2021Can NLI Models Verify QA Systems' Predictions?cited by 50
- 2025TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inferencecited by 24
- 2024EdgeRAG: Online-Indexed RAG for Edge Devicescited by 16
- 2026Quantamination: Dynamic Quantization Leaks Your Data Across the Batchcited by 4
- 2026EigenAI: Deterministic Inference, Verifiable Resultscited by 2
- 2026Trust Mechanisms for Offline Generative AI at the Edge: A Connectivity-Regime Framework and an Empirical Study on a Raspberry Pi 5cited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generation
- 2026Coverage Is Not Containment: A Fundamental Limit of Admission-Time Defenses Against Coordinated Poisoning of Vector Retrieval
- 2026In RAG We Trust? Measuring Robustness of Retrieval-Augmented Generation Under Document Poisoning
- 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directions
- 2026PRA-RAG: Provably Robust Aggregation in Retrieval-Augmented Generation against Retrieval Corruption
- 2026TRIS: A Tri-Layer Retrieval Integrity Sieve Against Knowledge Poisoning
- 2026When Global Gating Is Enough: Admission-Time Hubness Control in Anisotropic Vector Retrieval Systems
- 2026SilentRetrieval: Hijacking Retrieval-Augmented Generation via Semantically-Preserving Adversarial Data Poisoning