# Lessons from building deep learning recommendation systems

- Speaker: [Inbar Naor](/wiki/speakers/inbar-naor.md)
- Event: [Reversim Summit 2019](/wiki/years/2019.md)
- Video: https://www.youtube.com/watch?v=VC0aBzpTsgo
- Transcript: [/transcripts/2019/26-VC0aBzpTsgo.md](/transcripts/2019/26-VC0aBzpTsgo.md)
- Language: Hebrew and English · Type: talk · Level: intermediate
- Topics: [Machine Learning](/wiki/topics/machine-learning.md), [MLOps](/wiki/topics/mlops.md), [Architecture](/wiki/topics/architecture.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores lessons learned from building deep learning recommendation systems at a large content recommendation company. The speaker reviews the evolution of recommendation algorithms, moving from classic matrix factorization to factorization machines and field-aware factorization machines. The main argument is that architectural and modeling choices impact not only model accuracy, but also engineering workflows, system modularity, and research culture. The audience learns how to design flexible deep learning architectures that support parallel team research and seamless feature integration.

## Key points

- [1:14](https://www.youtube.com/watch?v=VC0aBzpTsgo&t=74s) The speaker introduces the core problem of content recommendation: choosing the best items to recommend to users based on context, item features, and user history.
- [4:35](https://www.youtube.com/watch?v=VC0aBzpTsgo&t=275s) Matrix factorization is explained as a foundational technique that models user-item ratings by decomposing a sparse matrix into low-dimensional latent vectors.
- [6:40](https://www.youtube.com/watch?v=VC0aBzpTsgo&t=400s) Matrix factorization struggles with the cold start problem and ignores rich metadata features like text and contextual signals.
- [8:52](https://www.youtube.com/watch?v=VC0aBzpTsgo&t=532s) Factorization machines extend matrix factorization by representing every feature as an embedding vector and computing dot products across all feature pairs.
- [11:10](https://www.youtube.com/watch?v=VC0aBzpTsgo&t=670s) Field-aware factorization machines group features into distinct families to restrict interactions only to meaningful pairs and prevent undesired cross-contamination.
- [14:35](https://www.youtube.com/watch?v=VC0aBzpTsgo&t=875s) Modeling choices affect broader software aspects, such as ease of feature integration, training frequency, A/B testing infrastructure, and team collaboration.
- [19:02](https://www.youtube.com/watch?v=VC0aBzpTsgo&t=1142s) User history can be modeled in increasing levels of complexity, ranging from simple averaged embeddings to sequential models like LSTMs.
- [26:35](https://www.youtube.com/watch?v=VC0aBzpTsgo&t=1595s) End-to-end training allows capturing complex interactions across completely different feature types while avoiding fragile cascade models.

## Takeaways

- Design modular model architectures that allow new features to be added easily via embedding vectors.
- Consider the organizational and engineering impact of machine learning models, not just their accuracy.
- Prefer end-to-end training over model cascades to preserve cross-feature interactions and simplify production deployments.

## Questions this talk answers

- How can you handle the cold start problem in deep learning recommendation systems?
- What are the architectural differences between standard matrix factorization and field-aware factorization machines?
- How do you design a model architecture that allows multiple researchers to experiment and merge improvements efficiently?

## Technologies

Python, LSTM, RNN

## Tags

deep learning, factorization machines, feature engineering, machine learning, production ml, recommender systems, system architecture
