Abstract
With the constant enlargement of the scope and coverage of the Internet, traditional search algorithms often filter data without considering individual needs. Various recommender systems employing different data representations and methods are currently used to cope with these challenges. Inspired by network-based user-item rating matrices, this paper introduces an improved algorithm combining item similarity with a dynamic resource allocation process. Evaluation using MovieLens data shows that the proposed graph-based model achieves more accurate predictions and reasonable recommendations than traditional collaborative filtering or basic graph models, effectively mitigating rating matrix sparsity.
Introduction
As the internet expands, users frequently encounter "Information Overload," a state where the sheer volume of choices makes finding relevant content difficult. Recommender Systems (RS) are designed to alleviate this, yet they face two significant hurdles: Sparsity and Diversity. Traditional Collaborative Filtering (CF) often fails when user-item matrices are sparse, as it cannot find reliable "neighbors" with overlapping tastes. Furthermore, content-based systems often lack novelty, recommending items too similar to a user's existing history. This paper proposes an improved graph-based recommendation algorithm that leverages bipartite structures and dynamic resource allocation to address these issues.
Methods
The proposed algorithm models user-item interactions as a bipartite graph, where users and items are distinct sets of nodes connected by edges representing ratings.
The core innovation involves a multi-step resource allocation process:
- Thresholding: Ratings are converted into a binary adjacency matrix based on a threshold (e.g., 3 stars) to establish edges.
- Item Similarity Integration: The Pearson Correlation Coefficient is used to calculate intrinsic similarity between items.
- Dynamic Resource Allocation: The model simulates a flow of "resources" from an item, through users who liked it, and back to other items. Unlike basic models, this flow is weighted by the calculated item similarity, ensuring recommendations are both popular among similar users and personally relevant.
- Ranking: Scores are normalized to generate a final sorted recommendation list.
Experimental Setup
The algorithm was tested on the MovieLens dataset, consisting of 1,682 movies and 943 users. While relatively dense for a benchmark, it provides a standard for comparison. The data was split into an 80% training set and a 20% test set to evaluate performance.
Key Results
The performance was measured using Sorting Accuracy ($r$)—where lower values indicate higher accuracy—and Hitting Rate. The improved graph model was compared against traditional CF methods (Cosine, Pearson, and Jaccard similarities) and a basic graph model.
The results indicate a significant performance leap:
- Superior Accuracy: The improved graph model achieved a sorting accuracy of 0.0960, a 9.43% improvement over the basic graph model (0.1060).
- Benchmarking: This represents a substantial advancement over traditional CF methods, which showed accuracy values around 0.1777.
- Input Sensitivity: Preserving the original 0-5 rating nuance was found to be more effective than a simple 0-1 adjacency matrix, as it captures finer user preferences.
Discussion and Conclusion
The graph-based approach offers several advantages. By utilizing the transitive relationships inherent in graphs, the algorithm can bridge gaps in sparse data where direct overlaps are missing. Hybridizing flow-based allocation with Pearson similarity balances global popularity with individual relevance. Furthermore, the model's simplicity—avoiding complex feature extraction—makes it highly adaptable for various media types. Future work will address the "Cold Start" problem by incorporating demographic data and explore time-sensitive modeling to distinguish between long-term interests and short-term trends.
Summary updated