TLDR: Direct Token Optimization (DTO) is a new method for making large language models (LLMs) forget specific training data without needing external resources like other models or datasets. It works by identifying “target tokens” crucial for the forgotten knowledge using a novel “Delta-score” and then optimizing the model to suppress these tokens. Simultaneously, it preserves the model’s general abilities by regularizing “non-target tokens.” Experiments show DTO significantly improves forgetting quality compared to current methods, offering a more practical and private unlearning solution.
Large Language Models (LLMs) have become incredibly powerful, but with their ability to memorize vast amounts of training data comes a critical challenge: machine unlearning. This technique aims to remove the influence of specific data, often called the ‘forget set,’ from a model without having to retrain it entirely. This is crucial for things like protecting privacy, moderating content, and correcting model errors, especially in light of regulations like GDPR’s ‘right to be forgotten.’
However, current methods for unlearning in LLMs often hit a wall. Many rely on external resources such as auxiliary language models, separate ‘retain’ datasets (data the model should remember), or even commercial AI services. This dependence can be a major hurdle. Imagine the high computational costs, the storage demands, or the potential privacy risks of sending sensitive ‘forget set’ data to a third-party AI service. These limitations make many existing unlearning approaches impractical for real-world use.
Introducing Direct Token Optimization (DTO)
A new approach, called Direct Token Optimization (DTO), offers a novel, self-contained solution to this problem. Developed by Hong kyu Lee, Ruixuan Liu, and Li Xiong from Emory University, DTO eliminates the need for any external resources. It directly optimizes the model at the token level, making the unlearning process more practical and private. You can read the full research paper here: DIRECTTOKENOPTIMIZATION: A SELF-CONTAINED APPROACH TOLARGELANGUAGEMODELUNLEARNING.
DTO works by intelligently identifying two types of tokens within a sequence targeted for unlearning: ‘target tokens’ and ‘non-target tokens.’ Target tokens are those that carry the critical knowledge to be forgotten, while non-target tokens are essential for maintaining the model’s overall usefulness and linguistic fluency.
How DTO Pinpoints What to Forget
Instead of relying on human experts or other AI models like ChatGPT to pick out important words, DTO introduces a clever, assistance-free strategy called ‘Delta-score.’ This score helps identify the target tokens. The intuition behind it is that the most important tokens in a sequence are those whose presence significantly impacts how the rest of the sequence is generated. DTO splits an unlearning sequence into a ‘prefix’ and a ‘suffix.’ It then measures how much the model’s prediction loss on the suffix changes when a token in the prefix is slightly altered or ‘perturbed.’ Tokens that cause the biggest changes are flagged as target tokens because they are the ‘triggers’ for the memorized knowledge.
The Unlearning and Preservation Process
Once the target tokens are identified, DTO performs ‘gradient ascent’ on them. This means it adjusts the model’s parameters to actively reduce the likelihood of generating these specific tokens, effectively making the model ‘forget’ the associated knowledge. Simultaneously, to ensure the model doesn’t lose its general abilities, DTO minimizes the difference (using KL-divergence) between the unlearned model’s output and the original model’s output for the non-target tokens. This dual approach ensures that the model forgets what it needs to without compromising its overall performance.
Impressive Results
Experiments conducted on benchmark datasets like TOFU and MUSE, using LLMs such as Llama-2-7B and Llama 3.2-1B, have shown DTO’s remarkable effectiveness. DTO achieved up to a 16.8 times improvement in ‘forget quality’ compared to the latest baseline methods, all while maintaining a comparable level of model utility. This means the model successfully forgets the targeted information much more thoroughly. For instance, on the TOFU 1% dataset, a version of DTO achieved an almost perfect forget quality score of 0.9188, significantly outperforming baselines that remained below 0.16.
The research also highlighted the practicality of DTO’s token selection. The Delta-score was able to identify crucial tokens, such as specific names, much like external AI services would, but without the associated privacy risks. This makes DTO a robust and trustworthy solution for the growing need for responsible AI development.
Also Read:
- CURE: A Framework for Self-Correcting Language Model Unlearning
- Concrete Score Distillation: A New Approach to Making Large Language Models More Efficient
Looking Ahead
DTO represents a significant step forward in LLM unlearning. By offering a self-contained, efficient, and privacy-preserving method, it addresses many of the limitations of previous approaches. Future work aims to further refine the Delta-score and potentially integrate preference optimization techniques to achieve an even better balance between forgetting efficacy and model utility.


