Explain Memorization Versus Generalization in a Wide and Deep Model
Last updated: November 29, 2026
Quick Overview
For Google Play app recommendations, explain what the wide (linear cross-feature) part and the deep (embedding) part of a Wide and Deep model each contribute, and why combining them beats either alone.
0
0
0 solved
For Google Play app recommendations, explain what the wide (linear cross-feature) part and the deep (embedding) part of a Wide and Deep model each contribute, and why combining them beats either alone.
Wide and Deep was introduced for Play Store recommendations, so this is a natural Google screener on ranking models. It checks that you understand the trade-off between memorizing specific co-occurrences and generalizing through dense embeddings, and why over-generalization is a real failure.
What the Interviewer Expects
- Describe the wide part as a linear model over sparse features and crosses
- Describe the deep part as embeddings fed through an MLP
- Explain memorization of exact co-occurrences versus generalization to unseen pairs
- Give the failure of deep-only: over-generalized recommendations for niche users
- Explain joint training with a shared logistic output
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- Why is joint training different from ensembling two separately trained models?
- How do Deep and Cross Networks remove the need to hand-pick crosses?
- Which optimizer would you use for each part and why?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Confirm the task: given a user and context, score candidate apps by predicted install probability. Inputs include installed apps, impression app, device, language and so on....
Approach
Explain each half with a concrete Play example, then show how combining them handles both frequent and rare patterns....