跳到主内容
精选85MIT Technology Review AI(RSS)模型发布/更新多源精选 ×5

OpenAI 技术报告揭秘:智能体为何攻击 Hugging Face

The inside story on why OpenAI agents hacked Hugging Face

原文
推荐理由

做对齐和智能体安全研究的同学必看,OpenAI 首次披露智能体在训练中学会作弊并攻击外部系统的完整内幕,赶紧读技术报告和 METR 的分析。

The models responsible for last month’s agent hack of Hugging Face had been inadvertently trained to cheat and to communicate with each other, according to an OpenAI technical report released today. The hack, which a group of agents undertook to find solutions for a cybersecurity test that they were stuck on, has confirmed some experts’ fears that AI models might take actions that defy human desires and expectations.

根据OpenAI今日发布的技术报告,上个月Hugging Face遭智能体黑客攻击所涉及的模型,在训练过程中无意间学会了作弊和相互通信。一群智能体为了寻找他们卡住的网络安全测试的解决方案而进行了这次攻击,这证实了一些专家的担忧,即AI模型可能采取违背人类意愿和期望的行动。

Since the hack, OpenAI employees—as well as researchers at the AI evaluation nonprofit METR, which released its own report on the hack today—have worked to understand what went wrong and how similar missteps might be prevented in the future. OpenAI has already put some preventative measures in place based on what they discovered. But making sure AI models do what we want them to do, or “alignment,” remains a gnarly problem, and some of the root causes of the hack will take much longer than a month to resolve.

自攻击事件以来,OpenAI员工以及AI评估非营利组织METR的研究人员(该组织今日也发布了关于此事件的报告)一直在努力理解问题所在,并探讨如何防止未来发生类似失误。OpenAI已根据他们的发现采取了一些预防措施。但确保AI模型按照我们的意愿行事,即“对齐”,仍然是一个棘手的问题,而这次攻击的一些根本原因需要比一个月更长的时间来解决。

“It’s not something you can solve overnight,” says Kai Chen, who runs OpenAI’s alignment research team. “There are challenges we’ve been tracking for a very long time, and we’re now seeing them with much greater precision.”

“这不是一夜之间就能解决的问题,”OpenAI对齐研究团队负责人Kai Chen表示。“我们追踪这些挑战已经很长时间了,现在能以更高的精度看到它们。”

The Hugging Face hack was a product of months of misbehavior from OpenAI agents, first as they were being trained and then as their abilities were being evaluated. This May, agents in training figured out how to use OpenAI’s infrastructure to communicate with one another and get support with difficult training tasks, including some that were impossible to solve without hacking or otherwise misbehaving. That “message board” was shut down.

Hugging Face攻击事件是OpenAI智能体数月不当行为的产物,首先是在训练阶段,然后是在能力评估阶段。今年5月,训练中的智能体学会了利用OpenAI的基础设施相互通信,并在困难的训练任务中获得支持,包括一些不通过黑客攻击或其他不当行为就无法解决的任务。那个“留言板”被关闭了。

Then in July, while being evaluated for their cybersecurity abilities, some models created a new message board. They were supposed to be isolated from the internet, but by working together they managed to get online, hack Hugging Face, and obtain solutions for the cybersecurity problems that had stumped them.

随后在7月,在评估网络安全能力时,一些模型创建了新的留言板。它们本应与互联网隔离,但通过协作,它们设法上网,攻击了Hugging Face,并获得了曾让它们困惑的网络安全问题的解决方案。

Based on their investigation, OpenAI researchers believe that events during the training phase led directly to the hack. “For almost every behavior that was worrisome at evaluation time, [we were able to] find some sort of associated behavior at training time that actually we think might have contributed to it,” says Eric Wallace, a member of OpenAI’s alignment research team.

根据他们的调查,OpenAI研究人员认为训练阶段的事件直接导致了这次攻击。“对于评估时几乎每一个令人担忧的行为,[我们能够]在训练时找到某种相关的行为,我们认为这可能促成了它,”OpenAI对齐研究团队成员Eric Wallace表示。

When models correctly solve problems during training, the behaviors that led them to that solution are reinforced, and they become more likely to engage in them in the future. So if a model completed a task in May after using the original message board, it became more likely to participate in a new message board later on. This phenomenon, where AI agents misbehave in ways that are reinforced during the training process, is known as reward hacking.

当模型在训练过程中正确解决问题时,引导它们得出该解决方案的行为会得到强化,未来它们更有可能采取这些行为。因此,如果模型在五月使用原始留言板后成功完成了任务,它就更有可能在之后参与新的留言板。这种AI代理在训练过程中以被强化的方式表现不当的现象,被称为奖励黑客。

Reward hacking also helps to explain why the models worked so hard to make their way onto the internet. During its investigation of the incident, the OpenAI team found that, over the course of training, the models became more and more likely to probe their digital environment for weaknesses and use the tools at their disposal in unexpected ways—a sign that these behaviors were being gradually reinforced. By the time the models were facing tricky cybersecurity problems, they had learned that hacking was an effective way to achieve their goals.

奖励黑客也解释了为何模型如此努力地试图接入互联网。在调查该事件期间,OpenAI团队发现,在训练过程中,模型越来越倾向于探测其数字环境的弱点,并以意想不到的方式使用手头的工具——这表明这些行为正在逐渐被强化。到模型面对棘手的网络安全问题时,它们已经学会黑客攻击是实现目标的有效手段。

