datawhalechina / torch-rechub

A Lighting Pytorch Framework for Recommendation Models, Easy-to-use and Easy-to-extend.
MIT License
400 stars 74 forks source link

Implementation of the SINE matching model #29

Closed bokang-ugent closed 2 years ago

bokang-ugent commented 2 years ago

This is an implementation of SINE (Sparse-Interest Network for Sequential Recommendation) matching model. The implementation follows the arXiv paper (https://arxiv.org/abs/2102.09267), but also take into consider the original implementation in TensorFlow (https://github.com/Qiaoyut/SINE/blob/master/model.py). However, the original implementation seems to significantly deviate (e.g., position embedding, implementation of self attention, usage of temperature parameter, etc) from what the model is described in the SINE paper, I decided to first follow the original paper as much as possible.

Metrics averaged over 5 rounds on ml-1m

(with the config in run_ml_sine.py file, with @k parameter and data file changed to 100 and ml-1m.csv)

Next steps