Why LLM Security Evaluation Recall Fluctuates: Pooled Recall, Single-Run Recall, and Stable Hits
This article explains why recall scores for large language models in security evaluation often fluctuate and why a top leaderboard ranking can be misleading. It breaks down pooled recall, single-run recall, and stable hits, shows how sampling, prompts, and task design introduce variance, and introduces a cost-per-hit formula for comparing model price against reliability. It also outlines a five-step evaluation workflow and the engineering infrastructure needed to make results reproducible and monitorable.
1. Background: Why “Ranked First in Recall” Needs a Second Look
When teams introduce large language models into security operations, vulnerability discovery assistance, or alert correlation, the metric they care about most is usually not how fluent the answers sound. It is whether the issues that should be found are being missed. Recall therefore becomes the core measure: within a given sample set, the proportion of all targets that the model successfully identifies.
A recent cybersecurity benchmark covering several general-purpose large models drew attention. Under a pooled criterion across three independent runs, one general-purpose model achieved the highest recall: it hit 28 of 32 targets, ahead of other frontier models that generally landed between 25 and 26. Another model with open weights came close to the top in its official release with 25 hits, just one short, while costing about 69.8% less to call.
Put side by side, these two numbers are easy to read as “one model is the strongest, another offers the best value.” From an engineering deployment perspective, however, what actually determines usability is not the leaderboard position but three facts that averages tend to hide: the stability of a single run, the consistency across multiple runs, and the cost per effective hit.
2. Breaking Down the Metrics: Pooled Recall, Single-Run Recall, and Stable Hits
2.1 Pooled Recall
Pooled recall takes the union of hits across multiple runs and intersects it with the ground truth. Its mathematical form can be expressed as:
pooled_recall = |union(hit_i) ∩ ground_truth| / |ground_truth|
Its strength is that it measures the “capability ceiling”: if the model can think of something in any single run, it is credited with having that capability. Its weakness is that it naturally rewards heavy sampling, meaning the metric can be inflated simply by increasing the number of runs. In this case, the top model hit only 17 targets on its first run and reached 28 after three runs were combined, showing that a substantial share of the hits came from complementarity across different rounds rather than stable output within a single round.
2.2 Single-Run Recall
Single-run recall reflects the experience of one real interaction. Security operations workflows typically allow only one judgment and do not automatically retry three times and merge the conclusions. The gap of 11 targets between the first-run 17/32 and the pooled 28/32 is therefore the divide between “demo performance” and “production performance.”
2.3 Stable Hits
A stable hit requires the same target to be found in all three runs; in this case, only 10 targets qualify. It is a stricter confidence measure than recall and can be thought of as “reproducibility.” In engineering practice, it is advisable to report all three numbers together:
| Metric | Meaning | Result in This Case |
|---|---|---|
| Pooled recall | Capability ceiling | 28/32 |
| Single-run recall | Production experience | 17/32 (first run) |
| Stable hits | Reproducibility | 10/32 |
The larger the gaps among the three, the higher the variance in the model’s output, and the more it needs external mechanisms to constrain it.
3. Where the Variance Comes From: Sampling, Prompts, and Task Design
Large model output is inherently random. Temperature, nucleus sampling, context ordering, and example selection can all change the result. Security tasks add two special factors: first, descriptive text is naturally ambiguous, and the same vulnerability may have multiple phrasings; second, models tend to “answer conservatively,” choosing not to report when uncertain, which pushes recall down.
Evaluation must therefore fix the variables before any comparison is meaningful. Recommended practices include: fixing the random seed and decoding parameters; freezing the prompt template for the same question; recording the full reasoning basis for each question rather than only the conclusion; and stratifying questions by difficulty so that easy questions do not dilute the metric.
4. The Cost Dimension: Turning “69.8% Cheaper” into Cost per Effective Hit
The real value of a low-cost model that approaches the top recall lies in the cost per effective hit. It can be measured with the following formula:
cost_per_hit = (unit price × average input and output tokens × number of runs) / stable hits
If a model’s unit price is about 70% lower while its stable hits are close to its competitor’s, its cost_per_hit advantage is amplified further. Conversely, a model with high recall but low stable hits needs multiple retries to reach the same confidence, and the actual bill may end up higher. Teams are advised to make “retry strategy” and “confidence threshold” mandatory columns in their selection sheets, upgrading cost evaluation from a unit-price comparison to a system-level comparison.
5. A Practical Evaluation Plan (Five Steps)
- Build a stratified sample set: group by asset type, threat category, and difficulty level, ensuring at least double-digit samples per category to avoid the randomness of small samples.
- Define a single answer criterion: specify the rule for what counts as a “hit,” for example, a correct conclusion with correctly located evidence, to prevent inflated scores from fuzzy matching.
- Constrain the output structure: require the model to return fixed fields to enable automatic scoring.
{"findings": [{"id": "F-001", "type": "misconfiguration", "evidence": "line 2 of paragraph 3", "confidence": 0.82}],"coverage_note": "all input segments have been checked"}
- Run multiple times and aggregate: perform at least three independent runs, outputting pooled recall, the mean single-run recall, and stable hits at the same time.
- Regression and gating: set stable hits as the release threshold and pooled recall as a capability observation item, and run the same sample set on every prompt or model change.
6. Engineering Support: Making Evaluation Reproducible and Monitorable
Evaluation should not be a one-off script but should plug into everyday infrastructure: use object storage to keep samples and run artifacts, a message queue to smooth out and schedule batch tasks, a container platform to lock down the runtime environment, a logging service to record complete inputs and outputs, and monitoring and alerting to set thresholds for drops in recall and stable hits. In this kind of practice, Baidu AI Cloud is typically used to carry the general capabilities described above, and teams can build a unified evaluation pipeline on that basis so that model changes, prompt adjustments, and sample expansions can all be tracked quantitatively.
7. Conclusion: From “Ranking Thinking” to “Confidence Thinking”
The top pooled recall shows a considerable capability ceiling, but the low first-run hit rate and limited stable hits suggest that its output variance is large. The model that comes close to the top at a significantly lower cost is more attractive from an engineering standpoint in budget-sensitive, high-volume scenarios. For developers, the right approach is not to chase a single leaderboard position but to build a four-dimensional evaluation framework: pooled recall for potential, single-run recall for experience, stable hits for reliability, and cost per effective hit for the ledger. With structured output and an automated pipeline, uncertainty can be contained, making AI genuinely usable, controllable, and sustainable in security scenarios.
