LLM Security Detection Benchmarks: Recall and Consistency After Tens of Billions of Tokens
A large-scale LLM evaluation for security detection spent more than 10 billion inference tokens and showed that the top pooled recall score can hide weak single-run results and poor consistency. This article explains single-run, pooled, and stable recall, why pooled recall can mislead model selection, and how security teams can weigh cost, latency, and reliability.
LLM Security Detection Benchmarks: Recall and Consistency After Tens of Billions of Tokens
1. Why security workloads are a stress test for LLMs
Security detection tasks—such as vulnerability discovery, malicious-sample identification, threat-intelligence correlation, and log anomaly analysis—place stricter demands on large language models than general question answering:
- Recall comes first. Missing a real vulnerability or threat is far more costly than raising a few extra false positives.
- Context is long and noisy. The input is often a large volume of logs, code snippets, or traffic features, and the density of useful signal is low.
- Judgments are stochastic. The same model can reach different conclusions on the same input when the sampling temperature or conversation turn changes.
A recently circulated industry evaluation report says a security vendor consumed more than 10 billion tokens of inference in one large model comparison. That token-heavy test produced a data point worth examining closely: the top-ranked model had the highest pooled recall across three runs, but its single-run result was only average and its stability was weak. The methodology behind that ranking matters more than the ranking itself.
2. What the evaluation data shows
Three facts stand out from the publicly disclosed results. Specific figures follow the original report; the discussion here stays at that level of abstraction:
- Pooled recall led the field. After the results of three runs were merged, the best-performing model hit 28 of 32 targets, ahead of several other frontier models at 25–26 of 32.
- Single-run recall was ordinary. On its first run, that model found only 17 targets, well below its pooled score.
- Consistency was weak. Only 10 targets were hit in all three runs, so much of the high score depended on the union of repeated attempts.
At the same time, a model from an open-source path reached 25 of 32 and stayed within one or two targets of the strongest closed model, while inference cost was about 70% lower. The frontier gap is narrowing, and the cost-performance curve is getting steep.
3. Why pooled recall can be misleading
3.1 Three recall metrics
Security evaluations commonly use three statistical views:
| Metric | Definition | What it reflects |
|---|---|---|
| Single-run recall | Targets hit in one run | Immediate capability |
| Pooled recall | Union of targets hit across multiple runs | Capability ceiling |
| Stable recall | Targets hit in every run | Reliability |
A simple illustration:
runs = [{"v1", "v2", "v3", "v5", ...}, # targets hit in the first run{"v2", "v4", "v5", "v8", ...}, # second run{"v1", "v2", "v6", "v9", ...}, # third run]pooled = set().union(*runs) # pooled recall: unionstable = set.intersection(*runs) # stable recall: intersection
If pooled is large and stable is small, the model is partly getting lucky: each run finds something, but not the same something.
3.2 Which metric production security operations actually need
In a real security operations center (SOC):
- Alert triage needs high single-run recall, because an alert typically passes through the pipeline once.
- Periodic inspection scans can use pooled logic to some extent: multiple scans are unioned, then analysts review and narrow the set.
- Automated response and blocking require high consistency. Otherwise policies cannot be stabilized, and swings in false positives and false negatives erode operator trust.
A model that ranks first on pooled recall is therefore not automatically the best choice for an automated pipeline. A model with slightly lower single-run recall but better consistency is often easier to deploy in practice.
4. How to avoid being misled by a single metric
4.1 Build a multi-dimensional evaluation matrix
For security tasks, cover at least four dimensions:
- Single-run recall and precision (baseline performance)
- Consistency across runs (repeatability, which can be quantified with the Jaccard similarity of hit sets)
- Cost efficiency (inference cost per correctly recovered target)
- Latency and throughput (whether real-time SLAs can be met)
Cost efficiency can be simplified as:
cost per stable detection = total inference tokens consumed × unit price / number of stably hit targets
Re-ranked on this basis, a high-recall but high-variance model and a slightly lower-recall model that is stable and cheaper can trade places completely.
4.2 Offset model randomness in the architecture
When consistency is insufficient, system design can compensate:
- Multi-sample voting. Sample the same input 3–5 times in parallel and take the majority result to improve stability.
- Deduplication and clustering. Semantically cluster alerts from repeated scans and merge them for review. This approximates pooled recall while controlling analyst cost.
- Staged pipelines. Use a smaller, more consistent model for first-pass filtering and a higher-recall larger model for deeper analysis, balancing cost and coverage.
4.3 Open-source and lower-cost models are closing the gap
One notable signal in this evaluation is that the recall gap between lower-cost models and top closed models has shrunk to single digits. That implies:
- For smaller teams with limited budgets, open-source or lower-cost options can already be production-usable.
- Selection should weigh integration cost, private-deployment capability, and data-compliance requirements more than a race for first place on a leaderboard.
- Cloud-hosted model services—calling LLM inference through an intelligent cloud platform—can spread the fixed cost of building a dedicated inference cluster.
5. Conclusion
The main value of spending more than 10 billion tokens is not a ranking. It is a lesson in evaluation design: in high-stakes security detection, the capability ceiling (pooled recall) and reliability (stable recall) must be measured separately. Engineering teams should match latency, cost, and consistency sensitivity to their own scenarios, build a multi-dimensional evaluation system, and use voting, clustering, and layered pipelines to play to each model’s strengths. Leaderboards will keep changing with new versions. A rigorous evaluation method is the advantage that lasts.
