TikTok·Data Scientist·Technical Phone Screen
Jun 2026
TikTok data scientist interview that went deep on XGBoost internals, hyperparameter tuning, and a pretty gnarly imbalanced classification scenario. The questions felt more like a written exam than a conversation, and the level of detail expected was honestly a lot for a single session.
- Walk through how XGBoost's tree booster works: what objective does it optimize, how does the second-order Taylor approximation produce a split gain formula, and what roles do lambda, alpha, gamma, and eta each play in that gain and in pruning decisions?
- For tabular classification with XGBoost, describe the most impactful hyperparameters, including max_depth, max_leaves, min_child_weight, subsample, colsample_bytree and colsample_bylevel, eta, n_estimators, lambda, alpha, gamma, max_delta_step, scale_pos_weight, and monotone_constraints. For each, explain how it shifts bias versus variance and what it does to training time.
- You're building a model to detect bad sellers where the positive rate is around 0.5%. Design a full tuning plan that addresses data splitting to avoid leakage, choosing the right offline metric, setting an operating threshold from a cost matrix, applying early stopping properly, and what plots or diagnostics you'd use to catch overfitting and leakage.
- After training the bad-seller model, how would you calibrate the output probabilities, explain model decisions to investigators using something like SHAP, and prevent adversaries from reverse-engineering the detection rules?
“This is the kind of question where you think you know XGBoost until someone asks you to derive it.” The rest of the author's notes on Data Scientist interview at TikTok, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post