Matrix Completion Recommendation Algorithm Based on Attention Mechanism

Lin Wei, Zihao Qi, Lei Shi, Guangtao Zhao, Bo Li, Yufei Gao, Yongcai TaoISCIPT 2022

Introduction

Modern recommendation systems typically rely on extensive "edge information"—demographic data or item metadata—to improve prediction accuracy. However, such data is frequently unavailable due to privacy constraints or inherent sparsity. Traditional matrix completion techniques, which fill gaps in user-item rating grids, often struggle when restricted solely to interaction data. Furthermore, standard graph-based models often suffer from "over-smoothing," treating all neighboring nodes with equal importance. To address these challenges, we present Att-MC (Attention-based Matrix Completion), a model that leverages Graph Convolutional Networks (GCN) and attention mechanisms to achieve high-accuracy recommendations using only user-rating data.

Methodology

The Att-MC framework treats the recommendation problem as a graph-based learning task, specifically focusing on link prediction within a bipartite structure.

Architecture of the Att-MC model, illustrating the transition from a rating matrix to a bipartite graph processed through GCN and GAT layers for link prediction.

The process involves three primary stages:

  1. Graph Construction: A bipartite graph is constructed from the user-item rating matrix. From this, a user-relationship matrix is derived, connecting users who have rated the same items.
  2. GCN Stack: The model employs a dual-layer GCN. The first layer focuses exclusively on neighborhood features by omitting self-loops, while the second layer re-introduces self-information to balance local and global context.
  3. Graph Attention (GAT) Layer: The core innovation is the GAT layer, which assigns adaptive weights to neighbors. By "amplifying" the influence of more relevant neighbors, the model avoids the pitfalls of uniform smoothing and better captures the influence of specific user behaviors.

Experimental Evaluation

The model was benchmarked using the MovieLens ML-100K and ML-1M datasets. These datasets are characterized by high sparsity (approximately 4-6% density), providing a rigorous test for matrix completion algorithms. Training was conducted using the Adam optimizer to minimize the discrepancy between predicted and ground-truth ratings.

Results and Discussion

Att-MC demonstrates superior performance compared to traditional baselines, including Matrix Factorization (MF), Probabilistic Matrix Factorization (PMF), Bias-SVD, and SVD++.

Performance comparison of Att-MC against traditional matrix factorization methods on the ML-100K dataset.

As shown in the evaluation results for the ML-100K dataset, Att-MC achieved a Root Mean Square Error (RMSE) of 0.8925, a significant improvement over SVD++ (0.9436) and MF (0.9662). Similarly, the Mean Absolute Error (MAE) was reduced to 0.7056, compared to the ~0.75-0.76 range seen in baseline models. These results validate that the attention-weighted graph approach effectively captures latent user preferences and social information that linear algebra-based methods overlook.

Conclusion

Att-MC proves that the structural patterns of user interactions are a powerful substitute for demographic metadata. By adaptively weighting neighbor influence, the model achieves state-of-the-art accuracy in sparse environments. Future research will focus on transitioning Att-MC from a static model to a dynamic, incremental system capable of real-time updates and web-scale deployment.

Summary updated

BibTeX
@inproceedings{wei2022matrix,
  author = {Lin Wei and Zihao Qi and Lei Shi and Guangtao Zhao and Bo Li and Yufei Gao and Yongcai Tao},
  title = {{Matrix Completion Recommendation Algorithm Based on Attention Mechanism}},
  booktitle = {ISCIPT},
  year = {2022},
}
Figure