Exact embedding verification on edge NPUs is feasible; tolerance-based verification is vulnerable to attack
Start here
arXiv paper measurements show that exact embedding verification of offline RAG knowledge packs on edge NPUs is feasible: on a Raspberry Pi 5, CPU exact verification costs a concurrently running language model 23-31% of decoding speed, whereas with a Hailo-8L accelerator, verifying 8 text-vector pairs per second uses only 1.3%, and rebuilding embeddings for a 1,745-window corpus drops 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, with a median cosine of 0.917; if a tolerance of 0.784 (about 38 degrees) is taken at the 0.1% quantile of honest samples, an attacker controlling vectors can push out the correct document in nearly all evaluated queries; in a separate BGE-M3 experiment, an end-to-end attack implemented within that angle budget lowered the correct answer from 0.75 to 0.35.
Generated by AI from reports · Updated 4 hr ago
Related research
This event's paper
Progress timeline
- arXiv: 其他 AI 安全论文Exact Embedding Verification on Edge NPUs: Measurement 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 discussion
Attention trend
New sources per day
- Nov 30: 1 new sources (1 outlets, 0 accounts)