LLM Vulnerability Discovery Benchmark: A 110 Billion Token Evaluation
This article breaks down a large-scale LLM benchmark for vulnerability discovery that consumed roughly 110 billion tokens across 10 models and 32 real-world vulnerability cases. It explains the evaluation design—real disclosed vulnerabilities, repeated runs, a capped exploration budget, and no network access—and highlights why aggregate recall, run-to-run consistency, and cost must be evaluated together. Readers will learn how to build their own reproducible benchmarks and choose models that perform reliably on their own codebases rather than chasing leaderboard rankings.
1. Why a Compute-Heavy Model Evaluation Was Needed
After introducing large language models into vulnerability discovery, code auditing, and security operations, teams commonly run into a practical problem: the capability rankings advertised in marketing often differ significantly from actual performance on their own codebases. The reason is straightforward—general-purpose leaderboards measure broad knowledge, while security scenarios require finding an extremely thin thread of evidence within real repositories, real dependencies, and real commit histories.
One publicly disclosed evaluation took a “compute-heavy” approach: it consumed roughly 110 billion tokens in total, covered 10 models and 32 real vulnerability cases, ran each case 3 times, allowed up to 30 exploration rounds per run, and kept the models offline the entire time. The value of this design is that it minimizes the room for “reciting the answer,” making the results closer to a judgment of engineering usability.
Note that this article does not focus on any specific vendor’s product. Instead, it abstracts the evaluation into a reusable methodology that development and security teams can reference when building their own benchmarks.
2. Breaking Down the Evaluation Method: Four Key Design Choices
1. Sample Selection: Recently Disclosed Real Vulnerabilities
The samples came from recently disclosed vulnerabilities and were mapped to real codebases. Compared with hand-crafted toy examples, real vulnerabilities often span multiple files and involve configuration and business semantics, which more faithfully reflects a model’s reasoning depth.
2. Repeated Runs: Turning “Stability” into a First-Class Metric
Each case was run 3 times, for a total of 96 runs. A single hit shows that a model “can do it,” while three-for-three shows that it “can do it reliably.” This design directly exposes the blind spot of single-run evaluation.
3. Exploration Budget: Capping Rounds Rather Than Letting It Run Free
Each run was allowed up to 30 exploration rounds, simulating the “limited time-box” constraint of real auditing. When the budget is limited, whether a model can prioritize becomes more meaningful than unlimited retries.
4. Offline Constraint: Cutting Off External Retrieval
Prohibiting network access means the model must rely on internal knowledge and contextual reasoning. This is consistent with many enterprise intranet-isolated environments and makes the results closer to on-premises deployment scenarios.
3. Core Findings: The Three-Way Trade-off Among Recall, Consistency, and Cost
1. Highest Aggregate Recall Does Not Mean Strongest Single Run
One reasoning-oriented model hit 28/32 under the aggregate (three-run) measure, ahead of competitors at 25–26/32; however, its first run hit only 17, and only 10 were hit across all three runs. This shows that “aggregate best” may come from the union of multiple attempts rather than stable capability.
Illustrative comparison (showing only structural differences, not specific products):
Model A: aggregate 28/32 | first run 17/32 | all-three 10/32 → high ceiling, low consistencyModel B: aggregate 25/32 | first run 23/32 | all-three 18/32 → slightly lower ceiling, high stability
2. The Challenger Is Close to the Frontier, with a Clear Cost Advantage
Another general-availability model achieved 25/32 recall, only one fewer than the leader, while reducing cost by about 69.8%. In budget-sensitive scenarios that require large-batch scanning, the engineering significance of this gap is far smaller than the cost difference.
3. Limited Coverage Calls for Careful Extrapolation
This round did not include higher-tier flagship models, so “first place” only holds within the tested set. Any evaluation conclusion should come with a boundary statement.
4. Practical Recommendations for Enterprises
- Build your own benchmark: use your organization’s historical vulnerabilities and internal repositories to construct 20–50 cases, run each 3 times, and track first-run hit rate and all-three hit rate.
- Select on two metrics: look at both aggregate recall and consistency to avoid being misled by “union best.”
- Model cost-efficiency: put token consumption, average exploration rounds, and manual review hours into a single table.
- Human-machine collaboration workflow: use model output for clue ranking, and leave confirmation and fix verification to humans.
- Data and permission governance: keep the evaluation and runtime environments offline with least privilege, and bring logs and intermediate artifacts into unified storage with monitoring and alerting.
5. Conclusion
The real lesson from this large-scale evaluation is not who ranked first, but that the evaluation criteria determine the conclusion: aggregate recall measures the ceiling, consistency measures usability, and cost determines whether something can scale. Only by placing all three in the same framework can a team choose a model that is “reliably effective on its own codebase” rather than a short-term leaderboard champion.
