Exact Embedding Verification on an Edge NPU: Measurements and Deployment Constraints
Offline retrieval-augmented generation (RAG) on edge devices receives knowledge as signed packs of text and precomputed embedding vectors. Prior work showed that a signature does not bind the vectors to the text, that any verifier which accepts recomputed vectors within a cosine tolerance concedes a predictable share of queries, and that on a Raspberry Pi 5 the recomputation needed for exact checks costs a concurrently running language model 23-31% of its decoding speed on the CPU. Here we ask whether a neural processing unit (NPU) makes exact verification practical. On a Raspberry Pi 5 with a Hailo-8L accelerator, verifying 8 text-vector pairs per second costs the language model 1.3% of its decoding speed instead of 23-31%, and re-embedding a 1,745-window corpus takes 3.4 s instead of 72.9 s in FP32 on the CPU. The NPU's INT8 embeddings deviate from floating point (median cosine 0.917), so a tolerance set at the empirical 0.1% quantile of honest NPU-FP32 cosine similarities (0.784, about 38 degrees) would let an attacker who controls the vectors displace the correct document for essentially all evaluated queries; with that tolerance applied as an angular budget in a separate BGE-M3 experiment, an end-to-end attack lowers correct answers from 0.75 to 0.35. The same chip, however, returns bit-identical embeddings across repetitions, batch sizes and processes, which makes exact comparison against a reference generated on the same tested device and configuration possible. We also describe how to deploy exact verification: the device recomputes every chunk, retrieves only with its own vectors and, where the reference comes from a computation shown to reproduce its output, compares shipped reference vectors bit for bit; a mismatch is treated as an integrity event to be investigated rather than resolved by a tolerance; and a signed manifest binds every element that determines the bits.
- Link
- https://huggingface.co/papers/2611.37400
- Found by
- Hugging Face Papers
- Authors
- Georgios Feretzakis, Alexandros Papaspyridis
- Categories
- evaluation, dataset
- Published
- 2026-11-27
- Last seen by the radar
- 2026-12-03
- Upvotes
- 0
- Radar score
- 27.50 / 100 (how it is scored)
- Why it scored so
- Matched: corpus, evaluat; Primary record: Hugging Face Papers
- Related links
- https://arxiv.org/abs/2611.37400
https://doi.org/10.5281/zenodo.24688686
https://github.com/securagenai/edge-embedding-cpu-benchmarks