AE Studio and Anthropic propose GRAM: preliminary research on isolating dangerous knowledge with modular pretraining
Modular Pretraining Enables Access Control
AE Studio and Anthropic collaborate to propose Gradient Routed Auxiliary Modules (GRAM), which add auxiliary modules to each MLP layer of a Transformer and selectively update them based on data type, isolating dangerous knowledge into switchable modules, thereby approximating multiple models trained with separate data filtering in a single training run. On a synthetic corpus of 2M children's stories, a 26M-parameter model can switch knowledge of specific story themes, and when turned off, its performance is close to a model never trained on that theme; on an 800M-parameter model, with training data including web text, code, scientific papers, and four dual-use domains—virology, cybersecurity, nuclear physics, and specialized code (each about 0.25%)—a single GRAM model can be reconfigured to match the performance of five different filtered models, and remains robust to adversarial induction from malicious fine-tuning, whereas the post-hoc knowledge removal method MaxEnt reverts to near the full-data baseline. The authors provide preliminary evidence that GRAM outperforms LoRA in scenarios with capability composition and sparse labels (only 50% of data labeled), but note these are only two isolated experiments and generalizability is uncertain; the research is preliminary and not yet used in Anthropic's production models.
Proposes using gradient-routed auxiliary modules to isolate dangerous knowledge into switchable modules, providing a single-training path for access control at capability granularity; the authors state the research is preliminary and not yet used in production models.