Directed Acyclic Graph Factorization Machines for CTR Prediction via Knowledge Distillation

Zhen Tian, Ting Bai, Zibin Zhang, Zhiyuan Xu, Kangyi Lin, Ji-Rong Wen, Wayne Xin Zhao · DOI

TL;DR

This paper introduces KD-DAGFM, a novel knowledge distillation framework that uses a Directed Acyclic Graph Factorization Machine (DAGFM) as a lightweight student model to efficiently learn high-order feature interactions for Click-Through Rate (CTR) prediction. By distilling knowledge from complex teacher models, KD-DAGFM achieves near-lossless performance with significantly reduced computational costs, making it suitable for large-scale industrial applications.

What Problem Does This Paper Address?

Click-Through Rate (CTR) prediction is crucial for recommender systems, aiming to predict the probability of a user clicking on an item. The effectiveness of CTR prediction heavily relies on modeling complex, high-order feature interactions. However, as the number of features grows in real-world scenarios (e.g., millions of dimensions in industrial datasets), the computational cost of modeling these interactions explodes, leading to slow inference and potential overfitting. Existing knowledge distillation (KD) methods can accelerate inference by transferring knowledge to smaller models, but often suffer from accuracy degradation. This paper addresses the challenge of balancing efficiency and effectiveness in CTR prediction by developing a lightweight student model capable of distilling high-order feature interactions without significant performance loss.

Methods

The core of this work is the Directed Acyclic Graph Factorization Machine (DAGFM), a novel lightweight student model designed for CTR prediction. DAGFM constructs a Directed Acyclic Graph (DAG) where each node represents a feature field. Interactions between features are modeled through information propagation on this DAG, aggregated by learnable edge weights. The paper proposes three interaction learning functions (inner, outer, and kernel) to capture these interactions. A key innovation is the outer interaction learning function, which is a decomposed version of the kernel interaction function, achieving the same complexity as the inner function but with greater expressive power.

The framework leverages Knowledge Distillation (KD) to transfer knowledge from complex teacher models (like xDeepFM, DCNV2) to the DAGFM student model. To ensure a fair comparison and mitigate potential noise from implicit teacher components, the authors often use explicit interaction components of teachers as the primary teachers. The KD process involves sharing the embedding layer between teacher and student and optimizing a combined loss function that includes both distillation loss and a standard cross-entropy loss for CTR prediction. An enhanced version, KD-DAGFM+, is also proposed, which integrates an MLP component after the DAGFM to better capture implicit feature interactions from teachers.

Datasets

The authors evaluated their proposed models on four real-world datasets:

  • Criteo: A popular benchmark dataset for CTR prediction, containing user logs over 7 days.
  • Avazu: Another dataset from a CTR prediction competition, also based on user logs over 7 days.
  • MovieLens-1M: A widely used dataset for recommendation system research.
  • WeChat: A large-scale industrial dataset collected from the WeChat platform, featuring billions of feature dimensions and millions of daily active users.

Key Insights and Ideas

  • DAG as a DP Analogy: The paper demonstrates that the DAG structure in DAGFM aligns with a dynamic programming (DP) algorithm. This connection provides a theoretical foundation for DAGFM's ability to learn arbitrary-order feature interactions by traversing unique paths in the graph, analogous to summing states in DP.
  • Efficient High-Order Interactions: The proposed outer interaction learning function in DAGFM is a significant contribution. By decomposing the kernel interaction, it achieves a balance between expressive power and computational efficiency, making it feasible to model complex interactions without the quadratic complexity of traditional kernel methods.
  • Near-Lossless Distillation: The experimental results show that KD-DAGFM can achieve performance very close to its complex teacher models, with distillation losses orders of magnitude smaller than those observed with simpler student models like tiny MLPs. This highlights the effectiveness of DAGFM as a student model for knowledge distillation.
  • Industrial Scalability: The significant reduction in FLOPs (computational cost) and latency achieved by KD-DAGFM, even when compared to other lightweight models, makes it a strong candidate for deployment in large-scale industrial recommender systems where efficiency is paramount.

Key Results

  • Performance: KD-DAGFM achieves state-of-the-art performance on multiple datasets, often matching or closely approaching the performance of complex teacher models. For instance, on the WeChat platform, KD-DAGFM achieved a 0.59% increase in CTR and a 78.5% reduction in FLOPs compared to a SOTA method.
  • Efficiency: KD-DAGFM uses less than 21.5% of the FLOPs of state-of-the-art methods while achieving competitive performance. The latency is also significantly reduced, making it nearly 3 times faster than the SOTA model on the WeChat platform.
  • Distillation Effectiveness: The distillation loss curves show that DAGFM learns from teachers much more effectively than simpler models like tiny MLPs, with deviations being orders of magnitude smaller.
  • Interaction Learning Functions: The paper shows that different interaction learning functions (inner, outer, kernel) have varying effectiveness depending on the teacher model, with the proposed outer function demonstrating good adaptability.

Limitations and Future Work

  • Fine-tuning: The paper notes that while KD-DAGFM achieves near-lossless performance, fine-tuning the student model after distillation is beneficial to alleviate potential under-fitting issues arising from inherited teacher embeddings.
  • Implicit Interactions: While KD-DAGFM excels at distilling explicit interactions, the KD-DAGFM+ model is introduced to better handle implicit interactions by adding an MLP component. Further exploration into more sophisticated ways to distill implicit knowledge could be a future direction.
  • Teacher Model Choice: The performance of KD-DAGFM can be influenced by the choice of teacher model and its interaction learning functions. Investigating optimal teacher-student pairings or more robust distillation strategies could be beneficial.
  • Generalization: While tested on four datasets, further validation on a wider range of industrial-scale datasets would strengthen the generalizability claims.

Summary updated

BibTeX
@inproceedings{tian2022directed,
  author = {Zhen Tian and Ting Bai and Zibin Zhang and Zhiyuan Xu and Kangyi Lin and Ji-Rong Wen and Wayne Xin Zhao},
  title = {{Directed Acyclic Graph Factorization Machines for CTR Prediction via Knowledge Distillation}},
  booktitle = {WSDM},
  year = {2022},
  doi = {10.1145/3539597.3570384},
}
Figure