[Paper Review] On Formal Feature Attribution and Its Approximation
This paper introduces Formal Feature Attribution (FFA), a novel method that defines feature importance as the proportion of abductive explanations in which a feature appears, ensuring formal soundness. It proposes an efficient approximation technique using anytime formal explanation enumeration, demonstrating superior performance over LIME and SHAP in fidelity, Kendall’s Tau, and RBO metrics on tabular and image datasets, including real-world software defect prediction.
Recent years have witnessed the widespread use of artificial intelligence (AI) algorithms and machine learning (ML) models. Despite their tremendous success, a number of vital problems like ML model brittleness, their fairness, and the lack of interpretability warrant the need for the active developments in explainable artificial intelligence (XAI) and formal ML model verification. The two major lines of work in XAI include feature selection methods, e.g. Anchors, and feature attribution techniques, e.g. LIME and SHAP. Despite their promise, most of the existing feature selection and attribution approaches are susceptible to a range of critical issues, including explanation unsoundness and out-of-distribution sampling. A recent formal approach to XAI (FXAI) although serving as an alternative to the above and free of these issues suffers from a few other limitations. For instance and besides the scalability limitation, the formal approach is unable to tackle the feature attribution problem. Additionally, a formal explanation despite being formally sound is typically quite large, which hampers its applicability in practical settings. Motivated by the above, this paper proposes a way to apply the apparatus of formal XAI to the case of feature attribution based on formal explanation enumeration. Formal feature attribution (FFA) is argued to be advantageous over the existing methods, both formal and non-formal. Given the practical complexity of the problem, the paper then proposes an efficient technique for approximating exact FFA. Finally, it offers experimental evidence of the effectiveness of the proposed approximate FFA in comparison to the existing feature attribution algorithms not only in terms of feature importance and but also in terms of their relative order.
Motivation & Objective
- To address the limitations of heuristic feature attribution methods like LIME and SHAP, which suffer from unsoundness and out-of-distribution sampling.
- To formalize feature attribution as the proportion of abductive explanations containing a given feature, ensuring logical soundness.
- To develop an efficient approximation technique for FFA, given its computational complexity in the second level of the polynomial hierarchy.
- To evaluate FFA’s performance against existing methods in terms of feature importance accuracy and relative feature ranking.
Proposed method
- FFA is formally defined as the ratio of abductive explanations containing a feature to the total number of abductive explanations for a given prediction.
- The method leverages formal explanation enumeration via first-order logic representations of machine learning models, particularly boosted trees.
- It employs anytime reasoning algorithms to incrementally generate abductive explanations, enabling real-time approximation of FFA.
- The approximation process is monitored for convergence, with FFA values updated as more explanations are enumerated.
- The approach is applied to both tabular and image data, including real-world software defect prediction using logistic regression models.
- Evaluation uses standard metrics: error, Kendall’s Tau, and Rank-Biased Overlap (RBO), comparing FFA to LIME and SHAP.
Experimental results
Research questions
- RQ1Can formal feature attribution (FFA) be defined as a principled, logically sound measure of feature importance in machine learning models?
- RQ2How does the performance of FFA approximation compare to heuristic methods like LIME and SHAP in terms of fidelity and ranking accuracy?
- RQ3Does the FFA approximation converge quickly to the exact FFA value, and how does this vary across different datasets and model types?
- RQ4To what extent do LIME and SHAP fail to align with the formal attribution measure, and in what ways do their attributions diverge?
Key findings
- The FFA approximation achieved better error, Kendall’s Tau, and RBO scores than both LIME and SHAP after just 10 seconds of computation on image datasets.
- On the PneumoniaMNIST dataset, FFA approximation reached 0.83 RBO and 0.66 Kendall’s Tau after 10 seconds, outperforming both LIME and SHAP.
- In just-in-time defect prediction on OpenStack and Qt datasets, FFA showed significantly better alignment with formal explanations than LIME and SHAP, with lower error and higher concordance in feature ranking.
- The study found that LIME and SHAP often assign zero weight to features that appear in many formal explanations, indicating fundamental misalignment with the formal measure.
- The FFA approximation process converged rapidly, with high-quality results obtainable within minutes, suggesting practical feasibility despite the problem's theoretical complexity.
- The paper demonstrates that heuristic methods like LIME and SHAP do not agree with the formal attribution standard, sometimes assigning non-zero weights to irrelevant features or missing important ones.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.