Survey on LLM Safety: Attacks, Defenses, Alignment, Metrics, and Guardrails

Read full text
Authors: Pratik Jalan, Vadivel Abishethvarman, Bhavik Chandna, Usman Naseem
Cited by: 4
References: 92

Abstract

Abstract Large Language Models (LLM) have demonstrated remarkable capabilities across various applications, but their deployment raises critical safety concerns as potential misuse poses significant societal risks. This survey reviews the end-to-end security and safety pipeline of LLMs, focusing on the interaction between users and model responses. We categorize the system into five key components: attacks, defenses, safety alignment, metrics and guarding mechanisms. Attacks involve crafting adversarial inputs to exploit model vulnerabilities. Defenses act as countermeasures, aiming to detect and prevent such inputs before processing. Safety alignment ensures that, even when attacks reach the model, its responses remain consistent with ethical and policy-aligned behavior. Guarding mechanisms operate post-response to flag, filter, or block unsafe outputs. Each of these stages is subject to rigorous evaluation metrics to assess their effectiveness, robustness, and limitations. As LLMs evolve toward more general-purpose intelligence, these safety considerations become increasingly critical for the development of robust and trustworthy AI systems. Finally, we highlight open challenges and future research directions to advance the security and alignment of LLMs.

Fields of Study & Subjects

Adversarial Robustness in Machine Learning Topic Modeling Ethics and Social Impacts of AI

Publication details

Journal / source
Machine Learning
Publisher
Springer Science and Business Media LLC
Volume
115
Issue
6
Publication date
20 May 2026
Language
EN