Explain One-Epoch Overfitting in Click-Through Rate Models
Last updated: November 29, 2026
Quick Overview
A CTR model with large ID embeddings performs best after exactly one pass over the data, and test log loss jumps sharply at the start of the second epoch. Explain why this happens and how you would decide on the training recipe.
0
0
0 solved
A CTR model with large ID embeddings performs best after exactly one pass over the data, and test log loss jumps sharply at the start of the second epoch. Explain why this happens and how you would decide on the training recipe.
Google's ads and recommendation models are trained in a streaming, mostly single-pass way, and this phenomenon is a big reason why. The interviewer probes whether you can explain a step-shaped overfit from the interaction of embeddings and the optimizer rather than generic "too many epochs" reasoning.
What the Interviewer Expects
- Describe the symptom: a sudden jump at the epoch boundary, not gradual divergence
- Explain that ID embeddings memorize examples on first sight, so the second pass sees already-fitted examples
- Explain the role of adaptive optimizers and high learning rates on sparse rows
- Contrast with dense-feature models that tolerate many epochs
- Propose recipes: single pass, lower LR for embeddings in later epochs, freezing embeddings, regularization of ID rows
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 does the effect mostly disappear if you remove ID features?
- How does this interact with continuous training on streaming data?
- Would data augmentation help here, and what would it look like for tabular CTR data?
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 that the jump happens right at the epoch boundary, ask which features are present (IDs versus dense), the optimizer and learning rate, and whether we train on a fixed dataset or a stream....
Approach
Identify what changes at the boundary: the model starts seeing examples it has already trained on. Then explain why ID embeddings react so strongly to that....