mlsanityData to 7 Oct 2026

Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding Space

arXiv 2402.09063 ↗First posted 14 Feb 2024cs.LGcited by 88

On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks

also in 1 more
Abstract (arXiv)

Current research in adversarial robustness of LLMs focuses on discrete input manipulations in the natural language space, which can be directly transferred to closed-source models. However, this approach neglects the steady progression of open-source models. As open-source models advance in capability, ensuring their safety also becomes increasingly imperative. Yet, attacks tailored to open-source LLMs that exploit full model access remain largely unexplored. We address this research gap and propose the embedding space attack, which directly attacks the continuous embedding representation of input tokens. We find that embedding space attacks circumvent model alignments and trigger harmful behaviors more efficiently than discrete attacks or model fine-tuning. Furthermore, we present a novel threat model in the context of unlearning and show that embedding space attacks can extract supposedly deleted information from unlearned LLMs across multiple datasets and models. Our findings highlight embedding space attacks as an important threat model in open-source LLMs. Trigger Warning: the appendix contains LLM-generated text with violence and harassment.

Key facts. Cited by 88 papers in the map (data through 7 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 53 of its 83 references that are in the map. First posted on arXiv 14 Feb 2024.

Builds on

53 of 83 references.

Closest ancestors · 7

Same direction, newest first

  1. 2023Universal Jailbreak Backdoors from Poisoned Human Feedback24 Nov
  2. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
  3. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
  4. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Models1 Sep
  5. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
  6. 2023Are aligned neural networks adversarially aligned?26 Jun
  7. 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned23 Aug

Other references · 46

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  4. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  6. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  7. 2023Mistral 7Bcited by 3,065
  8. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  9. 2020Extracting Training Data from Large Language Modelscited by 2,144
  10. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
  11. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
  12. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
34 more
  1. 2016Universal adversarial perturbationscited by 774
  2. 2019Designing and Interpreting Probes with Control Taskscited by 608
  3. 2018Deep learning for time series classification: a reviewcited by 575
  4. 2024TOFU: A Task of Fictitious Unlearning for LLMscited by 507
  5. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
  6. 2018Adversarial Attacks on Neural Networks for Graph Datacited by 395
  7. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
  8. 2023Detecting Pretraining Data from Large Language Modelscited by 375
  9. 2023Who's Harry Potter? Approximate Unlearning in LLMscited by 366
  10. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
  11. 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
  12. 2019SMART: Robust and Efficient Fine-Tuning for Pre-trained Natural Language Models through Principled Regularized Optimizationcited by 253
  13. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
  14. 2023Can Sensitive Information Be Deleted From LLMs? Objectives for Defending Against Extraction Attackscited by 156
  15. 2023RAIN: Your Language Models Can Align Themselves without Finetuningcited by 149
  16. 2023Open Sesame! Universal Black Box Jailbreaking of Large Language Modelscited by 128
  17. 2020Adversarial Training for Large Neural Language Modelscited by 109
  18. 2023Identifying and Mitigating the Security Risks of Generative AIcited by 90
  19. 2023Adversarial Attacks and Defenses in Large Language Models: Old and New Threatscited by 49
  20. 2023Ewald-based Long-Range Message Passing for Molecular Graphscited by 46
  21. 2023Can Language Models be Instructed to Protect Personal Information?cited by 46
  22. 2021Improved Text Classification via Contrastive Adversarial Trainingcited by 38
  23. 2021Ab-Initio Potential Energy Surfaces by Pairing GNNs with Neural Wave Functionscited by 36
  24. 2021Exploring Misclassifications of Robust Neural Networks to Enhance Adversarial Attackscited by 33
  25. 2023How Trustworthy are Open-Source LLMs? An Assessment under Malicious Demonstrations Shows their Vulnerabilitiescited by 33
  26. 2021CLIP: Cheap Lipschitz Training of Neural Networkscited by 29
  27. 2022Improving Robustness against Real-World and Worst-Case Distribution Shifts through Decision Region Quantificationcited by 16
  28. 2020Time Matters: Time-Aware LSTMs for Predictive Business Process Monitoringcited by 14
  29. 2021Identifying Untrustworthy Predictions in Neural Networks by Geometric Gradient Analysiscited by 13
  30. 2023Hierarchical Randomized Smoothingcited by 9
  31. 2023Raising the Bar for Certified Adversarial Robustness with Diffusion Modelscited by 7
  32. 2020Dynamically Sampled Nonlocal Gradients for Stronger Adversarial Attackscited by 6
  33. 2023Provable Adversarial Robustness for Group Equivariant Tasks: Graphs, Point Clouds, Molecules, and Morecited by 3
  34. 2021System Design for a Data-driven and Explainable Customer Sentiment Monitorcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 23; 2025: 45; 2026: 20.

88 papers.

Sort:

By area:

  1. 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 488
  2. 2024Improving Alignment and Robustness with Circuit Breakerscited by 302
  3. 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMscited by 158
  4. 2024Eight Methods to Evaluate Robust Unlearning in LLMscited by 153
  5. 2024An Adversarial Perspective on Machine Unlearning for AI Safetycited by 113
  6. 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 108
  7. 2024Efficient Adversarial Training in LLMs with Continuous Attackscited by 104
  8. 2025The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independencecited by 104
  9. 2024Rethinking LLM Memorization through the Lens of Adversarial Compressioncited by 91
  10. 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Trainingcited by 82
  11. 2024Uncovering Safety Risks of Large Language Models through Concept Activation Vectorcited by 63
  12. 2025Model Tampering Attacks Enable More Rigorous Evaluations of LLM Capabilitiescited by 36
38 more
  1. 2024Threats, Attacks, and Defenses in Machine Unlearning: A Surveycited by 34
  2. 2024Revisiting Who's Harry Potter: Towards Targeted Unlearning from a Causal Intervention Perspectivecited by 33
  3. 2025Representation Bending for Large Language Model Safetycited by 28
  4. 2024Multilingual Blending: LLM Safety Alignment Evaluation with Language Mixturecited by 22
  5. 2024A Probabilistic Perspective on Unlearning and Alignment for Large Language Modelscited by 21
  6. 2026A Coin Flip for Safety: LLM Judges Fail to Reliably Measure Adversarial Robustnesscited by 20
  7. 2024Extracting Unlearned Information from LLMs with Activation Steeringcited by 19
  8. 2024Bayesian scaling laws for in-context learningcited by 18
  9. 2025LLM-Safety Evaluations Lack Robustnesscited by 16
  10. 2025REINFORCE Adversarial Attacks on Large Language Models: An Adaptive, Distributional, and Semantic Objectivecited by 15
  11. 2025RULE: Reinforcement UnLEarning Achieves Forget-Retain Pareto Optimalitycited by 14
  12. 2025Short-length Adversarial Training Helps LLMs Defend Long-length Jailbreak Attacks: Theoretical and Empirical Evidencecited by 13
  13. 2024Adversarial Attacks on Large Language Models Using Regularized Relaxationcited by 12
  14. 2025BLUR: A Benchmark for LLM Unlearning Robust to Forget-Retain Overlapcited by 12
  15. 2025Robust Answers, Fragile Logic: Probing the Decoupling Hypothesis in LLM Reasoningcited by 11
  16. 2025Jailbreak Attack Initializations as Extractors of Compliance Directionscited by 10
  17. 2025Robustness and Cybersecurity in the EU Artificial Intelligence Actcited by 10
  18. 2025A Representation Engineering Perspective on the Effectiveness of Multi-Turn Jailbreakscited by 10
  19. 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Searchcited by 10
  20. 2025Agents Are All You Need for LLM Unlearningcited by 9
  21. 2025SoK: Machine Unlearning for Large Language Modelscited by 9
  22. 2025Adversarial Alignment for LLMs Requires Simpler, Reproducible, and More Measurable Objectivescited by 8
  23. 2024Self-interpreting Adversarial Imagescited by 7
  24. 2025Does Machine Unlearning Truly Remove Knowledge?cited by 7
  25. 2025Improving Large Language Model Safety with Contrastive Representation Learningcited by 7
  26. 2025Model Collapse Is Not a Bug but a Feature in Machine Unlearning for LLMscited by 7
  27. 2025Unraveling LLM Jailbreaks Through Safety Knowledge Neuronscited by 7
  28. 2025Diffusion LLMs are Natural Adversaries for any LLMcited by 7
  29. 2024Adversarial Vulnerabilities in Large Language Models for Time Series Forecastingcited by 6
  30. 2025Harry Potter is Still Here! Probing Knowledge Leakage in Targeted Unlearned Large Language Models via Automated Adversarial Promptingcited by 6
  31. 2025Sysformer: Safeguarding Frozen Large Language Models with Adaptive System Promptscited by 5
  32. 2025SocialHarmBench: Revealing LLM Vulnerabilities to Socially Harmful Requestscited by 5
  33. 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Researchcited by 5
  34. 2024Functional Homotopy: Smoothing Discrete Optimization via Continuous Parameters for LLM Jailbreak Attackscited by 4
  35. 2025SUA: Stealthy Multimodal Large Language Model Unlearning Attackcited by 4
  36. 2026REBEL: Hidden Knowledge Recovery via Evolutionary-Based Evaluation Loopcited by 4
  37. 2025Fast Proxies for LLM Robustness Evaluationcited by 3
  38. 2025Adversarial Attack on Large Language Models using Exponentiated Gradient Descentcited by 3

50 most cited of 88 All 88 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025Breaking to Build: A Threat Model of Prompt-Based Attacks for Securing LLMs
  2. 2025Paper Summary Attack: Jailbreaking LLMs through LLM Safety Papers
  3. 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attacks
  4. 2024Single Character Perturbations Break LLM Alignment
  5. 2026Faithful Dual-constrained Erasure for Robust LLM Safety Alignment
  6. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep
  7. 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systems
  8. 2025Data Security in Large Language Models: Risks, Defense, and Directions