Related Experiment Video
Updated: Jan 26, 2026

Fluorescent Leakage Assay to Investigate Membrane Destabilization by Cell-Penetrating Peptide
Published on: December 19, 2020
Mitigating sensitive information leakage in LLMs4Code through machine unlearning
Shanzhi Gu1, Zhaoyang Qu1, Ruotong Geng2
1College of Computer Science and Technology, National University of Defense Technology, Changsha, 410073, Hunan, China.
Machine unlearning significantly reduces sensitive data leakage in Large Language Models for Code (LLMs4Code), cutting direct leaks by over 50% while preserving 91% of coding ability. Further research is needed to address remaining indirect leakage.
Area of Science:
- Artificial Intelligence
- Machine Learning
- Software Engineering
Background:
- Large Language Models for Code (LLMs4Code) excel at code generation but risk leaking sensitive training data.
- Existing privacy measures for LLMs4Code are insufficient to prevent sensitive information disclosure.
Purpose of the Study:
- This study provides the first comprehensive empirical analysis of machine unlearning for mitigating sensitive data leakage in LLMs4Code.
- To evaluate the effectiveness of machine unlearning in reducing privacy risks while maintaining model performance.
Main Methods:
- A dedicated benchmark was created with synthetic "forget" and "retain" datasets to test privacy and functionality.
- Three machine unlearning algorithms (GA, GA+GD, GA+KL) were systematically assessed on three open-source LLMs4Code models (AIXCoder-7B, CodeLlama-7B, CodeQwen-7B).
Main Results:
- Machine unlearning reduced direct data leakage by over 50% on average.
- Code-generation performance was retained at over 91% after unlearning.
- A shift from direct to indirect data leakage was observed post-unlearning, indicating a persistent vulnerability.
Conclusions:
- Machine unlearning is a viable and effective method for enhancing privacy in LLMs4Code.
- Future research must develop techniques to address both direct and indirect leakage simultaneously for robust privacy protection.
Related Concept Videos
Machines
A free-body diagram of the...
Machines: Problem Solving II
Machines: Problem Solving I
The toggle clamp system is a machine structure consisting of movable, pin-connected multi-force members that form a stabilized system to transmit forces. The...
Sequence Networks of Rotating Machines
Zero-sequence current induces a voltage drop across the generator's neutral impedance and other...
Simplified Synchronous Machine Model
In this model, each generator is connected to a...
Wind Turbine Machine Models
Induction machines interact through the rotating magnetic field generated by the stator and the rotor. The key parameter is slip, which is the difference between synchronous speed and rotor speed relative to synchronous speed. Slip is...

