An Off Switch for Dual Use Knowledge in AI Models
Researchers at Anthropic and AE Studio have developed a new method called GRAM to limit access to dual-use knowledge in AI models. GRAM adds removable compartments to a model's architecture, allowing for the removal of specific capabilities without affecting the model's p…
Intelligence analysis by Llama
Anthropic and AE Studio have developed a new method called GRAM to limit access to dual-use knowledge in AI models. GRAM adds removable compartments to a model's architecture, allowing for the removal of specific capabilities without affecting the model's performance.
Imagine you have a super smart computer that can learn lots of things. But some of the things it learns can be used for good or bad. A new method called GRAM helps keep the bad things locked away, so the computer can only use the good things. This is important because it helps keep people safe.
Analysis
A Frontier AI Model's Dual-Use Knowledge Problem
A frontier AI model is, among other things, a large store of knowledge. Some of that knowledge is dual-use, meaning it can be used for good or for bad. For example, knowledge of cybersecurity can help patch critical security vulnerabilities, or it can be used to exploit them. Ideally, we would be able to balance three separate goals: first, limiting access to dual-use capabilities in as surgical a way as possible; second, allowing trusted users to access those same capabilities for beneficial purposes; and third, do all this without affecting the model's performance on any other task.
Current safeguards are imperfect. We train models to refuse harmful requests and use classifiers to screen inputs and outputs for dangerous content. These layers of protection guard against dangerous outputs—but they don't change the knowledge stored in the underlying model. Despite our safeguards, a sufficiently determined attacker may still try to jailbreak the model, working past its defenses to access the dual-use knowledge.
GRAM: A New Method for Limiting Dual-Use Knowledge
We've explored this before: in earlier work, we filtered information about chemical, biological, radiological, and nuclear weapons out of pretraining data, and later showed that dual-use knowledge can be confined to a removable slice of a model's weights. But filtering is a blunt instrument. It produces one model with one fixed set of capabilities. Using filtering, if you want a model version that can discuss advanced virology—for deployment in a vetted biosecurity lab, say—and another version that can't, you have to train two separate models. Especially in the case of frontier models (which are large and very expensive to train), the cost to the developer would be prohibitive.
In new research carried out with collaborators at AE Studio, we explore a new method that could enable the benefits of training many separately-filtered models, but at the cost of training only one model. We call it GRAM, for Gradient-Routed Auxiliary Modules.
How GRAM Works
The idea behind GRAM is to give a model dedicated, removable compartments for each category of dual-use knowledge, and to update only those compartments when learning from dual-use data. Concretely, GRAM adds extra neurons to every layer of a standard Transformer (the neural network architecture on which large language models are based). These neurons are divided into groups (or “modules”), one per dual-use category. During training, when the model encounters general-purpose text, it learns in the usual way. But when it encounters text from a dual-use category—virology, for instance—the rules change: the model can use its general knowledge to make predictions, but only the virology module is allowed to learn from that text. The general-purpose weights are temporarily frozen.
Testing GRAM
We tested GRAM in three settings of increasing realism. First, on a synthetic dataset of children's stories tagged by topic, a small GRAM model could be reconfigured to “forget” any chosen topic, and each configuration performed almost identically to a separate model trained from scratch with that topic filtered out. That is, for the cost of training a single model, we achieved results that would normally require multiple training runs on different datasets. Second, we trained a larger model on a realistic mix of web text, code, and scientific papers, with four dual-use domains: virology, cybersecurity, nuclear physics, and a niche programming language (to serve as a proxy for specialized dual-use code). The capability associated with each dual-use domain is routed to its own module. Deleting a module removed the corresponding capability about as effectively as never having trained on that data at all. Remarkably, we find that this removal did not degrade general performance. We also tested whether an attacker could recover the removed knowledge by training on a small amount of malicious data; GRAM resisted this about as well as data filtering did. By contrast, an “unlearning” technique applied after training only suppressed the knowledge—it was easy to restore with a small amount of fine-tuning. Third, we ran the experiment at seven model sizes from 50 million to 5 billion parameters. GRAM matched the performance of data filtering at every size, and the gap between “module on” and “module off” grew wider as models got larger. In terms of compute costs, attempting to bypass our protections became relatively more difficult and expensive as we scaled.
Key points
- Anthropic and AE Studio have developed a new method called GRAM to limit access to dual-use knowledge in AI models.
- GRAM adds removable compartments to a model's architecture, allowing for the removal of specific capabilities without affecting the model's performance.
- The method has been tested in three settings of increasing realism, with promising results.
- GRAM offers a potential solution to the problem of limiting access to dual-use knowledge in AI models.
- The development and deployment of GRAM are not without challenges, including computational resource requirements and uncertainty around its effectiveness.
The development of GRAM offers a promising solution to the problem of limiting access to dual-use knowledge in AI models. If successfully implemented, GRAM could enable the creation of models that are both powerful and safe, reducing the risk of misuse and promoting responsible AI development.
However, the development and deployment of GRAM are not without challenges. The method requires significant computational resources and may be difficult to scale to larger models. Additionally, the effectiveness of GRAM in preventing misuse is still uncertain and may depend on various factors, including the quality of the training data and the robustness of the model's architecture.



