LLM Capability Upgrades: Post-Training vs. Base Model Scaling
Improving an LLM for coding and agent workflows requires more than increasing parameter count. This article examines when to invest in post-training, when to upgrade the pretrained base, and how inference-time compute affects comparisons. It outlines evaluation criteria, reproducible experiments, cost accounting, and a staged upgrade process grounded in failure analysis and verified task completion.
1. The Competitive Advantage Is Task Completion, Not Parameter Count
As large language models move into coding and agent workflows, the focus of competition is changing. Previously, users were primarily concerned with whether a model could answer a complex question or generate correct code. Developers now expect models to understand an entire project, locate defects, modify multiple files, run checks, and continue fixing problems when an initial attempt fails.
This creates two distinct paths for capability upgrades.
One path keeps the pretrained base unchanged and invests in more extensive post-training to improve planning, tool use, feedback handling, and long-horizon task completion.
The other rebuilds or scales the pretrained base. Changes to parameter capacity, training data, and compute investment aim to improve knowledge coverage, representation quality, and generalization before further post-training.
These approaches are not mutually exclusive. Nor can they be reduced to “optimizing small models” versus “letting large models dominate.” The practical question is which investment is more likely to produce consistent, verifiable business value under a given task distribution, resource budget, and set of deployment constraints.
The emphasis on post-training, long-horizon environments, and terminal-based tasks points to a broader technical question: when an existing base model still has untapped potential, should the priority be improving its ability to turn existing knowledge into effective action?
2. Distinguishing Pretraining, Post-Training, and Inference-Time Compute
Pretraining: Building Knowledge and Representations
Pretraining typically uses large-scale data to learn statistical patterns in language, code, and other information, establishing the model’s foundational representations.
For coding tasks, this involves more than syntax. It also includes program structure, common design patterns, recurring errors, and relationships between textual requirements and code behavior.
However, exposure to similar code during pretraining does not mean a model can complete a real engineering task. Such tasks often involve incomplete requirements, implicit constraints, legacy code, and differences between environments. They require a sequence of judgments rather than a single answer.
Pretraining therefore provides a foundation for subsequent behavioral learning, not a checklist of guaranteed task capabilities.
Post-Training: Turning Foundational Capabilities into Task Behavior
Post-training includes supervised fine-tuning, preference optimization, and reinforcement learning. Its value extends beyond making responses better aligned with user preferences: it can also teach tool use, error recovery, and multi-step execution strategies.
For example, a model may know how to read an error message but fail to follow an effective workflow: reproduce the problem, identify its cause, and make the smallest appropriate change. Task trajectories and outcome feedback can reinforce that sequence.
The claim that “pretraining determines the floor, while post-training determines the ceiling” is an oversimplification. Both influence capability boundaries. Post-training can improve how existing abilities are used and may help develop new strategies, but it cannot reliably compensate for every gap in foundational knowledge or representation.
Inference-Time Compute: The Execution Budget for Each Task
After deployment, a model can use additional reasoning steps, candidate solutions, tool calls, and validation rounds to improve its probability of success.
This is distinct from post-training. Post-training changes model parameters; inference-time compute changes the resources allocated to an individual task.
A fair comparison must account for all three layers. Otherwise, a system that simply uses more tool calls and takes longer to execute may be mistaken for a substantially more capable model.
3. Why Capabilities Can Improve Without Changing the Base Model
In engineering workflows, a model may fail not because it lacks the relevant knowledge, but because it does not apply that knowledge in the right order.
Common behavioral failures include:
- Editing code before reading the relevant files.
- Addressing a visible error while ignoring dependencies.
- Repeating the same action after a tool call fails.
- Validating too narrowly, fixing one issue while introducing another.
- Claiming completion without sufficient evidence.
These failures are largely strategic and are suitable targets for post-training.
Long-Horizon Training: Learning Sequential Decisions
A real task may span requirements analysis, information retrieval, code changes, test execution, and result reporting. Early decisions affect the cost and success probability of later steps.
More long-horizon training should not simply mean producing longer outputs. It should teach the model to:
- Break objectives into verifiable steps.
- Preserve important constraints.
- Update plans based on execution results.
- Decide whether further attempts are worthwhile.
- Accurately report blockers when completion is not possible.
Training environments should allow plausible failures. If every trajectory succeeds smoothly, the model has little opportunity to learn recovery strategies and may mistake an ideal workflow for a realistic one.
Diverse Environments: Avoiding Dependence on a Single Template
If training tasks share similar directory structures, testing methods, or error types, a model may learn environment-specific templates rather than transferable engineering skills.
More useful coverage includes repositories of different sizes, different defect categories, varying permission restrictions, and incomplete or noisy tool outputs.
Diversity does not mean accumulating tasks without a clear purpose. The training distribution should reflect expected business scenarios, while an independent task set should be reserved to test generalization.
Outcome Feedback: Rewarding Completion, Not Plausibility
Passing tests is valuable feedback for coding tasks, but it should not be the only criterion. A model may achieve apparent success by deleting checks, changing test expectations, or bypassing required functionality.
More reliable feedback combines functional correctness, scope of changes, regression risk, and compliance with constraints. Security-related tasks also require confirmation that the model stayed within authorized boundaries.
The key to effective post-training is not simply a longer training run. It is better feedback, more realistic environments, and more efficient use of training samples.
4. When the Base Model Needs to Be Scaled or Rebuilt
Post-training does not offer unlimited gains. When failures primarily reflect foundational capability gaps, further behavioral optimization may deliver diminishing returns.
Examples include:
- Failure to understand essential concepts in the target domain.
- Unstable representations of complex code structures.
- Persistent reliance on incorrect analogies for unfamiliar tasks.
- Inability to establish correct relationships despite sufficient context.
- Broad capability gaps across tasks rather than failures concentrated in execution workflows.
In these situations, improving pretraining data, training methods, or model architecture may matter more than further refinement of task strategies.
Parameter count alone is not a guarantee of quality. Data quality, compute configuration, and architecture all affect the outcome. For sparsely activated architectures, total parameters must also be distinguished from the parameters activated for each computation. Comparing total parameter counts alone does not establish inference speed, memory requirements, or task performance.
A more reliable principle is to identify whether failures stem from knowledge, reasoning, context handling, or execution strategy before allocating resources—not to choose a preferred upgrade path and then search for metrics that support it.
5. Five Dimensions for Evaluating Capability Improvements
A single leaderboard cannot capture the developer experience. Coding and agent capabilities should be evaluated across at least five dimensions.
Code Correctness: Does the Result Meet the Specification?
Evaluation should cover normal inputs, boundary conditions, and exceptional paths, preferably with an independent validation set.
For existing projects, it should also check whether changes respect interface contracts, introduce unnecessary dependencies, or break other functionality.
Code that looks plausible is not necessarily code that behaves correctly.
Engineering Task Completion: Can the Model Deliver End to End?
End-to-end evaluation should include reading the project, identifying the issue, changing the implementation, and validating the result—not merely generating a function.
Completion rates must be reported alongside execution budgets, including time limits, maximum tool calls, and available context. Results obtained under different budgets are not directly comparable.
Long-Horizon Reliability: Can the Model Recover from Intermediate Failures?
Useful measures include first-attempt success rate, success after retries, unproductive loop counts, and missed critical constraints.
Enterprise evaluations should also track variability across runs. A model that occasionally succeeds but frequently fails on the same task can impose substantial human intervention costs.
Long-Context Utilization: Accepting Information Is Not the Same as Using It
Context window size indicates how much information a model can receive, not whether it can use all of that information accurately.
Tests should separately assess retrieval of key information, understanding of cross-file dependencies, retention of distant constraints, and performance changes when irrelevant material is added.
Targeted retrieval and staged summaries remain useful in engineering workflows. Feeding an entire repository into the model at once is not inherently better than organizing context around the task.
Safety and Constraint Compliance: Success Must Not Depend on Overstepping Boundaries
Security-related evaluations should take place in authorized, isolated, and auditable environments. They should assess whether the model recognizes risks, respects permissions, and provides defensive guidance.
General-purpose engineering agents should also be checked for sensitive-data disclosure, dangerous operations, and attempts to bypass approval processes. Task success rates and safety failure rates should be reported separately; one should not offset the other.
Rankings, subjective impressions of improvement, and context window specifications should not be treated as general technical conclusions. Without evaluation methods, sample distributions, and resource configurations, they do not establish that one upgrade path is broadly superior.
6. Building a Reproducible Comparison
Enterprise model selection can begin with a set of sanitized real-world tasks rather than an unnecessarily large test suite.
First, group tasks by type, such as bug fixing, feature implementation, test additions, code explanation, and dependency analysis. Then group them by difficulty, distinguishing single-file changes, multi-file coordination, and tasks requiring several investigation rounds.
Next, hold the key conditions constant:
- Use the same task instructions and initial project state.
- Provide equivalent tool permissions and environments.
- Set the same time and tool-call budgets.
- Retain all results from repeated runs rather than reporting only the best.
- Record model versions, prompt templates, and changes to the evaluation environment.
Scoring should prioritize automatically verifiable criteria. For aspects that are harder to judge automatically—such as architectural soundness, maintainability, and explanation quality—use blind review with explicit scoring rules.
Most importantly, analyze the causes of failure. Did the model misunderstand the task, lack relevant knowledge, misuse tools, or validate inadequately? These findings, rather than aggregate scores alone, should guide the next training or model-selection decision.
7. Cost Accounting: Measure the Cost per Accepted Task
A low price per model call does not necessarily mean a low overall cost. Failed attempts, lengthy outputs, environment execution, and human review can all change the final bill.
A simple measure is:
Average cost per accepted task = Total cost during the evaluation period ÷ Number of accepted task deliveries
Total cost should include model inference, tool execution, storage and environment resources, and necessary human review.
This measure must be considered alongside delivery quality and latency. Counting low-quality results as completed tasks can make cost efficiency appear better than it is.
Post-training also requires investment. Environment construction, trajectory generation, reward design, and training-stability validation all consume resources. Keeping the base model unchanged does not make an upgrade inexpensive; it changes the cost structure.
8. A Staged Upgrade Process Grounded in Failure Analysis
Stage 1: Establish a Business Baseline
Run representative tasks with the current model. Record success rates, latency, costs, and failure categories.
Stage 2: Fix System-Level Problems First
If task descriptions are ambiguous, tool feedback is confusing, or permissions are poorly configured, improve the system design before attributing every failure to the model.
Stage 3: Target Recurring Behavioral Failures with Post-Training
Training data should include both successful and failed trajectories. Use independent tasks to verify that improvements transfer beyond the training environments.
Stage 4: Identify Foundational Bottlenecks
If gains from strategy optimization plateau while basic comprehension problems persist, assess whether a base model upgrade is necessary.
Stage 5: Roll Out Gradually and Monitor Continuously
Retain approval requirements for high-risk operations and provide rollback paths for irreversible changes. Include production failures in subsequent analysis, but do not feed them directly into training without screening.
Conclusion: Both Paths Should Serve the Same Goal
Post-training focuses on organizing existing capabilities into more effective actions. Scaling or rebuilding the base model focuses on improving the foundation of those capabilities. Both have value, costs, and limits.
For developers and enterprises, the priority is not to prove that one approach is always stronger. It is to identify the current bottleneck: missing knowledge and understanding, or insufficient planning, execution, and verification.
Compare real tasks under consistent budgets, use failure analysis to choose the upgrade direction, and measure cost-effectiveness through accepted deliverables. That is how model capability improvements become reliable engineering decisions.
