Split a Fixed Compute Budget Between Model Size and Training Tokens
Last updated: November 29, 2026
Quick Overview
Given a fixed training compute budget, use compute-optimal scaling laws to choose parameter count and token count, then explain why a team serving billions of queries might deliberately train a smaller model on more tokens.
0
0
0 solved
Given a fixed training compute budget, use compute-optimal scaling laws to choose parameter count and token count, then explain why a team serving billions of queries might deliberately train a smaller model on more tokens.
Scaling-law reasoning drives how Google DeepMind sizes model families such as the Gemini and Gemma lines, and interviewers expect senior candidates to do the arithmetic and then question it. The check is whether you know the compute-optimal result, its assumptions, and how inference cost and data limits change the answer.
What the Interviewer Expects
- Uses C approximately 6ND for training compute
- States the compute-optimal finding that N and D scale roughly equally, about 20 tokens per parameter
- Solves for N and D for a concrete budget
- Explains the power-law loss form and what fitting it requires
- Argues for over-training smaller models when inference dominates lifetime cost
- Raises data limits, repetition, and quality filtering as constraints
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
- How would you fit your own scaling law from small runs, and how many points do you need?
- How many epochs of repeated data can you use before returns drop?
- How do mixture-of-experts models change the parameter axis?
- What would make you distrust an extrapolation two orders of magnitude out?
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
Budget: training FLOPs for a dense decoder. Goal: lowest pretraining loss, then revisit the goal when the model will serve heavy traffic. Assume enough high-quality unique tokens unless stat...
Approach
Training compute (forward plus backward per token per parameter). Empirical loss follows roughly with ....