Unilogit: Robust Machine Unlearning for LLMs Using Uniform-Target Self-Distillation
Stefan Vasilev, Christian Herold, Baohao Liao, Seyyed Hadi Hashemi, Shahram Khadivi, Christof Monz
TL;DR
Unilogit addresses the problem of removing specific memorized knowledge from LLMs under GDPR-like privacy requirements by using a uniform-target self-distillation strategy. It dynamically constructs targets from the current model so that the forget token attains a uniform probability, while preserving other logits, and optimizes with reverse KL for forgetting and a retain-regularizer on retain data, all without extra hyperparameters. Across public benchmarks (MUSE-News, RWKU) and an in-house e-commerce dataset, Unilogit delivers superior forgetting-utility trade-offs and robust hyperparameter behavior compared with state-of-the-art baselines like NPO and UnDIAL. The work provides strong practical evidence for a scalable, robust unlearning approach with detailed analyses of target quality and ablations, highlighting its potential for real-world privacy-preserving ML deployments.
Abstract
This paper introduces Unilogit, a novel self-distillation method for machine unlearning in Large Language Models. Unilogit addresses the challenge of selectively forgetting specific information while maintaining overall model utility, a critical task in compliance with data privacy regulations like GDPR. Unlike prior methods that rely on static hyperparameters or starting model outputs, Unilogit dynamically adjusts target logits to achieve a uniform probability for the target token, leveraging the current model's outputs for more accurate self-distillation targets. This approach not only eliminates the need for additional hyperparameters but also enhances the model's ability to approximate the golden targets. Extensive experiments on public benchmarks and an in-house e-commerce dataset demonstrate Unilogit's superior performance in balancing forget and retain objectives, outperforming state-of-the-art methods such as NPO and UnDIAL. Our analysis further reveals Unilogit's robustness across various scenarios, highlighting its practical applicability and effectiveness in achieving efficacious machine unlearning.
