← Latest papers
🤖 machine learning

Modular Pretraining Enables Access Control

This paper introduces Gradient-Routed Auxiliary Modules (GRAM), a cost-effective pretraining method that enables scalable access control for dual-use AI by selectively disabling specific capabilities through module ablation while preserving general performance and resisting recovery better than post-hoc unlearning.

Original authors: Ethan Roland, Murat Cubuktepe, Erick Martinez, Stijn Servaes, Keenan Pepper, Mike Vaiana, Diogo Schwerz de Lucena, Judd Rosenblatt, Addie Foote, Cem Anil, Alex Cloud

Published 2026-07-10
📖 5 min read🧠 Deep dive

Original authors: Ethan Roland, Murat Cubuktepe, Erick Martinez, Stijn Servaes, Keenan Pepper, Mike Vaiana, Diogo Schwerz de Lucena, Judd Rosenblatt, Addie Foote, Cem Anil, Alex Cloud

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a super-smart robot chef. This chef is amazing at cooking everything from life-saving vaccines to dangerous biological weapons. It's a "dual-use" dilemma: the same knowledge that cures a disease can also build a plague. If you give this chef to a hospital, you get cures. If you give it to a villain, you get trouble.

Usually, the only way to stop the villain is to fire the chef entirely, which means the hospital loses its cure. Or, you could try to hire five different chefs, each trained to know only one specific thing (one knows vaccines, one knows cyber-security, one knows nuclear physics, etc.). But hiring and training five separate chefs is incredibly expensive and slow.

Enter GRAM (Gradient-Routed Auxiliary Modules). Think of GRAM not as hiring five chefs, but as hiring one master chef with a magical, modular apron.

The Magical Apron

In a normal AI, all the knowledge is mixed together in a giant soup. If you want to remove the "biological weapon" recipe, you have to stir the whole pot, and you might accidentally ruin the "vaccine" recipe too.

GRAM changes the kitchen layout. It gives the chef a main apron (the "Core") that handles everything basic, like chopping onions and boiling water. But it also adds several smaller, detachable pockets to the apron.

  • One pocket is for Virology.
  • One pocket is for Cybersecurity.
  • One pocket is for Nuclear Physics.
  • One pocket is for Special Code.

Here is the magic trick: When the chef is learning, the kitchen only opens the specific pocket needed for the current lesson. If the lesson is about viruses, the "Virology pocket" gets all the attention and updates. The "Nuclear pocket" stays zipped shut and learns nothing about that day's lesson.

The Result: One Chef, Many Personalities

Because the knowledge is stored in these separate pockets, you can control what the chef knows just by unzipping the pockets before they go to work.

  • For the Hospital: You leave the "Vaccine" pocket zipped open and the "Weapon" pocket zipped shut. The chef is a genius at cures but has no idea how to make a weapon.
  • For the Lab: You open the "Cybersecurity" pocket and close the rest.

The paper shows that this single chef, trained once with this modular apron, performs almost exactly as well as if you had trained five separate chefs from scratch. In fact, when they tested this on a 5-billion-parameter model (a massive brain), the single modular chef was just as good at keeping the "good" skills and just as good at forgetting the "bad" skills as the expensive method of training separate models.

Why This is Better Than Other Tricks

The researchers tried other ways to solve this problem, and they ruled them out:

  • The "Post-Hoc Unlearning" Trick: This is like trying to erase a memory from the chef's brain after they've already learned it. The paper found this is weak. If you try to "unlearn" the weapon recipe later, the chef can easily remember it again with just a little bit of practice (fine-tuning). It's like trying to un-remember a song by humming it backwards; it doesn't stick.
  • The "Model Branching" Trick: This is like training the chef on basics, then sending them to five different schools later to learn specific skills. While this works okay, the paper found that GRAM's "modular apron" approach is better at keeping the skills separate, especially when you have messy data where some recipes aren't labeled.

The "Partial Label" Surprise

Here is a weird but cool finding: Sometimes, you don't know which recipe is which (maybe 50% of the data is unlabeled).

  • If you try to train separate chefs or use the "branching" method with unlabeled data, they accidentally learn the dangerous skills anyway because they treat everything as "basic" knowledge.
  • But the GRAM chef is surprisingly smart. Even with half the labels missing, the modular pockets still manage to keep the dangerous skills isolated. The paper suggests this happens because once a pocket starts specializing, the unlabeled data naturally "drifts" into that same pocket, keeping the core brain clean.

How Sure Are They?

The authors are very confident in their numbers, but they are careful about the limits.

  • They tested this on synthetic stories and real-world data covering virology, cybersecurity, nuclear physics, and specialized code.
  • They scaled the model up from 50 million parameters to 5 billion parameters.
  • In these experiments, GRAM consistently matched the performance of the "gold standard" (training separate models) while using 5 times less compute (training cost) in their 5-profile setup.
  • However, the paper admits they haven't tested this on the absolute largest "frontier" models yet, so while the trend looks great up to 5 billion parameters, they can't promise it works exactly the same way at the very biggest scales.

The Bottom Line

GRAM suggests a way to give AI developers a "least privilege" system. Instead of giving everyone the whole kitchen, you can serve a specific, safe version of the chef to each user by simply zipping or unzipping the right pockets. It's a way to have your cake (powerful AI) and eat it too (safe access control), without needing to bake five different cakes.

The paper concludes that this isn't a magic bullet that solves every problem (some skills are too tangled to separate), but it is a promising step toward safer, more flexible AI that doesn't require building a new model for every single job.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →