mlsanityData to 7 Oct 2026

SOS! Soft Prompt Attack Against Open-Source Large Language Models

arXiv 2407.03160 ↗First posted 3 Jul 2024cs.CR cs.CL cs.LGcited by 7

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Open-source large language models (LLMs) have become increasingly popular among both the general public and industry, as they can be customized, fine-tuned, and freely used. However, some open-source LLMs require approval before usage, which has led to third parties publishing their own easily accessible versions. Similarly, third parties have been publishing fine-tuned or quantized variants of these LLMs. These versions are particularly appealing to users because of their ease of access and reduced computational resource demands. This trend has increased the risk of training time attacks, compromising the integrity and security of LLMs. In this work, we present a new training time attack, SOS, which is designed to be low in computational demand and does not require clean data or modification of the model weights, thereby maintaining the model's utility intact. The attack addresses security issues in various scenarios, including the backdoor attack, jailbreak attack, and prompt stealing attack. Our experimental findings demonstrate that the proposed attack is effective across all evaluated targets. Furthermore, we present the other side of our SOS technique, namely the copyright token -- a novel technique that enables users to mark their copyrighted content and prevent models from using it.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 49 of its 63 references that are in the map. First posted on arXiv 3 Jul 2024.

Builds on

49 of 63 references.

Closest ancestors · 2

Same direction, newest first

  1. 2023Attack Prompt Generation for Red Teaming and Defending Large Language Models19 Oct
  2. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb

Other references · 47

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  7. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  8. 2017Deep reinforcement learning from human preferencescited by 3,846
  9. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  10. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  11. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  12. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
35 more
  1. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  2. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
  3. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
  4. 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
  5. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
  6. 2023Instruction Tuning with GPT-4cited by 676
  7. 2021ClipCap: CLIP Prefix for Image Captioningcited by 557
  8. 2023The Falcon Series of Open Language Modelscited by 526
  9. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
  10. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 478
  11. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
  12. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
  13. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  14. 2023Benchmarking Large Language Models in Retrieval-Augmented Generationcited by 307
  15. 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 246
  16. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  17. 2023Multilingual Jailbreak Challenges in Large Language Modelscited by 222
  18. 2019A backdoor attack against LSTM-based text classification systemscited by 214
  19. 2020HateBERT: Retraining BERT for Abusive Language Detection in Englishcited by 206
  20. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
  21. 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 181
  22. 2020Dynamic Backdoor Attacks Against Machine Learning Modelscited by 147
  23. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 143
  24. 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Modelscited by 96
  25. 2021Challenges in Automated Debiasing for Toxic Language Detectioncited by 95
  26. 2023Effective Prompt Extraction from Language Modelscited by 83
  27. 2024Instructional Fingerprinting of Large Language Modelscited by 64
  28. 2023Composite Backdoor Attacks Against Large Language Modelscited by 63
  29. 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
  30. 2023Prompt Stealing Attacks Against Text-to-Image Generation Modelscited by 48
  31. 2022Watermarking Pre-trained Language Models with Backdooringcited by 44
  32. 2022Data Poisoning Attacks Against Multimodal Encoderscited by 41
  33. 2024Prompt Stealing Attacks Against Large Language Modelscited by 39
  34. 2023HuRef: HUman-REadable Fingerprint for Large Language Modelscited by 32
  35. 2022PLUE: Language Understanding Evaluation Benchmark for Privacy Policies in Englishcited by 5

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 6.

7 papers.