The Instability of Safety: How Random Seeds and Temperature Expose Inconsistent LLM Refusal Behavior
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 1 more
Abstract (arXiv)
Current safety evaluations of large language models rely on single-shot testing, implicitly assuming that model responses are deterministic and representative of the model's safety alignment. We challenge this assumption by investigating the stability of safety refusal decisions across random seeds and temperature settings. Testing four instruction-tuned models from three families (Llama 3.1 8B, Qwen 2.5 7B, Qwen 3 8B, Gemma 3 12B) on 876 harmful prompts across 20 sampling configurations (4 temperatures x 5 seeds), we find that 18-28% of prompts exhibit decision flips (the REFUSE/PARTIAL/COMPLY label changes across configurations), depending on the model. Our Safety Stability Index (SSI) reveals that higher temperatures significantly reduce decision stability (Friedman chi-squared = 396.81, p < 0.001), with mean within-temperature SSI dropping from 0.977 at temperature 0.0 to 0.942 at temperature 1.0. We validate findings across all model families using Claude 3.5 Haiku as a unified external judge, achieving 89.1% inter-judge agreement with the Llama 70B judge on the two models both judges labeled (Cohen's kappa = 0.62). Within each model, prompts with higher compliance rates exhibit lower stability (Spearman rho = -0.47 to -0.70, all p < 0.001), indicating that models "waver" more on borderline requests. These findings demonstrate that single-shot safety evaluations are insufficient for reliable safety assessment and that evaluation protocols must account for stochastic variation in model behavior. For Llama 3.1 8B, single-shot evaluation agrees with multi-sample ground truth only 92.5% of the time when pooling across temperatures (98.7% at greedy to 90.3% at temperature 1.0), and we recommend scaling samples with temperature--one at greedy, three at low temperature, more at higher temperatures (where three reach only ~95%), and ten when pooling--rather than a single flat threshold.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 14 of its 16 references that are in the map. First posted on arXiv 12 Dec 2025.
Builds on
14 of 16 references.
Closest ancestors · 3
Same direction, newest first
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Dataset10 Jul
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned23 Aug
Other references · 11
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2022Language Models (Mostly) Know What They Knowcited by 1,856
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Preregistration for Experiments with AI Agentscited by 2
- 2026Evaluating LLM Safety Under Repeated Inference via Accelerated Prompt Stress Testingcited by 1
- 2026Evaluating Reliability Gaps in Large Language Model Safety via Repeated Prompt Samplingcited by 1
- 2026The Joint Effect of Quantization and Sampling Temperature on LLM Safety Alignment: A Factorial Analysiscited by 0
- 2026The Joint Effect of Quantization and Sampling Temperature on LLM Safety Alignment: A Factorial Analysis28 Jun 2026
- 2026Preregistration for Experiments with AI Agents3 May 2026
- 2026Evaluating Reliability Gaps in Large Language Model Safety via Repeated Prompt Sampling10 Mar 2026
- 2026Evaluating LLM Safety Under Repeated Inference via Accelerated Prompt Stress Testing12 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026The Refusal--Compliance Tradeoff: A Large-Scale Safety Behavior Audit of Large Language Models
- 2026SafeTune: A Unified Faithful Library for Auditing and Repairing Safety Drift in Fine-Tuned LLMs
- 2026When Safety Routing Breaks: Understanding Alignment Fragility under Benign Fine-Tuning
- 2026When Skills Meet Safety: Benchmarking and Characterizing the Adaptive Jailbreak Robustness of Skill-Merged LLMs
- 2026When Choices Become Risks: Safety Failures of Large Language Models under Multiple-Choice Constraints
- 2024Mitigating Exaggerated Safety in Large Language Models
- 2026The Geometry of Refusal: Linear Instability in Safety-Aligned LLMs
- 2025When Refusals Fail: Unstable Safety Mechanisms in Long-Context LLM Agents