The recorded entries of $X$ are $N$ interaction points: the data of a supervised problem.
Supervised learning data
Inputs: raw data instances $\mathbf{x}_1, \mathbf{x}_2, \ldots, \mathbf{x}_N$, where $\mathbf{x}_l \in \mathbb{R}^p$. Labels: annotations $y_1, y_2, \ldots, y_N$, where $y_l \in \mathbb{R}$.
What are the $\mathbf{x}_l$ and the $y_l$ in CF-based matrix factorization?
CF as a Supervised Learning Problem
CF as a Supervised Learning Problem
Inputs and labels
Each observed point $\mathbf{x}_l$ is a pair (user, item), and its label is the entry it points to: $y_l = X_{\mathbf{x}_l}$.
explicit feedback: $y_l \in \{1, 2, 3, 4, 5\}$
implicit feedback: $y_l \in \{0, 1\}$
Matrix factorization, rewritten
$$\sum_{(i,j)\in\Omega}\bigl(X_{ij}-\mathbf u_i^{\top}\mathbf v_j\bigr)^2\;=\;\sum_{(i,j)\in\Omega}\bigl(X_{ij}-g(i,j)\bigr)^2$$ So far $g(i,j)$ is a dot product of two table rows (no regularization shown).
Go deep
Replace $g(i,j)$ with a deep architecture: a deep CF problem.
Generalized Matrix Factorization (GMF)
Deep learning generalizes shallow models
Many deep learning methods can generalize their shallow equivalents. How could we do it? Similarly, a deep matrix factorization method can generalize shallow matrix factorization.
Concatenation + MLP
NCF
Scalability
What if the number of entries in X is large?The network scores one (user, item) pair at a time, so ranking all items for one user needs one pass per item.
Negative Sampling
Positives
Each observed entry is a positive example: $y_l = 1$.
Negatives
Almost all other entries are unobserved. For each positive, we sample a few unobserved entries and label them $y_l = 0$.
Loss over the sampled set
$$-\sum_{l\in\Omega^*}\Bigl[y_l\log\hat y_l+(1-y_l)\log(1-\hat y_l)\Bigr]$$ $\Omega^*$: the observed entries plus the sampled ones.
Careful
A sampled zero is a training choice, not evidence of dislike.
Wide & Deep: the Deep Part
Wide & Deep: the Wide Part
Two Towers
Two Towers: Serving
GNNs
GNN: Prediction and Loss
Sequential-based Recommendation
AAnnais browsing…
Convolutional Sequential Models
Gated Recurrent Unit Models
Gates
Attention-Based Models
Attention-Based Models: Prediction
Multimodal Recommender Systems
Personalised Search
Foundational Models
Behavioural Analysis of Personalisation
The task
Input: a triplet of items rated by the same user, which is the context.
Output: which of the three items was rated differently from the other two.
Only triplets are used: no user ids and no item features.
Goal: representations of the items and of the context that explain these choices.
Behavioural Analysis of Personalisation
Behavioural Analysis of Personalisation
How similar is every other item?
$\gamma_S(a,b)$: the probability that $a$ and $b$ are the most similar pair of a triplet whose third item is drawn at random.
Deep Learning: Positive and Negative Points
Positive points
✓Rich inputs: text, images, sequences and graphs enter the model through learned representations.
✓Non-linear interactions: MLPs and attention can capture patterns that a dot product cannot.
✓One framework: interactions, side information and context are handled in the same model, which helps cold start.
✓Transfer: pre-trained components can be reused across domains and tasks.
Negative points
✕Cost: more computation and memory, and scoring every candidate with a network can be too slow; two towers keep retrieval fast.
✕Strong baselines: a well-tuned matrix factorisation is often hard to beat.
✕Tuning and reproducibility: many hyperparameters, and results depend on the evaluation protocol.
✕Opacity: it is harder to explain a recommendation, and large models need a lot of data.