Signed Distance-based Deep Memory Recommender

Thanh Tran, Xinyue Liu, Kyumin Lee, Xiangnan KongWWW 2019 · DOI

This paper introduces SDMR (Signed Distance-based Deep Memory Recommender), a novel framework that moves beyond the linear assumptions of traditional recommendation systems. By modeling user-item and item-item relationships through "signed distances" and a multi-hop memory network, the authors achieve state-of-the-art performance across diverse real-world datasets.

TL;DR

The authors propose SDMR, a deep learning framework that replaces standard linear inner products with non-linear "signed distances" to better capture complex user-item interactions. By combining explicit user-item modeling with an implicit, multi-hop memory network that "learns to attend" to relevant past purchases, SDMR significantly outperforms ten leading recommendation baselines.

What Problem Does This Paper Address?

Most modern recommender systems rely on Matrix Factorization (MF), which assumes user preferences can be modeled by a linear relationship (an inner product) between user and item vectors. However, real-world interactions are rarely linear.

While some deep learning approaches have introduced non-linearity, they often suffer from three main gaps:

  1. They focus only on the user-item latent space, ignoring valuable item-item correlations.
  2. They rely on standard attention mechanisms based on inner products, which lack the geometric properties (like the triangle inequality) that make distance metrics effective for similarity.
  3. They often require auxiliary information (like item descriptions or reviews) that may not always be available.

Methods

The core of the paper is the SDMR framework, which fuses two distinct components:

  • Signed Distance-based Perceptron (SDP): This models the explicit relationship between a user and a target item. It uses a Multi-Layer Perceptron (MLP) followed by an element-wise square function to produce a "signed distance." This value can be positive (indicating a lack of preference), zero (the preference boundary), or negative (indicating a strong preference). The SDP model architecture
The SDP model architecture
  • Signed Distance-based Memory Network (SDM): This models implicit preferences by looking at a user's recently consumed items (the "context"). It introduces a Personalized Metric-based Attention mechanism that uses squared L2 distance—rather than inner products—to weight the importance of context items relative to the target item. Single-hop SDM architecture
Single-hop SDM architecture

To refine these attention weights, the authors employ a gated multi-hop architecture. Each "hop" updates the query vector, allowing the model to iteratively focus on the most relevant items in a user's history. The multi-hop SDM refinement process

The multi-hop SDM refinement process

Datasets

The authors evaluated their models on six real-world datasets across two distinct tasks:

  • General Recommendation: MovieLens (100k and 1M), Netflix (subsampled), and Epinions.
  • Shopping Basket-based Recommendation: IJCAI-15 (Tmall shopping logs) and Ta-Feng (grocery transaction data).

Key Insights and Ideas

  • Geometry over Algebra: Moving from inner products to "signed distances" allows the model to learn a more expressive "preference boundary" in the latent space.
  • The Metric Advantage: Standard attention mechanisms often fail to find good kernels for different data patterns. By using L2 distance (a true metric), the attention module respects the triangle inequality, which the authors show is more effective for capturing item similarities.
  • Learning to Attend: The multi-hop design isn't just a complexity boost; it's a refinement process. The authors demonstrated that as the number of hops increases, the model's attention weights correlate more strongly with Point-wise Mutual Information (PMI), meaning the model naturally learns to focus on items that are statistically co-purchased with the target.

Key Results

SDMR consistently outperformed ten strong baselines, including Neural Collaborative Filtering (NeuMF++) and Collaborative Memory Networks (CMN++).

  • General Recommendation: SDMR improved NDCG@10 by an average of 55.20% compared to the best general recommendation baseline.
  • Shopping Basket Task: It outperformed specialized sequential models like Caser and TransRec, improving NDCG@10 by up to 32.4%.
  • Component Effectiveness: Even the simpler SDP component alone outperformed standard Matrix Factorization (BPR) by 8% to 41% in Hit Ratio, validating the "signed distance" approach.

Limitations and Future Work

The authors acknowledge that while SDMR uses "recently consumed items" as context, it treats them as a set rather than a rigid sequence. It does not explicitly model the exact temporal order of interactions.

For future work, they suggest integrating position embeddings (similar to those used in Transformer models) to give the network a sense of sequence. This could further improve performance in scenarios where the specific order of purchases is highly predictive of the next item.

Summary updated

BibTeX
@inproceedings{tran2019signed,
  author = {Thanh Tran and Xinyue Liu and Kyumin Lee and Xiangnan Kong},
  title = {{Signed Distance-based Deep Memory Recommender}},
  booktitle = {The Web Conference},
  year = {2019},
  doi = {10.1145/3308558.3313460},
}
Figure