mlsanityData to 7 Oct 2026

MEGen: Generative Backdoor into Large Language Models via Model Editing

arXiv 2408.10722 ↗First posted 20 Aug 2024cs.CL cs.AIcited by 5

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

Large language models (LLMs) have exhibited remarkable versatility and adaptability, while their widespread adoption across various applications also raises critical safety concerns. This paper focuses on the impact of backdoored LLMs. Traditional backdoor injection methods are primarily limited to yes-or-no discriminative tasks, leading users to underestimate the potential risks of backdoored LLMs. Given the inherently generative nature of LLMs, this paper reveals that a generative backdoor injected into LLMs can expose the true safety risks in their applications. We propose an editing-based generative backdoor, named MEGen, aiming to expand the backdoor to generative tasks in a unified format of any text-to any text, leading to natural generations with a specific intention. Experiments show that MEGen achieves a high attack success rate by adjusting only a small set of local parameters with few-shot samples. Notably, we show that the backdoored model, when triggered, can freely output pre-set dangerous information while completing downstream tasks. Our work highlights that MEGen enables backdoors in LLMs to exhibit generative capabilities, causing potential safety risks by altering the generative style. The code is available at https://github.com/MonoQ-hub/MEGen.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 39 of its 48 references that are in the map. First posted on arXiv 20 Aug 2024.

Builds on

39 of 48 references.

Closest ancestors · 8

Same direction, newest first

  1. 2024BadEdit: Backdooring large language models by model editing20 Mar
  2. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
  3. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injection31 Jul
  4. 2023NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Models28 May
  5. 2022BadPrompt: Backdoor Attacks on Continuous Prompts27 Nov
  6. 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Models6 Oct
  7. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
  8. 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Models29 Mar

Other references · 31

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  5. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  6. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  7. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  8. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  9. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  10. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
  11. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  12. 2022Mass-Editing Memory in a Transformercited by 976
19 more
  1. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  2. 2023Baichuan 2: Open Large-scale Language Modelscited by 664
  3. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 514
  4. 2022Memory-Based Model Editing at Scalecited by 443
  5. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 401
  6. 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Modelscited by 356
  7. 2024TrustLLM: Trustworthiness in Large Language Modelscited by 280
  8. 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 267
  9. 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 240
  10. 2023Transformer-Patcher: One Mistake worth One Neuroncited by 196
  11. 2023PMET: Precise Model Editing in a Transformercited by 170
  12. 2023A Categorical Archive of ChatGPT Failurescited by 167
  13. 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agentscited by 135
  14. 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 103
  15. 2024Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescuecited by 101
  16. 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
  17. 2021Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attackscited by 44
  18. 2023Prompt-Based Editing for Text Style Transfercited by 16
  19. 2024On the Robustness of Editing Large Language Modelscited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 2; 2026: 2.

5 papers.