← Questions

Design an asynchronous RL post-training system

0
MetaAI/ML designLast asked Sep 2025

An AI/ML design interview question asked in Meta's AI/ML design round, last asked Sep 2025. It tests reinforcement learning, llm and distributed training.

Design a system for post-training a chat LLM that is already serving users, with reinforcement learning from human or AI feedback, where generation and training run asynchronously. Rollout workers keep generating responses with a recent copy of the policy while learners update the weights, so neither side waits for the other.

Requirements

  • Functional: components for rollout generation, reward inference, learners, buffers or queues, and an orchestrator, with the data flow between them.
  • Functional: move fresh weights from the learners to the rollout engines regularly.
  • Functional: correct for off-policy data (importance sampling or V-trace) and keep the policy close to the base model with a KL penalty.
  • Functional: ingest online feedback from production traffic, and handle credit assignment when rewards are delayed or sparse.
  • Functional: version the policies and roll them out behind canaries, with safety and compliance guardrails.
  • Non-functional: high GPU utilization, stable training, serving kept apart from training, and predictable cost under load spikes.

Clarifying questions

  • How large is the model, and how many GPUs go to rollouts and to training?
  • Which algorithm (PPO, GRPO or similar), and is there a learned reward model or rule-based rewards?
  • How stale may a rollout's policy be compared with the learner?
  • Do we train on real user conversations? What are the privacy and consent rules?
  • What does "safe to ship" mean for a new policy version?

What a strong answer covers

  • Separate GPU pools for rollout (an inference engine with batching and KV cache) and training (FSDP or tensor parallelism), joined by a queue of trajectories tagged with the policy version that produced them.
  • Weight transfer, the part most designs miss: broadcasting new weights from the learners to the rollout engines (NCCL broadcast, or sharded checkpoints through shared storage), how often, and how in-flight generations are handled during the swap.
  • Staleness control: a bound on the version lag, importance weights clipped (PPO-style or V-trace), and dropping trajectories that are too old.
  • Reward inference as its own service, batched, with a KL term computed against a frozen reference model.
  • Guardrails: prompt and output filters, rate limits, reward-hacking checks (length, sycophancy, reward model exploits), and canary evaluation before a version reaches users.
  • Monitoring: reward and KL curves, response diversity and length, evaluation suites per version, and rollback.
  • Cost: how the split between rollout and training GPUs is tuned, and autoscaling rollouts when serving traffic spikes.

Follow-ups

  • The rollout pool is twice as fast as the learners. What do you change?
  • The reward climbs but human ratings fall. How do you find out why?
  • Multi-turn agent rollouts with tool calls that take minutes each.

Where it's asked

What it tests

reinforcement learning · llm · distributed training

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