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.

HardTechnical
67 practiced

You must align a model for a safety-critical domain like clinical triage. Explain when RLHF is appropriate and when explicit rule-based constraints or human-in-the-loop workflows are mandatory. Outline validation, regulatory, and clinical review steps required before deployment.

EasyTechnical
56 practiced

Compare and contrast pretraining, supervised fine-tuning, and in-context learning (few-shot prompting). For an AI Engineer deciding between these options for a new classification product, list the engineering trade-offs: compute, latency, maintainability, update frequency, and expected performance.

HardTechnical
60 practiced

Propose a scalable approach to attribute a harmful model response to training data sources or model internals. What tooling and experiments would you use to trace the cause, what remediation would you propose once a source is identified, and how would you measure remediation effectiveness at scale?

EasyTechnical
66 practiced

Write a Python function to compute Kendall's Tau for a set of predicted preference scores versus ground-truth pairwise labels. Input: list of tuples (score_a, score_b, true_preference) where true_preference is 1 if a>b else 0. Output: numeric Kendall's Tau. Explain how you handle ties in scores or labels.

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?

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.