This question sprawled in a way I wasn't ready for.
Structure your answer around the SFT pipeline: start with the training objective and data preparation, then cover hyperparameters and failure modes, and finally position SFT within the broader post-training stack. Emphasize practical trade-offs and how you would debug issues, since Scale.ai values hands-on engineering judgment.
Pro tip: Mention that SFT is often the first step of post-training and that its quality directly impacts later stages like RLHF or DPO—showing you understand the full pipeline and not just isolated fine-tuning.
Explain that SFT minimizes the negative log-likelihood of the target response tokens given the prompt, typically using cross-entropy loss with teacher forcing. Clarify that only the response tokens contribute to the loss, not the prompt tokens.
Describe how to curate high-quality demonstration data, format it into prompt-response pairs with a consistent chat template, and handle special tokens. Mention data cleaning, deduplication, and balancing across tasks.
Cover key hyperparameters: learning rate (often small, e.g., 1e-5 to 5e-5), batch size, number of epochs (typically 1-3), warmup, weight decay, and whether to use LoRA or full fine-tuning. Discuss packing sequences for efficiency and using gradient checkpointing.
Identify issues like overfitting, catastrophic forgetting, exposure bias, and reward hacking (if later RLHF). Explain how to detect them (e.g., validation loss, generation quality) and mitigate (e.g., early stopping, data diversity, regularization).
Explain that SFT is typically the first post-training step, followed by preference optimization (RLHF/DPO) and possibly safety tuning. Highlight that SFT teaches format and basic behavior, while later stages refine alignment.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.