AI Safety
AI Safety Checks Flake on Edge Cases—High Temperature Triggers Inconsistent Refusals
A study of four language models finds that between 18–28% of harmful requests get contradictory responses depending on random seed and sampling temperature, undermining confidence in single-test safety evaluations.
When researchers test large language models for safety, they typically run each harmful prompt once. A new analysis challenges whether that's enough, revealing that the same request can elicit either compliance or refusal from the same model depending on minor technical tweaks.
Across four instruction-tuned models—Llama 3.1 8B, Qwen 2.5 7B, Qwen 3 8B, and Gemma 3 12B—researchers tested 876 harmful prompts under 20 different sampling configurations. Between 18% and 28% of prompts (depending on the model) produced decision flips: instances where the model refused harmful requests in some configurations but honored them in others.
Temperature Destabilizes Model Behavior#
The culprit appears to be sampling temperature, a parameter that controls randomness in model output. As temperature climbs from 0.0 (deterministic) to 1.0, decision stability drops sharply. The researchers' Safety Stability Index (SSI)—a metric gauging consistency—fell from 0.977 to 0.942 across that range, a statistically significant gap (p < 0.001).
Higher-temperature settings are known to inject more variability into generation. This study shows that variability extends to a model's willingness to refuse harmful requests. The effect was consistent across all tested models when validated independently using Claude 3.5 Haiku as an external judge.
Borderline Requests Show Most Wavering#
Analysis within each model revealed a troubling pattern: prompts that the model complied with at higher rates exhibited the lowest stability scores (Spearman correlation −0.47 to −0.70, all p < 0.001). In plain terms, models waver most on edge cases—borderline requests that sit in the ambiguous middle ground between clearly harmful and clearly acceptable.
Rethinking Safety Evaluation Protocols#
Single-shot testing, the current standard for safety assessment, agrees with ground truth established through multi-sample testing only 92.5% of the time (and as low as 90.3% at high temperature). The researchers recommend a scaled sampling approach: one sample at greedy settings, three at low temperature, more at higher temperatures, and ten samples when aggregating across multiple temperature levels.
The findings underscore that safety evaluations based on one-off testing may give a false sense of confidence in a model's alignment—and that robust assessment requires accounting for the stochastic nature of modern LLM inference.

