Skip to content

Fine-tuning and post-training

English · Русский · AI Interview Atlas › Themes

Supervised fine-tuning, preference optimisation, reinforcement learning, parameter-efficient methods and distillation.

On this page: Both tracks (2) · AI Engineering (13)

Both tracks

  • Choose between prompt changes, retrieval and finetuning for a failing AI feature; include data freshness, latency and total cost.
  • Explain how Constitutional AI uses principles, self-revision and AI-generated preferences, and identify what human judgement it still depends on.
    • Knowledge · Asked at: Anthropic † · ✍ Answer · Suggest a fix
    • Tests: Whether reduced labelling effort is distinguished from removing human value choices.
    • A strong answer covers:
      • Separate supervised self-critique and revision from reinforcement learning on AI-generated preferences.
      • Explain how the selected principles shape critiques, comparisons and the learned preference model.
      • Identify human choices in the constitution and evaluation; reduced harmfulness labelling does not remove value judgements.
    • Read: Constitutional AI: Harmlessness from AI Feedback (Bai et al., arXiv)

AI Engineering

  • Walk through a preference-based RLHF pipeline and explain the roles of the reward model and reference-policy penalty.
    • Knowledge · ✍ Answer · Suggest a fix
    • Tests: Whether data collection, reward fitting and policy optimisation are distinguished.
    • A strong answer covers:
      • Separate demonstrations, preference pairs and policy rollouts.
      • Explain reward-model training and policy optimisation with a reference constraint.
      • Evaluate held-out human preferences and reward overoptimisation.
    • Read: Training language models to follow instructions with human feedback (Ouyang et al., arXiv)
  • Compare DPO with PPO-based RLHF, including the assumptions behind offline preference learning and reasons to collect fresh rollouts.
    • Knowledge · ✍ Answer · Suggest a fix
    • Tests: Whether a simpler objective is distinguished from universally better alignment.
    • A strong answer covers:
      • Describe the preference objective using policy and reference log-probabilities.
      • Explain how it avoids a separately trained reward model in the basic formulation.
      • Discuss preference coverage and distribution shift rather than declaring online RL obsolete.
    • Read: Direct Preference Optimization: Your Language Model is Secretly a Reward Model (Rafailov et al., arXiv)
  • Explain group-relative policy optimisation and the trade-offs of estimating advantages without a learned value model.
    • Knowledge · ✍ Answer · Suggest a fix
    • Tests: Whether relative rewards and variance are connected to sample groups.
    • A strong answer covers:
      • Sample several completions per prompt and estimate advantages relative to their group rewards.
      • Explain the avoided value-model memory and the remaining rollout and reward-computation costs.
      • Inspect groups with little reward variation; compare held-out task success and training stability.
    • Read: DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models (Shao et al., arXiv)
  • Derive the low-rank weight update used by LoRA and propose an experiment for choosing its rank.
    • Knowledge · ✍ Answer · Suggest a fix
    • Tests: Whether parameter savings are linked to adaptation capacity and validation.
    • A strong answer covers:
      • Represent the update as ΔW = BA and state both matrix shapes.
      • Compare trainable parameter counts with a full weight matrix.
      • Tune rank and target modules on held-out tasks; check regressions and merging constraints.
    • Read: LoRA: Low-Rank Adaptation of Large Language Models (Hu et al., arXiv)
  • How does QLoRA reduce finetuning memory, and which tensors remain trainable or require higher precision?
    • Knowledge · ✍ Answer · Suggest a fix
    • Tests: Whether quantised base weights are separated from adapter optimisation.
    • A strong answer covers:
      • Keep the base model quantised and frozen while training low-rank adapters.
      • Explain NF4, double quantisation and paged optimisers as separate memory mechanisms.
      • Account for dequantisation compute and remaining activation memory.
    • Read: QLoRA: Efficient Finetuning of Quantized LLMs (Dettmers et al., arXiv)
  • Compare low-rank adapters, prefix tuning, soft prompt tuning and full finetuning for one task.
  • After domain finetuning, general capabilities regress. How would you measure and reduce catastrophic forgetting?
    • Applied scenario · Suggest a fix
    • Tests: Whether task gains are checked against preserved capabilities.
    • A strong answer covers:
      • Fix a retention suite before training and score base and finetuned checkpoints on it alongside the target task.
      • Reduce drift with replayed general data, a lower learning rate or fewer steps, adapters, a KL penalty or weight interpolation.
      • Plot task gain against retention across checkpoints and mixing ratios, and pick a point on that frontier.
    • Read: Training language models to follow instructions with human feedback (Ouyang et al., arXiv) · LoRA Learns Less and Forgets Less (Biderman et al., arXiv)
  • Budget memory for full bf16 finetuning of a 7B model with Adam, then recalculate for LoRA and explain your optimiser assumptions.
  • When is a programmatically verifiable reward preferable to a learned reward model, and where can the verifier still be exploited?
  • Policy reward keeps rising while humans prefer its outputs less. How would you diagnose and limit reward hacking?
    • Applied scenario · ✍ Answer · Suggest a fix
    • Tests: Whether optimisation of the proxy is distinguished from improvement in the real goal.
    • A strong answer covers:
      • Compare proxy reward with blinded held-out human preferences and inspect newly rewarded behaviours.
      • Test earlier checkpoints and reduced optimisation strength; improve preference coverage before retraining.
      • Treat KL control and early stopping as mitigations, not guarantees; distinguish synthetic gold-model evidence from human evaluation.
    • Read: Scaling Laws for Reward Model Overoptimization (Gao, Schulman and Hilton, arXiv)
  • Design a teacher-to-student distillation process and explain how you would detect capabilities the smaller model fails to retain.
  • A long pretraining run suddenly diverges. How do you investigate data, numerics and optimiser state before resuming from a checkpoint?
  • Design training for a model that cannot fit on one accelerator; explain how you partition state and keep communication affordable.
    • System design · Asked at: Google and Google DeepMind † · ✍ Answer · Suggest a fix
    • Tests: Whether model state, activations and network topology determine the parallel plan.
    • A strong answer covers:
      • Separate parameters, gradients, optimiser state and activations before choosing a partitioning plan.
      • Explain ZeRO state sharding and its communication trade-offs; distinguish it from splitting layer computation.
      • Measure peak memory, communication and throughput on the target topology before scaling the run.
    • Read: ZeRO: Memory Optimizations Toward Training Trillion Parameter Models (Rajbhandari et al., arXiv)

← Agents, tools and protocols · Evaluation and observability →