arXiv(opens in a new tab)cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.33732

Trust Mechanisms for Offline Generative AI at the Edge: A Connectivity-Regime Framework and an Empirical Study on a Raspberry Pi 5

Georgios Feretzakis, Alexandros Papaspyridis

Abstract

Generative AI and large language models (LLMs) are moving into the Internet of Things, yet most deployments assume cloud connectivity, and many IoT settings have intermittent, restricted, or no connectivity. How to make a local generative assistant trustworthy when it is disconnected, and what trust costs on edge hardware, remain largely unmeasured. We propose a connectivity-regime framework (C0–C4) that treats disconnection as a design dimension, a taxonomy of inference-time trust mechanisms, and signed, versioned knowledge packs as the update channel for disconnected regimes. We then evaluate these ideas on a Raspberry Pi 5 running fully local retrieval-augmented generation under network isolation, with three Qwen2.5 model sizes (1.5B, 3B, and 7B parameters), three context sizes, and 300 SQuAD 2.0 questions that are answerable, unanswerable, or outside the corpus. An empirically calibrated retrieval-score gate detects knowledge gaps almost perfectly (AUROC 0.97) but in-topic unanswerable questions poorly (AUROC 0.68). A deterministic output validator converts malformed outputs into explicit abstentions, lowering the risk among answered queries from 0.81 to 0.46 for the smallest model with no observed loss of correct answers; the NLI-based entailment verifier we tested adds little, and for the 7B model 96% of substantive answers to unanswerable-labelled questions match normalized spans of the retrieved passages. The 3B model achieves the same gold-answer containment rate as the 7B model (75%) at less than half the latency and estimated energy, although the 7B model far more often exceeds a token-F1 threshold of 0.5 (74% versus 31%) and has lower risk; five retrieved passages lower correctness from 75% to 52% compared with three. Verifying a signed knowledge pack takes about 4.5 ms, versus about 29 min for embedding its passages on the device; signature and hash checks alone accept six of nine tested update attacks that layered verification of version state, expiry, revocation, and compatibility rejects. Yet a validly signed poisoned pack passes every pack check: on 30 questions previously answered correctly, correct answers drop to zero and 14 return the injected answer; 13 of these pass gating, span, and entailment checks. None of the mechanisms we evaluated establishes the truth of the evidence. We derive design guidelines for trustworthy generative edge systems and release code and data.

Keywords: edge intelligence, large language models, retrieval-augmented generation, abstention, air-gapped systems, trustworthy AI, Internet of Things

1 Introduction

Large language models (LLMs) are moving from cloud services into the Internet of Things (IoT) and the intelligent environments built on it [1, 2]. Maintenance assistants, clinical document tools, and decision-support agents increasingly mediate access to operational knowledge. Yet the dominant deployment pattern remains cloud-centric. That pattern fails exactly where many IoT deployments operate: maritime, remote-infrastructure, disaster-response, industrial, and defense settings with intermittent, restricted, or deliberately absent connectivity [3]. Data-protection and AI regulation [4, 5, 6] add further pressure to keep inference within the operator's perimeter. And the propensity of LLMs to produce fluent but unsupported content [7] is most dangerous offline, where users cannot cross-check an answer.

Running a generative assistant locally is now feasible. Small models, 4-bit quantization, and portable runtimes bring billion-parameter models to embedded boards [8, 9, 10, 11], and retrieval-augmented generation

(RAG) lets a local model answer from a local corpus [12]. Prior work has benchmarked small language models for edge deployment [13] and LLM inference on single-board computers [14], co-designed edge models for latency and energy [15], fitted RAG into edge memory budgets [16], and demonstrated offline RAG over Bluetooth mesh networks [17] and offline-first edge architectures [18]. Local and offline RAG is therefore not new in itself. What is far less understood is how to make such a system trustworthy when it is disconnected, and what trust costs on edge hardware. Recent surveys of edge and on-device LLMs focus on efficiency [19, 20, 21, 22, 23, 24], and treat connectivity as background rather than as a design dimension. Trust mechanisms for RAG, such as selective answering, conformal risk control, and unanswerability evaluation [25, 26, 27, 28, 29, 30], have been proposed and evaluated on server-class hardware with connected evaluation pipelines. Their behavior, their interplay, and their cost on a CPU-only edge device under air-gapped conditions remain largely unmeasured.

This paper addresses that gap with a framework and an empirical study. We ask five research questions:

• RQ1. How well does a generator-independent retrieval-score gate separate queries that should be answered from knowledge-gap queries and from in-topic unanswerable queries?

• RQ2. How do layered trust mechanisms (generator self-abstention, deterministic output validation, calibrated score gating, and post-hoc entailment verification) interact, and what does each cost in correct answers?

• RQ3. How do generator size and the number of retrieved passages trade answer quality against latency and energy on a CPU-only edge device?

• RQ4. What does verifying and activating a signed knowledge pack cost on the device, and which update attacks do signature-and-hash checks and layered verification stop?

• RQ5. Can a validly signed but poisoned knowledge pack subvert the system, and do score gating or post-hoc verification catch it?

Our contributions are as follows:

  1. A connectivity-regime framework (C0–C4) that treats disconnection as a spectrum from cloud-connected to air-gapped operation, and traces its consequences for inference, updates, federation, threats, and governance evidence (Sect. 3).

  2. A taxonomy of inference-time trust mechanisms, organized by locus and dependence on the generator, and a comparison of federation units that motivates signed, versioned knowledge packs as the update channel for disconnected regimes (Sect. 3).

  3. An empirical evaluation of these mechanisms on a Raspberry Pi 5 under network isolation: five configurations, three model sizes, three context sizes, and 1,500 generations over 300 questions, plus 30 generations on a poisoned pack (Sects. 4 and 5). Score gating detects knowledge gaps almost perfectly (AUROC 0.97) but in-topic unanswerable questions poorly (0.68). A deterministic output validator converts malformed outputs into explicit abstentions, with negligible overhead and no observed loss of correct answers. A 3B model achieves the same gold-answer containment rate as a 7B model at less than half the latency and energy, although the 7B model far more often exceeds a token-F1 threshold of 0.5 and has lower risk. More retrieved context can lower answer quality. Signature-and-hash checks alone accept six of nine tested update attacks that a layered verifier rejects. Yet a validly signed poisoned pack passes every pack check and eliminates correct answers on the targeted questions, and most injected answers also pass score gating and the post-hoc checks we tested.

  4. Design guidelines for trustworthy generative edge systems and an open release of code and data (Sect. 6).

Section 2 reviews background and related work. Section 3 presents the framework. Sections 4 and 5 describe the experimental methodology and results. Section 6 discusses design guidelines, governance evidence, threats to validity, and open problems, and Sect. 7 concludes.

References (100)

Couldn't load all references. Reload the page to try again.