arXiv Science⌕ Search

arXiv · 2611.37400

Exact Embedding Verification on an Edge NPU: Measurements and Deployment Constraints

Abstract

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Georgios Feretzakis, Alexandros Papaspyridis. 2026-11-27. Exact Embedding Verification on an Edge NPU: Measurements and Deployment Constraints. https://arxiv.science/abs/2611.37400

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

CIPHER: Cross-Paper Implementation and Pipeline Harmonization for Evaluation and Reproduction

Reproducing text-to-image (T2I) jailbreak methods requires integrating diverse attack algorithms with image generation, safety filtering, and multimodal evaluation under each study's native protocol. The heterogeneity and tight coupling of these components make faithful reproduction challenging, limiting the applicability of existing automated frameworks designed for text-based LLM jailbreaks. To bridge this gap, we present CIPHER, a paper-to-pipeline agent framework for efficient and faithful reproduction of T2I jailbreak methods. CIPHER separately constructs paper-specific attack modules and evaluation pipelines, then integrates them through a unified runtime contract that decouples attack logic from shared evaluation infrastructure. Specification audits ensure consistency with each paper's original methodology and evaluation protocol. To further improve reproduction quality and efficiency, we introduce experience-driven self-improvement, combining execution-guided refinement within each task with persistent memory for reusing verified implementations across tasks. We evaluate CIPHER on 11 representative T2I jailbreak methods, achieving mean and median absolute reproduction errors of 3.3 and 1.7 percentage points, respectively, and establishing a standardized cross-model benchmark across 10 reproduced methods. Across three attack families, memory reuse improves code quality by up to 11.5\% and reduces audit iterations for two methods. Moreover, on a held-out method, progressively accumulated memory increases the reproduced attack success rate from 45.3\% to 57.0\%. These results demonstrate that CIPHER enables faithful automated T2I jailbreak reproduction while improving subsequent implementations through accumulated experience.

cs.CR↗

Let My Data Go: Data Brokers' Compliance with Opt-Out and Deletion Requests

Data brokers are (unfortunately) a largely American phenomenon dating back to 1980s. They collect vast amounts of personal information about most adult U.S. consumers, mainly without their knowledge or consent. Accumulated data can be sold to anyone, including employers, landlords, insurance agencies, banks, governments (local, state, federal, and even foreign), as well as various malicious actors. This, in turn, enables discrimination, surveillance, arrests, identity theft, and stalking. Recent regulations, such as the California Consumer Privacy Act (CCPA) modeled after EU General Data Protection Regulation (GDPR), were introduced to bolster consumer privacy, e.g., the rights to: (1) opt-out of the sharing or selling personal information, (2) delete personal information, and (3) obtain a copy of that information. However, exercising these rights is not easy, as shown by our comprehensive study of the data broker ecosystem. We submitted both opt-out and deletion requests (using synthetic consumer identities, a choice that we believe is justified in this setting) under the CCPA to all California-registered data brokers and investigated their responses and lack thereof. While the majority seem to be compliant, a significant fraction is not and many failed to reply to (and/or acknowledge) consumer requests. Furthermore, some data brokers require intrusive consumer identity verification in order to exercise their opt-out rights, which is explicitly disallowed by the CCPA. There is also great disparity in the request submission process among data brokers as well as an extremely heavy (time and effort) overall consumer burden. This motivates an urgent need for streamlining and standardization of the consumer interface, stronger enforcement, and meaningful consequences for (especially sustained) non-compliance.

cs.CR↗

A Scenario-Based Evaluation of CRQC+AI Vulnerability Spectrum for TLS 1.3 Cryptographic Dependencies

This paper evaluates quantum and AI-accelerated risks to TLS 1.3 cryptographic dependencies under an evidence-tiered model, distinguishing mechanism-backed threats (Shor algorithm against RSA and ECC) from contingency-backed risks to lattice-based post-quantum cryptography (PQC) and hypothesis-only risks to hash-based and symmetric primitives. We do not identify any known breaks of ML-KEM, ML-DSA, SLH-DSA, or AES-256. Instead, we use explicit scenario assumptions, organized as a four-scenario capability model with parameters and pseudocode for reproducibility, to stress-test migration timelines accompanied by parameter sensitivity analysis and explicit falsification analysis. The primary methodological contribution is a reproducible scenario-estimation instrument together with its explicit update mechanics: every parameter is a named, anchored quantity that can be varied and the model rerun; a stated protocol maps observed conformance to, or deviation from, the modeled curves onto revisions of specific parameters, so progressive refinements can be tested against accumulating historical data. The paper is a methodological companion to quantum resource-estimation studies and to expert-elicitation timeline surveys such as the Global Risk Institute quantum threat reports, with its revision rules stated explicitly. As of mid-2026, the model does not show any NIST-approved algorithms as broken. Instead, the vulnerability spectrum under different scenarios shows RSA risk crossing the 50% threshold between 2030-2032 and the PQC risk becoming a non-zero risk after 2032-2035 under contingency scenarios conditional on the unproven dimension-collapse. We urge PQC migration as mandatory per the 2030 and 2031 federal deadlines and by Mosca HNDL reasoning, and that crypto-agility and hybrid cryptographic deployment be considered necessary complements to any PQC migration efforts.

cs.CR↗