paper-with-me

Papers

Making Harmful Behaviors Unlearnable for Large Language Models

2023-11-02 · Xin Zhou, Yi Lu, Ruotian Ma, Tao Gui, Qi Zhang, Xuanjing Huang

Large language models (LLMs) have shown great potential as general-purpose AI assistants in various domains. To meet the requirements of different applications, LLMs are often customized by further fine-tuning. However, the powerful learning ability of LLMs not only enables them to acquire new tasks but also makes them susceptible to learning undesired behaviors. For example, even safety-aligned LLMs can be easily fine-tuned into harmful assistants as the fine-tuning data often contains implicit or explicit harmful content. Can we train LLMs on harmful data without learning harmful behaviors? This paper proposes a controllable training framework that makes harmful behaviors unlearnable during the fine-tuning process. Specifically, we introduce ``security vectors'', a few new parameters that can be separated from the LLM, to ensure LLM's responses are consistent with the harmful behavior. Security vectors are activated during fine-tuning, the consistent behavior makes LLM believe that such behavior has already been learned, there is no need to further optimize for harmful data. During inference, we can deactivate security vectors to restore the LLM's normal behavior. The experimental results show that the security vectors generated by 100 harmful samples are enough to prevent LLM from learning 1000 harmful samples, while preserving the ability to learn other useful information.

📄 PDF Abstract BibTeX arXiv:2311.02105

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Eliciting Language Model Behaviors with Investigator Agents

2025-02-03 · Xiang Lisa Li, Neil Chowdhury, Daniel D. Johnson, Tatsunori Hashimoto 외

Language models exhibit complex, diverse behaviors when prompted with free-form text, making it difficult to characterize the space of possible outputs. We study the problem of behavior elicitation, where the goal is to …

Bayesian InferenceHallucinationLanguage ModelingLanguage Modelling+2

Vulnerability-Aware Alignment: Mitigating Uneven Forgetting in Harmful Fine-Tuning

2025-06-04 · Liang Chen, Xueting Han, Li Shen, Jing Bai 외

Harmful fine-tuning (HFT), performed directly on open-source LLMs or through Fine-tuning-as-a-Service, breaks safety alignment and poses significant threats. Existing methods aim to mitigate HFT risks by learning robust …

Safety Alignment

Refusal-Trained LLMs Are Easily Jailbroken As Browser Agents

2024-10-11 · Priyanshu Kumar, Elaine Lau, Saranya Vijayakumar, Tu Trinh 외

For safety reasons, large language models (LLMs) are trained to refuse harmful user instructions, such as assisting dangerous activities. We study an open question in this work: does the desired safety refusal, typically…

ChatbotRed Teaming

An Empirical Study of Collective Behaviors and Social Dynamics in Large Language Model Agents

2026-02-03 · Farnoosh Hashemi, Michael W. Macy arxiv

Large Language Models (LLMs) increasingly mediate our social, cultural, and political interactions. While they can simulate some aspects of human behavior and decision-making, it is still underexplored whether repeated i…

Reversible Unlearnable Examples: Towards the Copyright Protection in Deep Learning Era

2026-08-06 · Binze Wang, Jinyu Tian, Xingrun Wang, Xiaochen Yuan 외 arxiv

Significant advancements in deep learning have been made possible by the utilization of large datasets, underscoring the critical importance of copyright protection. Adding meticulously designed perturbations to examples…