12-04 更新 实时
首页/ 技术栈/ 正文

抵御对抗性蒸馏

技术栈 来源:OpenAI Blog 2026-11-20 18:00 2 阅读 机器翻译
抵御对抗性蒸馏

我们应对对抗性蒸馏的方法,将对抗性测试、模型训练、分类器和 API 层面的防护机制,与针对有组织地试图提取模型能力的调查结合起来。这些更新后的防护机制,与我们用于生物学和网络安全的防护机制更加一致。

我们尤其重视防止攻击者提取模型受保护的推理过程:即模型在给出答案的过程中于内部生成的中间步骤,也就是所谓的思维链(chain-of-thought)。这些痕迹可能包含最终答案所遗漏的信息,因而对另一个模型而言是格外宝贵的训练数据。

我们在 GPT‑6.2 Astra 和 GPT‑6.2 Sol 中加强了对受保护推理被提取的防御。在一项使用强自动化红队测试的内部自适应评估中,我们测试了攻击者能否还原出模型在回答早前提示时生成的受保护推理。平均攻击成功率从针对采用原始防护机制的 GPT‑6 Astra 的 54.0%,降至针对采用更新防护机制的 GPT‑6.2 Astra 的 0.2%。

蒸馏是一种常见的机器学习技术,即一个模型从另一个模型产生的数据中学习。例如,一个模型可以从另一个模型的答案、其推理过程,或它对哪些答案更好以及为什么更好的判断中学习。除了知识产权方面的担忧之外,未经授权的蒸馏还会带来严重的安全风险。通过对抗性蒸馏,第二个模型可以学到先进的前沿能力,却无须继承约束原模型如何使用这些能力的防护机制。

这种担忧在网络安全和生物学等双重用途领域尤为明显。一个帮助防御者发现软件漏洞的模型,同样也能帮助攻击者利用这些漏洞;一个辅助生物学研究的模型,同样也能帮助某人开发有害病原体。如果这类能力被转移到防护机制较弱的模型上,它可能会提供原模型本会拒绝的协助,或是原防护机制本会拦截的协助。

我们的模型可以在编程和防御性网络安全任务上为用户提供帮助。而基于其中许多良性输出训练出的第二个模型,可能学到同样适用于攻击性网络安全任务的技能。为了更好地理解这一点,我们研究了蒸馏——尤其是涉及推理轨迹的蒸馏——可能如何转移高风险的网络能力。

在这一设定中,生成训练数据的模型被称为教师模型,从中学到能力的模型被称为学生模型。在一项关于网络能力如何转移的内部研究中,我们以用户通常可见的内容——最终回答、推理摘要和工具交互——作为蒸馏的基线,并测试当学生模型能够获取教师模型精确的推理轨迹时,额外有多少网络能力会被转移。

每次训练我们都从同一个预训练学生模型开始。我们构建了一个监督微调数据集,主要由 Astra 级教师模型在编程和防御性网络安全任务上的轨迹组成。每条轨迹都包含模型在完成任务过程中的所有步骤,包括任何工具交互及其最终回答。我们在微调后对每个学生模型进行评估,并在网络安全和编程环境中进行一轮轻量级强化学习后再次评估。

在监督微调之后,使用精确推理轨迹训练的学生模型通常优于使用推理摘要训练的学生模型。在强化学习之后,在所示两个基准测试中测试的最大推理预算下,精确轨迹学生模型的得分仍然更高,而使用摘要训练的学生模型在较低预算下得分更高。

我们的网络能力蒸馏结果表明,保护推理轨迹可以限制网络能力的迁移,即便底层任务属于我们的使用政策所允许的范围。在许多此类交互中,精确推理轨迹可以教会学生模型一些技能,而这些技能能够泛化到教师模型最初执行的任务之外。我们将继续研究,在不同的学生模型和蒸馏训练方案之间,究竟有多少额外能力会发生迁移。

我们在防护机制栈的两个互补层面上防御对抗性蒸馏。在请求层面,模型行为、分类器检查和 API 管控限制了推理轨迹的提取。在行动层面,我们寻找请求层面和账户层面信号中的模式,这些模式可以揭示协同提取的企图。反过来,调查中发现的攻击会成为训练和测试我们防护机制的样本。

对抗训练教会模型识别推理提取企图,并拒绝披露受保护的推理内容,同时保留对合理的解释与协助请求的响应。对抗训练样本来自成功的攻击,这些攻击是通过内部自动化红队测试、调查,以及外部研究人员或行业合作伙伴对潜在安全弱点的负责任披露所发现的。

