I am going to build a recommender system using TensorFlow recommender and the two-tower-model. I have wondered, how to choose the size of the embedding dimension. Are there any papers on this for large scale recommender systems? For the example, Google chose a size of 32 dimensions for the movie recommender. My vocabulary contains around 30,000 different items.

Help is highly appreciated!


1 Answer 1


Generally, the size of the embedding layer is not an important hyperparameter.

Research has found embeddings dimension lower than ~19 are not performant and there is asymptotic improvement after ~200 dimensions.

Multiples of 32 are chosen for hardware efficiency.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.