arXiv:2608.23817cs.AIAug 2026

Manuscript Offprint

arXiv:2608.23817

A Formal Methodological Framework for Auditing Robustness and Fidelity in Explainable AI: From Application to Trust Certification

Rosa Elysabeth Ralinirina, Jean Christian Ralaivao, Niaiko Michaël Ralaivao, Alain Josué Ratovondrahona, Thomas Mahatody

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

SHAP and LIME are now standard tools for interpreting black-box predictions, yet their outputs can vary substantially when the input is perturbed by small amounts of noise—a problem we observed firsthand in our previous work on food security in Madagascar (Ralinirina et al., 2025). This variability raises the question of whether such explanations can be trusted at all. We address it by constructing an auditing protocol that measures two properties of any post-hoc explainer: robustness (how stable the explanation is under input perturbation) and fidelity (whether the features deemed important actually drive the model's prediction). These two quantities are combined into a single Trust Score. We run the protocol on a multi-sectoral dataset from Madagascar (83 features, 253 records, 4 malnutrition classes) using three classifiers and two explainers, plus their regularized counterparts. The results are sobering: models with AUC above 0.99 can produce numerically degenerate or flatly uninformative explanations, and fidelity scores lose discriminative power when the model is overfitted. These findings suggest that auditing XAI outputs is not optional but necessary, particularly when they inform decisions in sensitive domains.

Keywords: Explainable AI (XAI), Robustness, Fidelity, Methodological Framework, Trustworthy AI, Food Security.

1 Introduction

When an AI model predicts a food crisis in a region of Madagascar, the prediction itself is only half the story. The other half—how the model arrived at it—is what policymakers, nutrition officers, and field workers need in order to trust and act on the output. Post-hoc explainers such as SHAP (Lundberg and Lee, 2017) and LIME (Ribeiro et al., 2016) fill this role by attributing importance scores to input features. The trouble is that these attributions are not always reliable. Small perturbations to the input can change them, sometimes dramatically, and there is no built-in mechanism to tell whether the features an explainer highlights are genuinely used by the model.

We encountered this problem directly in (Ralinirina et al., 2025), where we applied SHAP and LIME to food security indicators across Madagascar's 23 regions. Explanations for nearly identical inputs often differed, and the ranking of important features shifted depending on which explainer was used. This is not an isolated finding. Slack et al. (Slack et al., 2020) showed that

1^{1}This manuscript was peer-reviewed, accepted for publication in the proceedings, and presented at the International Conference on Applied Informatics (ICAI 2026, https://icai.uni-eszterhazy.hu/2026/). This is the revised version. The organizers did not send the revision notification to the authors in time, and as a result the paper was not included in the proceedings.

LIME and SHAP can be deliberately fooled; Alvarez-Melis and Jaakkola (Alvarez-Melis and Jaakkola, 2018) proved that local explanations are generally unstable. Surveys by Adadi and Berrada (Adadi and Berrada, 2018) and Guidotti et al. (Guidotti et al., 2018) have warned that post-hoc methods create an “illusion of transparency,” and domain-specific studies in healthcare (Stiglic et al., 2020) and NLP (Danilevsky et al., 2020) confirm that visual inspection of saliency maps is insufficient. Our research group has also explored AI-driven automation for complex tasks (Ratovondrahona et al., 2023), a line of work that parallels the present goal of building a systematic, verifiable XAI auditing methodology.

The question, then, is not whether explanations should be audited—they must be—but how. We propose a protocol that measures two things: robustness (stability under noise) and fidelity (faithfulness to the model). Each is quantified by a single metric, and the two are combined into a Trust Score. We validate the protocol on the same Malagasy food security dataset, using three classifiers (Random Forest, XGBoost, Neural Network) and two explainers (SHAP, LIME), plus their regularized variants. The results confirm that near-perfect AUC does not shield explanations from instability or vacuity, and the Trust Score captures these defects in a single number.

Section 2 surveys related work. Section 3 describes the framework. Section 4 presents the case study and results. Section 5 discusses what the results mean—including the overfitting and numerical issues they reveal. Section 6 concludes.