How to Allocate a Post-Training Budget: Method Selection, Cost Formulas, and Examples

    A practical guide to choosing post-training methods based on task requirements, data availability, evaluation design, and budget constraints. It compares SFT, RLHF, RLAIF, DPO, and RLVR, then explains how to estimate per-request inference costs using input, output, and cached-token pricing.

    Conclusions and Scope

    Post-training can improve a model’s performance on specific tasks, but it cannot compensate for fundamental capabilities missing from the base model. Before investing, answer two questions:

    1. Can task results be scored automatically?
    2. Can the budget support ongoing human annotation and independent evaluation?

    The following guidelines can help with the initial decision.

    1. The cost of a single request depends on the number of input and output tokens, the applicable prices, and cache-hit status. Parameter count affects the computation required per token and memory usage, which in turn may affect provider pricing or the throughput of self-hosted machines. However, parameter count cannot be directly converted into cost.
    2. Different post-training methods fit different types of tasks. Real-world projects commonly combine several methods rather than choosing only one.
    3. Results should be evaluated using both an independent test set and cost metrics. Training-set scores and public leaderboard scores can be misleading because of data leakage, version changes, or differences in evaluation methodology.

    When the annotation budget is limited, supervised fine-tuning is often a relatively low-cost starting point. However, three conditions should be met:

    • Reliable reference answers are available.
    • The output format is fixed.
    • Automatic evaluation can determine whether the result is correct.

    If any of these conditions is missing, improve the data or evaluation process before deciding to train. For tasks primarily concerned with style and preferences, the benefits of supervised fine-tuning are often inconsistent. Preference-based methods may be more appropriate, but they require a larger budget for human annotation.

    Reports about a newly released model from a particular cloud provider cannot currently be independently verified in terms of release date, evaluation version, or exact scores, so they are not used as evidence here. Public leaderboard scores may change with model versions and evaluation criteria. Before selecting a model, consult the current official information and validate it against your own test set.

    Comparing Post-Training Methods

    The cost and risk of each method depend heavily on the form and quality of the available data. Selection should therefore begin with an assessment of what data can realistically be collected.

    Method Full Name and Definition Suitable Tasks Data Requirements Main Risks Main Cost Components Typical Signs of Evaluation Failure
    Supervised Fine-Tuning (SFT) Trains a model to imitate target outputs using reference answers Fixed output formats, basic instruction following, and domain-specific question answering High-quality instructions and reference answers; the required volume depends on task difficulty and should be determined through internal experiments The model may imitate answers without learning the underlying reasoning; it can easily overfit the training data Data construction and training compute The format is correct, but performance drops significantly on new problem types
    Reinforcement Learning from Human Feedback (RLHF) Trains a reward model from human preferences, then uses reinforcement learning to optimize the policy Response style, safety boundaries, and value alignment Multiple responses to the same prompt, ranked by human annotators Annotator preferences may be inconsistent; the reward model may be exploited, causing responses to become longer or overly agreeable Human annotation, reward-model training, and reinforcement-learning compute Responses become verbose, or evaluation scores improve while user feedback worsens
    Reinforcement Learning from AI Feedback (RLAIF) Uses another model instead of human annotators to provide preference judgments Large-scale style or safety tasks that are difficult for humans to cover comprehensively Large numbers of model-generated preference pairs, with human spot checks Biases in the judge model may be amplified, and errors may be reproduced systematically Judge-model inference costs and human spot-checking The model learns the phrasing preferred by the judge model, while agreement with human reviewers declines
    Direct Preference Optimization (DPO) Updates the model directly using preference pairs without separately training a reward model Preference-based tasks where a simpler process than RLHF is desired Preference pairs consisting of a preferred and a rejected response Results are sensitive to preference-pair quality; an unsuitable reference model may limit performance Preference-data construction and training compute The model over-avoids characteristics of rejected samples and becomes overly conservative
    Reinforcement Learning with Verifiable Rewards (RLVR) Uses programmatic checks to score results and provide rewards Mathematics, code, and structured tasks with standard verifiers Problems, a scoring program, or reference answers If the verifier has loopholes, the model may learn to exploit them; the method has a relatively narrow scope Verifier development and sampled-inference compute Pass rates increase on task types covered by the verifier, but not on uncovered types

    This table covers only common approaches. Specific methods may vary with the framework and model version. Selection should be based on the documentation for the chosen framework and on results from internal experiments.

    Per-Request Cost Formula and Example

    The cost of a single request can be estimated with the following formula:

    Single-request cost = uncached input tokens × standard input price + cached input tokens × cached input price + output tokens × output price

    Providers typically charge per million tokens, so divide each listed price by 1,000,000 when calculating the actual cost. Cached input is generally cheaper than standard input, but discounts and cache-hit rules vary by provider. Always refer to the provider’s official pricing documentation.

    For example, assume that a request contains 2,000 input tokens, of which 1,500 are cached, and generates 500 output tokens. Also assume that the standard input price is 4 currency units per million tokens. The exact calculation should use the provider’s applicable cached-input price and output-token price.