NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Collaborative Filtering Algorithm Based on Item Attribute and Time Weight

Qian Chen, Wanggen Li, Jiao Liu2016

Abstract

Collaborative filtering is a recommendation algorithm which is used in personalized system. To solve the problem of low accuracy caused by sparse data in the user-item matrix of traditional collaborative filtering algorithm, this paper presents a hybrid algorithm. Firstly, it uses the data based on the similarity of item's attributes to fill the matrix. And then a weight decrease by the time is given to increase the effectiveness of the measurement, thereby to improve the accuracy of the collaborative filtering algorithm. Experimental results show that the algorithm proposed in this paper can improve the accuracy of recognition and enhance the quality of the recommendation system.

Introduction

Collaborative Filtering (CF) serves as the foundation for modern recommendation engines. However, it faces two primary challenges: data sparsity and temporal decay. Data sparsity occurs when users only rate a small fraction of available items, making it difficult for algorithms to find reliable "nearest neighbors." Temporal decay refers to the evolution of user preferences over time, which traditional CF often ignores by treating old and new ratings equally. This paper proposes a hybrid approach that addresses these issues by integrating item attribute similarity and a logistic time-weighting function.

Methodology

The proposed algorithm enhances traditional user-based collaborative filtering through a multi-stage process designed to improve data density and relevance.

Item Attribute Similarity and Matrix Pre-filling

To mitigate the sparsity problem, the algorithm first calculates item similarity based on attributes (e.g., movie genres) using Jaccard similarity. This content-based information is then used to pre-fill missing entries in the user-item matrix. By generating "synthetic" ratings for unranked items based on a user's known preferences for similar items, the matrix becomes denser, allowing for more accurate neighbor discovery during the collaborative filtering phase.

Logistic Time Weighting

Recognizing that recent user behavior is a better predictor of current interests, the authors introduce a logistic time-weighting function ($f(t_{u,i})$). This function assigns higher weights to more recent ratings. Unlike simple linear decay, the logistic curve allows for a more nuanced representation of how interest relevance shifts, ensuring that the final recommendation is aligned with the user's current profile rather than their distant past.

Experimental Results

The proposed "improved algorithm" was evaluated using the MovieLens dataset (943 users, 1,682 movies) and compared against traditional User-Based Collaborative Filtering (UBCF) and the CFBWJI algorithm.

Mean Absolute Error (MAE)

The performance was measured using MAE across different numbers of neighbors. As shown in Figure 1, the improved algorithm consistently achieves a lower MAE (approximately 0.71) compared to UBCF (approximately 0.74), indicating significantly higher prediction accuracy.

Comparison of MAE across different numbers of neighbors for UBCF, CFBWJI, and the improved algorithm.

Precision

Precision metrics further validate the hybrid approach. The improved algorithm's precision peaks at approximately 0.415, outperforming both baselines as the number of neighbors increases from 5 to 60. This demonstrates that the model is more effective at identifying items the user will actually enjoy.

Comparison of Precision across different numbers of neighbors for UBCF, CFBWJI, and the improved algorithm.

Conclusion

By combining item attribute similarity for matrix pre-filling and a logistic function for time weighting, the proposed algorithm effectively addresses the sparsity and temporal challenges of collaborative filtering. Experimental results demonstrate significant improvements in both accuracy (MAE) and precision, offering a more robust and timely solution for personalized recommendation systems.

Summary updated

BibTeX
@misc{chen2016collaborative,
  author = {Qian Chen and Wanggen Li and Jiao Liu},
  title = {{Collaborative Filtering Algorithm Based on Item Attribute and Time Weight}},
  year = {2016},
  doi = {10.2991/icacie-16.2016.3},
}
Figure