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.

Google
Machine Learning
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

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
Scaling laws
Compute-optimal training
Chinchilla
Inference cost
Training budget
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample Answer
Clarify

Budget: 102410^{24} 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 C≈6NDC \approx 6ND (forward plus backward per token per parameter). Empirical loss follows roughly L(N,D)=E+ANα+BDβL(N, D) = E + \frac{A}{N^{\alpha}} + \frac{B}{D^{\beta}} with α≈β\alpha \approx \beta....


Submit Your Answer
Markdown supported