Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearning

Read full text
Authors: Zhaoyang Chu, Yao Wan, Zhikun Zhang, Di Wang, Yang Zhou, Hongyu Zhang, Pan Zhou, Xuanhua Shi, Hai Jin, David Lo
Cited by: 0

Abstract

While Code Language Models (CLMs) have demonstrated superior performance in software engineering tasks such as code generation and summarization, recent empirical studies reveal a critical privacy vulnerability: these models exhibit unintended memorization of sensitive training data, enabling verbatim reproduction of confidential information when specifically prompted. To address this issue, several approaches, including training data de-duplication and differential privacy augmentation, have been proposed. However, these methods require full-model retraining for deployed CLMs, which incurs substantial computational costs. In this paper, we aim to answer the following research question: Can sensitive information memorized by CLMs be erased effectively and efficiently?

Fields of Study & Subjects

Advanced Malware Detection Techniques Software Engineering Research Security and Verification in Computing

Publication details

Pages
53–65
Publication date
12 April 2026
Language
EN