我们使用输入分类器来检测试图提取受保护推理内容的尝试,并使用输出分类器来检测助手消息和工具调用参数中受保护推理内容的泄露。这些防护机制同时适用于流式和非流式响应。

对工具调用的覆盖很重要,因为模型可能在工具的参数中暴露受保护的推理内容,而不将其包含在最终答案里。输出分类器可以在这些内容到达调用方之前拦截可疑的泄露。

API 层面的防护限制了受保护推理内容在不同交互和不同模型之间被复用的方式。我们在 9 月的披露中描述了这样一类攻击:将加密的推理内容从一个对话转移到另一个对话,并要求模型以用户可读的形式透露该推理内容。我们加强了跨用户、工作区、组织以及模型家族边界的防护,包括关闭了一条可能暴露其他用户加密推理内容的路径。

在 GPT‑6.2 Astra 和 GPT‑6.2 Sol 中,我们将模型的受保护推理内容与其产生的对话历史绑定。随着新消息加入,模型可以在其先前推理的基础上继续推进。如果较早的消息被改写,我们的 API 会丢弃其后的推理内容⁠(在新窗口中打开)。我们还阻止防护较弱的旧模型家族读取 GPT‑6.2 Astra 和 Sol 的受保护推理内容。

这项工作延伸到了我们自己的平台之外。我们的一致标准政策为各项防护机制确立了共同标准,并在提供我们模型的各服务商之间开展协同执行。我们在适当情况下与合作伙伴紧密合作,以维护这些标准并加强各部署环境中的防护。

在适当的情况下,与产业界和政府部门分享相关发现,有助于打乱攻击活动,并让模型开发者和提供商更好地识别和防御针对前沿模型的蒸馏尝试。

为了衡量我们的请求级防护机制协同工作的效果,我们在一个尽可能贴近我们模型和防护机制实际生产部署的环境中,测试攻击者是否仍能提取受保护的推理内容。在静态评估中,我们重放一组固定的、此前已成功过的攻击,观察哪些攻击仍能暴露受保护的推理内容。在自适应评估中,自动化 AI 红队测试人员会根据系统的响应调整其方法,这能发现静态测试所遗漏的弱点。

我们还改变了测试人员能看到的内容。黑盒测试让他们拥有与外部用户相同的视角,而白盒测试则向他们提供有关系统的额外信息,以帮助他们设计更强的攻击。在我们的自适应黑盒评估中,我们测试了攻击者能否恢复模型在回答先前请求或当前请求时已生成的受保护推理内容。在采用更新后防护机制的 GPT‑6.2 Astra 上,各类攻击的平均攻击成功率均低于 1%。这两项成功率都显著低于采用原始防护机制的 GPT‑6 Astra。我们目前也在将部分防护机制改进应用到 GPT‑6 Astra 上。

采用原始防护机制的 GPT‑6 Astra 防御方

自适应提取攻击成功率(ASR,%)

采用更新后防护机制的 GPT‑6.2 Astra 防御方

自适应提取攻击成功率(ASR,%)

从先前的请求中提取受保护的推理内容

从当前请求中提取受保护的推理过程

针对 GPT‑6 Astra 和 GPT‑6.2 Astra 的自适应黑盒红队测试中的攻击成功率(ASR),数据汇总自六个攻击方模型。ASR 越低越好。

今年我们在平台上发现了多起未经授权的对抗性蒸馏活动,并在 9 月的报告中分享了初步发现。我们每周针对这些活动采取的执法行动,规模从数千个账号到数万个账号不等,而这一速率在今年夏天显著上升。

原文较长,译文为节选;译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。

查看英文原文(Combatting adversarial distillation)

Our approach to adversarial distillation combines adversarial testing, model training, classifiers, and API-level protections with investigations into coordinated attempts to extract model capabilities. These updated safeguards align more closely with those we use for biology and cybersecurity.

We place particular emphasis on preventing attackers from extracting our models’ protected reasoning: the intermediate steps a model generates internally while working toward an answer, known as its chain-of-thought. These traces can contain information the final answer leaves out, making them especially valuable training data for another model.

We’ve strengthened our defenses against protected reasoning extraction in GPT‑6.2 Astra and GPT‑6.2 Sol. In an internal adaptive evaluation using strong automated red-teaming, we tested whether attackers could recover protected reasoning the model had generated while answering an earlier prompt. The average attack success rate fell from 54.0% against GPT‑6 Astra with its original safeguards to 0.2% against GPT‑6.2 Astra with its updated safeguards.

