Lune

ICLR2024顶会

Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructions

Federico Bianchi, Mirac Suzgun, Giuseppe Attanasio, Paul Röttger, Dan Jurafsky, Tatsunori Hashimoto, James Zou

摘要

Training large language models to follow instructions makes them perform better on a wide range of tasks and generally become more helpful. However, a perfectly helpful model will follow even the most malicious instructions and readily generate harmful content. In this paper, we raise concerns over the safety of models that only emphasize helpfulness, not harmlessness, in their instruction-tuning. We show that several popular instruction-tuned models are highly unsafe. Moreover, we show that adding just 3% safety examples (a few hundred demonstrations) when fine-tuning a model like LLaMA can substantially improve its safety. Our safety-tuning does not make models significantly less capable or helpful as measured by standard benchmarks. However, we do find exaggerated safety behaviours, where too much safety-tuning makes models refuse perfectly safe prompts if they superficially resemble unsafe ones. As a whole, our results illustrate trade-offs in training LLMs to be helpful and training them to be safe.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 135 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher 引用了 Training language models to follow instructions with human feedback
  • QLoRA: Efficient Finetuning of Quantized LLMs 引用了 LoRA: Low-Rank Adaptation of Large Language Models
  • QLoRA: Efficient Finetuning of Quantized LLMs 引用了 Training language models to follow instructions with human feedback
  • In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering 引用了 LoRA: Low-Rank Adaptation of Large Language Models
  • In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • Safe LoRA: The Silver Lining of Reducing Safety Risks when Finetuning Large Language Models 引用了 GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher
  • Safe LoRA: The Silver Lining of Reducing Safety Risks when Finetuning Large Language Models 引用了 LoRA: Low-Rank Adaptation of Large Language Models
  • Safe LoRA: The Silver Lining of Reducing Safety Risks when Finetuning Large Language Models 引用了 Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!
  • Safe LoRA: The Silver Lining of Reducing Safety Risks when Finetuning Large Language Models 引用了 Training language models to follow instructions with human feedback
  • Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To! 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To! 引用了 Training language models to follow instructions with human feedback
  • WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models 引用了 GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher
  • WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models 引用了 Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!
  • Training language models to follow instructions with human feedback 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper135

  1. Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!Xiangyu Qi, Yi Zeng, Tinghao Xie, Pin-Yu Chen 等ICLR 2024 · 1,104 次引用
  2. GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via CipherYouliang Yuan, Wenxiang Jiao, Wenxuan Wang, Jen-tse Huang 等ICLR 2024 · 441 次引用
  3. WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language ModelsLiwei Jiang, Kavel Rao, Seungju Han, Allyson Ettinger 等NeurIPS 2024 · 247 次引用
  4. In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space SteeringSheng Liu, Haotian Ye, Lei Xing, James Y. ZouICML 2024 · 244 次引用
  5. Safe LoRA: The Silver Lining of Reducing Safety Risks when Finetuning Large Language ModelsChia-Yi Hsu, Yu-Lin Tsai, Chih-Hsun Lin, Pin-Yu Chen 等NeurIPS 2024 · 165 次引用

它引用的 Paper11

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
  2. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
  3. QLoRA: Efficient Finetuning of Quantized LLMsTim Dettmers, Artidoro Pagnoni, Ari Holtzman, Luke ZettlemoyerNeurIPS 2023 · 5,863 次引用
  4. PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao 等AAAI 2020 · 2,916 次引用
  5. RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi 等EMNLP Findings 2020 · 692 次引用

相关 Paper

  1. ToolSafety: A Comprehensive Dataset for Enhancing Safety in LLM-Based Agent Tool InvocationsYuejin Xie, Youliang Yuan, Wenxuan Wang, Fan Mo 等EMNLP 2025 · 7 次引用
  2. Revealing the Inherent Instructability of Pre-Trained Language ModelsSeokhyun An, Minji Kim, Hyounghun KimEMNLP Findings 2025 · 1 次引用
  3. Safety Fine-Tuning at (Almost) No Cost: A Baseline for Vision Large Language ModelsYongshuo Zong, Ondrej Bohdal, Tingyang Yu, Yongxin Yang 等ICML 2024 · 140 次引用
  4. From Representational Harms to Quality-of-Service Harms: A Case Study on Llama 2 Safety SafeguardsKhaoula Chehbouni, Megha Roshan, Emmanuel Ma, Futian Andrew Wei 等ACL Findings 2024 · 7 次引用
  5. The Heterogeneous Safety Impacts of Benign Multilingual Fine-TuningWill Hawkins, Kai Rawal, Jonathan Rystrøm, Stratis Tsirtsis 等ICML 2026
黄昏的海面,两侧是细线勾勒的悬崖