But how do you apply that to say an LLM or graph neural network or in fact any neural network that derives the features from the input?
SHAP values might or might not work with classic tabular data for which xgboost (or similar) will be hard to beat. But for neural networks where you feed them "non-tabular data", it's different.
There's saliency maps for CNN's that help you understand what visual features different layers are learning. Likewise, there are methods of investigation the latent spaces learned in deep neural networks. Model explainability has been a rapidly developing subfield of ML in the past 5 years.
Yes, exactly. So the comparison to linear models here is apt. If you can't get a satisfying explanation from linear factors via Shapley, then you can't get a satisfying explanation via a linear model. However, Shapley may help indicate nonlinear relationships present in a NN or other model that a linear model would fail at capturing: https://peerj.com/articles/cs-582/
That being said, you should still think in terms of parsimony and modeling with linear models if you're dealing primarily with linear relationships. Don't over complicate that which doesn't need more complexity.
8
u/ohanse Jul 17 '23
Aren't shapley values an attempt to rank features in a way that's... comparable (?)... to how linear regression coefficients are presented?