Introduction
Self-supervised learning (SSL) has become a cornerstone of modern recommendation systems, particularly for addressing the challenge of data sparsity. By creating augmented views of user-item interactions and maximizing their mutual information, SSL models learn robust representations. However, these models are susceptible to "shortcut learning"—the tendency to rely on spurious correlations present in the training data due to selection bias.
For instance, in a job recommendation dataset, a model might find that users with exactly 4 or 6 years of experience are more likely to click on certain jobs than those with 5 or 7 years. While this pattern exists in the training set, it is often a result of data collection bias rather than a true causal preference. When deployed in an Out-of-Distribution (OOD) environment where this bias is absent, the model's performance degrades significantly.
The Invariant Feature Learning (IFL) Framework
To address this, the authors propose the Invariant Feature Learning (IFL) framework. IFL aims to identify and mask spurious features, forcing the model to focus on "invariant" features that consistently predict user preferences across different data distributions.
The framework consists of three primary stages:
- Environment Division: IFL uses K-means clustering to partition user-item interactions into multiple "environments." The core idea is that invariant features will remain stable across these environments, while spurious features will exhibit high variance.
- Feature Mask Learning: The model learns a continuous mask for each feature. A variance loss is introduced to penalize features whose predictive signals vary significantly across the discovered environments. Features with high variance are assigned lower mask values, effectively labeling them as spurious.
- Mask-guided Contrastive Learning: During the SSL phase, the model uses the learned masks to guide data augmentation. Instead of random masking, the model specifically targets identified spurious features. By maximizing mutual information between the original data and the "invariant-only" view, the model learns to ignore noise and capture causal signals.
Experimental Evaluation
The IFL framework was evaluated on two real-world datasets: Meituan (food recommendation) and XING (job recommendation). To test robustness, the researchers created OOD test sets by inducing distribution shifts in key features like work experience.
Key Results
- Robustness to Distribution Shift: On the XING OOD test set, IFL achieved a Recall@10 of 0.5549, significantly outperforming standard SSL-DNN (0.5444) and other state-of-the-art baselines like SGL.
- Generalization without Sacrifice: Unlike many robust models that trade off standard performance for OOD stability, IFL maintained or improved performance on IID (In-Distribution) tests. On Meituan, it achieved a Recall@50 of 0.1013, surpassing SGL's 0.0896.
- Ablation Studies: Removing the environment-based variance loss led to a sharp decline in OOD performance, confirming that the multi-environment clustering is essential for identifying spurious correlations.
Conclusion and Future Directions
The IFL framework provides a systematic way to automate the detection of misleading data patterns in recommendation systems. By leveraging the principle of invariance, it builds models that are not only accurate but also robust to real-world distribution shifts. Future work includes developing personalized masking—recognizing that a feature might be spurious for one user group but invariant for another—and exploring more advanced environment discovery techniques beyond K-means.
Summary updated