A Dual Input-aware Factorization Machine for CTR Prediction

Wantong Lu, Yantao Yu, Yongzhe Chang, Zhen Wang, Chenhui Li, Bo Yuan

Introduction

Click-Through Rate (CTR) prediction is a cornerstone of online advertising and recommendation systems. Traditional models often rely on static feature representations, failing to capture the dynamic importance of features across different contexts. This paper introduces the Dual Input-aware Factorization Machine (DIFM), a model designed to adaptively reweight feature embeddings based on the specific input instance.

The Challenge: Static vs. Dynamic Importance

Most existing CTR models, such as Factorization Machines (FMs), represent features as fixed vectors. However, a feature's predictive power is often relative. For example, the "Gender: Female" feature is highly relevant when the ad is for a "pink skirt" but may be less significant for a "blue notebook." While previous Input-aware Factorization Machines (IFMs) attempted to address this, they primarily focused on "bit-wise" interactions within embeddings, neglecting the "vector-wise" semantic relationships between different feature fields.

The DIFM Architecture

DIFM addresses these limitations through a novel Dual-FEN (Factor Estimating Network). This network calculates a unique importance factor for each feature in a given input by processing data through two parallel paths:

Overall architecture of the DIFM model, showing the dual-path Factor Estimating Network (FEN) and the reweighting layer.

1. Vector-wise Path (Attention-based)

Inspired by Transformer architectures, this path utilizes Multi-Head Self-Attention to capture high-level semantic interactions between feature fields. By treating feature embeddings as a sequence, the model learns how much each field should "attend" to others. A Residual Network connection is included to preserve the original feature identity, preventing the attention mechanism from over-smoothing the representations.

Detailed view of the Vector-wise path, highlighting the Multi-Head Self-Attention and Residual Network components.

2. Bit-wise Path (DNN-based)

In parallel, a standard Deep Neural Network (DNN) captures fine-grained, element-level interactions within the embeddings. This path is adept at identifying non-linear patterns that might be missed by the attention mechanism.

The outputs from both paths are combined to produce a final "input-aware factor," which scales the original embeddings before they are fed into a final Factorization Machine for the actual prediction.

Experimental Results

The authors evaluated DIFM on two large-scale datasets: Avazu (40 million instances) and Criteo (100 million instances).

  • Performance: DIFM consistently outperformed state-of-the-art baselines, including FM, DeepFM, and the original IFM. On Avazu, it achieved an AUC of 0.7860, and on Criteo, 0.7998. In CTR prediction, improvements of 0.001 in AUC are considered significant for business impact.
  • Ablation Study: Removing either the vector-wise or bit-wise path led to a decrease in performance, confirming that both high-level semantic relationships and low-level non-linear patterns are crucial for accurate prediction.
  • Hyperparameter Sensitivity: The model demonstrated robustness across various settings, with performance generally improving as the number of attention heads increased, up to 16.

Conclusion

DIFM represents a significant step forward in making CTR models context-aware. By combining the strengths of Transformer-style attention and traditional DNNs, it dynamically adjusts feature importance for every input. While the computational overhead of self-attention remains a consideration for real-time systems, the accuracy gains make DIFM a compelling architecture for modern recommendation engines.

Summary updated

BibTeX
@inproceedings{lu2020dual,
  author = {Wantong Lu and Yantao Yu and Yongzhe Chang and Zhen Wang and Chenhui Li and Bo Yuan},
  title = {{A Dual Input-aware Factorization Machine for CTR Prediction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/434},
}
Figure