← Back
SiTech Team⏱️ 3 წთ. საკითხავი

Anthropic's GRAM Method: An 'Off Switch' for Dual-Use Knowledge in AI Models

Anthropic's GRAM Method: An 'Off Switch' for Dual-Use Knowledge in AI Models

Anthropic and AE Studio introduced GRAM (Gradient-Routed Auxiliary Modules) — a revolutionary method that enables AI models to surgically enable or disable dangerous knowledge (virology, cybersecurity, nuclear physics) within a single model.

Introduction: The Dual-Use Knowledge Problem

As artificial intelligence advances, one of the greatest challenges facing AI companies is how to manage the knowledge their models accumulate. Frontier AI models, such as Anthropic's Claude, are vast repositories of information. A significant portion of this knowledge is dual-use — it can be applied for both beneficial and harmful purposes. Cybersecurity knowledge can patch critical vulnerabilities or exploit them. Virology expertise can help develop vaccines or engineer deadly pathogens. Nuclear physics knowledge carries similarly obvious risks.

Why Current Approaches Fall Short

Today, AI companies primarily rely on two defensive mechanisms: training models to refuse harmful requests (refusal training) and deploying classifiers that screen inputs and outputs for dangerous content. Their fundamental limitation is that they do not change the knowledge stored within the underlying model. A sufficiently determined attacker can still jailbreak the model, working past surface-level defenses to access dual-use knowledge. Anthropic has previously explored data filtering but this requires training separate models — prohibitively expensive for frontier systems.

What Is GRAM? — Gradient-Routed Auxiliary Modules

To address this challenge, Anthropic, in collaboration with AE Studio, developed GRAM (Gradient-Routed Auxiliary Modules). The core idea is elegantly simple: provide the model with dedicated, removable compartments for each category of dual-use knowledge, and update only those compartments when learning from dual-use data. GRAM adds auxiliary neurons to every layer of a standard Transformer, divided into groups (modules), one per dual-use category. When general text is encountered, all weights update normally. But when dual-use text is encountered, only the relevant module learns — general-purpose weights are frozen.

Experimental Results

Anthropic tested GRAM across three increasingly realistic scenarios. On synthetic data, GRAM matched separately trained models. On realistic dual-use domains (virology, cybersecurity, nuclear physics, niche programming), deleting a module removed the corresponding capability as effectively as never training on that data — without degrading general performance. Most importantly, GRAM was tested at seven model sizes from 50 million to 5 billion parameters, working at every scale.

Attack Resistance

When attackers tried to recover removed knowledge via fine-tuning on small amounts of malicious data, GRAM resisted as effectively as data filtering. By contrast, traditional 'unlearning' techniques proved brittle — knowledge was easily restored. The difference between 'never learned' and 'forced to forget' is the difference between genuine safety and security theater.

Granular Configuration

With four dual-use categories, a single GRAM training run yields a model configurable in 16 distinct ways. This enables tiered access control models previously impractical: public deployments with modules off, verified laboratories with specific modules enabled — all from the same base model.

Implications for AI Safety

GRAM offers a qualitatively different approach to AI safety. Instead of having knowledge in the model and merely restricting access to it, GRAM controls the knowledge itself. When a module is deleted, the knowledge genuinely does not exist. This is the difference between locking a safe and living without one.

Conclusion

Anthropic's GRAM method represents a significant step forward in AI safety. Although it's early research not yet deployed in production models, the results across scales from 50 million to 5 billion parameters are deeply encouraging. The method works, it scales, and it resists attacks better than current alternatives.