Skip to main content
QUICK REVIEW

[Paper Review] GraphFM: Graph Factorization Machines for Feature Interaction Modeling

Shu Wu, Zekun Li|arXiv (Cornell University)|May 25, 2021
Advanced Graph Neural NetworksComputer Science57 references14 citations
TL;DR

GraphFM proposes a novel Graph Factorization Machine that models high-order feature interactions by constructing a dynamic interaction graph from beneficial feature pairs, integrating FM's latent vector interactions with GNN-style neighborhood aggregation to improve CTR prediction. The model achieves state-of-the-art performance by explicitly learning meaningful interactions while filtering noise through adaptive edge selection.

ABSTRACT

Factorization machine (FM) is a prevalent approach to modeling pairwise (second-order) feature interactions when dealing with high-dimensional sparse data. However, on the one hand, FM fails to capture higher-order feature interactions suffering from combinatorial expansion. On the other hand, taking into account interactions between every pair of features may introduce noise and degrade prediction accuracy. To solve the problems, we propose a novel approach, Graph Factorization Machine (GraphFM), by naturally representing features in the graph structure. In particular, we design a mechanism to select the beneficial feature interactions and formulate them as edges between features. Then the proposed model, which integrates the interaction function of FM into the feature aggregation strategy of Graph Neural Network (GNN), can model arbitrary-order feature interactions on the graph-structured features by stacking layers. Experimental results on several real-world datasets have demonstrated the rationality and effectiveness of our proposed approach. The code and data are available at https://github.com/CRIPAC-DIG/GraphCTR}{https://github.com/CRIPAC-DIG/GraphCTR

Motivation & Objective

  • To address the limitations of Factorization Machines (FM) in modeling higher-order feature interactions due to combinatorial explosion and noise from irrelevant pairwise interactions.
  • To overcome the implicit, bit-wisely learned high-order interactions in deep learning-based FM variants by enabling explicit, interpretable modeling of feature interactions.
  • To leverage Graph Neural Networks (GNNs) for structured feature interaction learning while ensuring only beneficial interactions are modeled through dynamic edge construction.
  • To provide human-readable explanations of model predictions by visualizing learned interaction graphs and edge weights.
  • To empirically validate the impact of interaction order and neighborhood size on model performance.

Proposed method

  • Represent features as nodes in a graph and model pairwise feature interactions as edges, with edge weights learned via a differentiable interaction selection mechanism.
  • Integrate FM's inner product-based interaction function into a GNN-style message passing framework to aggregate interactions across layers.
  • Use a multi-layer architecture where each layer models higher-order interactions, with the interaction order increasing with depth.
  • Apply a top-k selection strategy at each layer to retain only the most beneficial feature interactions (e.g., top-7 for order-2, top-4 for order-3, etc.), reducing noise and computational cost.
  • Train the model end-to-end using a differentiable loss function, enabling joint optimization of feature embeddings and interaction weights.
  • Visualize learned edge weights across layers to interpret model decisions and validate the meaningfulness of selected interactions.

Experimental results

Research questions

  • RQ1Can a graph-structured representation of feature interactions effectively model high-order interactions while filtering out irrelevant or noisy pairwise interactions?
  • RQ2How does the depth of the graph network influence the model's ability to capture increasingly complex feature interactions?
  • RQ3To what extent does the number of selected interactions per layer affect model performance and generalization?
  • RQ4Can the learned interaction graph provide human-interpretable explanations for model predictions?
  • RQ5How does GraphFM compare to existing SOTA models in terms of predictive accuracy and robustness across diverse real-world datasets?

Key findings

  • GraphFM outperforms state-of-the-art baselines on multiple real-world datasets, including MovieLens-1M and Criteo, demonstrating significant gains in AUC and log-loss.
  • The model achieves peak performance when the number of sampled interactions per layer is carefully tuned, with optimal settings around m₂×m₃ ≈ 9 on MovieLens-1M.
  • Visualization of edge weights reveals that order-2 interactions are mostly beneficial, while higher-order interactions (order-3 and order-4) are more selective and non-overlapping across instances, indicating effective filtering of redundant combinations.
  • The model successfully identifies meaningful feature combinations—such as Gender with Age, WatchTime, and Genre—providing interpretable rationales for predictions.
  • In correctly predicted instances, higher-order interactions are diverse and context-specific, while in misclassified instances, overlapping or redundant interactions are more common, validating the model’s selection mechanism.
  • The ablation study confirms that both the interaction order and the number of modeled interactions significantly influence performance, with diminishing returns when neighborhoods are too large or too small.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.