arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.04392cs.CRcs.AI
收藏

微调、量化与大语言模型:应对意外后果

Fine-Tuning, Quantization, and LLMs: Navigating Unintended Outcomes

Enkrypt AI

Divyanshu Kumar, Anurakt Kumar, Sahil Agarwal, Prashanth Harshangi

AI总结:

本文评估Mistral、Llama、Qwen和MosaicML及其微调变体,揭示微调通常提升越狱成功率、量化影响不一,而恰当防护栏可显著增强安全性。

摘要:

大语言模型(LLM)已在聊天机器人和自动任务完成智能体等多个领域得到广泛应用。然而,这些模型容易受到越狱、提示注入和隐私泄露攻击等安全漏洞的影响。这些漏洞可能导致恶意内容生成、未授权操作或机密信息泄露。尽管基础LLM经过对齐训练并纳入了安全措施,但在资源受限环境中,它们往往还会被微调或进行量化。本研究考察了这些修改对LLM安全性的影响,这是构建可靠且安全的AI系统的关键考量。我们评估了Mistral、Llama系列、Qwen和MosaicML等基础模型及其微调变体。综合分析表明,微调通常会提高越狱攻击的成功率,而量化对攻击成功率的影响则并不固定。重要的是,我们发现正确实施的防护栏能够显著增强对越狱尝试的抵抗能力。这些发现有助于理解LLM漏洞,并为在语言模型部署中制定更稳健的安全策略提供洞见。

英文摘要:

Large Language Models (LLMs) have gained widespread adoption across various domains, including chatbots and auto-task completion agents. However, these models are susceptible to safety vulnerabilities such as jailbreaking, prompt injection, and privacy leakage attacks. These vulnerabilities can lead to the generation of malicious content, unauthorized actions, or the disclosure of confidential information. While foundational LLMs undergo alignment training and incorporate safety measures, they are often subject to fine-tuning, or doing quantization resource-constrained environments. This study investigates the impact of these modifications on LLM safety, a critical consideration for building reliable and secure AI systems. We evaluate foundational models including Mistral, Llama series, Qwen, and MosaicML, along with their fine-tuned variants. Our comprehensive analysis reveals that fine-tuning generally increases the success rates of jailbreak attacks, while quantization has variable effects on attack success rates. Importantly, we find that properly implemented guardrails significantly enhance resistance to jailbreak attempts. These findings contribute to our understanding of LLM vulnerabilities and provide insights for developing more robust safety strategies in the deployment of language models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