DGEM: A New Dual-modal Graph Embedding Method in Recommendation System

Huimin Zhou, Qing Li, Yong Jiang, Rongwei Yang, Zhuyun QiarXiv 2021

Abstract

Recommendation systems frequently encounter challenges related to high-dimensional sparsity and the complex, time-varying nature of item relationships. This paper introduces the Dual-modal Graph Embedding Method (DGEM), a framework that integrates static and dynamic graph representations to capture both long-term item proximity and evolving user interests. By utilizing unequal-probability random walks and chronological "temporal walks," DGEM generates robust embeddings that significantly enhance recommendation accuracy. Furthermore, the framework addresses the cold-start problem through a dedicated solitary point processing module and employs an attention-based deep neural network for final prediction. Experimental results on the Amazon Electronics dataset demonstrate that DGEM outperforms traditional sequential and static graph models.

Introduction

Modern e-commerce platforms generate vast amounts of user behavior data, yet translating this data into accurate recommendations remains difficult. Traditional embedding methods often treat user history as a simple linear sequence, overlooking the complex web of interactions between items. Moreover, static models fail to account for how item relationships shift over time due to new product launches or changing trends.

The Dual-modal Graph Embedding Method (DGEM) addresses these issues by constructing directed, weighted item graphs that operate in two modes: static (S-DGEM) and dynamic (D-DGEM). This dual approach allows the model to learn stable item associations while remaining sensitive to temporal dynamics.

Overall architecture of the DGEM framework, showing the progression from user behavior sequences to the final deep neural network module.

Methodology

The DGEM framework is composed of four primary modules: item graph construction, random walk sampling, graph embedding, and solitary point processing.

Dual-modal Graph Construction

DGEM builds a directed, weighted item graph where nodes represent items and edges represent transitions between them in user histories.

  • Static Mode (S-DGEM): Focuses on historical co-occurrence. To capture high-order proximity (relationships beyond direct neighbors), it uses random walks with unequal probabilities, where the walker is biased toward edges with higher transition weights.
  • Dynamic Mode (D-DGEM): Incorporates a "time state" into the graph. It utilizes Temporal Walks, ensuring that the sampled sequences follow a strict chronological order. This ensures the resulting embeddings capture the causal flow of user interests.
A dynamic directed weighted item graph illustrating how transition frequencies and specific timestamps are mapped onto edges.

Embedding and Cold-Start Handling

The sequences generated by the random walks are fed into a Skip-Gram model with negative sampling to produce dense vector representations. To handle the "cold start" problem—items with little to no interaction history—DGEM includes a Solitary Point Processing module. This module leverages auxiliary information, such as product categories, and uses an average pooling layer to project these features into the same embedding space as the graph-based items.

Attention-based DNN

The final recommendations are generated by a deep neural network that takes the learned embeddings as input. An attention mechanism is employed to allow the model to adaptively focus on the most relevant historical behaviors for a given prediction, effectively filtering out noise in the user's history.

Experimental Results

The authors evaluated DGEM using the Amazon Electronics dataset, which includes over 142 million reviews. After preprocessing to ensure data quality, the model was tested against baselines such as DeepFM and Node2Vec.

  • Accuracy: S-DGEM achieved an AUC of 0.8891, representing a 7.04% relative improvement over the base model.
  • Dynamic Robustness: In dynamic testing environments, D-DGEM maintained a 7.02% relative improvement in Group AUC (GAUC) over DeepWalk, demonstrating its ability to handle evolving data distributions.

Conclusion

DGEM provides a powerful framework for recommendation systems by bridging the gap between static graph embeddings and dynamic temporal sequences. By effectively handling high-order proximity and the cold-start problem, it offers a more nuanced representation of item relationships. Future research will focus on improving the scalability of graph updates for massive production environments.

Summary updated

BibTeX
@misc{zhou2021dgem,
  author = {Huimin Zhou and Qing Li and Yong Jiang and Rongwei Yang and Zhuyun Qi},
  title = {{DGEM: A New Dual-modal Graph Embedding Method in Recommendation System}},
  year = {2021},
  eprint = {2108.04031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.04031},
}
Figure