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

输出长度对 Forced Thinking 场景下 DeepSeek-R1 安全性的影响

Output Length Effect on DeepSeek-R1's Safety in Forced Thinking

HydroX AI

Xuying Li, Zhuo Li, Yuji Kosuga, Victor Bian

AI总结:

本研究探讨了输出长度对 DeepSeek-R1 在 Forced Thinking 场景下安全性的影响,发现较长输出虽能通过自我修正提升安全性,但也会被特定攻击利用,据此提出动态控制输出长度及基于强化学习的策略调整以增强 LLM 安全性。

摘要:

大型语言模型(LLMs)已展现出强大的推理能力,但在对抗条件下的安全性仍是一项挑战。本研究探讨了输出长度对 DeepSeek-R1 鲁棒性的影响,特别是在 Forced Thinking 场景中。我们分析了各种对抗性提示下的回复,发现较长的输出虽能通过自我修正提升安全性,但某些攻击类型会利用其扩展生成内容。研究结果表明,应动态控制输出长度以平衡推理有效性与安全性。我们提出基于强化学习的策略调整和自适应 token 长度调节来增强 LLM 安全性。

英文摘要:

Large Language Models (LLMs) have demonstrated strong reasoning capabilities, but their safety under adversarial conditions remains a challenge. This study examines the impact of output length on the robustness of DeepSeek-R1, particularly in Forced Thinking scenarios. We analyze responses across various adversarial prompts and find that while longer outputs can improve safety through self-correction, certain attack types exploit extended generations. Our findings suggest that output length should be dynamically controlled to balance reasoning effectiveness and security. We propose reinforcement learning-based policy adjustments and adaptive token length regulation to enhance LLM safety.

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

↑