Explicit Semantic Cross Feature Learning via Pre-trained Graph Neural Networks for CTR Prediction

Feng Li, Bencheng Yan, Qingqing Long, Pengjie Wang, Wei Lin, Jian Xu, Bo Zheng

Introduction

In modern recommendation systems, Click-Through Rate (CTR) prediction is a fundamental task. The effectiveness of these systems often hinges on "cross features"—the interaction between independent signals, such as a specific user occupation paired with a particular item category. Traditionally, these interactions are modeled either implicitly through Deep Neural Networks (DNNs) or explicitly via statistical methods like Statistical Explicit Semantic Cross Features (SESCF).

However, both approaches have significant drawbacks. Implicit modeling often fails to capture the full semantic depth of interactions, acting as a "black box." Conversely, explicit statistical modeling suffers from poor generalization to unseen feature pairs (the cold-start problem) and a "memory explosion" as the number of feature combinations grows quadratically. To address these challenges, researchers from Alibaba Group introduced PCF-GNN, a pre-trained Graph Neural Network designed to learn explicit semantic cross features efficiently.

Methodology: PCF-GNN

The PCF-GNN framework operates in two primary stages: graph-based pre-training and downstream integration.

Graph Construction and Pre-training

The first step involves transforming historical interaction data into a heterogeneous graph. In this graph, nodes represent individual features (e.g., User ID, Item Category, Shop ID), and edges represent historical co-occurrences. The attributes of these edges are derived from statistical metrics like click rates.

The core of the approach is a self-supervised pre-training task: predicting these edge attributes. The model uses a multi-relation GNN to aggregate information from a node's neighbors across multiple "hops."

The PCF-GNN Node Encoding Module architecture, illustrating multi-hop neighbor aggregation and the edge-attribute prediction task.

As shown in the architecture, the Node Encoding Module generates high-level representations ($h_u, h_i$) by aggregating features from 1-hop and 2-hop neighbors. These embeddings are then passed through a CrossNet layer to predict the edge attribute $a_{u,i}$. A Weighted Square Loss function is employed to ensure the model prioritizes frequent and meaningful interactions during training.

Downstream Application

Once pre-trained, the GNN's node embeddings are frozen. For downstream CTR tasks, these embeddings provide "explicit" semantic signals. When a model like Wide&Deep or DeepFM processes a request, it concatenates these pre-trained cross-feature embeddings with its internal feature representations, enriching the input with pre-computed relational knowledge.

Experimental Results

The researchers evaluated PCF-GNN using the MovieLens dataset and a massive Alibaba Industrial Dataset containing 60 billion samples.

Accuracy and Generalization

PCF-GNN consistently outperformed baseline models, including standard DNNs and SESCF. A critical advantage of the graph-based approach is its ability to generalize. By leveraging graph topology, the model can infer relationships between features that have never co-occurred in the training logs by looking at their respective neighborhoods.

Performance comparison on cold-start ('New') and original ('Org') feature pairs, highlighting PCF-GNN's superior generalization.

As detailed in the results table, PCF-GNN achieved a 91.81% Hit Rate (HR) for predicting interactions, significantly higher than the 78.27% achieved by SESCF. More importantly, on "New" feature pairs (cold-start scenarios), PCF-GNN maintained high performance, whereas traditional statistical methods often failed due to a lack of historical data.

Industrial Efficiency

In a production environment at Alibaba, memory efficiency is paramount. Traditional SESCF requires storing a table of all possible feature pairs, which scales quadratically ($O(N^2)$). By moving to a node-embedding-based approach ($O(N \times d)$), PCF-GNN reduced memory consumption from 84GB to 37GB, representing a 56% reduction in infrastructure costs while simultaneously improving prediction accuracy.

Discussion and Conclusion

PCF-GNN represents a shift from manual statistical feature engineering to automated, graph-based semantic learning. By forcing a GNN to reconstruct co-occurrence statistics, the resulting embeddings carry explicit semantic meaning that improves both the accuracy and the interpretability of CTR models.

Despite its success, some challenges remain. Constructing and maintaining a graph with 20 billion edges requires significant engineering resources. Furthermore, the current "pre-train and freeze" strategy may need adaptation for highly dynamic environments where feature distributions shift rapidly. Future work may explore more efficient dynamic graph updates and the potential benefits of end-to-end fine-tuning.

In summary, PCF-GNN provides a scalable, memory-efficient solution for capturing explicit feature interactions, offering a robust path forward for large-scale recommendation systems.

Summary updated

BibTeX
@inproceedings{li2021explicit,
  author = {Feng Li and Bencheng Yan and Qingqing Long and Pengjie Wang and Wei Lin and Jian Xu and Bo Zheng},
  title = {{Explicit Semantic Cross Feature Learning via Pre-trained Graph Neural Networks for CTR Prediction}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2021},
  doi = {10.1145/3404835.3463015},
}
Figure