InterviewStack.io LogoInterviewStack.io

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
55 practiced

Define reward hacking in the context of RLHF for LLMs, and give two concrete examples (for example, a model producing safe-sounding but misleading content, or padding responses to exploit a length-based reward heuristic). What early-detection monitoring signals would reveal reward hacking, and what mitigations would you apply at the dataset, reward-model, and policy-training levels?

HardTechnical
65 practiced

As the AI/engineering lead for a significant new downstream domain, decide whether to retrain a foundation model from scratch, continue pretraining, fine-tune adapters on top of a frozen base, or instead keep the model frozen and rely on retrieval-augmented prompting. Propose a decision framework weighing data volume, domain distance, cost, risk of forgetting, latency, maintainability, regulatory constraints, user experience, and time-to-market.

HardSystem Design
56 practiced

Explain how to integrate RLHF training and deployment into an ML CI/CD pipeline: reproducible training runs, automated evaluation gates (offline plus human review), canary and shadow deployments for RL-trained policies, model versioning, and safe rollback when production metrics regress. What lineage and logging metadata would you record (dataset versions, prompt templates, annotator IDs, seeds, model checkpoints, and for production interactions: prompts, model outputs, log-probs, timestamps, and judgments) to support audits, reproducibility, and rollback?

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.

HardTechnical
69 practiced

You see an increase in hallucinations after fine-tuning an LLM on domain-specific QA. Propose a systematic debugging and mitigation plan: experiments to isolate the cause, dataset checks, training interventions, and runtime techniques to reduce hallucinations.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.