From Detection to Decision: Calibration and Deferral for Prompt-Injection Detection
summary
The gist
The gist The results show that training for calibrated outputs alone does not ensure reliable security decisions under distribution shift.
In short
The study compared three methods—a native model (Jev), two Llama classifiers, and an LLM judge—to detect prompt injections across 47,611 examples. While the LLM judge showed the best detection accuracy, training models for calibrated outputs alone does not guarantee reliable security decisions under distribution shift. The results show that relying only on detection scores is insufficient for real-world security policies.
Key concepts
- Probabilistic Decision Models
- These are models that output a probability score (like 0.8) instead of just a yes/no answer. They aim to help systems make nuanced choices like allow, block, or defer based on the confidence level of the input being malicious.
- Distribution Shift
- This refers to situations where the data used to train a model is different from the data it encounters in real-world deployment. In this paper, it means testing if models trained on one set of attacks still work well when faced with new, unseen types of prompt injections.
- Calibration
- Calibration measures how well a model's predicted probabilities match reality. A perfectly calibrated model that says an input has a 90% chance of being malicious should be correct 90% of the time. The paper tests if native probabilities are reliable compared to scores adjusted after training.
- Allow-Block-Defer Policies
- These are operational rules for handling detected threats. Instead of just blocking everything, these policies decide what to do with an input based on its risk score: ALLOW it, BLOCK it immediately, or DEFER it for further review by a human or another system.
Terminology used across episodes
This episode discusses
- From Detection to Decision: Calibration and Deferral for Prompt-Injection Detection · Paper Radio
- Confidently Wrong: Severity-Aware Calibration of Prompt-Injection Detectors under Attack Shift
- InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Models
The paper
From Detection to Decision: Calibration and Deferral for Prompt-Injection Detection · Read on arXiv
Qianlong Lan, Anuj Kaul, Vinothini Pandurangan, Indranil Sanyal
eBay Inc.
Prompt-injection defenses are commonly evaluated as binary detectors, although deployed LLM applications must make operational decisions about whether to allow, block, or escalate potentially malicious inputs. Recent probabilistic decision models aim to support such decisions through calibrated confidence estimates, but their reliability under distribution shift remains uncertain. We evaluate a native probabilistic decision model (Jev), two Llama Prompt Guard 2 classifiers (22M and 86M), and an LLM-based judge on 47,611 held-out examples spanning direct and indirect prompt injections, hard-benign inputs, obfuscation, and distribution shift. Using separate development and calibration splits, we assess detection performance, probability calibration, and allow-block-defer policies under a frozen evaluation protocol. The LLM judge achieves the highest overall discrimination (AUROC 0.897), followed by Jev (0.871), Prompt Guard 2 86M (0.757), and Prompt Guard 2 22M (0.714). However, Jev's native probabilities do not consistently outperform post-hoc calibrated classifier scores, and temperature scaling improves calibration without improving discrimination. At an empirical false-negative-rate target of 1%, all evaluated gate-reviewer systems require more than 91.8% escalation and incur substantial false-positive rates. These findings demonstrate that probabilistic outputs alone do not establish reliable security decisions under distribution shift. Effective LLM security systems must jointly evaluate detection, calibration, reviewer behavior, and operational decision policies.
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: Today's paper: "From Detection to Decision".
Elias: The gist The results show that training for calibrated outputs alone does not ensure reliable security decisions under distribution shift.
Nadia: First, who's behind it and why it matters.
Title and authors: Nadia: Now we're looking at the specific title and who wrote this paper: "From Detection to Decision: Calibration and Deferral for Prompt-Injection Detection." It really zeroes in on moving beyond just having a detector and focusing on making actual security decisions like allow, block, or defer.
Elias: The authors are Qianlong Lan, Anuj Kaul, Vinothini Pandurangan, and Indranil Sanyal from eBay Inc. They set up this comparison between Jev, the Prompt Guard two classifiers at twenty-two million and eighty-six million parameters, and an LLM judge across forty-seven thousand six hundred eleven held-out examples covering various attack types.
The paper's summary: Nadia: The paper summarizes their findings by showing that while some models have great discrimination, like Jev with an AUROC of zero point eight seven one, their native probabilities aren't always better calibrated than the temperature-scaled classifier scores <ref:2610.20907#pg1>.
Elias: They give us specific numbers for this calibration check: Jev gets ECE zero point five four one, Brier zero point four four zero, and NLL one point four three two when compared to calibrated Prompt Guard two at eighty-six million parameters which got ECE zero point five seven one, Brier zero point four three nine, and NLL one point one zero four for instance <ref:2610.20907#pg2>.
Priya: That difference in calibration metrics is significant because it suggests that a simple training goal isn't enough to ensure the model's output is trustworthy when we deploy it in a changing environment.
Nadia: Right, Priya. And they also looked at the decision policy behavior, seeing how uncertainty at the gate translates into those allow block defer decisions when you have that frozen imperfect reviewer.
Elias: They found that to hit a very strict false negative rate of less than one percent, you needed over ninety-one point eight percent of inputs to be escalated to that reviewer for Jev native, and similar high rates for the Prompt Guard variants <ref:2610.20907#pg2>.
Priya: So even with those high escalation rates, the false positive rate at these crossing points was still quite high, hovering around forty to forty-five percent. That shows that just hitting a low false negative rate doesn't automatically mean you have a good overall system policy.
The paper's improvements: Nadia: One of the main improvements suggested by the authors is moving toward a risk-aware decision pipeline where we realize that a probability of zero point nine only matters if high scores reliably indicate attacks and stay meaningful even when attacks or benign prompts change.
Elias: They also argue that for routing decisions, you can use native models like Jev because their native probabilities aren't consistently better calibrated than temperature-scaled classifier scores, as we saw with the numbers comparing Jev to Prompt Guard two at eighty-six million parameters <ref:2610.20907#pg1>.
Priya: And they suggest that if we want to improve the reliability of those LLM-based security decisions, we should use temperature scaling on the classifier scores because it substantially improves metrics like ECE and NLL without changing how good the model is at discrimination.
Nadia: So, one way to fix things is to apply that specific calibration adjustment—temperature scaling—to enhance the utility of those classifier scores for deployment.
Elias: And they also propose establishing operational policies based on empirical escalation rates, which means finding the smallest escalation rate on the deferral curve where you hit that target false negative rate of less than one percent <ref:2610.20907#pg2>.
Priya: But they also stress a limitation here: calibration alone doesn't determine a useful decision policy, so we still need to evaluate reviewer behavior and the security and utility objectives of the deployed system together.
Conclusion: Nadia: To wrap up, the authors conclude that discrimination, calibration, reviewer behavior, and policy utility all need to be evaluated as parts of one single decision pipeline when dealing with prompt injection detection under distribution shift.
Elias: They reiterate that pooled metrics can obscure composition effects because the confirmatory cohort is heavily weighted by attacks from BIPIA <ref:2610.20907#pg3>, and the quality of the reviewer itself limits how much benefit deferral can actually achieve.
Priya: So for us, it means we need to be careful not to just look at one metric in isolation; we have to look at how those metrics work together under real operational constraints.
Nadia: They also point out that the comparison itself differs because Prompt Guard two is temperature-scaled on target calibration data while Jev uses its native probability, which is another factor we have to consider when comparing these systems <ref:2610.20907#pg1>.
Elias: And they flag a practical limitation: the cost model used in their evaluation is just illustrative, so we should use application-specific costs and review budgets instead of that general model.
Priya: Ultimately, this work on "From Detection to Decision: Calibration and Deferral for Prompt-Injection Detection" shows us that while detection models are getting better at spotting injections, the real challenge remains making a dependable decision when those attacks evolve in ways we haven't seen before.
More episodes
- 2610.20656-Unmasking the Secret Code: Using Canaries to Show How Masked Context Controls Memorization in SFT
- The day in conversation for 2026-10-20
- Daily Summary for 2026-10-20
- Daily Summary for 2026-10-19
- The day in conversation for 2026-10-19
- Daily Summary for 2026-10-19
- 2610.20952-Does Client Diversity Protect the Lightning Network? Evidence from the 2026 Core Lightning Shutdown
- 2610.20831-GhostLock: Learning-Assisted Blind GPS Signal Nullification Without Victim-Side Information
- 2610.20962-PAGE404: Breaking GPU Isolation Through Hardware-assisted Page Migration
- 2610.20827-Performance Characterization of Pulsar's Software-defined Watermark Verifier