Feature Relevancy, Necessity and Usefulness: Complexity and Algorithms
Tomás Capdevielle, Santiago Cifuentes
TL;DR
This work redefines feature importance within a logic-based explainability framework by formalizing relevancy, necessity, and a novel global usefulness through sufficient reasons $SR(M,e)$. It extends tractability results to decision trees with mixed feature types and proves linear-time algorithms for necessity in DTs and FBDDs, while establishing a quadratic-time method for relevancy in DTs and linking usefulness to model equivalence. A practical usefulness scoring method is proposed and validated on three public datasets, showing competitive alignment with ground-truth importance and SHAP rankings, while offering substantial computational efficiency. The results advance XAI by providing a principled, scalable approach to feature importance that integrates local explanations with a global usefulness perspective, and by highlighting remaining gaps for more expressive circuits like FBDDs and d-DNNFs.
Abstract
Given a classification model and a prediction for some input, there are heuristic strategies for ranking features according to their importance in regard to the prediction. One common approach to this task is rooted in propositional logic and the notion of \textit{sufficient reason}. Through this concept, the categories of relevant and necessary features were proposed in order to identify the crucial aspects of the input. This paper improves the existing techniques and algorithms for deciding which are the relevant and/or necessary features, showing in particular that necessity can be detected efficiently in complex models such as neural networks. We also generalize the notion of relevancy and study associated problems. Moreover, we present a new global notion (i.e. that intends to explain whether a feature is important for the behavior of the model in general, not depending on a particular input) of \textit{usefulness} and prove that it is related to relevancy and necessity. Furthermore, we develop efficient algorithms for detecting it in decision trees and other more complex models, and experiment on three datasets to analyze its practical utility.
