Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training a recommendation model with dynamic embeddings #531

Open
AkihikoWatanabe opened this issue Apr 25, 2023 · 2 comments
Open

Training a recommendation model with dynamic embeddings #531

AkihikoWatanabe opened this issue Apr 25, 2023 · 2 comments

Comments

@AkihikoWatanabe
Copy link
Owner

https://blog.tensorflow.org/2023/04/training-recommendation-model-with-dynamic-embeddings.html?m=1

@AkihikoWatanabe
Copy link
Owner Author

dynamic embeddingを使った推薦システムの構築方法の解説

@AkihikoWatanabe
Copy link
Owner Author

(理解が間違っているかもしれないが)推薦システムは典型的にはユーザとアイテムをベクトル表現し、関連度を測ることで推薦をしている。この枠組みをめっちゃスケールさせるととんでもない数のEmbeddingを保持することになり、メモリ上にEmbeddingテーブルを保持して置けなくなる。特にこれはonline machine learning(たとえばユーザのセッションがアイテムのsequenceで表現されたとき、そのsequenceを表すEmbeddingを計算し保持しておき、アイテムとの関連度を測ることで推薦するアイテムを決める、みたいなことが必要)では顕著である(この辺の理解が浅い)。しかし、ほとんどのEmbeddingはrarely seenなので、厳密なEmbeddingを保持しておくことに実用上の意味はなく、それらを単一のベクトルでできるとメモリ節約になって嬉しい(こういった処理をしてもtopNの推薦結果は変わらないと思われるので)。
これがdynamic embeddingのモチベであり、どうやってそれをTFで実装するか解説している。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant