LLM Fine-Tuning and Alignment Questions

Adapting foundation models to specific tasks and desired behavior. Covers transfer learning and using pretrained models, full and parameter-efficient fine-tuning, instruction tuning, and alignment methods such as RLHF and preference optimization. Focuses on when and how to customize a base model rather than prompt it, and the data and compute tradeoffs involved.

EasyTechnical
51 practiced

Define domain adaptation and explain how it differs from standard transfer learning. Give two concrete examples where domain adaptation techniques are needed (one in CV and one in NLP) and outline an initial strategy for each.

EasyTechnical
87 practiced

What is alignment drift (sometimes called alignment regression) in deployed LLMs and what common causes create it post-deployment? Provide at least three practical mitigation strategies teams can apply to reduce drift risk over time.

MediumTechnical
69 practiced

Explain catastrophic forgetting in the context of fine-tuning pretrained models. List at least five mitigation strategies (e.g., replay, Elastic Weight Consolidation, regularization, adapters, multi-task fine-tuning) and discuss the trade-offs in terms of compute, complexity, and effectiveness.

MediumTechnical
58 practiced

Define instruction tuning (supervised fine-tuning on instruction-response pairs) and explain how it differs from generic supervised fine-tuning and from RLHF: differences in data (instruction-response pairs vs preference pairs), objectives, iteration speed, typical failure modes, required data types and sizes, and compute profiles. Why do most alignment pipelines use instruction tuning (SFT) and an RLHF/DPO stage together rather than either alone, and in what product scenarios does instruction tuning alone give the largest user-visible improvement?

EasyTechnical
57 practiced

Describe what a reward model is in RLHF: typical inputs (prompt plus one completion, or prompt plus candidate completions), label formats (pairwise preferences or numeric scores), and typical model architecture (a transformer encoder or decoder with a scalar output head). Explain why a reward model is a necessary intermediate step before policy optimization, and describe the common loss functions used to train it from pairwise preferences (Bradley-Terry pairwise-logistic loss, cross-entropy on softmaxed scores, and mean-squared error for scalar labels), noting basic numerical-stability and regularization concerns.

Unlock Full Question Bank

Get access to all 17 LLM Fine-Tuning and Alignment interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.