High validation accuracy can conceal production risk: Using SHAP to expose and block proxy bias at runtime [P]

Reddit r/MachineLearning Papers

Summary

This article demonstrates how high validation accuracy can conceal proxy bias in AI models, using SHAP for explainability and a runtime governance wrapper to enforce fairness policies and prevent biased decisions in production.

To demonstrate a problem that accuracy-only model validation often misses, here is a breakdown of a synthetic hiring-screening pipeline where a model cheats the metric, and how to physically intercept the failure at runtime. A logistic regression model was trained using three features: technical assessment score, years of experience, and a synthetic postcode indicator. The model achieved 94.2% validation accuracy. Without feature-level analysis, it could easily pass an accuracy-only deployment gate. But the training labels were deliberately poisoned. They were constructed directly from the postcode field, simulating a historical selection process in which location determined who progressed. Using shap.LinearExplainer to inspect a proposed inference, the feature attribution array exposes the shortcut: ``text technical_score: -0.0007 years_experience: -0.0680 postcode: 3.5031 ` The model was not measuring candidate suitability. It was accurately reproducing a biased historical decision rule. An explanation makes the problem visible, but it does not enforce what happens next. To solve this, the estimator is wrapped with an L2 semantic execution boundary (ramen-mlflow-guard). For the governed request, the application passes both the feature payload and the calculated SHAP evidence to the wrapper (RamenGovernedModel). Before delegating to the inner model’s predict() method, the wrapper evaluates that evidence against a configured proxy-bias policy. The policy denies the request. The wrapper raises a GovernanceDeniedException`, and the underlying estimator does not execute the governed prediction. The application receives remediation steering, relevant statutory anchors (e.g., EU AI Act), and a locally verified Ed25519 receipt bound to the configured policy. The model looked reliable when judged by accuracy alone. Runtime governance prevented the proxy-driven decision from producing a governed prediction.
Original Article

Similar Articles

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

arXiv cs.AI

This paper introduces a methodological framework for auditing the robustness and fidelity of post-hoc explainable AI tools like SHAP and LIME, combining these metrics into a Trust Score. It applies the framework to a food security dataset in Madagascar, highlighting the necessity of auditing XAI outputs for trustworthy decision-making in sensitive domains.

The Checking Problem: What must be true before AI ships in a regulated firm

arXiv cs.CL

This paper analyzes why enterprise AI deployments stall in regulated firms, proposing a production bar that includes accuracy, reproducibility, groundedness, and detectability. It measures the human review burden across model and tool configurations, showing that confidence signals and source citation can cut review from 100% to 49% but self-verification adds latency without improving error tolerance.

Adaptive auditing of AI systems with anytime-valid guarantees

arXiv cs.AI

This paper introduces a statistical framework for adaptively auditing AI systems using Safe Anytime-Valid Inference (SAVI) to draw rigorous conclusions with limited data. It proposes a 'testing by betting' approach to validate model robustness while controlling type-I errors during adaptive sampling.