Evaluating LLM Safety Under Repeated Inference via Accelerated Prompt Stress Testing
Keita Broadwater
TL;DR
APST presents a depth-oriented framework for evaluating LLM safety under repeated inference by treating each generation as an independent Bernoulli trial to estimate per-inference failure probabilities. It combines a calibration phase with a cross-model, depth-focused phase, using AIR-BENCH prompts to compare shallow and repeated-sampling safety across models and decoding settings. The key finding is that models with similar shallow safety scores can display markedly different inference-level reliability under sustained use, with failure probabilities increasing with sampling depth and varying by risk category and temperature. This approach translates evaluation outcomes into deployment-relevant risk metrics, enabling cost-reliability tradeoffs and more informed decisions about model configuration and operational risk in high-stakes settings.
Abstract
Traditional benchmarks for large language models (LLMs) primarily assess safety risk through breadth-oriented evaluation across diverse tasks. However, real-world deployment exposes a different class of risk: operational failures arising from repeated inference on identical or near-identical prompts rather than broad task generalization. In high-stakes settings, response consistency and safety under sustained use are critical. We introduce Accelerated Prompt Stress Testing (APST), a depth-oriented evaluation framework inspired by reliability engineering. APST repeatedly samples identical prompts under controlled operational conditions (e.g., decoding temperature) to surface latent failure modes including hallucinations, refusal inconsistency, and unsafe completions. Rather than treating failures as isolated events, APST models them as stochastic outcomes of independent inference events. We formalize safety failures using Bernoulli and binomial models to estimate per-inference failure probabilities, enabling quantitative comparison of reliability across models and decoding configurations. Applying APST to multiple instruction-tuned LLMs evaluated on AIR-BENCH-derived safety prompts, we find that models with similar benchmark-aligned scores can exhibit substantially different empirical failure rates under repeated sampling, particularly as temperature increases. These results demonstrate that shallow, single-sample evaluation can obscure meaningful reliability differences under sustained use. APST complements existing benchmarks by providing a practical framework for evaluating LLM safety and reliability under repeated inference, bridging benchmark alignment and deployment-oriented risk assessment.
