Recommender Systems interview question

Machine LearningRecommender SystemsEmbeddingsmedium

A food-delivery app ranks restaurants with a Wide & Deep model: the wide part is a linear model on crossed features such as user_last_cuisine × restaurant_cuisine, and the deep part is an MLP over learned embeddings of users, restaurants and context. Which statement correctly describes what each part contributes?

  1. AThe wide part generalises to unseen user–restaurant combinations, because cross weights are shared across similar pairs, while the deep embeddings memorise the exact pairs that were most frequent in the logs.
  2. BThe two parts are trained as an ensemble whose scores are averaged at serving time, so the wide part can be dropped whenever the deep part's validation AUC is already the higher of the two.
  3. CThe wide crosses memorise specific co-occurrences that are frequent in the logs, including niche exceptions, while deep embeddings generalise to rare or unseen pairs through learned similarity.
  4. DThe deep part makes the wide part redundant, since an MLP over embeddings can learn feature crosses implicitly; the wide part is kept mainly to speed up serving through its sparse linear weights.
Show the answer and explanation

Correct answer: C, The wide crosses memorise specific co-occurrences that are frequent in the logs, including niche exceptions, while deep embeddings generalise to rare or unseen pairs through learned similarity.

Explanation Recommender Systems

Wide & Deep (Cheng et al., 2016, Google Play) combines two complementary abilities:

  • Memorisation (wide part): a linear model on sparse cross-product features. A cross such as user_last_cuisine = sushi × restaurant_cuisine = ramen gets its own weight, learned only from rows where that exact combination occurred. It captures specific, frequent co-occurrences and exceptions sharply, but gives no signal for crosses never seen in training.
  • Generalisation (deep part): dense embeddings place similar users and restaurants close together, so the MLP can score combinations that were rare or never observed. The cost is over-generalisation: for niche users with sparse, unusual tastes, embeddings smooth everything towards similar-looking items and recommend less relevant ones.

Because the parts are trained jointly (their logits are summed inside one loss), the wide part only has to learn the corrections the deep part misses, so a small set of crosses is enough. That is different from an ensemble of separately trained models whose scores are averaged afterwards.

Why the other statements fail: cross weights exist only for observed combinations and are not shared between pairs, so the wide part cannot generalise to unseen pairs; the parts are not an averaged ensemble; and an MLP being able in principle to approximate a cross does not mean it learns sharp, rare exceptions reliably from sparse data, which is exactly what the wide part adds. Later designs such as DCN and DLRM build on the same idea.

Interview tip: summarise it as "wide = memorise known patterns, deep = generalise to new combinations", and say when you would add crosses: strong, well-supported business rules or exceptions that the embedding model keeps smoothing away.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Machine Learning questions

  1. A telecom wants k = 20 segments for 50 million subscribers described by 40 numeric features stored as float64. Full-batch k-means (Lloyd's algorithm)…
  2. An e-commerce team trains pricing agents in a simulator and keeps a large buffer of transitions collected by older versions of its policies. Which grouping of…
  3. A telecom team tunes a churn network with successive halving: 81 configurations, a minimum budget of 1 epoch, a maximum of 81 epochs and η = 3 (keep the best…
  4. What is the difference between model parameters and hyperparameters?
  5. What does the bias–variance trade-off describe?