[Paper Review] Maximum Mean Discrepancy for Generalization in the Presence of Distribution and Missingness Shift
This paper proposes using Maximum Mean Discrepancy (MMD) to improve model generalization under covariate shift and missingness shift by aligning training and test data distributions in input space, representation space, or both. The MMD Representation, MMD Mask, and MMD Hybrid methods significantly improve model performance, calibration, and robustness to feature missingness on both synthetic and real-world data, especially in scenarios with high missingness in test data.
Covariate shifts are a common problem in predictive modeling on real-world problems. This paper proposes addressing the covariate shift problem by minimizing Maximum Mean Discrepancy (MMD) statistics between the training and test sets in either feature input space, feature representation space, or both. We designed three techniques that we call MMD Representation, MMD Mask, and MMD Hybrid to deal with the scenarios where only a distribution shift exists, only a missingness shift exists, or both types of shift exist, respectively. We find that integrating an MMD loss component helps models use the best features for generalization and avoid dangerous extrapolation as much as possible for each test sample. Models treated with this MMD approach show better performance, calibration, and extrapolation on the test set.
Motivation & Objective
- To address covariate shift and missingness shift in machine learning models where training and test data distributions differ.
- To improve model generalization by minimizing MMD between training and test data distributions in input and representation spaces.
- To develop a novel MMD masker model that aligns missingness patterns between training and test sets, particularly for cases with high feature missing rates in test data.
- To combine MMD-based distribution alignment with missingness pattern alignment into a hybrid model for superior performance.
- To demonstrate that MMD-based methods reduce dangerous extrapolation and improve calibration and robustness on out-of-distribution test sets.
Proposed method
- Proposes MMD Representation: minimizes MMD between training and test feature representations using a mixture of kernels to align distributions in the embedding space.
- Introduces MMD Mask: trains a masker model using MMD to align the joint distribution of input features and missingness indicators between training and test sets, specifically targeting missingness shift.
- Develops MMD Hybrid: combines MMD matching in both input space and representation space to jointly address distribution and missingness shifts.
- Uses a neural network framework to end-to-end optimize MMD loss alongside the main prediction loss, enabling joint distribution and missingness alignment.
- Employs a two-stage training process: first train the MMD masker on labeled data with masked features, then fine-tune the downstream model on masked data from the MMD masker.
- Applies mixture-of-kernels MMD to capture complex distributional differences and improve alignment robustness.
Experimental results
Research questions
- RQ1Can MMD-based distribution alignment in feature representation space improve model generalization under covariate shift?
- RQ2Can a dedicated MMD masker model effectively align missingness patterns between training and test sets to mitigate missingness shift?
- RQ3Does combining MMD alignment in both input and representation spaces yield better performance than using either alone?
- RQ4How does the MMD masker compare to simple random or heuristic masking strategies in terms of model robustness and performance?
- RQ5To what extent does MMD-based training reduce dangerous extrapolation and improve calibration on out-of-distribution test data?
Key findings
- The MMD Model outperforms the Simple Model on the mask-carryover test set, showing a large performance gain in carbon emission estimation.
- On data masked by both MMD and simple masks, the MMD Model consistently outperforms the Simple Model, with larger gains when using MMD masks.
- When entire sets of features are missing (e.g., ESG data), the MMD Model maintains performance close to unmasked data, while the Simple Model degrades significantly.
- The MMD masker captures more realistic missingness patterns than simple masking, as evidenced by better alignment with real-world missingness in the test set.
- The MMD Model shows superior calibration and robustness, especially in scenarios with high missingness, indicating reduced dangerous extrapolation.
- The hybrid MMD approach combining input-space and representation-space alignment yields the best overall performance across all test scenarios.
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.