Targeting Alignment: Extracting Safety Classifiers of Aligned LLMs
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
Alignment in large language models (LLMs) is used to enforce guidelines such as safety. Yet, alignment fails in the face of jailbreak attacks that modify inputs to induce unsafe outputs. In this paper, we introduce and evaluate a new technique for jailbreak attacks. We observe that alignment embeds a safety classifier in the LLM responsible for deciding between refusal and compliance, and seek to extract an approximation of this classifier: a surrogate classifier. To this end, we build candidate classifiers from subsets of the LLM. We first evaluate the degree to which candidate classifiers approximate the LLM's safety classifier in benign and adversarial settings. Then, we attack the candidates and measure how well the resulting adversarial inputs transfer to the LLM. Our evaluation shows that the best candidates achieve accurate agreement (an F1 score above 80%) using as little as 20% of the model architecture. Further, we find that attacks mounted on the surrogate classifiers can be transferred to the LLM with high success. For example, a surrogate using only 50% of the Llama 2 model achieved an attack success rate (ASR) of 70% with half the memory footprint and runtime -- a substantial improvement over attacking the LLM directly, where we only observed a 22% ASR. These results show that extracting surrogate classifiers is an effective and efficient means for modeling (and therein addressing) the vulnerability of aligned models to jailbreaking attacks. The code is available at https://github.com/jcnf0/targeting-alignment.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 48 of its 79 references that are in the map. First posted on arXiv 27 Jan 2025.
Builds on
48 of 79 references.
Closest ancestors · 7
Same direction, newest first
- 2024On the Role of Attention Heads in Large Language Model Safety17 Oct
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun
- 2024Improving Alignment and Robustness with Circuit Breakers6 Jun
- 2024OR-Bench: An Over-Refusal Benchmark for Large Language Models31 May
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning5 Mar
- 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications7 Feb
- 2024On Prompt-Driven Safeguarding for Large Language Models31 Jan
Other references · 41
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
- 2016Practical Black-Box Attacks against Machine Learningcited by 893
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
- 2023Bias and Fairness in Large Language Models: A Surveycited by 626
29 more
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 619
- 2016Transferability in Machine Learning: from Phenomena to Black-Box Attacks using Adversarial Samplescited by 439
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
- 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 317
- 2023Low-Resource Languages Jailbreak GPT-4cited by 290
- 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Promptscited by 218
- 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 197
- 2024Foundational Challenges in Assuring Alignment and Safety of Large Language Modelscited by 193
- 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMscited by 160
- 2024Stealing Part of a Production Language Modelcited by 152
- 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMscited by 146
- 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 126
- 2024Is LLM-as-a-Judge Robust? Investigating Universal Adversarial Attacks on Zero-shot LLM Assessmentcited by 117
- 2024Efficient Adversarial Training in LLMs with Continuous Attackscited by 104
- 2023AutoDAN: Interpretable Gradient-Based Adversarial Attacks on Large Language Modelscited by 102
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Modelscited by 95
- 2024Not All Layers of LLMs Are Necessary During Inferencecited by 95
- 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden Statescited by 92
- 2024JailbreakRadar: Comprehensive Assessment of Jailbreak Attacks Against LLMscited by 87
- 2024Fast Adversarial Attacks on Language Models In One GPU Minutecited by 85
- 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 77
- 2024Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysiscited by 61
- 2024Don't Say No: Jailbreaking LLM by Suppressing Refusalcited by 53
- 2024PRP: Propagating Universal Perturbations to Attack Large Language Model Guard-Railscited by 49
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2024Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Samplingcited by 33
- 2024Pruning for Protection: Increasing Jailbreak Resistance in Aligned LLMs Without Fine-Tuningcited by 24
- 2024What Features in Prompts Jailbreak LLMs? Investigating the Mechanisms Behind Attackscited by 24
- 2020Adversarial Examples Detection and Analysis with Layer-wise Autoencoderscited by 9
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025AlignTree: Efficient Defense Against LLM Jailbreak Attacks
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM
- 2025Improving LLM Safety Alignment with Dual-Objective Optimization
- 2025Safety Alignment Can Be Not Superficial With Explicit Safety Signals
- 2026Safety Is Not Universal: The Selective Safety Trap in LLM Alignment
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
- 2025SABER: Uncovering Vulnerabilities in Safety Alignment via Cross-Layer Residual Connection
- 2025AdaSteer: Your Aligned LLM is Inherently an Adaptive Jailbreak Defender