Security LLM Evaluation: Balancing Recall and Cost Across 11.7 Billion Tokens

    A public evaluation using 32 real-world vulnerability cases and approximately 11.7 billion tokens highlights the trade-offs between security LLM recall, consistency, and cost. This article explains how to interpret single-run, pooled, and stable recall, where the benchmark’s conclusions have limits, and how security teams can apply the findings through internal benchmarks, tiered model routing, and human review.

    Security LLM Evaluation: Balancing Recall and Cost Across 11.7 Billion Tokens

    1. Why Security LLMs Need Token-Intensive Evaluation

    Large language models are increasingly used in cybersecurity for three common tasks: identifying potential vulnerabilities during code audits, summarizing context for alert triage, and mapping attack surfaces to support penetration testing. Unlike general question answering, these tasks often require multiple rounds of exploration across large volumes of code, configuration files, logs, and business context. Token consumption can therefore be much higher than in ordinary conversations.

    Evaluating a security model requires more than checking whether it can answer a single question correctly. At least four dimensions affect its practical usefulness: recall, consistency, cost efficiency, and verifiability.

    One public evaluation consumed approximately 11.7 billion tokens across 32 recently disclosed, real-world vulnerability cases. Ten models participated, with each model evaluated three times on every case—96 case-level runs per model. Each run allowed up to 30 rounds of exploration, without internet access.

    The purpose of this design was to place models under constraints closer to real security analysis, rather than allowing them to reproduce answers memorized during training.

    The results should not be treated as a definitive model-selection leaderboard. They are a sample of model capabilities and limitations. For developers and security teams, the more useful questions are how to interpret recall, identify consistency risks, and translate benchmark findings into workable engineering practices.

    2. Benchmark Design: Real Cases, Repeated Runs, and No Internet Access

    2.1 Recent Vulnerabilities Help Reduce Training-Data Contamination

    The evaluation selected 32 recently disclosed vulnerabilities from real codebases. Training-data contamination is a particular concern in security benchmarks: when a vulnerability has been discussed extensively in public sources, a model may repeat an existing conclusion rather than independently analyze the code.

    Using recent cases and real repositories can help reduce this memorization effect, but it does not eliminate it.

    The sample size also matters. Thirty-two cases can provide directional signals, but they cannot cover every programming language, framework, vulnerability class, or application architecture. The results are therefore more useful for shaping an evaluation framework than for replacing an organization’s internal benchmark.

    2.2 Three Runs Reveal Consistency, Not Just Peak Performance

    Each model was run three times on each of the 32 cases, with up to 30 exploration rounds per run.

    Repeated testing is important because a major operational risk is not simply that a model misses a vulnerability, but that it finds the vulnerability in one run and misses it in another. A strong result from a single run may reflect prompt sensitivity, sampling randomness, or a favorable match between the model and the case. Three runs help expose these differences.

    At least three metrics should be distinguished:

    • Single-run recall: The number of cases detected in one run across the benchmark.
    • Pooled recall: The number of cases detected when results from all three runs are combined. A case counts as detected if any run finds it.
    • Stable detection count: The number of cases detected in all three runs, which better reflects predictable coverage.

    Pooled recall will generally be higher, but it answers a different question from single-run recall or stable detection.

    2.3 Offline Evaluation Reflects Controlled Environments

    Without internet access, models could not search for vulnerability advisories, patch notes, or public analyses during a run. This makes the task harder and resembles the constraints of internal networks, offline audits, and controlled sandboxes.

    The benchmark still simplifies real security work. In practice, analysts may also use internal knowledge bases, ticketing systems, asset inventories, and human expertise.

    A general evaluation workflow can be expressed as follows:

    1. for case in benchmark_cases:
    2. for run in range(3):
    3. context = build_context(case.code, case.metadata)
    4. result = model.explore(context, max_rounds=30, network=False)
    5. record(case.id, run, result.findings)
    6. pooled_hit = any_run_hit(case)
    7. stable_hit = all_runs_hit(case)
    8. compute(pooled_recall, single_run_recall, stable_recall, cost)

    The key point is that evaluation should separate single-run performance, pooled performance, and stable performance. Running a model once—or reporting only pooled recall—can give an incomplete picture of production reliability.

    3. Key Findings: Recall, Consistency, and Cost Diverge

    3.1 The Highest Pooled Recall Did Not Mean Strong Single-Run Reliability

    One participating model achieved the highest pooled recall: 28 out of 32 cases, compared with 25–26 out of 32 for several frontier models.

    That headline result is notable, but its other metrics deserve equal attention. The model found only 17 cases in its first run, and just 10 cases were detected in all three runs.

    In other words, combining three runs produced broad coverage, but individual runs varied substantially, and relatively few cases were detected consistently.

    This illustrates a common misinterpretation: pooled recall measures coverage after multiple attempts, not the usefulness of a single invocation.

    For systems that support retries, voting, or repeated sampling, pooled recall is relevant. For systems that require a single, low-latency response, single-run recall and stable detection are more important.

    3.2 A Production-Release Model Approached Frontier Recall at Lower Cost

    Another participating production-release model reached 25 out of 32 cases, just one fewer than the best-performing frontier model in the reported comparison, while costing approximately 69.8% less.

    This suggests that security model selection is not only about absolute capability. It is also about effective recall per unit of cost. For large-scale code scanning or batch alert triage, cost efficiency may determine whether a workflow can run routinely.

    However, lower model-call cost does not automatically mean lower total cost. Teams must also account for false-positive review, human validation, retries, context preparation, and infrastructure. A cheaper model that requires more attempts may deliver smaller overall savings than its invocation cost suggests.

    3.3 The Benchmark Did Not Cover Higher-Tier Models

    The evaluation did not test higher-tier models, so its results should not be interpreted as the upper limit of all available models.

    Model versions change quickly, and production releases may differ from prerelease versions. These findings are a snapshot of a specific sample, model set, and operating environment—not a permanent conclusion.

    4. Why Leading Recall Does Not Establish Production Readiness

    4.1 Pooled Recall Emphasizes the Benefits of Retrying

    If a model detects only some vulnerabilities in a single attempt, running it three times and taking the union of its findings naturally increases coverage.

    That is a valid approach for workflows designed around repeated sampling. It can also conceal single-run inconsistency.

    Security teams should report single-run recall, pooled recall, and stable detection together rather than base decisions on one metric.

    4.2 Stable Detection Better Reflects Operational Expectations

    Security operations require predictable coverage. A low stable detection count means that the same task may produce different findings across runs, increasing the burden on reviewers.

    For high-risk vulnerabilities, critical assets, and compliance audits, consistency may matter more than occasionally discovering an unusually complex issue.

    Stable detection is not a guarantee of reliability, but it provides a clearer view of repeatability than pooled recall alone.

    4.3 Cost Efficiency Should Be Measured Against Validated Findings

    Price per million tokens is not enough to assess the economics of a security workflow. A more useful measure is the total cost of identifying a valid vulnerability lead.

    That cost includes:

    • Model invocations
    • Context preparation
    • Retries
    • False-positive review
    • Human validation

    For batch workloads, a tiered approach can balance these costs: use a lower-cost model for initial screening, a more capable model for review, and deeper human analysis for high-risk cases.

    4.4 False Positives and Verifiability Matter Alongside Recall

    High recall accompanied by many false positives can quickly overwhelm a review team.

    The quality of supporting evidence directly affects whether a finding can be verified. Useful vulnerability reports should identify file locations, data-flow paths, triggering conditions, and remediation suggestions.

    A model with slightly lower recall but a clear evidence trail may be more suitable for production than one that reports additional findings that are difficult to validate.

    5. Turning Benchmark Results into Engineering Practices

    5.1 Build an Internal Benchmark

    External evaluations are useful references, but organizations should develop their own benchmark sets.

    Cases should cover the languages, frameworks, asset types, and vulnerability categories that matter to the organization, including recent real-world examples.

    Keep prompts, context-building methods, and run counts fixed during comparisons. Record single-run recall, pooled recall, and stable detections separately.

    5.2 Use Repeated Sampling and Voting Where Appropriate

    For tasks that permit retries, teams can use repeated sampling, voting, or merging of distinct findings.

    High-risk cases can receive additional runs, with each output retained and candidate findings consolidated through a rules engine. Lower-risk batch tasks should have explicit retry budgets to prevent uncontrolled cost growth.

    The retry strategy should match the workflow’s risk level and latency requirements rather than simply maximize the number of attempts.

    5.3 Route Tasks Across Screening, Review, and Deep Analysis

    A single model does not need to handle every stage.

    A three-tier workflow can separate:

    1. Initial screening: Use a lower-cost model to filter cases quickly.
    2. Review: Use a model with stronger consistency and better supporting evidence.
    3. Deep analysis: Apply more capable models and human expertise to high-risk assets.

    This structure provides a practical way to balance recall, consistency, and cost.

    5.4 Make Model Performance Observable

    Production systems should record token consumption, exploration rounds, detection counts, stable detections across repeated runs, human acceptance rates, and false-positive rates.

    Connecting model outputs to human review outcomes creates a feedback loop for refining model selection and prompting strategies. Without that feedback, benchmark scores remain disconnected from operational value.

    5.5 Retain Human Review and Security Controls

    Model output should not be treated as a definitive vulnerability finding.

    Human review, permission isolation, audit logging, and sensitive-data redaction should remain part of the workflow. For code auditing and penetration-testing support, models should operate in controlled environments to reduce unauthorized-access and data-handling risks.

    6. Limitations and Takeaways

    The evaluation offers a useful framework for examining security LLM recall, consistency, and cost through real vulnerability cases, repeated runs, offline constraints, and substantial token consumption.

    Its limitations remain significant:

    • Thirty-two cases provide limited coverage.
    • Model versions evolve rapidly.
    • Prompts and context preparation affect results.
    • Offline conditions differ from many enterprise workflows.
    • Reported costs may exclude substantial engineering and review expenses.

    The central conclusion is straightforward: security model selection should not be based on the highest recall figure alone.

    For single-response, low-latency workflows, prioritize single-run recall and stable detection. For workflows that support retries or voting, pooled recall is more informative. For large-scale, routine operation, cost efficiency and verifiability are equally important.

    External benchmarks are a starting point. Internal testing, tiered model routing, and a feedback loop grounded in human review provide a more reliable basis for deployment.