paper-with-me

홈 › Papers

Jailbreak Instruction-Tuned LLMs via end-of-sentence MLP Re-weighting

2024-10-14 · Yifan Luo, Zhennan Zhou, Meitan Wang, Bin Dong

In this paper, we investigate the safety mechanisms of instruction fine-tuned large language models (LLMs). We discover that re-weighting MLP neurons can significantly compromise a model's safety, especially for MLPs in end-of-sentence inferences. We hypothesize that LLMs evaluate the harmfulness of prompts during end-of-sentence inferences, and MLP layers plays a critical role in this process. Based on this hypothesis, we develop 2 novel white-box jailbreak methods: a prompt-specific method and a prompt-general method. The prompt-specific method targets individual prompts and optimizes the attack on the fly, while the prompt-general method is pre-trained offline and can generalize to unseen harmful prompts. Our methods demonstrate robust performance across 7 popular open-source LLMs, size ranging from 2B to 72B. Furthermore, our study provides insights into vulnerabilities of instruction-tuned LLM's safety and deepens the understanding of the internal mechanisms of LLMs.

📄 PDF Abstract BibTeX arXiv:2410.10150

Code (0)

등록된 구현이 없습니다.

Tasks

Sentence

Similar Papers 제목 키워드 기반

Analyzing the Inherent Response Tendency of LLMs: Real-World Instructions-Driven Jailbreak

2023-12-07 · Yanrui Du, Sendong Zhao, Ming Ma, Yuhan Chen 외

Extensive work has been devoted to improving the safety mechanism of Large Language Models (LLMs). However, LLMs still tend to generate harmful responses when faced with malicious instructions, a phenomenon referred to a…

Jailbreaking Large Language Models Against Moderation Guardrails via Cipher Characters

2024-05-30 · Haibo Jin, Andy Zhou, Joe D. Menke, Haohan Wang

Large Language Models (LLMs) are typically harmless but remain vulnerable to carefully crafted prompts known as ``jailbreaks'', which can bypass protective measures and induce harmful behavior. Recent advancements in LLM…

Red Teaming

Enhancing Document-level Translation of Large Language Model via Translation Mixed-instructions

2024-01-16 · Yachao Li, Junhui Li, Jing Jiang, Min Zhang

Existing large language models (LLMs) for machine translation are typically fine-tuned on sentence-level translation instructions and achieve satisfactory performance at the sentence level. However, when applied to docum…

Language ModelingLanguage ModellingLarge Language ModelMachine Translation+2

Latent Jailbreak: A Benchmark for Evaluating Text Safety and Output Robustness of Large Language Models

2023-07-17 · Huachuan Qiu, Shuai Zhang, Anqi Li, Hongliang He 외

Considerable research efforts have been devoted to ensuring that large language models (LLMs) align with human values and generate safe text. However, an excessive focus on sensitivity to certain topics can compromise th…

Rewrite to Jailbreak: Discover Learnable and Transferable Implicit Harmfulness Instruction

2025-02-16 · YuTing Huang, Chengyuan Liu, Yifeng Feng, Chao Wu 외

As Large Language Models (LLMs) are widely applied in various domains, the safety of LLMs is increasingly attracting attention to avoid their powerful capabilities being misused. Existing jailbreak methods create a force…

Instruction Following