← Latest papers
💬 NLP

Divergence Decoding: Inference-Time Unlearning via Auxiliary Models

This paper introduces Divergence Decoding, an inference-time unlearning method that leverages small auxiliary models to steer large language model logits away from sensitive data, effectively mitigating privacy and copyright risks with minimal utility loss while offering a generalizable solution applicable to both text and image domains.

Original authors: Humzah Merchant, Bradford Levy

Published 2026-06-01
📖 4 min read☕ Coffee break read

Original authors: Humzah Merchant, Bradford Levy

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

The Problem: The "Un-Forgettable" Brain

Imagine you have a super-smart librarian (a Large Language Model) who has read every book in the world. Sometimes, this librarian memorizes specific, sensitive details—like a private diary entry or a copyrighted story—that they shouldn't be sharing.

Usually, if you want the librarian to "unlearn" this specific secret, you have two bad options:

  1. Start Over: Burn down the library and rebuild it from scratch without that one book. This takes millions of dollars and years of work.
  2. Brain Surgery: Try to surgically remove the memory from the librarian's brain. This is risky; often, you accidentally damage their ability to do other things, like writing poetry or solving math problems (this is called "catastrophic forgetting").

The Solution: The "Guide Dog" System

The authors of this paper propose a clever new trick called Divergence Decoding (DD). Instead of trying to change the librarian's brain, they keep the librarian exactly as they are and add two small, specialized "guide dogs" to help steer them during conversations.

Here is how the system works:

  1. The Librarian (The Big Model): This is the main AI we use. It knows everything, including the secrets we want it to forget.
  2. Guide Dog A (The "Forget" Model): This is a tiny, cheap AI trained only on the secret information we want to remove. It is obsessed with that specific data.
  3. Guide Dog B (The "Remember" Model): This is another tiny AI trained only on the safe, public information. It knows everything except the secret.

How It Works: The "Steering Wheel"

When you ask the Librarian a question, the system doesn't just let the Librarian answer. It asks the two Guide Dogs what they think the answer should be.

  • The Logic: The system looks at the difference between what Guide Dog A (the secret-obsessed one) wants to say and what Guide Dog B (the safe one) wants to say.
  • The Steering: If Guide Dog A is screaming, "Say the secret!" and Guide Dog B is saying, "No, don't say that!", the system uses that difference to nudge the Librarian's answer away from the secret and toward the safe version.

Think of it like driving a car. The Librarian is the car. The Guide Dogs are two people in the passenger seat. One person is pointing at a cliff (the secret), and the other is pointing at the road (the safe answer). The driver (the system) simply steers the car in the direction of the road, ignoring the cliff, without ever needing to rebuild the car's engine.

Why This Is Better

  • No Brain Surgery: The main Librarian's brain stays untouched. This means they don't lose their ability to do other tasks.
  • Cheap and Fast: Training the two small Guide Dogs is like training a puppy—it's quick and cheap compared to rebuilding a whole library.
  • Works on Hard Questions: Previous methods were good at stopping the AI from reciting a sentence word-for-word, but they failed when the AI tried to answer complex questions about the secret. This method uses the "reasoning" of the Guide Dogs to stop the AI from even thinking about the secret in complex ways.

The "Permanent Fix" (Distillation)

The paper notes that running three models at once (the Librarian + two dogs) takes a little extra computer power. If you want a permanent fix where you only run one model later, you can use a process called Distillation.

Imagine the Librarian, guided by the dogs, writes a perfect "cheat sheet" of how to answer questions without the secrets. You then teach a new, single Librarian to memorize this cheat sheet. Now you have a single, clean model that has "learned" to forget, without needing the dogs anymore.

Does It Work?

The authors tested this on two major benchmarks (TOFU and MUSE), which are like standardized tests for "forgetting."

  • Results: Their method beat all the previous "state-of-the-art" methods. It was better at removing the secrets while keeping the AI smart.
  • Beyond Text: They also tried this on image generation (making pictures). They trained the AI to "forget" how to draw specific types of dogs. The method worked there too, successfully stopping the AI from drawing those dogs without ruining its ability to draw other things.

Summary

Instead of trying to erase a memory from a giant, complex brain (which is hard and dangerous), this paper suggests keeping the brain as is and using two small, smart assistants to gently steer the conversation away from the forbidden topics. It's a "learning over forgetting" approach that is cheaper, safer, and more effective than previous methods.

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 →