TL;DR
This paper introduces GraphFM, a novel approach that combines the strengths of Factorization Machines (FMs) and Graph Neural Networks (GNNs) to model complex feature interactions in high-dimensional sparse data. By representing features as nodes and their interactions as edges in a graph, GraphFM can effectively capture arbitrary-order feature interactions while also selecting only the most beneficial ones, leading to improved prediction accuracy and interpretability.
What Problem Does This Paper Address?
In many machine learning tasks, especially in areas like recommender systems and click-through rate (CTR) prediction, data is characterized by high-dimensional and sparse features. To make accurate predictions, it's crucial to understand how these features interact with each other. Traditional Factorization Machines (FMs) excel at modeling pairwise (second-order) interactions but struggle to capture higher-order interactions (interactions involving three or more features) without a significant increase in computational complexity. Furthermore, FMs consider all pairwise interactions, which can introduce noise and lead to overfitting if many of these interactions are not actually beneficial for prediction. While deep learning models have been developed to address higher-order interactions, they often do so implicitly, making it difficult to understand why a particular prediction was made. This paper aims to bridge this gap by proposing a method that can model arbitrary-order feature interactions explicitly, select only the most informative interactions, and provide interpretable results.
Methods
The core of GraphFM lies in its novel integration of FMs and GNNs. The authors propose a graph-based representation where each feature is treated as a node, and feature interactions are represented as edges. The model operates in layers, with each layer performing two key steps:
- Interaction Selection: Instead of considering all possible feature interactions, GraphFM employs a mechanism to select only the beneficial ones. This is achieved by learning a weighted adjacency matrix where edge weights represent the probability of a beneficial interaction. This process is non-differentiable, so they use a neural matrix factorization (NMF) based metric function to estimate these weights, allowing for gradient-based optimization. This selection process effectively infers the graph structure at each layer.
- Interaction Aggregation: Once beneficial interactions (edges) are selected, GraphFM uses a GNN-like aggregation strategy to update feature representations. Specifically, they adapt an attentional aggregation mechanism. This mechanism not only aggregates information from neighboring features (based on the selected interactions) but also learns attention coefficients to weigh the importance of each interaction. To capture diverse semantic meanings of interactions, they employ a multi-head attention mechanism. The updated feature representations from each layer, which encode interactions of increasing order, are then combined for the final prediction.
Datasets
The authors evaluated GraphFM on three real-world datasets:
- Criteo: A CTR prediction benchmark dataset.
- Avazu: Another CTR prediction benchmark dataset.
- MovieLens-1M: A recommender system dataset.
The data preparation followed a standard strategy, and the instances were split into training, validation, and testing sets at an 8:1:1 ratio.
Key Insights and Ideas
- Bridging FM and GNNs: The paper successfully demonstrates how to combine the explicit interaction modeling of FMs with the relational learning capabilities of GNNs. This synergy allows for both capturing complex, high-order interactions and leveraging graph structures.
- Selective Interaction Modeling: The core innovation of selecting beneficial feature interactions is crucial. This addresses the noise and overfitting issues associated with considering all pairwise interactions in traditional FMs.
- Interpretable High-Order Interactions: By modeling interactions explicitly and selecting them, GraphFM offers a path towards understanding which feature combinations are driving predictions, a significant advantage over implicit deep learning models.
- Adaptive Graph Structure: Learning a dynamic graph structure at each layer, rather than using a fixed one, provides flexibility and allows the model to adapt to different interaction patterns at different orders.
Key Results
- GraphFM consistently outperformed all baseline methods across the three datasets (Criteo, Avazu, and MovieLens-1M) in terms of AUC and LogLoss.
- The performance improvements were particularly significant when compared to linear models (LR) and traditional FM-based methods, highlighting the model's ability to capture complex interactions.
- Ablation studies showed that each component of GraphFM (interaction selection, interaction aggregation, and multi-head attention) is crucial for its performance. Removing the interaction selection mechanism (GraphFM(-S)) led to a slight performance drop, indicating the benefit of filtering interactions.
- The study on neighborhood sampled size revealed that the optimal size is dataset-dependent, but the model is generally robust to variations.
- Visualizations of the interaction graphs provided qualitative evidence that GraphFM can identify meaningful feature combinations and their beneficial interactions.
Limitations and Future Work
- Neighborhood Sampled Size: While the model is robust, the optimal neighborhood sample size varies across datasets, suggesting that this hyperparameter requires careful tuning.
- Computational Complexity: Although GraphFM aims to be more efficient than HOFM by selecting interactions, the paper notes that the highest-order interactions are determined by layer depth, implying that very deep models could still be computationally intensive.
- Future Work: The authors suggest investigating the application of GraphFM to graph representation learning and graph/node classification tasks. They also plan to further explore how the highest order of feature interactions and the number of modeled interactions influence performance.
Summary updated