← All brief issues
§ BriefNov 7, 2026 · Issue 182 · Worth Reading

Signing a Knowledge Pack Proves Authorship, Not Vector Fidelity

A signed offline RAG pack proves who published it, not that its vectors match its text. With a tolerance set from real INT8/FP32 drift, a steering publisher can hijack 98-100% of queries.

Offline RAG on edge devices relies on a simple trust model: a signed knowledge pack means the content is authentic. The signature proves who published the pack. It says nothing about whether the precomputed embedding vectors actually encode the text they are paired with.

The attack surface is geometric. A publisher who controls the vectors in a pack it signs does not need to alter the text, forge a signature, or break any cryptographic primitive. The device-side verifier recomputes vectors from the text and accepts the shipped ones within a cosine tolerance. The only constraint on the publisher is that the substituted vectors land close enough to the honest ones to pass that check. The fraction of queries that can be hijacked under this constraint is not arbitrary: it equals the fraction of queries whose true retrieval margin falls below the cosine tolerance, a relationship the paper formalizes as the margin law. Small margins mean large hijack rates.

Margins are small. Across five corpora and two embedding models, the angular gap between the correct document and the nearest competitor is narrow enough that even a tight tolerance concedes meaningful exposure. A tolerance calibrated to floating-point noise leaves up to 5.5% of queries exposed (capped at 1.2% per corpus once exact duplicates are removed). A tolerance calibrated from a real CPU INT8-to-FP32 comparison of a small embedding model, set at the empirical 0.1% quantile of honest cosines, leaves 98 to 100% of queries exposed. On a Raspberry Pi 5 running a local language model, that attack drops correct answers from 0.75 to 0.39.

The problem extends to compressed vector stores. On a FAISS product-quantization index over 57,638 documents, tampered vectors that all pass a standard integrity audit still place the attacker's document first for 25% of targets. The audit passes. The retrieval is wrong.

The paper also reports a concrete defense: verifying quantization codes rather than reconstructed vectors, with ambiguity resolved by the verifier, a calibrated guard band, and canonicalization. This approach accepted every honest vector in the test samples across three platforms and left the publisher no room to steer retrieval without detection. A secondary finding worth noting: common floating-point and dynamic-INT8 inference pipelines are not bit-reproducible across batch sizes or architectures, which means naive bit-level comparison is not a viable verification strategy, and any practical guard must account for this.

For teams shipping offline RAG to edge devices, the takeaway is direct: if your trust model stops at the cryptographic signature, the publisher who signs the pack can steer your retrieval layer. Editing a pack after signing breaks the signature; the risk is a publisher that signs steered vectors in the first place.

We're thinking: We find the margin law framing particularly clarifying, because it converts what looks like a vague "vectors could be wrong" concern into a measurable, corpus-specific attack budget. The uncomfortable implication is that the tighter you make your cosine tolerance to catch attackers, the more likely you are to reject honest vectors from a different platform or batch size, and the paper's INT8-FP32 results show this tradeoff is not hypothetical. Teams that have already shipped signed knowledge packs for medical, legal, or on-device assistant use cases should treat this as an audit item now, not a future hardening pass. The code and data release means the margin distribution for your own corpus is measurable today.

Key takeaways:

  • A signed RAG knowledge pack authenticates who published it but not vector fidelity; a publisher who shifts embeddings within the verifier's cosine tolerance can steer retrieval without altering the text or breaking any cryptographic check.
  • On a Raspberry Pi 5, a calibrated-tolerance attack drops correct answer rate from 0.75 to 0.39; on a 57,638-document FAISS index, 25% of targets can be topped by an attacker's document while passing a standard integrity audit. Caveat: exact-duplicate removal reduces the floating-point-noise-tolerance exposure from 5.5% to at most 1.2% per corpus.
  • Teams deploying offline RAG with signed knowledge packs should implement quantization-code verification with a calibrated guard band rather than cosine-distance checks on reconstructed vectors, and should measure their corpus's margin distribution to quantify their current exposure before the next pack update cycle.

Source: Signed but Steerable: Text-Vector Integrity Gap in Offline RAG