Replies: 2 comments 3 replies
|
I'm copying my post from here as it addresses this topic somewhat. I would love to have some of this confirmed @slundberg if you can. I pulled from a few various places for this information, and it may be useful for others to have it all in one place and to have an authoritative stamp of approval if it's correct. Also, I'd love to know how to do observational conditional expectations using DeepSHAP or some other way so that I can be "true to the data" when required. [Beginning copied post] Here are my notes on just a couple of these papers as well as some very useful threads/comments in various locations. Please realize that I skimmed these papers fairly quickly, and I also don't have a PhD and am fairly removed from academia, so I don't read massive amounts of papers on a regular basis. All that being said, I could totally be misinterpreting things and would love for someone to correct me on anything here :) I feel fairly confident about the first one, and honestly barely looked at the second but included a small blurb about it anyway. I could be oversimplifying things in my conclusion section, so please provide some feedback so I don't mislead the community or myself 😆 True to the Model or True to the DataDiscusses observational vs interventional conditional expectations when doing feature importance, and how neither is preferred generally but rather it's application-specific, and depends on if you want to be "true to the model" or "true to the data". Things like permutation importance and the SHAP approximations in DeepSHAP are interventional (seems Lundberg, author of shap, agrees), or "true to the model". The paper states that if you have independent features, importance values are the same for observational and interventional. Otherwise, "correlation splits the Beta as credit between correlated variables and higher levels of correlation leads to slower convergence of the observational Shapley value estimates." However, I don't know if this means they split it evenly between the correlated features. If it weren't split evenly, then you may have one correlated feature look more important than the other features it's correlated with disproportionately. However, this splitting only occurs if doing observational. This is because in interventional, it only shows you what the model is actually using. If it only uses one of the correlated features, it won't split the credit between the other correlated features. Conclusion: Essentially, "true to the model" = interventional, "true to the data" = observational. "Being true to the model is the best choice for most applications of explainable AI, where the goal is to explain the model itself." However, if you are "focused on scientific discovery", you will likely want to be true to the data. Understanding Global Feature ContributionsI ended up not spending too much time on this one. I was excited about it, as it seemed to be a method for handling correlated features when doing global feature importance, but then read this:
I had thought this paper was about dealing with feature dependence. I stopped reading at this point, though to be honest I'm sure I'm missing the point on this one. Scouring various threads
The TakeawayThis was really helpful for me. I would suspect that most practitioners here are more concerned about being true to the model. If that's the case, it seems that things like permutation importance or SHAP values will work for you, even in the presence of correlated features. You will just see what the model used, regardless of multicollinearity. For those more interested in scientific discovery, it looks like observational shapley values are what you want. Currently, I'm unaware of a package for calculating these for neural nets. Maybe SHAP has this functionality optionally that I'm unaware of. I would be very interested in learning about a package to compute these, as I am involved in both simply explaining a model and scientific discovery. |
|
Reading Explaining Individual Predictions when Features are Dependent: More Accurate Approximations to Shapley Values, however, gives me pause. It seems that even when doing the interventional approach, the shap values can be incorrect in the presence of feature dependence. I notice that this paper was published before your "True to the Model/Data" one, however. If we are concerned with being true to the model, do the objections brought up in this earlier paper not apply? SHAP values will give an accurate picture of what the model is actually using regardless of feature dependence, correct? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The original SHAP paper states that "DeepLIFT approximates SHAP values assuming that the input features are independent of one another and the deep model is linear." However, I am working with tabular data that (like almost all tabular data) has some features that are correlated with each other. I am restricted to using deep learning models and therefore cannot simply use a TreeExplainer with
feature_perturbation=“tree_path_dependent”.My question is two-fold:
The original SHAP paper also states that "when using these methods [model-specific methods, including DeepExplainer], feature independence and model linearity are two optional assumptions simplifying the computation of the expected value..." How can I exercise the option to not assume feature independence when using DeepExplainer, and what are the consequences when it comes to time complexity?
Many thanks!
References
All reactions