Detecting Relevant Feature Interactions for Recommender Systems via Graph Neural Networks

Yixin Su, Rui Zhang, Sarah M. Erfani, Zhenghua Xu

TL;DR

Recommender systems often suffer from "noise" introduced by modeling every possible interaction between features, leading to overfitting and reduced accuracy. This paper introduces $L_0$-SIGN, a graph neural network (GNN) framework that uses $L_0$ regularization to automatically prune unhelpful feature interactions, retaining only the most beneficial ones for more accurate and interpretable recommendations.

What Problem Does This Paper Address?

In modern recommender systems, understanding how features work together—like "rainy weather" combined with "off-work hours" for a ride-hailing app—is crucial for high accuracy. However, most existing models (like Factorization Machines) take a "brute force" approach, calculating interactions between every single pair of features.

This is suboptimal for two reasons:

  1. Noise and Overfitting: Many interactions are irrelevant. For instance, the interaction between "Monday" and "Cloudy" might be purely coincidental in a small training set for a Gmail usage predictor, leading the model to learn false patterns.
  2. Lack of Holistic View: Existing attention-based methods might weight interactions, but they still process all of them and often fail to capture how a set of interactions contributes to the final prediction.

The authors aim to identify the specific subset of "beneficial feature interactions" that together produce the best recommendation performance.

Methods

The authors propose $L_0$-SIGN, which treats each data sample as a graph where features are nodes and beneficial interactions are edges. The model consists of two primary components:

  1. $L_0$ Edge Prediction Model: This component predicts the existence of an edge (interaction) between any two feature nodes. To ensure the model actually learns to prune, they apply $L_0$ activation regularization. Since $L_0$ is non-differentiable, they use a "hard concrete distribution" approximation to allow for standard gradient-based training. This forces unbeneficial interactions to have a value of zero.
  2. Statistical Interaction Graph Neural Network (SIGN): Once the beneficial edges are identified, SIGN models these interactions. It uses a non-additive function to capture the joint effects of linked nodes and aggregates these results to produce the final recommendation.
Figure 1: An overview of L0-SIGN.

The model is theoretically grounded in the Information Bottleneck (IB) principle, proving that $L_0$-SIGN effectively extracts the most relevant information from inputs to predict target outcomes while minimizing complexity.

Datasets

The model was evaluated on four diverse datasets:

  • Frappe: A context-aware app recommendation dataset (e.g., user ID, app ID, weather, time).
  • MovieLens-tag: A classic movie recommendation dataset focusing on user-item-tag interactions.
  • Twitter: Used for graph classification (word tokens as nodes, co-occurrence as edges).
  • DBLP: A citation network dataset (papers/keywords as nodes, citations as edges).

Key Insights and Ideas

  • Sparsity Improves Accuracy: A key "aha moment" is shown in the training curves. As the model trains, the number of active edges drops significantly while accuracy increases. This confirms that removing ~40-50% of feature interactions actually helps the model focus on what matters.
  • Beyond Heuristics: The authors demonstrated that $L_0$-SIGN can outperform GNNs that use human-defined "heuristic" edges (like citation links in DBLP). By learning which edges are beneficial for the specific task, the model finds better structures than domain experts might provide.
  • Built-in Interpretability: Because the model explicitly selects edges, it provides natural explanations. For example, it can visualize that "Workday" has a strong positive interaction with "Gmail" usage, while "Home" has a negative one.
Figure 2: The interaction analysis results s from L0-SIGN are like the relevant part (bottleneck) in the IB principle.

Key Results

  • State-of-the-Art Performance: $L_0$-SIGN consistently outperformed strong baselines like DeepFM, xDeepFM, and AutoInt. On the Frappe dataset, it achieved an AUC of 0.9580, significantly higher than the next best baseline (SIGN at 0.9448).
  • Effective Pruning: As shown in the training analysis, the model successfully recognizes and removes unbeneficial interactions. In the MovieLens dataset, the number of edges was reduced to roughly 60% of the total possible pairs while reaching peak accuracy.
  • Generalizability: The $L_0$ edge prediction component was successfully integrated into other GNN architectures (GCN, GIN), leading to performance gains across the board.

Limitations and Future Work

  • Pairwise Focus: The current work focuses exclusively on pairwise (second-order) feature interactions. The authors acknowledge that high-order interactions (e.g., triplets of features) are important and plan to address them in future work.
  • Computational Complexity: The model performs interaction detection on every pair of features, resulting in a complexity of $O(q^2)$ where $q$ is the number of features. While manageable for many tasks, this could be a bottleneck for datasets with extremely high feature counts per sample.

Summary updated

Abstract

Feature interactions are essential for achieving high accuracy in recommender systems. Many studies take into account the interaction between every pair of features. However, this is suboptimal because some feature interactions may not be that relevant to the recommendation result, and taking them into account may introduce noise and decrease recommendation accuracy. To make the best out of feature interactions, we propose a graph neural network approach to effectively model them, together with a novel technique to automatically detect those feature interactions that are beneficial in terms of recommendation accuracy. The automatic feature interaction detection is achieved via edge prediction with an L0 activation regularization. Our proposed model is proved to be effective through the information bottleneck principle and statistical interaction theory. Experimental results show that our model (i) outperforms existing baselines in terms of accuracy, and (ii) automatically identifies beneficial feature interactions.
BibTeX
@inproceedings{su2021detecting,
  author = {Yixin Su and Rui Zhang and Sarah M. Erfani and Zhenghua Xu},
  title = {{Detecting Relevant Feature Interactions for Recommender Systems via Graph Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16561},
}
Figure