Anthropic researchers have developed a technique that could allow AI models to selectively "forget" dangerous knowledge without requiring separate training runs for each configuration.

The method, called Gradient-Routed Auxiliary Modules (GRAM), addresses a key challenge in AI safety: how to prevent misuse of dual-use knowledge while preserving beneficial capabilities. Current safeguards like refusal training don't remove the underlying knowledge from models — they simply train systems to decline harmful requests.

How GRAM compartmentalizes knowledge

GRAM adds dedicated neural network modules to each layer of a transformer model, with separate compartments for different categories of sensitive information. During training, when the model encounters general text, it learns normally. But when processing dual-use content — such as virology or cybersecurity material — only the relevant specialized module updates while general-purpose weights remain frozen.

This approach concentrates dangerous knowledge in removable modules rather than spreading it throughout the entire network. After training, developers can delete specific modules to remove capabilities, or retain them for trusted deployments.

The researchers tested GRAM across three scenarios of increasing complexity. In synthetic experiments with children's stories, a small model could be reconfigured to "forget" any chosen topic. Performance matched separate models trained from scratch with filtered data.

In more realistic tests, they trained larger models on web text, code, and scientific papers with four dual-use domains: virology, cybersecurity, nuclear physics, and a specialized programming language. Deleting modules removed corresponding capabilities as effectively as never training on that data.

The technique scaled across model sizes from 50 million to 5 billion parameters. Larger models showed wider performance gaps between "module on" and "module off" configurations, making bypass attempts more computationally expensive.

Early-stage research with limitations

The research remains preliminary and hasn't been applied to any production Claude models. Evaluations focused on next-token prediction rather than real-world task performance.

A fundamental challenge persists: some dual-use capabilities may be so intertwined with general knowledge that clean separation proves impossible. The researchers acknowledge this limitation applies to both GRAM and existing data filtering approaches.

The work was conducted in collaboration with AE Studio and published on Anthropic's research blog. The company continues exploring methods to make AI systems safer while preserving their beneficial capabilities.