Anthropic's GRAM: An Off Switch for Dual-Use AI Knowledge
Most AI safety techniques try to teach models to say “no.” GRAM tries to make the knowledge that would require a “no” not exist in the first place.
Anthropic and AE Studio published research on July 9, 2026, describing a method called GRAM — Gated Representation Activation Manipulation — that surgically removes specific dangerous capabilities from AI models while leaving their useful counterparts intact. The canonical example: a model that knows enough virology to help design vaccines, but can’t be coaxed into explaining how to engineer a pathogen.
This is fundamentally different from the refusal training that powers Claude’s safety features today. Refusal training teaches a model to reject harmful requests. But the knowledge is still there — latent in the weights, accessible through jailbreaks, roleplay scenarios, or translations into less-common languages. GRAM doesn’t teach the model to refuse. It removes the capability.
How GRAM works under the hood
The technical approach builds on representation engineering — the idea that concepts in language models correspond to specific directions in activation space. Earlier work from Anthropic and others showed that you can find a “direction” for concepts like honesty, power-seeking, or deception in a model’s internal representations. GRAM extends this to capabilities.
The process works in three steps. First, the researchers create two datasets: one that exercises the target capability (e.g., detailed virology knowledge) and one that exercises the benign counterpart (e.g., general biology knowledge). Second, they identify the activation patterns that differ between the two — the “dual-use direction” in the model’s representation space. Third, they apply a gating mechanism that suppresses activations along this direction during inference.
The result is a model that still knows biology. It can explain how viruses work at a high level, describe vaccine mechanisms, and discuss public health measures. But when you push it for the specific details that would enable misuse — synthesis protocols, gain-of-function techniques, pathogen optimization — the knowledge simply isn’t accessible. Not because the model refuses, but because the relevant representations are suppressed before they reach the output.
The Anthropic team tested GRAM on Claude models and found that the gating was surprisingly surgical. Capabilities on standard biology benchmarks stayed within 2% of the unmodified model. But targeted probes for dangerous virology knowledge showed the capability was effectively gone. Even adversarial attacks designed specifically to extract forbidden knowledge — the kind that regularly break refusal-trained models — couldn’t recover what GRAM removed.
The dual-use problem nobody talks about
Here’s what makes dual-use AI capabilities genuinely hard: the line between “helpful” and “dangerous” isn’t a line at all. It’s a gradient, and it shifts depending on who’s asking and why.
Take chemistry. A model that understands organic chemistry can help a PhD student design a novel drug candidate. It can also help someone with bad intentions optimize a synthesis route for a controlled substance. The underlying knowledge is the same. The only difference is what the user does with it.
Current safety approaches try to police this at the query level. If you ask “how do I synthesize novichok,” Claude refuses. If you ask about organophosphate chemistry more generally, Claude answers. But a determined attacker can walk the gradient — starting with innocent questions and gradually narrowing in on the dangerous specifics. Refusal training creates a perimeter that can be probed and eventually breached.
GRAM attacks the problem at a different level. Instead of policing queries, it removes the specific capability that makes the dangerous queries answerable. You can ask about organophosphates all day. The model will discuss them at the level of a textbook or review article. But the precise, actionable knowledge — the kind you’d need to actually synthesize something dangerous — isn’t there to be extracted.
Why this matters for open-source models
There’s an uncomfortable dynamic in AI safety that rarely gets discussed openly. Refusal training works reasonably well for API-based models like Claude and GPT-5, where the provider controls both the model weights and the inference environment. But open-weight models are different. Once the weights are released, anyone can strip the refusal training. It takes a few hundred dollars of fine-tuning on a handful of GPUs.
GRAM is interesting because its protections are baked into the weights themselves, not layered on top as behavioral training. When you suppress the dual-use representations, you’re changing what the model can represent, not just what it’s willing to say. Fine-tuning can’t easily recover a capability that was surgically removed from the activation space.
This doesn’t mean GRAM is tamper-proof. A sufficiently sophisticated attacker with full weight access could potentially reverse the gating mechanism or retrain the affected layers from scratch. But it raises the cost and expertise required significantly — from “download a LoRA and run a script” to “understand the model’s internal geometry and design a targeted recovery procedure.”
Anthropic has been careful not to overclaim here. The paper explicitly notes that GRAM is a research prototype, not a production-ready safety mechanism. The gating can be imprecise — sometimes suppressing benign knowledge that happens to share representation space with dangerous capabilities. And the approach requires careful dataset construction for each capability you want to remove, which doesn’t scale easily to the full range of potential misuse.
The refusal training ceiling
Refusal training has gotten remarkably good. Claude 4 almost never produces harmful output through direct requests. But the adversarial robustness literature tells a clear story: every refusal-trained model released so far has been broken. Sometimes through clever prompting, sometimes through fine-tuning, sometimes through techniques the developers didn’t anticipate.
The fundamental problem is that refusal training teaches a behavior, not a capability boundary. The model learns “when you see a request that looks like X, output a refusal.” But the capability that makes X dangerous is still intact. So attackers learn to make X look like Y, and the refusal doesn’t trigger.
This is the ceiling that GRAM is trying to break through. If you can’t remove the dangerous capability through training alone, maybe you need to reach into the model’s representations and turn it off directly.
I don’t think GRAM is the final answer. The surgical precision problem is real, and the scaling challenge is significant. But it points in a direction that feels more promising than endlessly iterating on refusal prompts. Instead of teaching models to hide what they know, we should be figuring out how to build models that genuinely don’t know the dangerous things — or at least, can’t access that knowledge in any practical sense.
It’s also worth noting who worked on this. AE Studio isn’t a traditional AI safety lab. They’re a development shop that builds AI products. The collaboration with Anthropic suggests that dual-use capability control isn’t just an academic concern — it’s something that companies deploying AI in production are actively worried about. When your customer is a pharmaceutical company using Claude to analyze research literature, they want the virology knowledge. They also want to be absolutely sure that same model can’t be used to design bioweapons.
GRAM vs. the alternatives
There are roughly four approaches to handling dual-use capabilities in AI models, and GRAM sits in an interesting spot relative to all of them.
Refusal training is what everyone uses today. You collect examples of harmful requests, train the model to refuse them, and periodically red-team to find gaps. It works until someone finds a gap. The attack surface is the entire space of possible prompts, which is effectively infinite. Every new jailbreak technique is someone finding another gap.
RLHF with capability suppression tries to go deeper — instead of just training the model to refuse, you train it to “forget” dangerous capabilities during the RL process. Anthropic has experimented with this, and it’s part of what makes Claude harder to jailbreak than earlier models. But the capabilities tend to resurface under enough optimization pressure. Fine-tune the model on related but benign data, and the dangerous knowledge often comes back.
Training data filtering attacks the problem at the input level. If you never train on detailed bioweapons instructions, the model can’t reproduce them. This sounds clean but runs into two problems: first, the filtering has to be near-perfect, and a single missed document in a trillion-token dataset defeats the purpose. Second, models can compose knowledge from separate benign sources into dangerous combinations — an emergent capability that filtering can’t prevent.
GRAM’s representation gating tries something different. Instead of controlling what goes in (filtering) or what comes out (refusal), it controls what the model can represent internally. The dual-use capability is still latent in the weights, but the gating mechanism prevents the relevant activations from reaching the output layers.
The tradeoff is precision. GRAM can be too aggressive — suppressing capabilities that share representation space with the target. The Anthropic paper acknowledges this and frames it as an area for improvement. But the direction is promising because it addresses the root cause: the model has the dangerous knowledge. Refusal training just hides it.
Who should pay attention to this
Three groups should be watching GRAM closely.
First, model providers — Anthropic, OpenAI, Google, Meta, Mistral. GRAM-style capability removal could become a standard part of the model release pipeline, especially for open-weight models where post-release modification is impossible to prevent.
Second, enterprise AI users in regulated industries. If you’re a pharmaceutical company using Claude to process research data, you want virology knowledge. You also have a legal obligation to prevent your AI pipeline from being used to generate dangerous content. GRAM offers a way to have both — the capability lives in a gated region that’s inaccessible through normal inference but can be enabled for authorized use cases.
Third, AI policy people. GRAM demonstrates that capability removal is technically feasible, which shifts the policy conversation. If we can surgically remove dangerous capabilities, the argument that open-weight models are inherently too risky becomes weaker. You could release a model with dual-use capabilities gated rather than fully accessible.
I don’t think GRAM alone solves the dual-use problem. But it’s the first approach I’ve seen that treats the problem as one of capability engineering rather than behavioral conditioning. That’s a conceptual shift worth paying attention to, and one that other labs will almost certainly build on in the coming months.
Sources:
- Anthropic, “An off switch for dual use knowledge in AI models” (July 2026)
- Blockchain.news, “Anthropic Unveils GRAM dual-use safety breakthrough” (July 2026)
- Reddit r/artificial discussion on GRAM research (July 2026)