arXiv:2505.15795cs.CL2025-05NeurIPS被引 1

用强化学习反向设计提示词,让大模型更易骗过评分模型。

Reverse Engineering Human Preferences with Reinforcement Learning

  • 通过强化学习优化生成前导文本的模型,提升下游表现得分。
  • 优化后模型在多个评测中超越现有框架,得分提升显著。
  • 方法隐蔽性强,且可跨模型迁移,对评估体系构成挑战。

大型语言模型(LLM)的性能通常由另一训练用于预测人类偏好的LLM进行评估,即「LLM作为评判者」框架。该方法可扩展性强且成本低,但易被恶意利用:LLM输出可被调整以过度拟合评判者的偏好。此前研究显示,候选模型的输出可通过事后修改最大化评分。本研究采用不同策略,将评判者提供的信号作为奖励,通过对抗性方式优化生成文本前导部分的模型,以提升下游性能得分。结果表明,冻结的LLM与该前导生成模型串联后,获得的LLM评估分数高于现有框架。关键在于,该方法不直接干预模型输出,几乎无法被检测。此外,我们还证明,经训练的前导生成器在替换候选模型和评判模型时仍有效。这些发现揭示了当前评估设置的脆弱性,也展示了通过强化学习逆向工程人类偏好的可行性,该方法未来或可用于多样化任务,而不仅限于对抗攻击。

原文摘要 · Abstract (English)

The capabilities of Large Language Models (LLMs) are routinely evaluated by other LLMs trained to predict human preferences. This framework--known as LLM-as-a-judge--is highly scalable and relatively low cost. However, it is also vulnerable to malicious exploitation, as LLM responses can be tuned to overfit the preferences of the judge. Previous work shows that the answers generated by a candidate-LLM can be edited post hoc to maximise the score assigned to them by a judge-LLM. In this study, we adopt a different approach and use the signal provided by judge-LLMs as a reward to adversarially tune models that generate text preambles designed to boost downstream performance. We find that frozen LLMs pipelined with these models attain higher LLM-evaluation scores than existing frameworks. Crucially, unlike other frameworks which intervene directly on the model's response, our method is virtually undetectable. We also demonstrate that the effectiveness of the tuned preamble generator transfers when the candidate-LLM and the judge-LLM are replaced with models that are not used during training. These findings raise important questions about the design of more reliable LLM-as-a-judge evaluation settings. They also demonstrate that human preferences can be reverse engineered effectively, by pipelining LLMs to optimise upstream preambles via reinforcement learning--an approach that could find future applications in diverse tasks and domains beyond adversarial attacks.

强化学习大模型评估对抗攻击提示工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。