mlsanityData to 14 Oct 2026

Understanding the Effectiveness of Coverage Criteria for Large Language Models: A Special Angle from Jailbreak Attacks

arXiv 2408.15207 ↗First posted 27 Aug 2024cs.SEcited by 8

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Large language models (LLMs) have revolutionized artificial intelligence, but their increasing deployment across critical domains has raised concerns about their abnormal behaviors when faced with malicious attacks. Such vulnerability alerts the widespread inadequacy of pre-release testing. In this paper, we conduct a comprehensive empirical study to evaluate the effectiveness of traditional coverage criteria in identifying such inadequacies, exemplified by the significant security concern of jailbreak attacks. Our study begins with a clustering analysis of the hidden states of LLMs, revealing that the embedded characteristics effectively distinguish between different query types. We then systematically evaluate the performance of these criteria across three key dimensions: criterion level, layer level, and token level. Our research uncovers significant differences in neuron coverage when LLMs process normal versus jailbreak queries, aligning with our clustering experiments. Leveraging these findings, we propose three practical applications of coverage criteria in the context of LLM security testing. Specifically, we develop a real-time jailbreak detection mechanism that achieves high accuracy (93.61% on average) in classifying queries as normal or jailbreak. Furthermore, we explore the use of coverage levels to prioritize test cases, improving testing efficiency by focusing on high-risk interactions and removing redundant tests. Lastly, we introduce a coverage-guided approach for generating jailbreak attack examples, enabling systematic refinement of prompts to uncover vulnerabilities. This study improves our understanding of LLM security testing, enhances their safety, and provides a foundation for developing more robust AI applications.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 42 of its 55 references that are in the map. First posted on arXiv 27 Aug 2024.

Builds on

42 of 55 references.

Closest ancestors · 12

Same direction, newest first

  1. 2024PARDEN, Can You Repeat That? Defending against Jailbreaks via Repetition13 May
  2. 2024JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attacks3 Apr
  3. 2024Pandora: Jailbreak GPTs by Retrieval Augmented Generation Poisoning13 Feb
  4. 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
  5. 2023AutoDAN: Interpretable Gradient-Based Adversarial Attacks on Large Language Models23 Oct
  6. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
  7. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
  8. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
  9. 2023Certifying LLM Safety against Adversarial Prompting6 Sep
  10. 2023Detecting Language Model Attacks with Perplexity27 Aug
  11. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
  12. 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul

Other references · 30

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  3. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  4. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  5. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  6. 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
  7. 2023Instruction Tuning with GPT-4cited by 686
  8. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  9. 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 311
  10. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
  11. 2023Does Synthetic Data Generation of LLMs Help Clinical Text Mining?cited by 154
  12. 2018DeepGauge: Multi-Granularity Testing Criteria for Deep Learning Systemscited by 147
18 more
  1. 2018Guiding Deep Learning System Testing using Surprise Adequacycited by 124
  2. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
  3. 2023Can GPT-3 Perform Statutory Reasoning?cited by 73
  4. 2018TensorFuzz: Debugging Neural Networks with Coverage-Guided Fuzzingcited by 68
  5. 2024Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neuronscited by 53
  6. 2024Perception-guided Jailbreak against Text-to-Image Modelscited by 40
  7. 2024Glitch Tokens in Large Language Models: Categorization Taxonomy and Effective Detectioncited by 29
  8. 2020Reducing DNN Labelling Cost using Surprise Adequacy: An Industrial Case Study for Autonomous Drivingcited by 22
  9. 2022LMentry: A Language Model Benchmark of Elementary Language Taskscited by 22
  10. 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 20
  11. 2023Beyond Classification: Financial Reasoning in State-of-the-Art Language Modelscited by 19
  12. 2022NPC: Neuron Path Coverage via Characterizing Decision Logic of Deep Neural Networkscited by 18
  13. 2024Drowzee: Metamorphic Testing for Fact-Conflicting Hallucination Detection in Large Language Modelscited by 14
  14. 2024Identifying Query-Relevant Neurons in Large Language Models for Long-Form Textscited by 14
  15. 2024Exploring ChatGPT App Ecosystem: Distribution, Deployment and Securitycited by 12
  16. 2021Revisiting Neuron Coverage for DNN Testing: A Layer-Wise and Distribution-Aware Criterioncited by 11
  17. 2024Your Large Language Model is Secretly a Fairness Proponent and You Should Prompt it Like Onecited by 11
  18. 2024GlitchProber: Advancing Effective Detection and Mitigation of Glitch Tokens in Large Language Modelscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 3.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026SoK: Robustness in Large Language Models against Jailbreak Attacks
  2. 2025Evolving Security in LLMs: A Study of Jailbreak Attacks and Defenses
  3. 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs
  4. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
  5. 2025Do Methods to Jailbreak and Defend LLMs Generalize Across Languages?
  6. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models
  7. 2024Revisiting Jailbreaking for Large Language Models: A Representation Engineering Perspective
  8. 2025Exploring Jailbreak Attacks on LLMs through Intent Concealment and Diversion