Calibrated Predictive Lower Bounds on Time-to-Unsafe-Sampling in LLMs
Not on the map. Why?
Abstract (arXiv)
We introduce time-to-unsafe-sampling, a novel safety measure for generative models, defined as the number of generations required by a large language model (LLM) to trigger an unsafe (e.g., toxic) response. While providing a new dimension for prompt-adaptive safety evaluation, quantifying time-to-unsafe-sampling is challenging: unsafe outputs are often rare in well-aligned models and thus may not be observed under any feasible sampling budget. To address this challenge, we frame this estimation problem as one of survival analysis. We build on recent developments in conformal prediction and propose a novel calibration technique to construct a lower predictive bound (LPB) on the time-to-unsafe-sampling of a given prompt with rigorous coverage guarantees. Our key technical innovation is an optimized sampling-budget allocation scheme that improves sample efficiency while maintaining distribution-free guarantees. Experiments on both synthetic and real data support our theoretical results and demonstrate the practical utility of our method for safety risk assessment in generative AI models.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 48 of its 88 references that are in the map. First posted on arXiv 16 Jun 2025.
Builds on
48 of 88 references.
References · 48
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedbackcited by 759
- 2019Conformalized Quantile Regressioncited by 629
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
- 2019Conformal Prediction Under Covariate Shiftcited by 519
36 more
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
- 2016DeepSurv: Personalized Treatment Recommender System Using A Cox Proportional Hazards Deep Neural Networkcited by 358
- 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 293
- 2023Challenges and Applications of Large Language Modelscited by 254
- 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Promptscited by 205
- 2023Efficient Guided Generation for Large Language Modelscited by 200
- 2023Conformal Language Modelingcited by 170
- 2022Adaptive Conformal Predictions for Time Seriescited by 161
- 2024Language Models with Conformal Factuality Guaranteescited by 131
- 2022Conformal Inference for Online Prediction with Arbitrary Distribution Shiftscited by 128
- 2023A Survey of Safety and Trustworthiness of Large Language Models through the Lens of Verification and Validationcited by 93
- 2024Large language model validity via enhanced conformal prediction methodscited by 92
- 2023Improved Online Conformal Prediction via Strongly Adaptive Online Learningcited by 78
- 2023SimpleSafetyTests: a Test Suite for Identifying Critical Safety Risks in Large Language Modelscited by 76
- 2024ConU: Conformal Uncertainty in Large Language Models with Correctness Coverage Guaranteescited by 65
- 2024Conformal Alignment: Knowing When to Trust Foundation Models with Guaranteescited by 54
- 2021Conformalized Survival Analysiscited by 53
- 2024The Limits of Inference Scaling Through Resamplingcited by 53
- 2024Automata-based constraints for language model decodingcited by 51
- 2024Active Statistical Inferencecited by 50
- 2021Deep Cox Mixtures for Survival Regressioncited by 44
- 2025Ctrl-Z: Controlling AI Agents via Resamplingcited by 44
- 2023DeSRA: Detect and Delete the Artifacts of GAN-based Real-World Super-Resolution Modelscited by 41
- 2024Conformal Validity Guarantees Exist for Any Data Distribution (and How to Find Them)cited by 26
- 2024Mission Impossible: A Statistical Perspective on Jailbreaking LLMscited by 24
- 2022Label Noise Robustness of Conformal Predictioncited by 20
- 2022Conformalized survival analysis with adaptive cutoffscited by 17
- 2024Estimating the Probabilities of Rare Outputs in Language Modelscited by 16
- 2024Toxicity Detection for Freecited by 15
- 2024Confidence on the Focal: Conformal Prediction with Selection-Conditional Coveragecited by 14
- 2024LLMGuard: Guarding Against Unsafe LLM Behaviorcited by 13
- 2024Controllable Generation via Locally Constrained Resamplingcited by 11
- 2024Doubly Robust Conformalized Survival Analysis with Right-Censored Datacited by 6
- 2025COPU: Conformal Prediction for Uncertainty Quantification in Natural Language Generationcited by 6
- 2025Conformal Survival Bands for Risk Screening under Right-Censoringcited by 5
Built on by
Citing papers per year: 2026: 3.
3 papers.