Matrix Factorization with Explicit Trust and Distrust Relationships

Rana Forsati, Mehrdad Mahdavi, Mehrnoush Shamsfard, Mohamed SarwatarXiv 2014

Abstract

Modern recommender systems frequently struggle with data sparsity and cold-start problems. While social trust has been widely utilized to mitigate these issues, explicit distrust relationships are often overlooked. This paper proposes a novel matrix factorization model that incorporates both trust and distrust to improve recommendation accuracy. By introducing a triplet-based regularization that enforces a dissimilarity gap between trusted and distrusted peers in the latent feature space, the model achieves superior performance on real-world datasets like Epinions.

Introduction

Recommender systems are essential for navigating the vast choices available on digital platforms. However, their effectiveness is often hampered by two primary challenges: data sparsity, where users only rate a small fraction of available items, and the cold-start problem, where new users lack sufficient history for accurate predictions.

To address these, researchers have turned to social recommendation, leveraging "social trust" to infer user preferences. The underlying assumption is that users are likely to share interests with those they trust. Yet, social networks also contain explicit distrust relationships—people whose opinions a user actively avoids or disagrees with. Most existing models fail to account for this "dark side" of social data. This paper addresses this gap by modeling explicit distrust alongside trust to create a more robust recommendation framework.

Methodology

The proposed approach extends standard Matrix Factorization (MF). In MF, a user-item rating matrix $\mathbf{R}$ is decomposed into two low-rank matrices, $\mathbf{U}$ and $\mathbf{V}$, representing latent features for users and items, respectively.

Mathematical Framework

The core innovation is a triplet-based regularization. For each user $u$, the model identifies triplets $(u, v, w)$, where $v$ is a trusted neighbor and $w$ is a distrusted neighbor. The objective is to ensure that the latent features of $u$ are closer to $v$ than to $w$ by at least a predefined margin.

Table of symbols and their meanings used in the proposed matrix factorization model.

The notation used throughout the model is summarized in the table above. The model employs hinge and logistic loss functions to penalize instances where this "trust-distrust gap" is violated. To ensure scalability for large-scale social networks, the authors utilize Mini-batch Stochastic Gradient Descent (Mini-SGD), which samples small groups of triplets for optimization rather than processing the entire network simultaneously.

Experimental Setup

The model was evaluated using the Epinions dataset, a benchmark for social recommendation that includes explicit "web of trust" and "block list" (distrust) data.

  • Scale: The dataset comprised approximately 121,000 users and 685,000 items.
  • Sparsity: With only 0.02% of possible ratings present, the dataset provides a rigorous test for handling sparse data.

Results and Discussion

The proposed model, MF+TD (Matrix Factorization with Trust and Distrust), was compared against standard MF and models utilizing only trust information.

Accuracy and Cold-Start Performance

MF+TD consistently outperformed baselines in terms of Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) across various training densities. Notably, in "pure cold-start" scenarios where users had zero ratings, the inclusion of both trust and distrust significantly improved prediction accuracy compared to using trust alone.

Key Insights

  1. Distrust is Distinct: Distrust cannot be treated simply as "negative trust." Unlike trust, which exhibits some transitivity, distrust is not necessarily transitive. The margin-based approach effectively captures this nuance.
  2. The Importance of the Margin: Ensuring a clear separation between "people like me" and "people unlike me" in the latent space is more effective than merely maximizing the distance from distrusted users.
  3. Scalability: The Mini-SGD approach allowed the model to converge quickly, demonstrating its feasibility for real-world, large-scale applications.

Conclusion and Future Work

This research demonstrates that explicit distrust is a valuable signal for improving recommender systems, particularly in sparse and cold-start environments. However, several avenues for future work remain. Explicit distrust data is relatively rare (making up only 16.7% of relations in the Epinions sample). Future models could explore weighted relationships to capture varying degrees of trust and distrust, or apply similar triplet logic to item-item relationships to further refine the latent feature space.

Summary updated

BibTeX
@misc{forsati2014matrix,
  author = {Rana Forsati and Mehrdad Mahdavi and Mehrnoush Shamsfard and Mohamed Sarwat},
  title = {{Matrix Factorization with Explicit Trust and Distrust Relationships}},
  year = {2014},
  eprint = {1408.0325},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1408.0325},
}
Figure