Scalable Explainability-as-a-Service (XaaS) for Edge AI Systems
Samaresh Kumar Singh, Joyjit Roy
TL;DR
Explainability-as-a-Service (XaaS) reimagines XAI as a distributed system service for edge IoT, decoupling explanation generation from inference to address redundancy, resource mismatch, and reuse challenges. The architecture introduces semantic caching, lightweight verification, and adaptive explanation delivery across edge, fog, and cloud layers, with a request-routing flow that prioritizes cache hits and validates cached content. Empirical results across manufacturing, automotive, and healthcare scenarios show a $38%$ latency reduction, a $3.2x$ throughput increase, and fidelity above $0.92$ while achieving $72%$ cache hit rates and maintaining robustness under model drift and network variability. By treating explainability as a system service, XaaS enables scalable, transparent, and regulator-ready edge AI deployments and opens avenues for federated, counterfactual, and personalized explanations in heterogeneous environments.
Abstract
Though Explainable AI (XAI) has made significant advancements, its inclusion in edge and IoT systems is typically ad-hoc and inefficient. Most current methods are "coupled" in such a way that they generate explanations simultaneously with model inferences. As a result, these approaches incur redundant computation, high latency and poor scalability when deployed across heterogeneous sets of edge devices. In this work we propose Explainability-as-a-Service (XaaS), a distributed architecture for treating explainability as a first-class system service (as opposed to a model-specific feature). The key innovation in our proposed XaaS architecture is that it decouples inference from explanation generation allowing edge devices to request, cache and verify explanations subject to resource and latency constraints. To achieve this, we introduce three main innovations: (1) A distributed explanation cache with a semantic similarity based explanation retrieval method which significantly reduces redundant computation; (2) A lightweight verification protocol that ensures the fidelity of both cached and newly generated explanations; and (3) An adaptive explanation engine that chooses explanation methods based upon device capability and user requirement. We evaluated the performance of XaaS on three real-world edge-AI use cases: (i) manufacturing quality control; (ii) autonomous vehicle perception; and (iii) healthcare diagnostics. Experimental results show that XaaS reduces latency by 38\% while maintaining high explanation quality across three real-world deployments. Overall, this work enables the deployment of transparent and accountable AI across large scale, heterogeneous IoT systems, and bridges the gap between XAI research and edge-practicality.
