SHAP values are computed by considering all possible combinations of features and calculating the marginal contribution of each feature. This is done by averaging the increase in the prediction when a feature is added to a combination of other features. In other words, SHAP provides a unified measure of feature importance by taking into account all possible interactions between features.