Distillation is a common machine-learning technique in which one model learns from data produced by another. For example, a model can learn from another model’s answers, its reasoning, or its judgments about which answers are better and why. Beyond intellectual property concerns, unauthorized distillation poses serious safety risks. Through adversarial distillation, a second model can learn advanced frontier capabilities without inheriting the safeguards that govern how the original model can use them.

The concern is especially clear in dual-use domains like cybersecurity and biology. A model that helps defenders find vulnerabilities in software could also help an attacker exploit them; a model that assists with biological research could also help someone develop a harmful pathogen. If such capabilities were transferred to a model with weaker safeguards, it may provide assistance that the original model would have refused, or that the original safeguards would have blocked.

Our models help users with coding and defensive cybersecurity tasks. A second model trained on many of those benign outputs may learn skills that also apply to offensive cybersecurity tasks. To better understand this, we study how distillation, especially involving reasoning traces, may transfer risky cyber capabilities.

In this setting, the model that produces the training data is called the teacher, and the model that learns from it is called the student. In an internal study on how cyber capabilities transfer, we used the content normally visible to users—final responses, reasoning summaries, and tool interactions—as our baseline for distillation, and tested how much additional cyber capability transfers when the student has access to the teacher’s exact reasoning traces.

We started each training run from the same pretrained student model. We created a supervised fine-tuning dataset consisting primarily of trajectories from Astra-level teacher models working on coding and defensive cybersecurity tasks. Each trajectory includes all of the steps a model takes as it works through a task, including any tool interactions and its final response. We evaluated each student after fine-tuning and again after a lightweight round of reinforcement learning in cybersecurity and coding environments.

After supervised fine-tuning, the student trained on exact reasoning traces generally outperformed the student trained on reasoning summaries. After reinforcement learning, the exact-trace student still scored higher at the largest inference budget tested on both benchmarks shown, while the summary-trained student scored higher at lower budgets.

Our cyber distillation results suggest that protecting reasoning traces can limit cyber capability transfer, even when the underlying task is one allowed under our usage policies. Across many such interactions, exact reasoning traces can teach a student skills that generalize beyond the tasks the teacher originally performed. We will continue studying how much additional capability transfers across different student models and distillation training recipes.

We defend against adversarial distillation at two complementary levels of our safeguard stack. At the request level, model behavior, classifier checks, and API controls limit reasoning trace extraction. At the campaign level, we look for patterns in request-level and account-level signals that can reveal coordinated extraction attempts. In turn, attacks uncovered in investigations become examples for training and testing our safeguards.

Adversarial training teaches models to recognize reasoning extraction attempts and refuse to disclose protected reasoning, while preserving responses to legitimate requests for explanations and assistance. Adversarial training examples come from successful attacks identified through internal automated red-teaming, investigations, and responsible disclosures of potential security weaknesses from outside researchers or industry partners.

We use input classifiers to detect attempts to extract protected reasoning, and output classifiers to detect leaks of protected reasoning in assistant messages and tool-call arguments. These safeguards apply to both streaming and non-streaming responses.

Tool-call coverage is important because a model can expose protected reasoning in a tool’s arguments without including it in its final answer. Output classifiers can block suspected leaks before that content reaches the caller.

API-level protections restrict how protected reasoning can be reused across interactions and models. Our September disclosure described attacks that moved encrypted reasoning from one conversation into another and asked the model to reveal the reasoning in user-readable form. We strengthened protections across user, workspace, organization, and model-family boundaries, including closing a pathway that could expose another user’s encrypted reasoning.

With GPT‑6.2 Astra and GPT‑6.2 Sol, we tie a model’s protected reasoning to the conversation history that produced it. As new messages are added, the model can build on its earlier reasoning. If an earlier message is rewritten, our API drops the reasoning that followed it⁠(opens in a new window). We also prevent older model families with weaker safeguards from reading GPT‑6.2 Astra and Sol’s protected reasoning.

When our systems detect unauthorized adversarial distillation campaigns, which often include coordinated attempts to extract our models’ reasoning, we investigate the accounts responsible. When we identify violations, we enforce against the network of accounts, consistent with our policies and terms of service. Through investigations of each campaign, we generate insights that allow us to upgrade our defenses in order to better detect similar activity. We also share indicators of compromise with other model providers so they can investigate related abuse on their own services.

This work extends beyond our own platform. Our consistent-standards policy establishes shared standards for safeguards and coordinated enforcement across providers offering our models. We work closely with partners where appropriate to uphold these standards and strengthen protections across deployments.

Sharing relevant findings across industry and government where appropriate can help disrupt campaigns and enable model developers and providers to better identify and defend against attempts to distill frontier models.

