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.

22
Review

Interrogate environment, feedback, data, update, inference, and release.

Diagnose

Separate algorithm failure from evaluator, runtime, and workload failure.

Communicate

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.

Mental model

Ask "under what policy, environment, reward, workload, hardware, and evaluation?" until a result becomes reproducible enough to reason about.

Problem
State, observations, actions, horizon, termination, users, and constraints.
Data
Who generated it, under which policy, with which provenance and coverage.
Feedback
Oracle, human, AI judge, process signal, weights, gates, and attack surface.
Learning
Objective, baseline, on/off-policy assumptions, optimizer, KL, and versions.
Inference
Workload, prefill/decode, memory, batching, precision, parallelism, and capacity.
Evidence
Baselines, holdouts, uncertainty, ablations, source scope, and release gates.

Architecture review: a candidate reasoning policy

Concrete example

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.

ClaimArchitecture review questionEvidence 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 phrasePrecise 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

  1. Can you replay the environment and prove hidden answers are not observable?
  2. Can a policy get high reward through an obviously unacceptable trace?
  3. Which simpler baseline establishes that online RL is necessary?
  4. Which policy version generated every training trajectory?
  5. How are prompt and output lengths distributed across the workload?
  6. Which resource limits prefill, decode, and communication at the chosen frontier point?
  7. Does the benchmark report quality-gated goodput and tail latency?
  8. What independent evidence can veto release?
  9. Can the full model-runtime-reward-environment version be reproduced?
  10. What happens under overload, tool failure, evaluator disagreement, and drift?

If a design cannot answer these questions, define the system before tuning its hyperparameters.

Misconception: expertise means confidently naming the newest method

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