An Empirical Study of Multi-generation Sampling for Jailbreak Detection in Large Language Models

Detecting jailbreak behaviour in large language models is difficult when harmful outputs occur intermittently. We study how output-level vulnerability estimates change with sampling budgets from $$k=1$$ to $$k=5$$ on JailbreakBench Behaviors using four small open-weight generators. TF-IDF logistic regression is treated as an interpretable lexical diagnostic, a simplified generation-inconsistency method as an exploratory auxiliary signal, and Qwen3Guard as a complementary safety classifier. Repeated sampling reveals positive outputs missed by single-response evaluation. The clearest gains generally occur from $$k=1$$ to $$k=3$$, with smaller subsequent gains, but the magnitude is heterogeneous across generators and detectors. This pattern remains visible across decoding temperatures and in a limited transferred-GCG experiment. An Unsafe-only Qwen3Guard sensitivity analysis shows that the increase is not solely caused by grouping Controversial outputs with Unsafe outputs. Human validation indicates that TF-IDF has weak harmful-case recall and that Qwen3Guard offers broader but imperfect coverage; consequently, cross-generator TF-IDF results are interpreted only as transfer of lexical proxy patterns. The conclusions are restricted to the evaluated models. Thus, $$k=3$$ is an empirical cost–benefit compromise, not a universal optimum or deployment recommendation. Code and reproducibility materials are available at https://github.com/ddlv70/ai-jailbreak-detector-revision.

Authors

Institutions

Publication Details

Journal
SN Computer Science
Published
2026-12-02
DOI
https://doi.org/10.1007/s42979-026-05492-6
Citations
2
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
1.94
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An Empirical Study of Multi-generation Sampling for Jailbreak Detection in Large Language Models

Shreyank N Gowda, Hanrui Luo
2 citations
SN Computer Science
Adversarial Robustness in Machine Learning
1.94
article

An Empirical Study of Multi-generation Sampling for Jailbreak Detection in Large Language Models

Shreyank N Gowda, Hanrui Luo
article en
2 citations

Abstract

Detecting jailbreak behaviour in large language models is difficult when harmful outputs occur intermittently. We study how output-level vulnerability estimates change with sampling budgets from $$k=1$$ to $$k=5$$ on JailbreakBench Behaviors using four small open-weight generators. TF-IDF logistic regression is treated as an interpretable lexical diagnostic, a simplified generation-inconsistency method as an exploratory auxiliary signal, and Qwen3Guard as a complementary safety classifier. Repeated sampling reveals positive outputs missed by single-response evaluation. The clearest gains generally occur from $$k=1$$ to $$k=3$$, with smaller subsequent gains, but the magnitude is heterogeneous across generators and detectors. This pattern remains visible across decoding temperatures and in a limited transferred-GCG experiment. An Unsafe-only Qwen3Guard sensitivity analysis shows that the increase is not solely caused by grouping Controversial outputs with Unsafe outputs. Human validation indicates that TF-IDF has weak harmful-case recall and that Qwen3Guard offers broader but imperfect coverage; consequently, cross-generator TF-IDF results are interpreted only as transfer of lexical proxy patterns. The conclusions are restricted to the evaluated models. Thus, $$k=3$$ is an empirical cost–benefit compromise, not a universal optimum or deployment recommendation. Code and reproducibility materials are available at https://github.com/ddlv70/ai-jailbreak-detector-revision.

SN Computer ScienceVol. 7(8)
University of Nottingham (GB)
Openalex Percentile: Top 13%
Adversarial Robustness in Machine Learning
1.94
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon