LLM Security Evaluation: The Truth About Recall and Stability
This article examines a public benchmark of 32 cybersecurity reasoning tasks that consumed roughly 11.7 billion inference tokens across three independent rounds. It explains why pooled recall systematically overstates model capability, why stable recall matters more for security workflows, and how the cost gap between the top two models changes the selection decision. Readers will find a four-dimension evaluation framework, sample evaluation pseudocode, and practical engineering techniques for improving stability.
1. Background and Key Findings
In a public evaluation covering 32 cybersecurity reasoning tasks, roughly 11.7 billion inference tokens were consumed across three independent rounds of testing on several general-purpose LLMs and reasoning-enhanced models. The results show two phenomena that look contradictory but are actually consistent:
- One reasoning-enhanced model achieved the highest pooled recall at 28/32, ahead of other frontier models (generally 25–26/32).
- The same model was unremarkable on a single run, hitting only 17 tasks in the first round, with just 10 tasks hit in all three rounds (stable hits).
- A general-purpose model’s production release reached 25/32 recall, only one task behind the leader, at a significantly lower inference cost (about 69.8% lower).
What deserves attention here is not the ranking but the evaluation metric itself: pooled recall measures the ceiling of capability, while stable hit rate measures engineering usability. The wider the gap between them, the higher the deployment risk.
2. Why Pooled Recall Systematically Overstates Capability
Pooled recall counts a task as hit if the model finds the target in any one of N independent attempts. In set terms:
Hit_pooled = R1 ∪ R2 ∪ R3Hit_stable = R1 ∩ R2 ∩ R3
A union is monotonically non-decreasing, so more rounds almost always produce a higher pooled score. As a result:
- Round amplification: going from 1 round to 3 rounds almost inevitably raises pooled recall, and rankings get reshuffled by luck variance.
- Hidden variance: the 11-task gap between 17 in the first round and 28 pooled is essentially sampling variance, not new knowledge.
- Misleading decisions: selecting models by pooled score leads teams to overestimate what the system will produce in real single-call scenarios.
In production, most calls are single-shot, with no retries and a latency budget. Stable hit rate (10/32) is therefore closer to production reality than pooled recall (28/32).
3. Why Stability Is the First-Order Metric for Security
Cybersecurity analysis tasks are highly adversarial and context-dependent: vulnerability samples, attack chains, and configuration flaws often have only one correct localization. The cost of errors is asymmetric—false negatives leave real risk in place, while false positives cause alert fatigue. Poor stability means:
- Conclusions drift across repeated runs on the same input, making automation pipelines impossible.
- Extra retries and voting mechanisms are required, multiplying cost and latency.
- Audits and compliance cannot reproduce conclusions, making a trustworthy evidence chain hard to build.
Engineering teams should therefore use a dual metric of stable recall plus confidence rather than peak recall alone.
4. The Cost Dimension: What One Task of Difference Is Worth
The leader and the runner-up differ by only one task (28 vs 25), yet their costs differ by about 69.8%. Let C be the average inference cost per task:
Cost gap ≈ 0.698 × C_baselineMarginal cost per additional hit = ΔCost / ΔHit
When ΔHit = 3 and ΔCost is close to 70%, the marginal cost is extremely high. For scenarios requiring 24/7 scanning and first-pass filtering of massive sample volumes, cost sensitivity far outweighs leaderboard position. A general-purpose model with near-frontier capability at significantly lower cost is often the better choice.
5. A Practical Selection and Evaluation Framework
Teams should build their own four-dimension evaluation matrix instead of relying on a single public leaderboard:
- Capability: stable hit rate, pooled recall, false positive rate.
- Consistency: cross-round variance, reproducibility of conclusions.
- Cost: token consumption per task, cost per hit.
- Engineering: latency distribution (P50/P95), context length limit, reliability of structured output.
Illustrative evaluation pseudocode:
def evaluate(model, tasks, rounds=3):stable, pooled, costs = 0, 0, []for t in tasks:hits = []for _ in range(rounds):out, cost = model.run(t) # single callhits.append(check(out, t.gold))costs.append(cost)pooled += int(any(hits))stable += int(all(hits))return {"stable_recall": stable / len(tasks),"pooled_recall": pooled / len(tasks),"avg_cost": sum(costs) / len(costs),}
6. Engineering Techniques for Improving Stability
- Self-consistency voting: sample multiple times and take the majority conclusion, trading a small amount of cost for lower variance.
- Structured constrained output: enforce JSON or table fields to reduce parsing drift.
- Retrieval augmentation: inject knowledge bases, historical cases, and configuration baselines into the context to limit free-form model behavior.
- Tiered routing: use a low-cost general-purpose model for first-pass screening and a high-capability model only to review suspicious samples.
- Continuous regression: keep a fixed gold set and run stability regression on every version update to prevent capability regression.
On the cloud, these can be combined with object storage for samples and gold sets, a message queue for peak shaving, a container platform for inference services, and logging plus monitoring with alerts to track P95 latency and cost drift.
7. Conclusion
Pooled recall answers “how good can the model be at its best,” while stable hit rate answers “how reliable is the model every day.” The 11.7-billion-token measurement is a reminder that the leaderboard winner and the best engineering choice are often not the same. Selection should center on stable hits, cost per hit, latency, and reproducibility, treating pooled scores only as a reference for the capability ceiling.
