Exact Embedding Verification on Edge NPUs: Measurement and Deployment ConstraintsExact Embedding Verification on an Edge NPU: Measurements and Deployment Constraints
The paper's measurements show that exact embedding verification of offline RAG knowledge packs on an edge NPU is feasible. On a Raspberry Pi 5, prior CPU exact verification cost a concurrently running language model 23-31% of its decoding speed; with a Hailo-8L accelerator, verifying 8 text-vector pairs per second used only 1.3%, and rebuilding embeddings for a 1,745-window corpus dropped from 72.9 seconds on CPU FP32 to 3.4 seconds. The paper also quantifies the risk of tolerance-based verification: the NPU's INT8 embeddings deviate substantially from floating-point results (median cosine 0.917), and if a tolerance of 0.784 (about 38 degrees) is set at the 0.1% quantile of honest samples, an attacker controlling vectors can almost always push out the correct document across all evaluated queries; in a separate BGE-M3 experiment, an end-to-end attack implemented within that angle budget lowered the correct answer rate from 0.75 to 0.35.
Related events and news
1 events · 0 news mentions
- This event's paper
边缘NPU精确校验嵌入可行,容差校验易受攻击