To measure how well our request-level safeguards work together, we test whether attackers can still extract protected reasoning in a setup that closely mirrors production deployments of our models and safeguards. In static evaluations, we replay a fixed set of previously successful attacks to see which still expose protected reasoning. In adaptive evaluations, automated AI red-teamers adjust their approach based on how the system responds, which can uncover weaknesses the static tests miss.

We also vary what testers can see. Black-box testing gives them the same view an external user would have, while white-box testing gives them additional information about the system to help them develop stronger attacks. In our adaptive black-box evaluation, we tested whether attackers could recover protected reasoning the model had generated while answering an earlier request or the current one. On GPT‑6.2 Astra with its updated safeguards, the average attack success rate was below 1% for each attack type. Both rates were substantially lower than on GPT‑6 Astra with its original safeguards. We’re now applying selected safeguard improvements to GPT‑6 Astra as well.

GPT‑6 Astra defender with original safeguards

Adaptive extraction ASR (%)

GPT‑6.2 Astra defender with updated safeguards

Adaptive extraction ASR (%)

Extracting protected reasoning from an earlier request

Extracting protected reasoning from the current request

Attack success rate (ASR) in adaptive black-box red-teaming against GPT‑6 Astra and GPT‑6.2 Astra, aggregated across six attacker models. Lower ASR is better.

We have seen multiple unauthorized adversarial distillation campaigns on our platform this year, and shared initial findings in our September report. Our weekly enforcement actions against these campaigns have ranged in scale from thousands to tens of thousands of accounts, with the rate increasing significantly this past summer.

In order to measure the effectiveness of our efforts, we also track the prevalence of distillation abuse, as well as the time between detection and enforcement. Our objective is to constrain the volume and value of the data distillers are able to obtain, to increase the cost of distillation campaigns, and to shorten the time needed to respond to new attacks. We continue to improve these defenses through adversarial testing and investigations.

Adversarial distillation also poses a national security risk. A foreign actor that reproduces advanced capabilities from a U.S. model can deploy them without the protections its developer put in place. In February, we briefed⁠(opens in a new window) Congress on activity indicating that DeepSeek was attempting to distill U.S. frontier models. In September, we reported disrupting a campaign to extract our models’ protected reasoning and attributed a core part of that activity to individuals associated with Moonshot AI, the developer of Kimi. We plan to share more soon about recent campaigns we’ve disrupted.

We support legislation that would give the U.S. government more tools to identify and sanction foreign actors that illicitly extract capabilities from American AI models. We’ve also told Congress we support the Chip Security Act, the AI OVERWATCH Act, and the MATCH Act. Stronger export controls can limit adversaries’ access to the hardware needed to train frontier models. Distillation defenses make it harder to acquire some of the same capabilities from models already trained. Both efforts help maintain a U.S. lead in frontier AI, giving developers more room to slow a release when they need time to test safeguards.

Supporting the safe proliferation of frontier capabilities is an important goal of our anti-distillation work. Our experience so far suggests several useful steps that other model developers and platforms can take:

Protect private reasoning across the full interaction. Check assistant messages and tool-call arguments for leaks, and restrict how encrypted reasoning can be reused across conversations and models.

Keep successful extraction attack logs found through red-teaming, production monitoring, or responsible disclosure as regression tests. Where appropriate, and consistent with applicable privacy policies, use those examples to improve model training and classifiers. When evaluating updated defenses, replay the original attacks and test whether an adaptive red-teamer can still find a way through those defenses.

Combine request-level mitigations with campaign-level investigation and enforcement.

Coordinate safeguard requirements and enforcement with deployment partners, and share expertise with other AI model developers, to ensure a high floor of distillation safeguards across the industry.

We have previously also shared findings through the Frontier Model Forum⁠(opens in a new window) and appropriate government information-sharing channels to help other developers strengthen their defenses while keeping the details attackers could exploit private. We’ll continue working with researchers, developers, and partners to share what we learn about emerging attacks and effective defenses.

As we make frontier AI broadly available, our defenses against adversarial distillation aim to reduce the risk that its capabilities are reproduced without adequate safeguards, supporting our mission to ensure that artificial general intelligence is deployed safely and benefits all of humanity.

Hebbia — Cover

Hebbia sees improvements in financial research with GPT-6 Astra

MedChemBench: Benchmarking AI for medicinal chemistry

How OpenAI’s Performance Factory keeps ChatGPT fast

EngineeringNov 19, 2026

原文为英文,正文由自动抓取并保留原文。

本文由采集器自动同步

原文发布于 OpenAI Blog(Combatting adversarial distillation),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。

阅读原文 ↗