When Feature Representation Changes Local Explanations: A Controlled Comparison of SHAP and LIME under Numerical Discretization
Parv Patel (Indian Institute of Technology Palakkad)
Key points
From the paper's conclusion- We ask how discretizing one continuous feature changes local KernelSHAP and LIME explanations when the classifier is held fixed, and whether the two explainers respond differently.
Abstract
Local feature attributions are computed over a feature representation chosen by an upstream data-engineering step, yet they are read as statements about the underlying quantity. We ask how discretizing one continuous feature changes local KernelSHAP and LIME explanations when the classifier is held fixed, and whether the two explainers respond differently. A random forest is trained on UCI Adult and frozen; age is collapsed onto equi-width or quantile bin representatives (k in {3,5,10}) before the model receives it, and the same 120 held-out instances are explained in every condition across multiple seeds. We show analytically and numerically that for KernelSHAP this is exactly equivalent to explaining the unchanged model at the quantized instance against a quantized background, so the comparison is between two effective inputs rather than a pure explainer effect; for LIME no such equivalence holds. Each attribution change is compared with a seed-noise floor from re-running the explainer on the unchanged condition. KernelSHAP's age attribution exceeds its noise floor in all 6 pre-specified conditions (median ratios 2.4-59, all significant after Holm correction); on the raw scale LIME's exceeds its floor in only 2 of 6 and in the rest is no larger than its own run-to-run variation. SHAP's normalized change exceeds LIME's in every condition (rank-biserial 0.81-1.00), while LIME is 2.5-4.6x less consistent across repeats. Predicted classes change for only 0.8-5.8% of instances and held-out ROC-AUC never falls below 0.9097, yet 45-94% of instances show a large SHAP attribution change with no class flip. Feature-importance rankings barely move (median Spearman >= 0.979, top-3 overlap 1.00). The representation change and the change in effective input cannot be separated within a frozen-model design.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Cutpurse: Decomposing Explanation-Guided Model Extraction on Tabular DataarXiv · 2026
- Evaluating explanation methods by the predictors they induceScientific Reports · 2026
- G-XCI: A Conditional Multi-View Audit of Stability and Cross-View Rank Agreement in Tabular Feature AttributionsApplied Sciences · 2026
- Interval-valued SHAP in Tree-Based ModelsarXiv · 2026
- Faithfulness and Stability of Black Box Explanations for Tabular and Image ClassifiersBig Data and Cognitive Computing · 2026
- Reliability diagnostics for post-hoc explanations in network intrusion detection: a SHAP-LIME agreement study.Frontiers in big data · 2026