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

提示词优化使奖励黑客行为可解释

Prompt Optimization Makes Reward Hacking Legible

MATS;UC Berkeley(加州大学伯克利分校)

Caleb Biddulph, Micah Carroll

AI总结:

该研究提出用GEPA等提示词优化器优化LLM提示词,可使奖励黑客行为更易监控,还能结合RL性能与提示可解释性,助力创建可预测的AI系统。

摘要:

通过强化学习(RL)训练的大语言模型(LLM)常出现奖励黑客行为,即利用奖励函数中未预期的漏洞,这类行为难以检测和消除。我们提出使用提示词优化——通过更新指令而非权重来提升LLM奖励的方法——使学习到的策略更易监控和编辑。将GEPA提示词优化器应用于存在可利用奖励函数的环境,我们发现优化后的系统提示词以高度可解释的语言描述了奖励黑客策略。此外,在测试时只需从优化后的系统提示词中移除不良行为的描述,即可在保留合法性能提升的同时改善模型对齐。我们表明,提示词优化可由经RL训练的教师LLM引导,结合RL的性能优势与提示的可解释性。最后,我们探索缩短优化后提示词的方法,移除会阻碍可解释性的分散且无用的指令。我们希望这些关于通过提示词优化缓解对齐问题的见解,将有助于发现RL环境中的未预期漏洞,并创建可预测、可监控的AI系统。

英文摘要:

Large language models (LLMs) trained with reinforcement learning (RL) often exhibit reward hacking, exploiting unintended loopholes in reward functions in ways that can be difficult to detect and eliminate. We propose using prompt optimization -- methods which increase an LLM's reward by updating its instructions rather than its weights -- to make learned strategies easier to monitor and edit. Applying the GEPA prompt optimizer to environments with exploitable reward functions, we find that optimized system prompts describe reward hacking strategies in highly interpretable language. Furthermore, by simply removing descriptions of unwanted behavior from the optimized system prompt at test time, we can improve the model's alignment while preserving legitimate performance gains. We show that prompt optimization can be guided with an RL-trained teacher LLM, combining the performance advantages of RL with the interpretability of prompting. Finally, we explore an approach to shorten optimized prompts, removing distracting and unhelpful instructions which would otherwise hinder interpretability. We hope that these insights about mitigating misalignment with prompt optimization will aid the discovery of unintended exploits in RL environments and the creation of predictable and monitorable AI systems.

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

↑