Abstract
With the rapid advancement of artificial intelligence, Large Language Models (LLMs) have shown remarkable capabilities in Natural Language Processing (NLP), including content generation, human-computer interaction, machine translation, and code generation. However, their widespread deployment has also raised significant safety concerns. In particular, LLM-generated content can exhibit unsafe behaviors such as toxicity, bias, or misinformation, especially in adversarial contexts, which has attracted increasing attention from both academia and industry. Although numerous studies have attempted to evaluate these risks, a comprehensive and systematic survey on safety evaluation of LLMs is still lacking. This work aims to fill this gap by presenting a structured overview of recent advances in safety evaluation of LLMs. Specifically, we propose a four-dimensional taxonomy: (i) Why to evaluate; (ii) What to evaluate; (iii) Where to evaluate; and (iv) How to evaluate. Finally, we identify the challenges in safety evaluation of LLMs and propose promising research directions to promote further advancement in this field.
Introduction
As Large Language Models (LLMs) transition from research curiosities to critical infrastructure in healthcare, law, and finance, their failure modes—ranging from subtle biases to explicit instructions for malicious activities—pose significant societal risks. Unlike standardized metrics for model capabilities (e.g., accuracy or FLOPs), safety evaluation remains a fragmented "Wild West." Researchers often employ inconsistent definitions of "success" for adversarial attacks and utilize varied datasets, making cross-model comparisons difficult. This survey addresses this gap by providing a structured roadmap to unify the measurement of risks in these "black box" models.
A Four-Dimensional Taxonomy
To systematize the fragmented landscape of safety research, the authors propose a comprehensive four-dimensional taxonomy. This framework distinguishes between the "optimization mindset" of capability testing and the "control mindset" required for safety.
- Why to Evaluate: Focuses on the background and significance of safety evaluation, emphasizing the need to identify the "lower bound" of model risk rather than just the "upper bound" of performance.
- What to Evaluate: Categorizes safety tasks into core dimensions: Toxicity (hate speech), Robustness (resistance to jailbreaks), Ethics (moral alignment), Bias and Fairness, and Truthfulness (hallucination detection).
- Where to Evaluate: Summarizes the "tools of the trade," including metrics like Attack Success Rate (ASR) and a vast array of specialized datasets.
- How to Evaluate: Reviews the roles of evaluators, comparing Human-based (the gold standard), Rule-based (efficient but rigid), and Model-based (scalable but potentially biased) approaches.
The Landscape of Safety Benchmarks
The survey compiles 31 essential benchmarks that define the current state of the art. These include adversarial platforms like AdvBench and HarmBench, toxicity datasets like ToxiGen, and domain-specific tools such as MedSafetyBench for healthcare and CyberSecEval for secure coding. Notably, the field is moving toward multilingual evaluation with tools like PolyglToxicityPrompts to address the historical English-centric bias in safety research.
Key Insights and Empirical Findings
- The Recursive Dilemma: Many modern frameworks utilize "LLM-as-a-Judge" (e.g., using GPT-4 to evaluate Llama). This creates a circular dependency; if the judge model possesses hidden biases or safety flaws, the entire evaluation becomes questionable.
- Robustness vs. Scale: Larger models are not inherently safer. In fact, they are often more susceptible to sophisticated jailbreaks because their superior instruction-following capabilities allow them to be more easily led astray by complex, misleading prompts.
- Vulnerability Statistics: State-of-the-art models remain highly vulnerable. Automated attack frameworks can achieve an Attack Success Rate (ASR) of up to 78% on models as advanced as GPT-4. Furthermore, in code generation tasks, roughly 30% of LLM-generated snippets contain insecure patterns.
- Exaggerated Safety: A significant side effect of current safety training is "over-refusal," where models become so risk-averse they refuse benign queries (e.g., refusing to explain how to "kill a process" in a computing context due to the word "kill").
Challenges and Future Directions
The authors identify several frontier challenges that must be addressed to move from "safe" models to "responsible" AI:
- Dynamic Evaluation: Most current benchmarks are static and prone to data leakage. The field requires dynamic pipelines that generate novel, unseen attacks in real-time.
- The Safety-Utility Trade-off: There is a persistent tension between safety and utility. Future research must identify the "Pareto frontier" where safety measures do not degrade the model's core reasoning and helpfulness.
- Cultural Alignment: Safety is inherently subjective. What is offensive in one culture may be neutral in another. Moving forward, evaluations must account for diverse human values across different languages and social contexts to ensure truly global reliability.
Summary updated