Understanding Recall in LLM Security Evaluation: Pooled, Single-Run, and Consistent Hit

    This article breaks down three key metrics used in large language model security evaluation—pooled recall, single-run recall, and consistent hit—and explains why consistency and cost efficiency often matter more than a one-time top score. It covers how to interpret evaluation results, methods for improving output stability, a simple cost-performance measure, and practical advice for building reproducible, comparable security evaluation pipelines.

    1. Why Security Scenarios Need a Separate Look at Recall

    In security analysis, models face massive volumes of alerts, logs, and code snippets, while genuinely valuable clues make up only a tiny fraction. Unlike general-purpose question answering, security tasks emphasize “not missing anything”: overlooking a single real attack chain can render every downstream response action meaningless. As a result, recall is usually prioritized over accuracy in security scenarios.

    The original evaluation surfaced a notable pattern: a general-purpose LLM covered 28 out of 32 preset security samples after three pooled runs, ranking first. Yet its first run alone hit only 17 samples, and just 10 samples were hit across all three runs. This shows that a high pooled recall does not mean the model reliably finds issues every time. For security operations, stability and repeatability often matter more than a one-off high score.

    2. Breaking Down the Metrics: Pooled Recall, Single-Run Recall, and Consistent Hit

    Interpreting evaluation results correctly requires separating three metrics:

    • Pooled Recall: the coverage ratio after merging and deduplicating results from multiple runs, reflecting the model’s “capability ceiling.”
    • Single-run Recall: the coverage ratio of a single inference pass, reflecting the real experience of everyday use.
    • Consistent Hit: the number of samples detected across all runs, reflecting output consistency and reliability.

    The statistical logic can be expressed schematically as:

    1. # Pseudocode: three recall definitions
    2. runs = [run_model(sample_set) for _ in range(3)]
    3. pooled = set().union(*runs) # pooled recall
    4. single = [len(r) for r in runs] # single-run recall
    5. stable = set.intersection(*runs) # consistent hit
    6. print(len(pooled), single, len(stable))

    The engineering implication is straightforward: pooled recall is suited to assessing whether a model has detection capability, while consistent hit is suited to assessing whether it can be integrated into an automated pipeline. If consistent hit is low, the model is better suited to human review than fully automated response.

    3. Why Consistency Is a Hard Constraint in Security

    Security operations workflows typically include alert aggregation, enrichment, triage, response, and retrospective analysis. If model output fluctuates heavily, the same alert may yield different conclusions at different times, causing three problems: first, repeated triage wastes manpower; second, automated orchestration struggles to set thresholds; third, audit traceability becomes difficult.

    Common practices for improving consistency include fixing inference parameters and random seeds, lowering temperature, using structured prompt templates, requiring the model to output evidence snippets and reasoning, and applying voting or weighted aggregation across multiple results. A schematic prompt structure is shown below:

    1. Role: Security triage assistant
    2. Input: alert fields + related logs
    3. Requirements:
    4. 1) Judge only based on the given evidence;
    5. 2) Output the conclusion, confidence, and evidence references;
    6. 3) Explicitly output "uncertain" when evidence is insufficient.

    Such constraints significantly reduce drift from “improvisation,” bringing consistent hit closer to single-run recall.

    4. Catching Up to the Frontier on Cost: From “Strongest” to “Good Enough and Cheaper”

    The original material also noted that another officially released model’s recall was only one sample behind the leader, while reducing cost by roughly 70%. This reflects an important trend: in security scenarios, frontier capability is being rapidly matched by more economical options, and selection logic should shift from “score above all” to “effective recall per unit cost.”

    A simplified cost-performance metric can be used:

    1. Cost-performance = consistent hits / cost per task

    If a solution has slightly lower consistent hit but a substantial cost reduction, its total cost advantage is amplified in high-frequency alert scenarios. Organizations can retain historical samples in object storage, use message queues to smooth task peaks, run inference services on container platforms, and use logging and monitoring services to track effectiveness, forming a sustainable evaluation loop for continuous iteration.

    5. Evaluation Design Recommendations: Making Results Reproducible and Comparable

    It is advisable to build a tiered evaluation set: count recall separately for four sample categories—basic detection, correlation analysis, code audit, and log tracing—to avoid a total score masking weaknesses. At the same time, fix the sample version, prompt template, and inference configuration, record differences across runs, and output three columns of metrics: pooled, single-run, and consistent.

    In addition, a human-annotation review mechanism should be retained to spot-check the model’s evidence references, preventing cases that “appear to hit but actually misquote.” Only by engineering the evaluation process can model selection become repeatable.

    6. Conclusion

    LLM security evaluation should not rely on the ranking of a single pooled recall. Pooled recall represents the capability ceiling, single-run recall represents the everyday experience, and consistent hit determines whether automation is feasible. Weighing cost, consistency, and reproducibility together is what leads to a solution truly suited to the security operations pipeline.