Evaluating Frontier LLMs: Programming and Cybersecurity Capabilities
This article explores the shift in Large Language Model (LLM) development from parameter scaling to post-training optimization. It examines how techniques like Mixture of Experts (MoE) and reinforcement learning enable smaller models to achieve competitive performance. Furthermore, it provides a framework for evaluating LLM programming capabilities through long-horizon agentic tasks, alongside a discussion on the dual-use nature of model cybersecurity skills. Finally, it offers practical guidance for development teams to build robust internal evaluation systems and select models based on real-world task requirements.
Evaluating Frontier LLMs: Programming and Cybersecurity Capabilities
I. From Parameter Competition to Post-Training Competition
Over the past few years, the capability enhancement of Large Language Models (LLMs) primarily relied on expanding parameter sizes, increasing training data, and boosting compute resources. This trend is often referred to as the Scaling Law. Recent practices, however, show that models with relatively fewer parameters can achieve performance close to or even exceeding that of larger models on specific tasks through more refined post-training workflows. This indicates that model capabilities are derived not only from pre-training scale but also from data quality, training objectives, and reinforcement learning strategies during the post-training phase.
When discussing this phenomenon, two issues must be distinguished. First, does the base architecture dictate the capability ceiling? Second, can post-training unlock more potential on a given architecture? These are not mutually exclusive. The architecture determines compute efficiency and capacity limits, while post-training dictates how the model allocates this capacity for specific tasks. Therefore, simply comparing parameter sizes cannot explain the performance gaps between different models.
For developers, the more practical questions are: Which model is more reliable for my tasks? Is the cost acceptable? Are the risks controllable? Answering these requires a systematic evaluation method rather than relying on a single score from marketing materials.
II. Understanding “Fewer Parameters, Equivalent Performance”
2.1 Mixture of Experts and Effective Parameters
Many recent LLMs adopt the Mixture of Experts (MoE) architecture. While the total parameter count of these models is massive, only a subset of expert networks is activated during each inference. Therefore, total parameters, activated parameters, and inference cost are three distinct metrics. When comparing two models, looking solely at total parameters can easily overestimate or underestimate actual inference overhead.
2.2 Primary Post-Training Methods
Post-training typically involves the following methods:
- Supervised Fine-Tuning (SFT): Training the model with high-quality instructions and demonstration data to follow formats and task requirements.
- Preference Alignment: Using human or model-generated preference data to make outputs better align with human expectations.
- Reinforcement Learning with Verifiable Rewards (RLVR): Using objective results, such as whether code passes tests or math answers are correct, directly as reward signals. This method is particularly effective for programming and math tasks because the reward signals are objective and repeatable.
- Distillation: Training a smaller model using the outputs of a stronger model to transfer capabilities to a smaller parameter scale.
The effectiveness of these methods heavily depends on data construction. If the training tasks overlap significantly with the evaluation tasks, the scores will be artificially inflated. Therefore, when assessing post-training gains, it is necessary to check for data contamination between training data and evaluation sets.
2.3 A Rational View on “Small Models Have No Bottlenecks”
The performance improvements of small models in specific scenarios demonstrate that the marginal returns of post-training are still substantial. However, this does not mean parameter size is no longer important. For tasks requiring broad knowledge, complex reasoning chains, or long-context memory, parameter capacity still limits capability. The reasonable conclusion is: model selection should be tiered by task type rather than pursuing a single “strongest model.”
III. Evaluating Programming Capabilities: From Single-Turn Generation to Long-Horizon Tasks
3.1 Limitations of Single-Turn Code Generation
Early programming evaluations primarily focused on whether a model could write a snippet of code based on function specifications to pass unit tests. These tasks are small in scale, short in context, and easy to judge. However, real-world development issues often span multiple files, requiring an understanding of existing code structures, locating problems, modifying, running tests, and iterating based on errors.
3.2 Characteristics of Long-Horizon Agentic Tasks
Long-horizon agentic tasks require the model to perform multi-step operations within a loop: reading code, making plans, calling tools, observing results, and correcting strategies until the task is complete or the step limit is reached. When evaluating these tasks, attention should be paid to the following dimensions:
- Resolve Rate: The proportion of tasks that ultimately pass validation in a given environment.
- Step Efficiency: The average number of tool calls used to complete a task.
- Cost: The inference cost consumed per successful task, rather than the unit price per call.
- Stability: The variance in results across multiple runs of the same task.
- Failure Modes: Whether the model misunderstands requirements, modifies the wrong file, or gets stuck in a loop.
Among these, cost and stability are often overlooked. A model with a slightly higher resolve rate but double the cost may not necessarily be the more cost-effective choice in a real project.
3.3 A Minimal Evaluation Example
The following code demonstrates how to calculate basic metrics for a single evaluation. It is independent of any specific model or platform and can be applied to the evaluation logs of any agentic programming task.
from dataclasses import dataclassfrom statistics import mean@dataclassclass TaskResult:task_id: strpassed: boolsteps: intcost_usd: floatdef solve_rate(results: list[TaskResult]) -> float:"""Resolve rate: The proportion of tasks that passed validation."""if not results:return 0.0return sum(r.passed for r in results) / len(results)def cost_per_solved(results: list[TaskResult]) -> float:"""Average cost per successful task, including costs from failed tasks."""solved = [r for r in results if r.passed]if not solved:return float("inf")return sum(r.cost_usd for r in results) / len(solved)def avg_steps_on_solved(results: list[TaskResult]) -> float:"""Average steps for successful tasks, used to measure execution efficiency."""solved = [r.steps for r in results if r.passed]return mean(solved) if solved else 0.0
Note that the denominator of cost_per_solved only counts successful tasks, but the numerator includes the costs of all tasks. This calculation reflects the real cost where failed attempts are also billed.
IV. Cybersecurity Capabilities: Opportunities and Risks
4.1 Value in Defensive Scenarios
In defensive work such as code auditing, dependency risk analysis, security configuration checks, and log anomaly analysis, models can assist security engineers in quickly scanning large volumes of code, highlighting suspicious areas, and explaining their causes. In these scenarios, the model’s value lies primarily in shortening manual screening time, not replacing professional judgment.
4.2 Issues Brought by Dual-Use
The same capabilities pose obvious risks if used on unauthorized targets. Therefore, when discussing a model’s security capabilities, evaluation and usage scenarios should be strictly limited to authorized scopes. For enterprises, the following points require attention:
- Whether model outputs will leak sensitive information, such as internal code, keys, or customer data.
- Whether tool calling permissions follow the principle of least privilege.
- Whether operations are executed in isolated environments with complete audit logs retained.
- Whether high-risk operations (e.g., modifying production configurations, deleting data) require manual confirmation.
4.3 Considerations When Evaluating Security Capabilities
When evaluating security capabilities, public teaching labs, authorized testing environments, or enterprise-built vulnerability reproduction platforms should be used. Evaluation results should report the detection rate, false positive rate, and manual review cost, rather than simply “how many issues were found.” Too many false positives will exhaust the security team and actually reduce overall efficiency.
V. Building Your Own Evaluation Framework
Public leaderboards can provide references but cannot directly replace internal evaluations. The following is a relatively sound approach:
- Build Internal Task Sets: Extract real tasks from historical tickets, bug records, and code reviews, covering the common languages, frameworks, and module types used by your team.
- Control Data Contamination: Confirm that evaluation tasks have not appeared in the model’s training data. If this cannot be confirmed, prioritize using recently generated new tasks.
- Multiple Runs and Averaging: Agentic tasks involve randomness, making single results unreliable. It is recommended to run each task at least three to five times and report the variance.
- Calculate Confidence Intervals: When the scores of two models differ by only one or two percentage points, use the bootstrap method to estimate confidence intervals to determine if the difference is significant.
- Manual Spot-Checking: Sample and manually review auto-validated results to check if tests were bypassed or only surface-level changes were made.
The basic idea of the bootstrap method is to perform resampling with replacement on the original results, calculate the resolve rate multiple times, and take the quantiles of the distribution as interval estimates. This method does not rely on strict distribution assumptions and is suitable for evaluation scenarios with limited sample sizes.
VI. Implications for Development Teams
First, model selection should be tiered by task. Simple code completion, documentation generation, and complex refactoring have different requirements for model capabilities. Different scales of models can be selected respectively to balance performance and cost.
Second, focus on end-to-end metrics. The ultimate focus should be on the delivery cycle, defect rate, and manual rework, rather than the model’s score on a single benchmark.
Third, security governance must be proactive. Regardless of model capabilities, mechanisms for permission control, operation auditing, and sensitive information filtering should be established. The stronger the capability, the higher the demand for governance.
Fourth, maintain continuous evaluation. Model versions are updated frequently, and evaluation should not be a one-time task. It is recommended to include evaluation sets and scripts in version control for automated regression after every model update.
While advancements in model capabilities are noteworthy, the most reliable basis for determining whether a model is suitable for your team remains reproducible results on real tasks.
