Collaborative Residual Metric Learning

Tianjun Wei, Jianghong Ma, Tommy W. S. Chow · DOI

Abstract

Collaborative Filtering (CF) has traditionally been divided between factorization-based models and signal-based models. While the former often struggle with the triangle inequality, the latter have historically lacked a clear theoretical link to distance metrics. This paper introduces CoRML (Collaborative Residual Metric Learning), a framework that unifies these approaches. By modeling the residual of distances and introducing a normalization parameter $t$, CoRML achieves the accuracy of complex Graph Convolutional Networks (GCNs) with the efficiency of linear autoencoders, while offering a mechanism to tune recommendation novelty.

Introduction

Recommendation systems are central to modern digital platforms. Historically, these systems relied on dot-product-based matrix factorization or signal-based models like linear autoencoders. However, dot products fail to satisfy the triangle inequality, limiting their ability to capture complex user-item relationships. Conversely, signal-based models are highly efficient but were poorly understood in the context of metric learning. Furthermore, popularity bias remains a persistent challenge, often drowning out "long-tail" items in favor of blockbusters.

Methodology

CoRML addresses these issues by treating recommendation as the learning of a generalized Mahalanobis distance. The framework introduces several key innovations:

  1. Residual Learning: Instead of estimating absolute distances, CoRML focuses on the residual—the difference in distance between items a user interacted with and those they did not.
  2. Hybrid Preference Scoring: The model integrates a linear autoencoder component with a graph filtering component to capture both direct item-item relationships and higher-order connectivity.
  3. Efficiency through Approximation: To avoid the computational cost of re-ranking all items during training, the authors utilize a mathematical approximation for ranking weights, focusing the model on "hard" samples without heavy overhead.
  4. Normalization Strength ($t$): A tunable parameter $t$ controls signal normalization, serving as a direct lever for recommendation novelty.

Key Insights: The Signal-Distance Connection

A primary contribution of this work is the proof that signal-based models, such as EASE, are special cases of Mahalanobis distance learning where the normalization factor is zero. This provides a theoretical justification for the success of fast, signal-based approaches.

Comparison of Linear Autoencoder (t=0) and Graph Filtering Model (t=0.5) showing the direction of optimization and preference contours.

As illustrated in the figure above, the parameter $t$ shifts the model from a pure linear autoencoder to a graph filtering model. This shift alters the preference contours ($y_{ui}$), allowing for adaptive margins that account for item popularity. By adjusting $t$, developers can balance the recommendation of popular items versus novel, "long-tail" discoveries. The authors found that novelty control is not a zero-sum game; there is an optimal "sweet spot" for both accuracy and surprise.

Experimental Results

The authors evaluated CoRML on four benchmarks: Pinterest, Gowalla, Yelp2018, and ML-20M.

  • Accuracy: CoRML consistently outperformed state-of-the-art models like LightGCN and SimGCL in terms of NDCG (Normalized Discounted Cumulative Gain) and MRR (Mean Reciprocal Rank).
  • Efficiency: On the ML-20M dataset, CoRML demonstrated a massive speedup, training orders of magnitude faster than GCN-based alternatives while maintaining comparable or superior performance.
  • Novelty Control: Experiments confirmed that decreasing $t$ effectively promotes less popular items, helping to mitigate the "filter bubble" effect common in traditional CF.

Conclusion

CoRML bridges the gap between signal processing and metric learning in collaborative filtering. By focusing on distance residuals and providing a tunable normalization parameter, it offers a high-performance, scalable solution that addresses both accuracy and popularity bias. Future work may involve extending this framework to incorporate side information, such as item descriptions, to better handle cold-start scenarios.

Reference: Wei, T., Ma, J., & Chow, T. W. S. (2023). Collaborative Residual Metric Learning. Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR ’23). https://doi.org/10.1145/3539618.3591649

Summary updated

BibTeX
@inproceedings{wei2023collaborative,
  author = {Tianjun Wei and Jianghong Ma and Tommy W. S. Chow},
  title = {{Collaborative Residual Metric Learning}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
  doi = {10.1145/3539618.3591649},
}
Figure