TLDR: CoUn is a novel machine unlearning framework that enhances the removal of specific ‘forget’ data from trained models while preserving knowledge of ‘retain’ data. It achieves this by using contrastive learning and supervised learning exclusively on retain data. CoUn adjusts data representations based on semantic similarity, indirectly pushing forget data towards semantically similar retain clusters, thereby improving unlearning effectiveness and maintaining model utility. Experiments show CoUn outperforms existing baselines and can significantly boost their performance when integrated.
In the rapidly evolving world of artificial intelligence, the ability for a machine learning model to ‘forget’ specific data it was trained on has become increasingly important. This process, known as Machine Unlearning (MU), is crucial for addressing data privacy concerns, complying with regulations like GDPR, and enhancing model fairness. However, achieving effective unlearning without completely retraining a model from scratch – which is computationally very expensive – has been a significant challenge.
A new research paper titled CoUn: Empowering Machine Unlearning via Contrastive Learning introduces a novel framework called CoUn that aims to make machine unlearning more effective and efficient. Authored by Yasser H. Khalil, Mehdi Setayesh, and Hongliang Li from Huawei Noah’s Ark Lab, CoUn draws inspiration from a key observation: when a model is retrained only on the data it’s supposed to ‘keep’ (retain data), it tends to classify the ‘forgotten’ data based on how semantically similar it is to the retain data.
CoUn emulates this natural behavior by intelligently adjusting how the model understands and represents data. It does this through a combination of two powerful techniques: contrastive learning (CL) and supervised learning, applied exclusively to the retain data. Contrastive learning works by pulling together the representations of similar data samples and pushing apart those of different samples. In CoUn, this means that while the model is learning to better distinguish between retain data points, it indirectly influences the ‘forget’ data representations.
One interesting aspect of contrastive learning is a phenomenon called ‘cluster collision,’ where samples that are technically different might still be pushed closer together if they share semantic similarities. CoUn cleverly leverages this. Instead of forcing ‘forget’ data to be misclassified randomly, it guides these forgotten data points towards clusters of other retain data that are semantically most similar to them. For example, if a model is asked to forget all ‘truck’ images, CoUn might cause those ‘truck’ images to be classified as ‘automobile’ or ‘airplane’ – classes that share visual characteristics with trucks – rather than completely unrelated categories like ‘bird’.
While contrastive learning helps in pushing ‘forget’ data away from its original identity, supervised learning plays a vital role in maintaining the model’s overall usefulness. By applying supervised learning to the retain data, CoUn ensures that the model continues to accurately classify the data it’s supposed to remember, preventing a degradation in performance. This dual approach allows CoUn to achieve a higher rate of misclassification for forgotten data while keeping the accuracy on retain data high.
The researchers conducted extensive experiments across various datasets (like CIFAR-10/100 and TinyImageNet) and model architectures (ResNet-18, VGG-16, ViT). Their findings consistently show that CoUn outperforms existing state-of-the-art machine unlearning methods. Furthermore, they demonstrated that integrating CoUn’s contrastive learning module into other unlearning techniques significantly boosts their effectiveness, highlighting the power of their approach.
Ablation studies in the paper also shed light on the importance of various parameters, such as the scaling factor for the contrastive loss and the temperature constant in contrastive learning. Interestingly, they found that simpler data transformations for contrastive learning often lead to more effective unlearning, as overly strong transformations can make data clusters too tight, hindering the desired ‘forgetting’ effect.
Also Read:
In essence, CoUn offers a sophisticated yet intuitive method for machine unlearning. By understanding and mimicking how models naturally handle forgotten information based on semantic similarity, it provides a more effective way to remove specific data influences, contributing significantly to the ongoing efforts in building more responsible and adaptable AI systems.


