Reformulating CTR Prediction: Learning Invariant Feature Interactions for Recommendation

Yang Zhang, Tianhao Shi, Fuli Feng, Wenjie Wang, Dingxian Wang, Xiangnan He, Yongdong Zhang · DOI

Introduction

Click-Through Rate (CTR) prediction is a cornerstone of modern recommender systems, acting as the final ranking stage that determines which items are presented to users. Traditionally, CTR models like Factorization Machines (FM) and Deep Interest Networks (DIN) are trained using the Empirical Risk Minimization (ERM) paradigm. ERM aims to minimize the average loss over historical data, effectively "fitting" the model to past observations. However, this approach assumes that the data distribution remains stationary—an assumption that rarely holds in dynamic real-world environments.

The Challenge: Spurious Correlations and Distribution Shift

The primary weakness of ERM-based models is their tendency to learn "unstable" feature interactions. These are correlations that appear strong in historical data but fail to generalize to future serving. For example, a model might learn a stable preference (e.g., fans of Science Fiction often enjoy Star Wars) alongside a spurious, environment-specific correlation (e.g., a sudden spike in specific purchases during a localized lockdown). While the former is a reliable predictor, the latter is a temporary trend. When the environment shifts, models that rely on these spurious correlations suffer significant performance degradation.

Existing solutions in Invariant Learning, such as Invariant Risk Minimization (IRM), attempt to find patterns that remain consistent across different environments. However, these methods are often unsuitable for CTR tasks because user behavior is "entangled." A single click is driven by both long-term preferences and short-term environmental factors. Ignoring the environment-specific signal during training hinders the model's ability to learn, yet including it without care leads to overfitting on noise.

Disentangled Invariant Learning (DIL)

To address this, the authors propose Disentangled Invariant Learning (DIL). The core idea is to reformulate CTR prediction by splitting historical data chronologically into distinct "environments" (e.g., time periods). DIL then disentangles the model parameters into two distinct components:

  1. Environment-Invariant Parameters ($\phi_s$): Capturing stable feature interactions that persist across all time periods.
  2. Environment-Specific Parameters ($\phi_t$): Capturing the "local" noise and temporary trends unique to a specific period.

By explicitly modeling the environment-specific correlations, DIL "clears the way" for the invariant parameters to learn truly robust patterns. The optimization process utilizes a meta-learning strategy inspired by Model-Agnostic Meta-Learning (MAML) and a variance-based regularizer. This forces the model to achieve consistent performance across different environments, discouraging it from taking "shortcuts" based on temporary trends.

LightDIL: Field-Level Efficiency

A significant challenge with disentanglement at the embedding level is the explosion of model parameters, as separate embeddings would be required for every feature across every environment. To make the framework viable for industrial applications, the authors introduced LightDIL.

LightDIL performs disentanglement at the field level rather than the embedding level. Instead of duplicating embeddings, it learns stable and specific weights for interactions between feature fields (e.g., "User Age" $\times$ "Item Category"). This approach maintains a model size comparable to standard Factorization Machines while still providing the benefits of invariant learning.

Experimental Evaluation

The framework was evaluated on two real-world datasets (MovieLens-10M and Douban) and two semi-synthetic datasets (SP-Avazu and DC-Avazu).

  • Generalization Performance: LightDIL consistently outperformed state-of-the-art models, including FM and DIN, on the real-world datasets. This demonstrates that focusing on invariant interactions leads to better predictions on future, unseen data.
  • Robustness to Spurious Trends: On the SP-Avazu dataset, which contains injected spurious correlations, standard ERM-based models failed completely, achieving an AUC of less than 0.5. In contrast, DIL and LightDIL maintained high performance by successfully ignoring the "fake" patterns.
  • Efficiency: While the meta-learning training process is approximately five times slower than standard ERM due to second-order gradient calculations, LightDIL's inference speed remains identical to standard models, making it suitable for real-time serving.

Conclusion and Future Work

DIL represents a paradigm shift in CTR prediction, moving from simple history-fitting to the pursuit of stable, invariant feature interactions. By acknowledging and disentangling the entanglement of stable and specific signals, the framework provides a robust solution to the problem of distribution shift in recommendation.

Future research directions include improving the selection of environment granularity and exploring methods to forecast environment-specific trends. Currently, specific parameters are discarded during inference; however, predicting the "noise" of the next environment could further enhance accuracy. Additionally, exploring first-order approximations for the meta-learning loop could reduce the computational overhead of training on massive industrial datasets.

Summary updated

BibTeX
@inproceedings{zhang2023reformulating,
  author = {Yang Zhang and Tianhao Shi and Fuli Feng and Wenjie Wang and Dingxian Wang and Xiangnan He and Yongdong Zhang},
  title = {{Reformulating CTR Prediction: Learning Invariant Feature Interactions for Recommendation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
  doi = {10.1145/3539618.3591755},
}
Figure