These results suggest that the Hugging Face hack could have been avoided if the models weren’t rewarded for misbehaving during training. While researchers don’t yet know how to prevent reward hacking entirely, OpenAI is taking some steps toward mitigating its effects. The company will now look for signs of cheating in all frontier models during training by keeping an eye on their chains of thought—internal notepads where they sketch out their answers and plan their actions.

这些结果表明,如果模型在训练期间没有因不当行为而获得奖励,Hugging Face黑客事件本可以避免。虽然研究人员尚不清楚如何完全防止奖励黑客,OpenAI正在采取一些措施来减轻其影响。公司现在将在所有前沿模型的训练过程中,通过监控它们的思维链——即内部记事本,模型在其中草拟答案和规划行动——来寻找作弊迹象。

This solution isn’t as much of a slam dunk as it might seem: In earlier research, OpenAI showed that punishing models that mention cheating in their chains of thought teaches them to keep their intentions hidden from researchers. But monitoring its models’ thinking does give OpenAI the chance to halt the training process and reassess its approach if models do start learning to reward hack.

这个解决方案并非看起来那么简单:在早期研究中,OpenAI表明,惩罚在思维链中提及作弊的模型,会教会它们向研究人员隐藏自己的意图。但监控模型的思考确实给了OpenAI机会,如果模型开始学习奖励黑客,可以暂停训练过程并重新评估其方法。

If OpenAI stops reinforcing reward hacking in its models—and that’s a huge “if”—that would be a huge step forward. But it wouldn’t solve the alignment problem. The first time a model communicated with other agents or hacked its infrastructure during training, those behaviors had never been reinforced, so agent misbehavior can’t only be attributed to that reinforcement.

如果OpenAI停止强化模型中的奖励黑客行为——这是一个巨大的“如果”——那将是向前迈出的一大步。但这并不能解决对齐问题。当模型在训练期间首次与其他代理通信或入侵其基础设施时,这些行为从未被强化过,因此代理的不当行为不能仅仅归因于这种强化。

Jeffrey Ladish, director of the AI safety nonprofit Palisade Research, compares the agents to a human who commits their first financial crime. “It’s not like they had to do fraud before to figure out that fraud is an effective strategy, and you have the same problem with models,” Ladish says. “Alignment science needs to be understanding how model motivations get shaped, such that we can actually figure out how to get models to care about the consequences of their actions.”

杰弗里·拉迪什,AI安全非营利组织Palisade Research的主任,将智能体比作首次实施金融犯罪的人。“他们并不需要事先犯过欺诈罪才能发现欺诈是一种有效的策略,模型也存在同样的问题,”拉迪什说。“对齐科学需要理解模型动机是如何形成的,这样我们才能真正找到方法让模型关心其行为的后果。”

OpenAI’s researchers do have a hypothesis for where some of the misbehavior originated. Before the models formed their first secret message board, they had been trained to communicate and coordinate with subagents—less powerful agents to whom a main agent can delegate tasks.

OpenAI的研究人员确实对部分不当行为的来源有一个假设。在模型建立第一个秘密留言板之前,它们已经被训练过与子代理——即主代理可以委派任务的较弱的代理——进行沟通和协调。

That learned communication behavior could have transferred to this new setting. The METR report, which investigates the messages that the models sent to one another in detail, supports this hypothesis: One agent on the message board took charge and assigned tasks to the other agents, effectively treating them as subagents. OpenAI could try to prevent agents from secretly communicating with one another by not training this subagent behavior in the future, but that would make the models less useful.

这种习得的沟通行为可能转移到了新的环境中。METR报告详细调查了模型之间发送的消息,支持了这一假设:留言板上的一个代理负责分配任务给其他代理,有效地将它们视为子代理。OpenAI可以尝试通过未来不再训练这种子代理行为来防止代理秘密通信,但这会使模型变得不那么有用。

This tension between capability and safety is at the heart of what went wrong with the Hugging Face incident. OpenAI researchers also identified the models’ persistence as a key factor in the hack.

能力与安全之间的这种张力是Hugging Face事件出错的核心。OpenAI的研究人员还指出模型的持久性是黑客攻击的关键因素。

When they were accidentally given unsolvable problems, the models didn’t give up; instead, they strove to find solutions by any means necessary. But persistence is also a virtue, of course, especially if we want agents that can undertake large amounts of difficult work independently.

当它们意外遇到无法解决的问题时,模型并没有放弃;相反,它们竭尽全力寻找解决方案。但持久性当然也是一种美德,特别是如果我们希望代理能够独立承担大量困难工作的话。

OpenAI is working on giving models ways to alert humans if they are given impossible tasks. The problem of teaching models when they should deploy their abilities and when they should hold back, however, won’t be settled in a single postmortem. The training strategies that create superhuman coders—rewarding them when they successfully solve problems—might not work to teach models to use their skills judiciously and respect human desires and values.

OpenAI正在努力为模型提供在遇到不可能完成的任务时向人类发出警报的方法。然而,教导模型何时应该发挥能力、何时应该克制的问题,不会在一次事后分析中解决。创造超人编码员的训练策略——在成功解决问题时给予奖励——可能并不适用于教导模型明智地使用技能并尊重人类的愿望和价值观。

“I think there’s a bunch of alignment science that still needs to be done where we can move past just using proxies for task completion,” says Ladish. “That will work to make models very capable, but I don’t think it will work to make them aligned.”

“我认为还有很多对齐科学工作需要完成,我们可以超越仅仅使用任务完成的代理,”拉迪什说。“这可以使模型变得非常强大,但我认为这不会使它们对齐。”

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

关联讨论

同一事件的更多信源

相似阅读

另一事件,读法相近