mlsanityData to 14 Oct 2026

Feature-Aware Malicious Output Detection and Mitigation

arXiv 2504.09191 ↗First posted 12 Apr 2025cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

The rapid advancement of large language models (LLMs) has brought significant benefits to various domains while introducing substantial risks. Despite being fine-tuned through reinforcement learning, LLMs lack the capability to discern malicious content, limiting their defense against jailbreak. To address these safety concerns, we propose a feature-aware method for harmful response rejection (FMM), which detects the presence of malicious features within the model's feature space and adaptively adjusts the model's rejection mechanism. By employing a simple discriminator, we detect potential malicious traits during the decoding phase. Upon detecting features indicative of toxic tokens, FMM regenerates the current token. By employing activation patching, an additional rejection vector is incorporated during the subsequent token generation, steering the model towards a refusal response. Experimental results demonstrate the effectiveness of our approach across multiple language models and diverse attack techniques, while crucially maintaining the models' standard generation capabilities.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 19 references that are in the map. First posted on arXiv 12 Apr 2025.

Builds on

15 of 19 references.

References · 15

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  5. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  6. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  7. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  8. 2021Ethical and social risks of harm from Language Modelscited by 966
  9. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  10. 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
  11. 2023Detecting Language Model Attacks with Perplexitycited by 431
  12. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
3 more
  1. 2023Multimodal Large Language Models: A Surveycited by 195
  2. 2024A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicitycited by 185
  3. 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden Statescited by 98

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Root Defence Strategies: Ensuring Safety of LLM at the Decoding Level
  2. 2025SDGO: Self-Discrimination-Guided Optimization for Consistent Safety in Large Language Models
  3. 2025Understanding and Mitigating Over-refusal for Large Language Models via Representation Intervention
  4. 2025SafeLLM: Unlearning Harmful Outputs from Large Language Models against Jailbreak Attacks
  5. 2024Probing the Safety Response Boundary of Large Language Models via Unsafe Decoding Path Generation
  6. 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
  7. 2026Jailbreaking Large Language Models through Iterative Tool-Disguised Attacks via Reinforcement Learning
  8. 2025Defending Large Language Models Against Jailbreak Exploits with Responsible AI Considerations