Feature-Aware Malicious Output Detection and Mitigation
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
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Root Defence Strategies: Ensuring Safety of LLM at the Decoding Level
- 2025SDGO: Self-Discrimination-Guided Optimization for Consistent Safety in Large Language Models
- 2025Understanding and Mitigating Over-refusal for Large Language Models via Representation Intervention
- 2025SafeLLM: Unlearning Harmful Outputs from Large Language Models against Jailbreak Attacks
- 2024Probing the Safety Response Boundary of Large Language Models via Unsafe Decoding Path Generation
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
- 2026Jailbreaking Large Language Models through Iterative Tool-Disguised Attacks via Reinforcement Learning
- 2025Defending Large Language Models Against Jailbreak Exploits with Responsible AI Considerations