/en/articles/openai-locks-down-gpt-6-2s-reasoning-against-distillation-and-your-agent-may-foot-the-bill

AI

OpenAI locks down GPT-6.2's reasoning against distillation, and your agent may foot the bill

On November 20, OpenAI published how it defends against adversarial distillation: the practice of using a model's outputs, without permission, to train another model that copies its capabilities without inheriting its guardrails. The post has some big numbers (the success rate of one type of attack dropped from 54% to 0.2%) and a national security argument, but the most practical takeaway for developers is in an almost hidden line: with GPT-6.2 Astra and GPT-6.2 Sol, if you rewrite a conversation's history, the API throws away the reasoning that came after it. If your agent compacts, trims, or edits old messages, that is going to cost you tokens.

What distillation is and why OpenAI treats it as a risk

Distillation is a normal machine learning technique: a "student" model learns from the data produced by a "teacher" model. The problem, according to OpenAI, is when someone does it without authorization to a frontier model and then deploys the result without comparable safeguards. Their example: distilling a model's cybersecurity capabilities and using the student for attacks the original would have refused.

The most valuable loot is the protected reasoning, the chain of intermediate steps the model generates before answering. OpenAI explains that those traces contain information that the final answer leaves out, which is why they work better as training data.

To measure this, they ran an internal study. They trained the same base model twice on trajectories from Astra-level models solving programming and defensive cybersecurity tasks: once with what the user sees (answers, reasoning summaries, and tool calls) and once with the exact reasoning. After fine-tuning, the student trained on the exact reasoning did better overall. After a light round of reinforcement learning, it kept pulling ahead at the largest inference budget tested, although the summary-trained student came out on top at smaller budgets. In a note, OpenAI cites that Anthropic reported something similar: a model trained on full Claude Opus 4.8 transcripts scored 80.4% on SWE-bench Verified, versus 71.8% with summarized reasoning.

The defenses, in two layers

OpenAI describes its system as two levels that feed each other.

On every request:

  • Defensive training. The model learns to recognize attempts to extract its reasoning and to refuse, without ceasing to explain things when the request is legitimate. The examples come from its automated red-teaming, from investigations, and from reports by outside researchers.
  • Classifiers. They check the input to detect extraction attempts and the output to detect leaks, both in assistant messages and in tool-call arguments, with or without streaming. The tool part matters: a model can leak its reasoning inside an argument without it showing up in the final answer.
  • API controls. Reasoning is tied to the conversation that produced it, and earlier model families, with weaker protections, can no longer read the reasoning of GPT-6.2 Astra and Sol.

At the campaign level: they look for patterns across requests and accounts, investigate, sanction the entire network of accounts, and share indicators of compromise with other providers. According to the announcement, their weekly actions against these campaigns have reached anywhere from thousands to tens of thousands of accounts, with a sharp increase over the summer.

Diagram of OpenAI's two layers of defense and the drop in attack success from 54.0% to 0.2% and from 22.9% to 0.9%

The numbers come from an internal adaptive black-box evaluation, aggregated across six attacker models. Extracting the reasoning from a previous request worked in 54.0% of attempts against GPT-6 Astra with its original protections and in 0.2% against GPT-6.2 Astra. Extracting it from the current request dropped from 22.9% to 0.9%. OpenAI says it is already applying some of these improvements to GPT-6 Astra as well. Heads up: these are the company's own measurements of its own system; there is no published external audit.

The context: Moonshot, DeepSeek, and Congress

The announcement builds on its September 30 report. There, OpenAI said a campaign to extract protected reasoning kicked off on July 1, peaked on July 24 and 25 with 16,000 requests from more than 4,000 users, spread to a group of more than 15,000 users, and was dismantled on July 28. One of the techniques was copying the encrypted reasoning from one conversation and asking the model, in another, to decrypt it and transcribe it. OpenAI attributed a core of that activity to people associated with Moonshot AI, the company behind Kimi.

In the new post, OpenAI recalls that in February it informed the U.S. Congress about DeepSeek's activity to distill American models and says it will soon share more cases. It also declares its support for the Chip Security Act, the AI OVERWATCH Act, and the MATCH Act. That is the company's stance: distillation is a national security matter and should be fought alongside chip export controls.

What actually changes for you if you integrate the API

Here's the practical part. OpenAI's documentation explains that, starting with its newest frontier models, the API discards the reasoning items that follow a change in the prefix, that is, in the earlier history. When that happens, the model may have to reason again, which raises tokens, cost, and latency; and if it can't recover what was lost, quality can also drop.

According to that guide, you change the prefix without realizing it when you edit earlier input messages, change tools or text.format mid-conversation, change instructions on models before GPT-6.2, trim old tool results, or shrink images you had already sent. The recipe is "append only":

Comparison of what changes the prefix and loses reasoning versus the append-only alternatives

  • To change the reasoning effort or the output schema, add a configuration_update item instead of touching the request parameter.
  • To change tools, use an additional_tools item or tool_choice with allowed_tools, and leave the existing definitions in their order.
  • To update instructions, append a new developer message at the end instead of rewriting the first one.
  • If you compact the context, OpenAI's compaction (/responses/compact or context_management) preserves the later reasoning. If you use your own compaction, the guide suggests putting the summary at the end instead of before the recent turns.
  • To audit, the response includes input_transformations, which says which reasoning was dropped and why (for example, prefix_mismatch).

I haven't tested it; this comes from OpenAI's official documentation.

My take

The defense makes sense and the numbers, if they hold up, are good. But the cost isn't paid by the thief alone. Many agent frameworks trim old tool outputs or summarize history their own way so they don't blow up the context window, and that same practice is now punished with discarded reasoning. Anthropic has already acknowledged the same tradeoff: its defenses forced some developers to change their integrations, and its classifiers wrongly block less than 0.1% of legitimate requests, which also get billed.

What we still don't know is how long the advantage lasts. Both companies talk about a cat-and-mouse game, and OpenAI admits it will keep measuring how much capability gets transferred with other student models and other recipes. If your agent talks to GPT-6.2, check input_transformations before blaming the model for being slower or more expensive.

Sources