Part IV / One Machine
The field guide
The point of vocabulary is better decisions. Use these review questions, failure patterns, and precise formulations when a design moves from whiteboard to training run or production fleet.
Interrogate environment, feedback, data, update, inference, and release.
Separate algorithm failure from evaluator, runtime, and workload failure.
State assumptions, metrics, and scope precisely.
Carry six ledgers
Complex AI systems become legible when every claim can be placed in a ledger: problem, data, feedback, learning, inference, and evidence. The ledgers prevent a training acronym from substituting for an environment contract or a throughput number from substituting for a service result.
Ask "under what policy, environment, reward, workload, hardware, and evaluation?" until a result becomes reproducible enough to reason about.
Architecture review: a candidate reasoning policy
A team reports that GRPO improved its incident agent by 18 percent and a new runtime made rollouts 30 percent faster. Before celebrating, the architecture review reconstructs what those numbers mean.
Ask whether 18 percent is absolute or relative, which metric moved, how many independent scenarios were evaluated, whether the reward or rubric changed, whether the holdout influenced tuning, and which component gates regressed. Ask how groups were sampled, whether rewards had variance, which tokens received advantage, and how much the policy moved.
For the runtime, ask model and precision, prompt/output distributions, concurrency, policy sampling parameters, prefix reuse, hardware, baseline, TTFT, ITL, goodput, cost, and whether trajectory validity or reward distribution changed. If rollouts finish faster but become stale relative to more frequent updates, the end-to-end result may differ.
| Claim | Architecture review question | Evidence that answers it |
|---|---|---|
| "GRPO improved quality" | Against which simpler baselines and untouched cases? | Paired evaluation, uncertainty, component gates |
| "Inference is 30% faster" | At what workload and Pareto point? | Load sweep with full configuration |
| "The reward is verifiable" | What desired behavior is outside the checker? | Adversarial invalid traces and integrity tests |
| "The system is on-policy" | How old are trajectories when consumed? | Policy version and KL/staleness distribution |
RL failure modes by layer
Environment failure
Hidden answers leak, tools behave unrealistically, required evidence is unreachable, seeds correlate with labels, or unsafe actions have no consequences. Symptom: reward rises quickly and collapses on a different generator or production replay.
Feedback failure
The reward model prefers style, the checker is writable, process points reward ceremony, or hard gates are averaged away. Symptom: component metrics diverge from aggregate reward and adversarial traces score well.
Data failure
Easy prompts dominate, trajectories are duplicated, preference pairs confound task difficulty, offline data lacks coverage, or provenance is lost. Symptom: training loss improves while new states remain brittle.
Optimization failure
Updates move too far, critic error explodes, KL collapses or spikes, GRPO groups have no variance, entropy disappears, or stale data violates assumptions. Symptom: unstable curves, response-length shifts, or broad capability regressions.
Evaluation failure
Repeated holdout access guides tuning, samples are treated as independent when they share scenarios, rubric versions mix, or the test distribution is too close to training. Symptom: impressive internal gains fail to replicate.
Inference failure modes by layer
Workload mismatch
Benchmarks use short prompts, fixed batches, or steady arrivals while production has long agent traces, tools, and bursts. Symptom: measured throughput does not predict SLO capacity.
Resource misdiagnosis
The team optimizes FLOPs while decode is bandwidth-bound, tunes kernels while GPUs wait on CPU scheduling, or adds shards that increase communication. Symptom: local microbenchmarks improve but end-to-end latency does not.
Memory-policy failure
KV admission lacks headroom, prefix cache crosses incompatible versions, eviction ignores priority, or scale-in kills active sequences. Symptom: latency cliffs and OOMs under realistic tails.
Fleet failure
Autoscaling reacts after bursts, cold start exceeds the SLO, retries duplicate state-changing work, or canaries check HTTP health without semantic output. Symptom: an efficient steady-state runtime produces poor availability.
Metric failure
Tokens per second rises while goodput, tail latency, task quality, or cost worsens. Symptom: teams argue from different denominators.
Say this precisely
| Loose phrase | Precise replacement |
|---|---|
| "The agent sees the state" | "The agent receives a partial observation and conditions on its interaction history." |
| "PPO clips the model" | "PPO clips the probability ratio in its surrogate objective; this implementation also monitors KL." |
| "GRPO needs no baseline" | "GRPO uses a group-relative reward baseline instead of a separately learned critic." |
| "DPO is RL" | "DPO is an offline preference objective derived from a KL-constrained RLHF formulation." |
| "Decode is memory-bound" | "At this batch, model, precision, and hardware, measured decode is limited by weight/KV bandwidth." |
| "Speculation is 2x faster" | "This drafter achieved the reported speedup at the stated acceptance, concurrency, hardware, and baseline." |
| "We serve 1,000 tokens/s" | "At workload X and load Y, the fleet sustains Z SLO-valid tokens/s with these tail latencies." |
| "RL and inference are merging" | "RL rollout generation and production serving share inference primitives, while retaining different freshness and SLO policies." |
A compact design review
- Can you replay the environment and prove hidden answers are not observable?
- Can a policy get high reward through an obviously unacceptable trace?
- Which simpler baseline establishes that online RL is necessary?
- Which policy version generated every training trajectory?
- How are prompt and output lengths distributed across the workload?
- Which resource limits prefill, decode, and communication at the chosen frontier point?
- Does the benchmark report quality-gated goodput and tail latency?
- What independent evidence can veto release?
- Can the full model-runtime-reward-environment version be reproduced?
- What happens under overload, tool failure, evaluator disagreement, and drift?
If a design cannot answer these questions, define the system before tuning its hyperparameters.
Locate the assumptions, interfaces, bottlenecks, and evidence. When a simple baseline is sufficient, document the problem contract and the evidence that supports stopping there.
References
- Sutton and Barto grounds the RL terminology; NVIDIA's guide, vLLM, and Kiely's scope ground the inference terminology.