Abstract
In web-scale applications such as online advertising and recommender systems, modeling feature interactions in high-dimensional sparse data is critical for predictive accuracy. Traditional Factorization Machines (FM) and their deep learning variants often suffer from combinatorial explosion or the inclusion of predictive noise. This paper introduces GraphFM, a framework that bridges the gap between FM and Graph Neural Networks (GNN). By representing features as nodes and learning to select only the most beneficial interactions as edges, GraphFM efficiently captures high-order relationships while filtering out noise. Experimental results on benchmark datasets like Criteo and Avazu demonstrate that GraphFM achieves state-of-the-art performance in click-through rate (CTR) prediction.
Introduction
Modern recommender systems rely on high-dimensional, sparse, and categorical data. To make accurate predictions, models must understand complex feature interactions—for instance, the combination of a user's language and a specific movie genre often provides a stronger signal than either feature in isolation.
Traditional Factorization Machines (FM) are effective at capturing second-order (pairwise) interactions but face significant challenges when scaling to higher orders. Specifically, modeling all possible interactions leads to a combinatorial explosion in computational cost. Furthermore, many feature pairs are irrelevant (e.g., "Release Date" and "Language"), and including them introduces noise that can degrade model performance. While deep learning models attempt to learn these interactions implicitly, they often operate as "black boxes," lacking the explicit mathematical intuition of FM.
Methodology
GraphFM treats feature interaction modeling as a graph-based problem, where each feature field is represented as a node. The architecture consists of two primary components per layer designed to optimize interaction modeling:
Interaction Selection
Rather than assuming a fully connected graph where every feature interacts with every other feature, GraphFM employs a learnable metric function (implemented via a multi-layer perceptron) to estimate the "beneficiality" of an interaction. The model then samples the top-$m$ most important neighbors for each node. This adaptive pruning allows the model to focus on high-signal interactions and ignore predictive noise.
Interaction Aggregation
This component integrates the core logic of FMs into the GNN framework. It utilizes an element-wise product—the hallmark of FM—within a multi-head attention mechanism. This approach captures the "polysemy" of features, acknowledging that a feature may interact differently depending on its semantic context. By stacking multiple layers, GraphFM captures increasingly higher-order interactions: the first layer handles 2nd-order, the second layer handles 3rd-order, and so on.
Experimental Setup
The model was evaluated against three widely recognized real-world datasets:
- Criteo: A massive CTR benchmark with over 45 million instances and 39 feature fields.
- Avazu: A large-scale CTR dataset containing 40 million instances across 23 fields.
- MovieLens-1M: A classic recommendation dataset with approximately 1 million ratings and 7 feature fields.
Results and Discussion
GraphFM consistently outperformed a wide array of baselines, including classic FM, deep models like DeepFM and xDeepFM, and other graph-based approaches like Fi-GNN.
Performance Gains
On the Criteo and Avazu datasets, GraphFM achieved the highest Area Under the Curve (AUC) and the lowest Logloss. The performance boost was particularly pronounced on the MovieLens-1M dataset. The authors attribute this success to the interaction selection mechanism, which prevents the model from being distracted by the noise inherent in smaller samples, thereby reducing the risk of overfitting.
Key Insights
- Explicit Modeling: Unlike many deep FM variants that feed embeddings into standard MLPs, GraphFM models interactions explicitly through its aggregation function, maintaining the mathematical intuition of FMs while leveraging GNN representational power.
- Noise Filtering: Ablation studies confirmed that removing the "Selection" component (forcing a fully connected graph) led to a sharp decrease in performance. This demonstrates that modeling fewer, more relevant interactions is superior to modeling all possible interactions.
- Interpretability: Because the model learns an explicit graph structure, researchers can visualize edge weights to understand which feature combinations the model deems most important for specific predictions.
Conclusion
GraphFM provides a robust framework for modeling feature interactions by combining the strengths of Factorization Machines and Graph Neural Networks. By adaptively selecting beneficial interactions, it achieves high accuracy and efficiency on sparse data. Future work may involve exploring more advanced sampling strategies to further reduce computational overhead on extremely large feature sets and applying the GraphFM architecture to non-web domains such as multi-class classification and regression.
Summary updated