LLM Post-Training: Feedback Design and Algorithm Selection
From the publisher’s feed, collected in the ZeroLabs newsroom.
Choose among SFT, preference optimization, and reinforcement learning — and measure whether they improve real tasks.Post-training changes model behavior using demonstrations, preferences, or rewards after base pre-training. The engineering problem is choosing a feedback signal that distinguishes the desired improvement, then validating that optimization transfers to the target workload.First establish whether a weight update addresses the failure. Missing evidence, broken tools, and learned action-selection errors require different interventions. Keep system fixes and training experiments separately measurable.The feedback format constrains the algorithm; independent evaluation checks the resulting behavior. Graphic by Vikram Kharvi.What post-training changesPost-training updates model weights after base pre-training to shape behavior on a target distribution. The weights may be updated directly or through trainable adapters. Some pipelines also train reward models, value models, or verifiers.A base autoregressive model learns to predict tokens from preceding context. That objective can support broad capabilities, but it does not completely specify how an assistant should follow instructions, resolve ambiguity, use tools, or respect a particular application’s boundaries.Post-training supplies additional signals: demonstrations of good work, preferences between alternatives, critiques, executable checks, or rewards from an environment. These signals change which responses and actions become more likely.The distinction between training and the surrounding system matters. A prompt can change behavior without changing weights. Retrieval can provide current evidence. A tool can make an external action available. Constrained decoding can enforce parts of an output format. Each may solve a problem more directly than training.Post-training becomes useful when the model repeatedly makes poor decisions even with the right instructions, evidence, and tools. A system prompt can specify what success looks like. Context and retrieval-augmented generation (RAG) can supply the relevant documents, examples, and current facts. These can substantially improve results, but the model must still interpret the evidence, choose an approach, and carry it through. Having the right information available does not guarantee that the model can use it reliably.Harness engineering — the surrounding code that manages tools, memory, checks, and retries — can enforce many requirements directly. For example, it can require a coding agent to run tests and prevent it from submitting a patch that fails them. But a failed test does not necessarily tell the model how to repair the code. The agent may misdiagnose the cause, repeat the same ineffective change, or fix one case while breaking another. Generating more candidates and retrying can help, but those attempts consume time and compute and may repeat the same underlying mistake.Post-training addresses this recurring behavior by using demonstrations and feedback across many tasks to update the model’s weights. Training can increase the likelihood of useful habits: inspecting relevant evidence before editing, choosing an appropriate tool, interpreting a failed test, and revising an unsuccessful approach. Examples in a prompt can guide the current attempt; weight updates can make successful patterns more likely across future attempts without having to include every training example in each request.The need for post-training should therefore be established through evaluation. If better prompts, retrieval, tools, or deterministic workflow rules achieve the required reliability at an acceptable cost, they may be sufficient. If the same model still fails representative tasks despite that support, post-training is a candidate for closing the remaining gap. This is a practical limit for a particular model and system, not proof that no possible prompt or harness could solve the task. A stronger base model or a different system design may also help. Post-training itself needs informative feedback and independent testing; changing weights does not guarantee improvement.The InstructGPT paper offers a concrete example of behavioral improvement through demonstrations, human comparisons, and reinforcement learning. Its preference results apply to the evaluated prompt distribution; they do not establish that a smaller tuned model is universally more capable than a larger base model.Why post-training matters in practiceConsider a support assistant making an authorized account change. If a tool rejects an incomplete request, the assistant must inspect the error, obtain the missing information, retry the action, and verify the final state before reporting success. Post-training can use demonstrations and feedback to make these recovery decisions more reliable.DeepSeek-R1-Zero provides a measurable example in mathematics. Starting from DeepSeek-V3-Base, researchers applied reinforcement learning without an initial supervised fine-tuning stage, rewarding verifiable correctness and formatting. They observed longer reasoning, reconsideration of earlier steps, and exploration of alternative approaches. Technical reportOn AIME 2024, reported average pass@1, estimated from 16 sampled responses per question, increased from 15.6% to 71.0% during training. Reasoning also became longer, so this was not an improvement at unchanged inference cost. ResultsDeepSeek-R1-Zero’s reported AIME 2024 accuracy rose during RL training, alongside longer reasoning. Graphic by Vikram Kharvi.Post-training changes which approaches and recovery actions a model becomes more likely to produce. Recovering during one attempt is inference; post-training happens when demonstrations and feedback update the model’s weights for future tasks.Start with a behavior contractBefore collecting training data, write down the target behavior in observable terms. “Make the agent better” gives neither the dataset nor the evaluator a clear job.For a hypothetical support assistant, the contract might require it to retrieve the current account policy, distinguish a factual answer from a proposed action, ask for missing information, and verify an authorized change before reporting completion.Now identify the repeated failure. If the policy is missing from the context, improve retrieval. If the tool rejects a valid request, fix the tool. If the model consistently skips verification despite a usable tool and clear examples, behavioral training becomes a plausible intervention.A strong training case has four properties:The gap is repeatable. A representative evaluation reproduces the failure.The task is feasible. Demonstrations, stronger baselines, or successful attempts show a path to the desired behavior.The target is reasonably stable. It is a procedure worth encoding in a model version, rather than a fact that changes every afternoon.The evidence can distinguish improvement. Reviewers, preferences, tests, or environment state separate a robust result from a convincing imitation.Freeze a held-out evaluation before tuning. Otherwise, it is too easy to discover after the run that the definition of success has moved toward whichever metric improved.Choose the training approachUse the feedback you can reliably collect to narrow the choice:SFT: Reviewed demonstrations; no online rollouts or value critic. Expert data and coverage are the main costs; fitting examples does not establish transfer.DPO: Chosen–rejected pairs and a reference policy; no online rollouts or value critic in the original offline method. Pair collection and policy/reference scoring carry costs; the dataset may miss new policy errors.KTO: Individually labeled desirable or undesirable responses and a reference policy; no matched pairs, online rollouts, or value critic in the original offline setup. Label consistency, class balance, and coverage remain essential.PPO: Tasks with a useful reward signal; collects recent-policy rollouts and commonly trains a value critic. Generation, scoring, critic training, and update tuning add cost and complexity.GRPO: Tasks with a useful reward signal; samples several outputs per prompt without a separate value critic. It saves critic memory, while generation and scoring costs depend on group size and response length.Use demonstrations when good behavior can be shownSupervised fine-tuning, or SFT, trains on prompt–response demonstrations using next-token prediction. It is a natural starting point for output formats, tool syntax, durable procedures, and response patterns that an expert can demonstrate.For the support assistant, a demonstration can show the complete sequence: inspect the request, retrieve evidence, take the permitted action, check the state, and communicate the result. Training only on polished final answers would leave the workflow underrepresented.SFT has a relatively simple training loop, but good data can be expensive. Expert review, coverage of unusual cases, and decisions about ambiguous examples remain part of the cost. Low training loss shows that the model fits the demonstrations; it does not establish that the behavior transfers.Synthetic demonstrations and rejection sampling can expand the dataset. A capable model generates candidates, and a filter or reviewer selects acceptable ones for training. The crucial question is whether the filter recognizes validated success. Generating more examples through a weak filter amplifies its omissions.Use these methods when the accepted examples teach the behavior you want, and keep independent checks for errors shared by the generator and the filter.Use preferences when good behavior is easier to recognize than writeSome distinctions are easier to judge between two responses than to capture in a perfect demonstration. One answer may be more relevant, better calibrated, or more useful for a particular user.Direct Preference Optimization, or DPO, learns from chosen and rejected responses relative to a reference policy. The original method avoids fitting a separate reward model and running an online policy-sampling loop during training. That makes it operationally simpler than many RLHF pipelines, while still requiring careful preference data. Rafailov et al.For the support assistant, a pair might distinguish a response that verifies the final state from one that merely claims the action succeeded. The label should follow the evidence, not a preference for confident wording or length.Offline pairs describe the alternatives present in the dataset. They do not automatically reveal new mistakes made by the updated model. If those new mistakes matter, collect fresh comparisons or consider a training process that samples from the current policy.Use reinforcement learning when consequences reveal the better strategyIn an RL setup, the policy generates responses or takes actions, and the resulting trajectory receives feedback. Updates shift probability toward higher-reward behavior. That can be useful when several paths are valid, an expert cannot conveniently demonstrate every path, or success becomes visible only after a sequence of actions.The reward source determines much of the engineering work; the options and their limitations are compared in “Identify where feedback comes from” below.For a tool-using agent, the environment is part of the training specification. Initial state, permissions, action schemas, observations, reset behavior, timeouts, and scoring rules all affect which trajectories are possible. Reliable execution and isolation can require more engineering than the optimizer itself.Algorithms such as PPO and GRPO differ in how they estimate and constrain updates, including whether they use a separate value model. Those choices affect memory, sample use, and stability. They do not remove the need for useful attempts and trustworthy feedback.Distinguish the update algorithmsThese names describe different parts of a training system. PPO, DPO, KTO, and GRPO specify learning objectives or update procedures. RLHF, RLAIF, and RLVR describe where feedback comes from. Outcome and process rewards describe which parts of a response or trajectory are scored. The categories can be combined: a GRPO run can use verifiable rewards on completed answers.PPO (Proximal Policy Optimization) is an on-policy method commonly used with an actor and a value critic. It collects rollouts from a recent policy and uses estimated advantages to update the actor. The common PPO-Clip variant clips probability ratios to discourage excessively large updates. LLM RLHF pipelines often also penalize KL divergence from a reference model, but a reference-model KL penalty is not the defining mechanism of every PPO variant. PPO variants and objectivesKTO (Kahneman-Tversky Optimization) accepts individually labeled desirable or undesirable responses; it does not require a preferred and rejected answer for the same prompt. Its prospect-theory-inspired objective makes binary judgments usable for preference alignment. This can fit data such as reviewed successes and failures, but label consistency, class balance, and coverage still matter. Unpaired feedback changes the data requirement; it does not make subjective labels objectively correct. KTO paperGRPO (Group Relative Policy Optimization) samples several outputs for the same prompt, scores them, and estimates relative advantages using the group’s rewards. This replaces the separately trained value critic used in many PPO implementations, reducing that part of the memory cost. It still requires generating and scoring multiple outputs, so total cost depends on group size, response length, and the reward mechanism. DeepSeekMath: GRPOIdentify where feedback comes fromRLHF (Reinforcement Learning from Human Feedback) uses human judgments. A common pipeline fits a reward model to human comparisons, then optimizes the policy using scores for outputs sampled from the current policy. The reward model predicts judgments; its score remains a proxy that needs validation outside the optimization loop. InstructGPTRLAIF (Reinforcement Learning from AI Feedback) uses AI-generated judgments according to written criteria. The judge need not be a larger model; its suitability depends on the task, criteria, and measured judgment quality. AI-generated critiques, preferences, and rewards can support SFT, preference learning, or RL. The cost moves toward judge inference and auditing, without removing human responsibility for defining good behavior. Neither RLHF nor RLAIF specifies a unique optimizer. Constitutional AIRLVR (Reinforcement Learning with Verifiable Rewards) uses programmatically checkable outcomes, such as mathematical answer matching, test results, or terminal environment state. This can make scoring scalable, but the verifier defines what training can reward. Successful compilation does not establish correct behavior, and incomplete tests can consistently reward shortcuts. Executable checks do not automatically establish full task success. Tülu 3: RLVRRLEF (Reinforcement Learning from Execution Feedback) makes execution part of the learning experience. In the RLEF code-generation study, the model runs proposed code against tests, receives execution feedback, and can revise its answer across turns. Final solutions are scored using separate tests to train the policy. Feedback returned to the model is an observation; the reward used for a weight update is a separate design choice. Simply running tests and retrying at inference time is not reinforcement learning. RLEF paperChoose where the trajectory receives rewardsOutcome-based RL scores the completed response or the final outcome of a multi-action episode. For a coding task, that could mean evaluating the finished patch against the required behaviors. A final score can reveal success without identifying which earlier action caused it. Process or step-level rewards instead evaluate intermediate work, which can provide more specific learning signals but introduces additional judgments to validate. GRPO, for example, can be used with outcome or process supervision. Outcome and process supervision in DeepSeekMathTeach judgment when there is no single correct answerSome tasks admit several reasonable answers. A customer reports that the same outage has returned after two supposed fixes. A support agent must establish what the evidence shows, decide what to investigate next, and recognize when a specialist should take over. Exact text matching cannot capture all acceptable responses, but experts can specify what a defensible decision requires.For this illustrative task, a rubric could assess four dimensions:Evidence: distinguish the customer’s report, observed logs, and unverified assumptions.Investigation: check the previous fixes and the current symptoms before claiming a cause.Action: propose a justified next step within the agent’s authority, including escalation when needed.Communication: explain what is known, what remains uncertain, and who owns the next action.Write concrete scoring anchors for each criterion: missing, partially supported, or adequately supported. Include examples of different valid approaches and near misses. An unsupported claim that the outage is resolved should fail the task even if the response is polite and well formatted. The rubric encodes the company’s operating judgment; current incident facts still belong in context or retrieval.Rubric-based RL converts these judgments into a training reward. A model grader can assess individual criteria and combine the scores using an explicit rule. The Rubrics as Rewards paper studies this approach for tasks requiring multiple dimensions of judgment.Before optimizing, compare grader decisions with expert reviews, examine disagreements, and revise ambiguous criteria. Keep an independent evaluation that checks whether higher rubric scores correspond to better decisions. A rubric makes the target more explicit; it remains a proxy that can omit important failures. Designing and calibrating agent gradersMeasure the economic case for specializationStart with a defined workload, a quality requirement, and a period over which the specialized model is expected to remain useful. Compare it with the best practical baseline, including prompt and harness improvements or a different existing model. Specialization earns its place through measured operating savings, better outcomes, or both.For a cost-saving case with comparable task success, use a simple estimate:Net benefit over the period = task volume × net operating savings per task − incremental fixed costs.Operating savings should include inference, tool execution, retries, and human rework. Incremental fixed costs include data preparation, training, evaluation, integration, and any additional hosting commitments, monitoring, or maintenance over that period. Count only differences from the baseline, and avoid counting the same expense twice.For an illustrative example, suppose those additional fixed costs total $18,000 and the tuned system saves $0.03 per incoming task at comparable quality. It breaks even at 600,000 tasks. At one million tasks, the estimated net saving is $12,000. These are arithmetic examples, not observed prices or promised savings.Test the estimate against lower traffic, retraining needs, and improvements to the baseline. A model that takes longer to pay back than its likely useful life has a weak cost case. If the benefit is better decisions rather than lower operating cost, measure avoided failures and rework separately instead of treating a benchmark improvement as revenue.Turn production experience into a training loopProduction use creates evidence about where a model succeeds and where people must intervene. A corrected tool call, an edited answer, or a failed workflow can reveal a recurring behavior worth improving. The useful training record connects the decision to its context, the correction, and the eventual outcome.Capture the attempt. Retain the relevant request, available evidence, tool observations, model and harness versions, and observed result. Attach feedback to the decision it concerns.Review the signal. Distinguish model mistakes from missing context, tool failures, or changed requirements. An accepted edit or a positive rating is evidence to inspect, not automatic proof of correctness.Build a training set. Group recurring failures, review corrections, remove duplicates, and retain only data eligible for training. Sample ordinary successes as well as reported failures, and separate related cases before creating training and evaluation splits.Train a candidate. Choose the update from the evidence: corrected demonstrations can support SFT, comparisons can support preference learning, and replayable tasks with useful rewards can support RL. Preserve the existing policy as a baseline.Evaluate and release. Test the targeted behavior, regressions, cost, and latency. Release a passing candidate gradually, monitor actual outcomes, and retain a rollback path. Those outcomes supply evidence for the next cycle.Logged production traces can also support updates when the original task cannot be replayed. Applied Compute describes self-distillation workflows that attach targeted corrections to existing traces and check whether training changes the intended behavior. This is one way to use qualitative feedback without reconstructing the whole environment. Learning from production tracesA recurring training pipeline can run periodically. Collecting logs, storing memories, or changing a prompt does not itself update model weights, and every new candidate still needs evaluation before it becomes the model serving users.Version the feedback dataset as an executable contractFor SFT, retain the rendered prompt, demonstrated continuation, loss mask, provenance, and task family. A tool trajectory may contain tool observations that belong in context but should not automatically be prediction targets. For preference training, retain the shared prompt, chosen and rejected responses, label rationale or source, reference-policy revision, and ambiguity policy. For online RL, attach the policy revision, trajectory, reward components, termination reason, and grader revision to each rollout.Split by the source of correlation, such as user, repository, template, or task family, before generating near-duplicate variants. Audit overlaps between training, checkpoint-selection, and final evaluation sets. Keep refusal, tool use, structured output, and long-horizon outcomes as separate slices when they have different failure costs. A single improvement in aggregate preference can conceal a regression in one required capability.Read the learning signal in the objectiveIn supervised fine-tuning, response-token cross-entropy increases the likelihood of demonstrated answers. Mask prompt tokens when the intended objective is to learn the response rather than reproduce the entire serialized conversation. For multi-turn data, decide explicitly which assistant turns are supervised and how tool results enter the context.Preference optimization uses a different signal. A pair says that one answer is preferred to another for a particular prompt; it does not provide a universally calibrated numeric reward. In DPO, the loss compares the policy’s log-probability ratio for chosen and rejected answers relative to a reference policy. This is why reference choice, response length, and pair construction deserve direct inspection.For a schematic DPO pair, define delta as the policy’s chosen-minus-rejected log-probability difference minus the same difference under the reference. The pair loss is -log(sigmoid(beta × delta)). With beta = 0.1 and delta = 2, the loss is approximately 0.598; at delta = 0 it is approximately 0.693. This illustrates the direction of the signal, not a useful hyperparameter recommendation. See the original DPO paper for its derivation and assumptions.A useful feedback loop separately tests label quality, learning, and product outcomes. Graphic by Vikram Kharvi.Diagnose a preference dataset before optimizing itSample pairs in which the preferred answer is longer, shorter, more hedged, or more stylistically polished. Ask whether those superficial features predict the label more reliably than correctness does. Include cases where a concise answer is complete and a longer answer adds a factual error. Otherwise a preference objective can consistently reward the wrong proxy.For executable tasks, retain outcome evidence beside the pair: test result, final resource state, schema validation, or independently checked answer. A rejected answer may be stylistically awkward but correct. If the actual product values correctness first, encode that priority in data selection and evaluation rather than hoping that fluency labels will learn it.Separate training pairs from the prompts and graders used for the final comparison. Repeatedly selecting a checkpoint against the same held-out suite also adapts to that suite. Keep a final evaluation set that is not used for routine experiment selection.Specialized approaches and terminologyRLVF needs an explicit definition. Some papers use it for verifiable feedback; others use it for verbal feedback. It is not an unambiguous synonym for RLVR. This article uses RLVR for programmatically checked rewards. Verifiable-feedback usage; verbal-feedback usageSWiRL (Step-Wise Reinforcement Learning) is a specific approach to multi-step reasoning and tool use. The published method generates and filters trajectories, splits them into contexts and individual actions, and uses a generative reward model to judge candidate actions in context. Its offline multi-step setup trains on these collected contexts instead of repeatedly executing complete live trajectories during every update. It is not a generic name for all step-level RL, nor a guarantee that intermediate reasoning errors will be prevented. Synthetic Data Generation & Multi-Step RL for Reasoning & Tool UseRLCD for structured decisionsRLCD (Reinforcement Learning for Calibrated Decisions) is TypeSafe AI’s name for the training approach behind its decision models. Its stated target is typed decisions and calibrated probabilities, rather than open-ended text generation. Treat it as a vendor-specific approach: the public product description explains the intended behavior, and does not make RLCD interchangeable with a fully specified update algorithm such as PPO or GRPO.Consider an illustrative support-ticket router. Given a ticket and relevant account context, the model chooses among billing, technical support, and account access, returning probabilities over those choices. Application code can route sufficiently reliable decisions automatically and send uncertain cases for review. This is a structured prediction problem: the useful output is a decision that software can inspect, rather than a persuasive explanation.Calibration concerns groups of predictions. Among comparable cases assigned an 80% probability, the predicted event should occur about 80% of the time; it is not a guarantee for an individual ticket. Schema compliance also does not establish factual correctness. Evaluate decision accuracy, probability calibration, and errors among automatically accepted cases on held-out data from the intended workflow. TypeSafe’s separate confidence field is a derived statistic, not simply the probability that a decision is correct, so routing thresholds need validation rather than literal percentage interpretation. Calibration; confidence and thresholdsA practical sequence for the next experimentStart with a reproducible prompt-and-tool baseline. Capture its actual failures. Separate missing information, broken system behavior, and persistent policy behavior before deciding what to train.Collect reviewed demonstrations if experts can show success. Add preferences when comparisons reveal important differences. Use reward-guided exploration when new attempts from the policy are necessary and the reward survives independent scrutiny.Evaluate the new and baseline policies on the same task instances, with matched tool access, budgets, and decoding settings. Record task completion and quality, relevant general capabilities, refusal/constraint behavior, safety, output length, tool use, latency, and cost separately. A reward improvement accompanied by more attempts or more expensive tools may be useful, but it is a different operating point.Inspect regressions by capability and by failure category. A global preference win can conceal reduced schema compliance or poorer performance on a small but important language cohort. Also test the update outside the reward model’s strongest domain: proxy quality often varies across tasks.Keep the model, data, prompts, grader, and environment versions attached to the evidence. The practical experiment is a chain of hypotheses: the feedback distinguishes better behavior, the objective learns from that feedback, and the resulting policy improves the product outcome. Preserve evidence for each link so an unsuccessful experiment still tells you what to change next.Post-training works best when the desired behavior is clear enough to teach and the evidence is strong enough to challenge. Choosing the algorithm comes after that work. The feedback determines what the algorithm has a chance to learn.Sources and further readingRafailov et al., Direct Preference Optimization derives the preference objective and states its assumptions. The pair-loss numbers above are illustrative calculations.Ouyang et al., Training language models to follow instructions with human feedback (2022). The InstructGPT pipeline: expert demonstrations, human comparisons, reward modeling, and reinforcement learning.Schulman et al., Proximal Policy Optimization Algorithms (2017). The original PPO paper, covering policy updates and surrogate objectives.Ethayarajh et al., KTO: Model Alignment as Prospect Theoretic Optimization (2024). Learning from individually labeled desirable or undesirable outputs without requiring preference pairs.Shao et al., DeepSeekMath (2024). Introduces GRPO and examines its use for mathematical reasoning and training memory efficiency.Bai et al., Constitutional AI: Harmlessness from AI Feedback (2022). A primary example of AI-generated critiques, revisions, and preference labels supporting supervised learning and RLAIF.DeepSeek-AI et al., DeepSeek-R1 technical report (2025, original version). The R1-Zero training setup and reasoning results discussed in this article.Gao et al., Scaling Laws for Reward Model Overoptimization (2022). Studies how stronger optimization against a proxy reward can reduce performance against an independent gold-standard reward model.Hugging Face, TRL documentation. Practical trainers and guides for SFT, DPO, KTO, GRPO, reward modeling, dataset formats, and training efficiency.Explore more at trainrl.com.LLM Post-Training: Feedback Design and Algorithm Selection was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.