InterviewStack.io LogoInterviewStack.io

Model Training and Selection Questions

Encompasses choosing appropriate model families and designing robust training strategies. Covers model selection trade offs between linear models, tree based methods, and neural networks depending on data size, interpretability, and latency constraints. Includes practical aspects of training at scale such as distributed training approaches, data and model parallelism, gradient accumulation, checkpointing, experiment tracking and versioning, design of training pipelines, hyperparameter search and resource aware tuning, handling class imbalance and noisy labels, cost management and compute efficiency, and evaluation strategies including controlled experiments and A and B testing. Also discusses retraining policies such as periodic retraining, trigger based retraining for data drift, and continuous or online learning patterns.

MediumTechnical
59 practiced
Case study: You have a transformer-based NLP model but need CPU inference latency under 50ms per request and low cost. Describe model selection and training strategies (quantization, distillation, pruning, architecture search) you would use to meet this SLA and how you'd validate production-quality performance.
HardTechnical
55 practiced
Coding / numerical (hard): Implement a Python function that computes layer-wise learning rate multipliers given per-layer parameter norms using the LAMB/LARS idea: scaled_lr = base_lr * clip(norm(param)/norm(grad), lower, upper). Provide numerically stable handling (avoid divide by zero) and describe how to integrate this into an optimizer step for large models.
EasyTechnical
49 practiced
Define precision, recall, F1-score, ROC AUC, and PR AUC. For a highly imbalanced binary classification problem where false positives are costly, which metric(s) would you prioritize and why? Provide an example thresholding approach to meet a business constraint.
MediumTechnical
44 practiced
Coding (Python): Implement a stratified k-fold splitter that supports (a) binary and multiclass labels, (b) an optional time_group column where all rows in the same group must be kept in the same fold, and (c) a reproducible random seed. Focus on correctness and API rather than performance.
HardTechnical
54 practiced
Problem solving / security (hard): Propose a pragmatic and scalable plan to improve adversarial robustness of models in production. Cover training-time defenses (adversarial training, randomized smoothing), evaluation protocols (attack budgets, metrics), runtime detection/mitigation, and monitoring to detect ongoing adversarial activity.

Unlock Full Question Bank

Get access to hundreds of Model Training and Selection interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.