LLM Capability Improvements: Choosing Between Post-Training and Base Model Scaling

    Improving an LLM for software development and agent workflows requires more than increasing its size. This article examines what pretraining and post-training contribute, why long-horizon task training is difficult, and how to evaluate correctness, reliability, context use, safety, and cost. It also outlines a reproducible comparison process and a staged deployment approach to help teams identify bottlenecks and invest in improvements that deliver measurable engineering value.

    1. The Core Problem: Model Scale Does Not Equal Engineering Capability

    As large language models move into software development and agent workflows, the competitive focus is shifting from how many questions they can answer to how many real tasks they can complete independently.

    Explaining code or completing a function is fundamentally different from taking over an unfamiliar repository and fixing a bug. The latter requires a model to understand the project structure, locate the problem, select actions, verify changes, and revise its plan based on feedback. Strong performance in single-turn question answering does not guarantee reliable execution of this kind of extended workflow.

    Model improvements generally involve two types of investment:

    • Scaling or redesigning the base model: Increasing pretraining investment or changing the architecture, data mix, or training methods to improve knowledge coverage and foundational representations.
    • Deepening post-training: Using supervised fine-tuning, preference optimization, reinforcement learning, and related methods to improve instruction following, reasoning strategies, tool use, and task execution on an existing base model.

    This is not simply a choice between large and small models. A larger base model still needs high-quality post-training. A model with an unchanged architecture may also achieve substantial task improvements through changes to its training approach.

    The real questions are where the current bottleneck lies, which stage deserves additional budget, and whether the resulting gains translate into business value.

    2. What Pretraining and Post-Training Each Address

    Pretraining builds the capability foundation

    Pretraining learns statistical patterns from large volumes of language, code, and other data. It provides knowledge, syntax, structural understanding, and some foundations for reasoning.

    When a model lacks specialized knowledge, cannot understand complex code structures, or struggles to connect concepts across domains, behavioral optimization alone may be insufficient. Better data, architectural improvements, or greater training investment may address the underlying problem more directly.

    Parameter count, however, is not a sufficient measure of foundational capability. Data quality, training completeness, architecture, and optimization stability all affect outcomes.

    For sparsely activated models, total parameter count also differs from the number of parameters involved in each inference. Total parameters therefore cannot directly determine response speed, memory requirements, or usage cost.

    Post-training improves how capabilities are used

    Post-training focuses more on how a model applies the capabilities it already has. For example:

    • Does it identify missing information when a request is ambiguous?
    • Does it inspect relevant implementations and tests before changing code?
    • Does it adjust its approach based on error output after a tool fails?
    • Does it provide verifiable evidence before presenting a conclusion?
    • Does it stop rather than exceed its permissions?

    A model may know how to fix a particular error yet skip verification, modify unrelated files, or declare completion too early. Post-training can provide feedback on these behaviors, encouraging more effective execution strategies.

    The phrase “pretraining determines the floor, while post-training determines the ceiling” is a convenient shorthand, not a strict rule. Both influence final capability. Post-training can improve strategies, but it can also degrade capabilities or introduce task-specific biases. Its effectiveness must be established through evaluation.

    3. Why Long-Horizon Task Training Matters

    A coding agent’s workflow can usually be represented as a loop:

    Understand the goal → Observe the environment → Plan → Act → Collect feedback → Revise the plan → Verify the result.

    A single-turn response requires one output. A long-horizon task may involve many decisions, with early mistakes affecting later actions and tool outputs continually changing the available information. This makes training substantially harder.

    Training environments must cover the complete workflow

    If training examples mainly consist of questions and reference answers, a model may learn to describe solutions without learning to implement them.

    Engineering-oriented training environments should include files, project dependencies, tests, execution logs, and clear completion criteria. Fixing a bug, for example, requires more than generating a patch: the patch must be applicable, pass relevant checks, and avoid breaking existing functionality.

    More environments can improve coverage, but quantity is not the only goal. Large numbers of repetitive or overly simple environments may merely improve familiarity with fixed procedures. Environments also need diversity in task types, project structures, error sources, and feedback formats.

    Long-horizon rewards create a credit-assignment problem

    Passing the final tests can indicate a correct outcome, but it does not directly reveal which earlier actions were useful.

    Rewarding only final success may produce overly sparse feedback. Over-rewarding intermediate steps, however, may encourage mechanical behavior. A reward for “running tests” does not ensure that the tests are relevant; a model might repeatedly perform unrelated checks.

    Reward design therefore needs to consider several dimensions:

    • Outcome correctness: Does the result satisfy the task requirements?
    • Process compliance: Does execution respect permissions and operational boundaries?
    • Verification quality: Are the checks relevant to the changes?
    • Resource consumption: Are there pointless retries or redundant operations?

    There is no universally optimal weighting for these dimensions. Training should reflect the actual tasks, and evaluations should check whether the model is exploiting weaknesses in the reward mechanism.

    Longer training does not guarantee continued improvement

    Additional post-training compute may improve success rates. It may also produce diminishing returns, overfitting to particular environments, verbose outputs, or losses in general capability.

    A sound approach maintains both target-task evaluations and capability regression evaluations. The first measures gains in the intended tasks; the second checks for damage to knowledge answering, instruction following, stability, and other capabilities.

    Additional training is justified only when target gains are clear and regression risks remain manageable.

    4. Five Dimensions for Evaluating Coding and Agent Capabilities

    Model comparisons should start with verifiable task outcomes rather than promotional claims. For developers and enterprises, the following five dimensions are more informative than a single aggregate score.

    Functional correctness: Do the changes actually solve the problem?

    Evaluation tasks can include bug fixes, feature development, refactoring, and configuration changes. Judgments should rely as much as possible on automated tests, behavioral assertions, or independent review—not on the model evaluating its own answer.

    Passing existing tests is not always sufficient. Those tests may not cover new requirements, so targeted validation may be necessary. Evaluators should also check for attempts to bypass tests, remove checks, or hard-code expected results.

    Long-horizon reliability: Can the model finish the task?

    Beyond final success rates, record whether the model:

    • Uses tools effectively.
    • Recovers after errors.
    • Gets stuck repeating actions.
    • Claims completion without verification.
    • Requires human intervention before finishing.

    Failure recovery is especially important. A failed operation does not necessarily mean a failed task. The model must distinguish temporary failures, environment problems, and flaws in its approach, then decide whether to retry, take another path, or ask for help.

    Context utilization: Accepting more input does not mean using it well

    A context window describes input capacity. It does not directly establish whether a model can accurately use everything within that capacity.

    In large projects, critical information may be scattered across directories, alongside outdated documentation, duplicate implementations, or conflicting configurations. Evaluations should test whether the model finds the correct evidence, recognizes version relationships, and maintains consistent constraints during later changes.

    Engineering systems should also use retrieval, directory summaries, and staged reading rather than placing all material into the context at once. Context management is itself part of agent system design.

    Safety and permission control: Correctness must remain controllable

    A model’s familiarity with security concepts is not enough to establish safe execution. Agents may encounter file writes, network access, credential reads, and malicious instructions embedded in external text.

    Evaluations should check whether repository documentation, logs, or web pages can redirect the model away from the user’s goal. Systems must also limit risk through least privilege, network isolation, approval for sensitive operations, and audit records.

    Security boundaries cannot be left entirely to the model’s judgment.

    Cost and latency: What does a successful task consume?

    A lower price per model call does not necessarily mean a lower cost per completed task. A model may require more reasoning rounds, more tool calls, longer environment runtime, or additional human rework.

    A useful business metric is:

    Average cost per successful task = Total model, tool, environment, and human costs during evaluation ÷ Number of successfully completed tasks.

    Record median and high-percentile end-to-end latency as well. Averages can hide a small number of severely delayed tasks.

    Waiting time strongly affects the experience of interactive coding. Offline maintenance tasks may tolerate longer execution if it delivers a higher success rate.

    5. How to Run Fair, Reproducible Comparisons

    Performance depends not only on model weights but also on prompts, tool interfaces, execution permissions, search strategies, and context management. Evaluations must therefore specify whether they compare models or complete agent systems.

    A practical process is:

    1. Build a task set. Cover common business needs and reserve test tasks that have not been used for tuning.
    2. Fix the environment. Use consistent project snapshots, dependencies, permissions, and validation scripts.
    3. Standardize budgets. Limit execution time, call counts, and resource use while recording each model’s actual consumption.
    4. Save complete traces. Record inputs, outputs, tool actions, file changes, and verification results.
    5. Repeat runs. Evaluate stochastic tasks multiple times to understand variation.
    6. Report results by category. Break down outcomes by task type, complexity, and failure cause rather than reporting only a total score.

    Two complementary experiments can be useful. One uses the same agent framework to isolate model differences as much as possible. The other permits reasonable optimization of execution strategies to compare achievable system performance.

    These experiments answer different questions. The first is more useful for studying model capability; the second is closer to a deployment decision. Results from systems with different levels of tuning should not be interpreted directly as differences in base-model capability.

    6. When to Prioritize Post-Training

    When a model understands the knowledge required for a task but executes inconsistently, deeper post-training is usually worth testing first. Common signs include:

    • Identifying the right approach but frequently skipping verification.
    • Locating the problem but making unnecessarily broad changes.
    • Lacking recovery strategies after tool failures.
    • Following business rules inconsistently.
    • Making frequent, avoidable operational mistakes on familiar tasks.

    These problems primarily concern behavioral optimization and learning from experience. Enterprises can begin by collecting real failure traces and separating knowledge gaps, planning errors, tool misuse, and environment failures before deciding whether training is needed.

    If failures mainly stem from unstable environments, unclear tool feedback, or incomplete task descriptions, additional model training may not help. Improving the execution system can sometimes deliver greater gains than changing the model.

    7. When to Reconsider the Base Model

    If a model consistently fails to understand core domain concepts, cannot reason correctly about unfamiliar problem structures, or lacks support for essential input types, further execution-strategy optimization may not overcome the bottleneck.

    In these cases, consider a more suitable base model, additional domain data, or other improvements to foundational capabilities.

    First, however, rule out insufficient information. A model may not know the constraints of an internal interface because it never received the documentation—not because it lacks enough parameters.

    Changing the base model also does not automatically improve every capability. Existing prompts, task traces, tool interaction patterns, and verification mechanisms may need to be adapted.

    Migration evaluation should cover capability gains, deployment resources, system stability, and maintenance costs.

    8. Enterprise Deployment: Expand Automation Gradually

    Deployment can progress in stages according to risk.

    Stage 1: Read-only analysis. The model reads code, explains logs, and suggests fixes without permission to modify the environment. Evaluate understanding accuracy and evidence quality.

    Stage 2: Controlled changes. The model generates patches and runs tests in an isolated environment, with human approval required before merging. Evaluate change scope, verification completeness, and rework cost.

    Stage 3: Limited autonomy. Allow automatic execution for repetitive tasks that can be validated automatically and rolled back quickly, such as localized bug fixes or routine maintenance. High-impact operations still require approval.

    Stage 4: Continuous improvement. Turn failure traces into evaluation cases, regularly check model updates for regressions, and adjust resource budgets according to task value.

    This gradual approach is safer than pursuing full autonomy immediately. It builds evidence while controlling risk and helps reveal whether bottlenecks originate in the model, tools, or business processes.

    Conclusion: Identify the Bottleneck Before Choosing the Investment

    Deeper post-training and base-model scaling are not mutually exclusive. Post-training is often better suited to improving how existing capabilities are used. Base-model improvements are more likely to address knowledge, representations, and generalization. The two frequently need to work together.

    For developers, the central question is whether the model can complete work in a verifiable way and recover when things go wrong. Enterprises must also establish whether task costs are acceptable, execution permissions are controlled, and system upgrades can be checked for regressions.

    The value of an upgrade should therefore not be judged solely by parameter count, context capacity, or a single benchmark. Build evaluations around real tasks, use complete traces to diagnose failures, and invest in the clearest bottleneck. That is the most reliable way to turn model capability into engineering results.