← Questions

Explain LLM training, reinforcement learning and evaluation

0
CohereAI/ML designLast asked Dec 2025

An AI/ML design interview question asked in Cohere's ML / system design round, last asked Dec 2025. It tests llm, rlhf and llm evaluation.

Walk through how a large language model is built, from pretraining through supervised fine-tuning to preference optimization and reinforcement-learning post-training, and how you evaluate the model at each stage. The interviewer stops you at each stage to ask why it exists, what can go wrong in it, and how you would know.

Requirements

  • Cover every stage: pretraining, supervised fine-tuning, preference tuning (RLHF with a reward model, DPO and similar), and RL against verifiable rewards.
  • For each stage: the objective, the data it needs, what it changes in the model, and its typical failure modes.
  • Evaluation per stage, and how offline numbers relate to what users see.

Clarifying questions

  • Is this about a general chat model, or one aimed at a domain such as code or reasoning?
  • How deep should I go on optimization detail (PPO versus GRPO, KL penalties) versus the overall picture?
  • Should I cover data and compute scale, or treat them as given?

What a strong answer covers

  • Pretraining: next-token prediction, data mixture and filtering, scaling trade-offs, and what loss and benchmark numbers do and do not tell you.
  • SFT: demonstrations, formatting and instruction following, and the risk of losing general ability.
  • Preference optimization: reward models from comparisons, PPO-style RL with a KL penalty to the reference model, DPO as an offline alternative, and when each is chosen.
  • RL post-training: reward design (verifiable checks versus learned rewards), stability (reward hacking, collapse, length bias) and how you spot them.
  • Evaluation: held-out benchmarks, contamination, win rates and human or model judges, safety evaluation, and the gap between offline metrics and user satisfaction.

Follow-ups

  • If SFT on preferred answers already helps, why add an RL stage?
  • Your reward keeps climbing but answers get worse. What is happening and what do you do?
  • How do you evaluate an ability no benchmark covers yet?
  • What changes in this pipeline for a model that must reason in many steps?

Where it's asked

What it tests

llm · rlhf · llm evaluation

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing