LLM Security Evaluation: The Truth About Recall Rates
This article explains why a top pooled recall rate does not guarantee real-world performance in LLM security evaluation. It breaks down the difference between pooled recall, single-run recall, stable hit rate, and consistency, and shows how to design reproducible evaluation criteria covering sample sets, run counts, sampling parameters, tool conditions, and scoring rules. It also covers balancing effectiveness against cost, the limits of evaluation scope, and a practical checklist for adopting recall metrics in production.
1. Why “Ranked First in Recall” Does Not Equal Real-World Capability
In cybersecurity scenarios, one of the core metrics for evaluating LLMs is recall: given a batch of known risk samples or a task checklist, how many items the model can identify. The source material shows that one model found 28 out of 32 items under a pooled three-run criterion, higher than the 25 to 26 items found by several other participating models. However, its first run found only 17 items, and only 10 items were hit across all three runs. These numbers reveal a common misconception: a high pooled recall does not mean a single execution is reliable.
Pooled recall merges the results of multiple runs, counting an item as a hit if any run finds it. Single-run recall only counts what you actually get in that one run. The larger the gap between the two, the more the results depend on sampling randomness. For security operations, what truly affects delivery quality is single-run performance and stability, not the idea that “if you run it enough times, one run will eventually hit.”
A simplified formula helps illustrate this:
Pooled recall = size of the union of hit sets across multiple runs / total number of samplesSingle-run recall = size of the hit set in a single run / total number of samplesStable hit rate = number of samples hit in every run / total number of samplesConsistency ≈ stable hit count / pooled hit count
In the example above, consistency is about 10/28, meaning nearly two-thirds of the pooled hits do not reproduce reliably. If you put this into an automated pipeline, false negatives will drift between batches, making it hard to commit to a service level.
2. Evaluation Design: Making Results Reproducible and Comparable
For evaluation conclusions to hold up, fix the criteria first. At a minimum, specify the following:
- Sample set: cover different risk categories, difficulty levels, and context lengths, with ground-truth answers labeled;
- Number of runs: single-run results fluctuate, so three runs is the minimum observation window; add more rounds for critical scenarios;
- Temperature and sampling parameters: record and fix them, otherwise the source of fluctuation cannot be explained;
- Prompt and tool conditions: whether retrieval is allowed, whether code execution is provided, and how the context window is trimmed;
- Scoring rules: how a hit is determined, whether partial hits exist, and how duplicates are handled.
Comparing different models only makes sense under the same criteria. If one model achieves high pooled recall under a loose prompt while another achieves a close single-run recall under a strict prompt, the latter usually has higher engineering value.
3. Stable Hits and Consistency: The Underrated Metrics
Security tasks often require “catching the critical items every time.” The stable hit rate measures the lower bound, while pooled recall measures the upper bound. A team that only watches the upper bound tends to overestimate the degree of automation; a team that only watches the lower bound may overlook the potential of a good model. A more practical approach is to observe three curves at the same time:
- The distribution of single-run recall (minimum, median, maximum);
- The marginal gain of pooled recall as the number of runs increases;
- Whether the stable hit set covers high-risk items.
If adding another run yields only a small increase in hits, the model’s capability is nearing saturation, and more rounds just consume compute. If the increase is significant, randomness is too high, and you need to converge it by lowering the temperature, improving prompts, adding retrieval, or using step-by-step reasoning.
4. Balancing Effectiveness and Cost: Near-Frontier Performance Without the Frontier Price
The source material also mentions that another generally available model achieved a recall of 25 out of 32 items, only one item behind the top performer, while costing about 70% less. This suggests that in most enterprise scenarios, chasing the last one or two percentage points of recall may not be worth it.
Cost evaluation should include three parts: the cost per inference, the average number of runs needed to reach the target recall, and the cost of human review. A rough estimate can follow this approach:
Cost per effective hit ≈ (cost per run × average number of runs + human review unit price × review volume) / number of effective hits
When the high-recall model needs more runs to reproduce results reliably while the low-cost model is relatively stable in a single run, the latter may have a lower cost per effective hit. A common engineering compromise is tiering: use the low-cost model for full-volume initial screening, and use the higher-capability model only to review high-risk or low-confidence samples.
5. Evaluation Boundaries and the Scope of Conclusions
Every evaluation has boundaries. The source material explicitly states that this evaluation did not cover models at higher capability levels, so “ranked first in recall” only holds for this set of participating models and this set of criteria. When reading the conclusions, confirm three points: whether the participating models are complete, whether the prompt and tool conditions are consistent, and whether the samples cover your real scenarios. If any one is missing, the transferability of the conclusion is reduced.
6. Implementation Checklist
- Build a small internal gold-standard set, align on criteria first, then discuss model selection;
- Report all three metric types—single-run, pooled, and stable hits—along with the number of runs and parameters;
- Replace simple unit-price comparison with cost per effective hit;
- Adopt tiered invocation and confidence routing to control total cost;
- Integrate evaluation into continuous integration to monitor recall drift;
- Carry this on the cloud with general-purpose capabilities: object storage for samples and results, a message queue to decouple tasks, a container platform to host inference services, and logging and monitoring services to track fluctuations.
In summary, the recall ranking is only the starting point. What truly determines the effectiveness of security analysis automation is single-run reliability, cross-run consistency, and the overall balance between effectiveness and cost. Only by making the evaluation criteria solid can you turn leaderboard numbers into deliverable engineering capability.
