paper-with-me

홈 › Papers

Protecting Private Code in IDE Autocomplete using Differential Privacy

2026-01-30 · Evgeny Grigorenko, David Stanojević, David Ilić, Egor Bogomolov, Kostadin Cvejoski arxiv

Modern Integrated Development Environments (IDEs) increasingly leverage Large Language Models (LLMs) to provide advanced features like code autocomplete. While powerful, training these models on user-written code introduces significant privacy risks, making the models themselves a new type of data vulnerability. Malicious actors can exploit this by launching attacks to reconstruct sensitive training data or infer whether a specific code snippet was used for training. This paper investigates the use of Differential Privacy (DP) as a robust defense mechanism for training an LLM for Kotlin code completion. We fine-tune a \texttt{Mellum} model using DP and conduct a comprehensive evaluation of its privacy and utility. Our results demonstrate that DP provides a strong defense against Membership Inference Attacks (MIAs), reducing the attack's success rate close to a random guess (AUC from 0.901 to 0.606). Furthermore, we show that this privacy guarantee comes at a minimal cost to model performance, with the DP-trained model achieving utility scores comparable to its non-private counterpart, even when trained on 100x less data. Our findings suggest that DP is a practical and effective solution for building private and trustworthy AI-powered IDE features.

📄 PDF Abstract BibTeX arXiv:2601.22935

Code (0)

등록된 구현이 없습니다.

Tasks

Code Completion

Similar Papers 제목 키워드 기반

Differentially Private Naive Bayes Classifier using Smooth Sensitivity

2020-03-31 · Farzad Zafarani, Chris Clifton

With the increasing collection of users' data, protecting individual privacy has gained more interest. Differential Privacy is a strong concept of protecting individuals. Naive Bayes is one of the popular machine learnin…

Sensitivity

When differential privacy meets NLP: The devil is in the detail

2021-09-07 · EMNLP 2021 11 · Ivan Habernal

Differential privacy provides a formal approach to privacy of individuals. Applications of differential privacy in various scenarios, such as protecting users' original utterances, must satisfy certain mathematical prope…

Private Boosted Decision Trees via Smooth Re-Weighting

2022-01-29 · Vahid R. Asadi, Marco L. Carmosino, Mohammadmahdi Jahanara, Akbar Rafiey 외

Protecting the privacy of people whose data is used by machine learning algorithms is important. Differential Privacy is the appropriate mathematical framework for formal guarantees of privacy, and boosted decision trees…

BIG-bench Machine Learning

AdvSGM: Differentially Private Graph Learning via Adversarial Skip-gram Model

2025-03-27 · Sen Zhang, Qingqing Ye, Haibo Hu, Jianliang Xu

The skip-gram model (SGM), which employs a neural network to generate node vectors, serves as the basis for numerous popular graph embedding techniques. However, since the training datasets contain sensitive linkage info…

Graph EmbeddingGraph Learning

Differentially-Private Data Synthetisation for Efficient Re-Identification Risk Control

2022-12-01 · Tânia Carvalho, Nuno Moniz, Luís Antunes, Nitesh Chawla

Protecting user data privacy can be achieved via many methods, from statistical transformations to generative models. However, all of them have critical drawbacks. For example, creating a transformed data set using tradi…

Privacy PreservingSynthetic Data Generation