Signed but Steerable: Measuring and Closing the Text-Vector Integrity Gap in Offline Retrieval-Augmented Generation
TL;DR - This paper identifies a security flaw in offline RAG knowledge packs: signatures authenticate publishers but do not ensure stored embeddings represent the signed text. Tolerance-based vector verification remains vulnerable, while canonical verification of quantization codes closes the publisher’s ability to steer retrieval.
- Even floating-point-noise tolerance exposed up to 5.5% of queries, or at most 1.2% per corpus after removing exact duplicates.
- A threshold calibrated for CPU INT8–FP32 differences exposed 98–100% of queries; on Raspberry Pi 5, an attack reduced answer accuracy from 0.75 to 0.39.
- Tampered vectors passing FAISS product-quantization audits ranked the attacker’s document first for 25% of targets.
- Guard-banded, canonical quantization-code verification accepted all sampled honest vectors across three platforms while removing publisher-controlled ambiguity.