Abstract
Traditional recommendation algorithms on Collaborative Filtering (CF) mainly focus on the rating prediction with explicit ratings, and cannot be applied to the top-N recommendation with implicit feedbacks. To tackle this problem, we propose a new collaborative filtering approach namely Maximize MAP with Matrix Factorization (MFMAP). In addition, in order to solve the problem of non-smoothing loss function in learning to rank (LTR) algorithm based on pairwise, we also propose a smooth MAP measure which can be easily implemented by standard optimization approaches. We perform experiments on three different datasets, and the experimental results show that the performance of MFMAP is significantly better than other recommendation approaches.
Introduction
Most early recommender systems were designed for explicit feedback, such as 5-star ratings. However, real-world data is predominantly implicit, consisting of clicks, views, or purchases. In these scenarios, the goal shifts from predicting a specific rating to generating an optimal Top-N recommendation list, a task categorized as "Learning to Rank" (LTR).
While metrics like AUC (Area Under the ROC Curve) are popular, they lack "top-bias"—meaning a mistake at the very top of the list is penalized the same as one at the bottom. Mean Average Precision (MAP) is a superior metric for Top-N recommendation because it heavily penalizes errors at the top of the list. However, MAP is a discrete, non-smooth function, making it non-differentiable and difficult to optimize using standard gradient-based techniques.
Methodology: The MFMAP Framework
The proposed MFMAP approach directly optimizes the MAP metric by introducing a differentiable approximation. The framework relies on several key notations for its mathematical formulation.
Matrix Factorization Backbone
MFMAP represents users and items as vectors in a low-dimensional latent space. The preference of a user $u$ for an item $i$ is calculated as the inner product of their respective latent factor vectors, $P_u$ and $Q_i$. This allows the model to capture underlying patterns in user-item interactions.
Smoothing the Rank
The standard MAP formula relies on the exact rank $r_{ui}$ of an item and indicator functions to determine if one item is ranked higher than another. These are step functions. To enable optimization, MFMAP replaces these with logistic functions ($g(x) = 1 / (1 + e^{-x})$). By substituting these smooth approximations into the MAP formula, the authors derive a differentiable objective function.
Optimization
The model uses Stochastic Gradient Ascent (SGA) with $L_2$ regularization (coefficient $\lambda$) to learn the latent factors that maximize this smoothed MAP. This list-wise approach allows the model to consider the positions of all items in the recommendation list simultaneously during training, rather than just looking at pairs of items.
Experimental Evaluation
The model was evaluated on three diverse real-world datasets:
- Epinions: A social trust network where "trusting" a user is treated as a positive interaction.
- Last.fm: A music dataset where play counts were converted into binary implicit feedback using an average listening threshold.
- MovieLens (ML-100k): A classic film rating dataset where any rated film was treated as a "relevant" item to simulate implicit feedback.
Results and Insights
MFMAP was compared against PopRec (popularity baseline), BPR-MF (optimizes AUC), and CLiMF (optimizes Mean Reciprocal Rank).
- Superior Accuracy: MFMAP consistently outperformed all baselines across all three datasets. For instance, on MovieLens (Given 10), MFMAP achieved a MAP of 0.054, compared to CLiMF's 0.045 and BPR-MF's 0.044.
- Top-Bias Advantage: Significant gains in Precision@5 and Precision@10 confirm that the top-biased optimization successfully pushes relevant items to the top of the list, which is critical for real-world user interfaces.
- Convergence: Experimental results demonstrated that the smoothed MAP objective converges steadily, proving the stability of the SGA approach despite the complexity of the list-wise objective.
Conclusion
MFMAP demonstrates that optimizing for list-wise metrics like MAP is both feasible and effective for implicit feedback systems. By smoothing the traditionally non-differentiable MAP function, the authors provide a robust method for improving Top-N recommendations. Future work may explore incorporating explicit ratings, metadata, or context-aware features to further refine the model's performance.
Summary updated