arrow
Return

Gotcha! This Model Uses My Code! Evaluating Membership Leakage Risks in Code Models

delete2024-12-01
delete0
delete
OA
AI
Z
Zhou Yang *
Z
Zhipeng Zhao
C
Chenyu Wang
J
Jieke Shi
D
Dongsun Kim
D
DongGyun Han
D
David Lo
DOI:10.1109/TSE.2024.3482719delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Leveraging large-scale datasets from open-source projects and advances in large language models, recent progress has led to sophisticated code models for key software engineering tasks, such as program repair and code completion. These models are trained on data from various sources, including public open-source projects like GitHub and private, confidential code from companies, raising significant privacy concerns. This paper investigates a crucial but unexplored question: What is the risk of membership information leakage in code models? Membership leakage refers to the vulnerability where an attacker can infer whether a specific data point was part of the training dataset. We present Gotcha, a novel membership inference attack method designed for code models, and evaluate its effectiveness on Java-based datasets. Gotcha simultaneously considers three key factors: model input, model output, and ground truth. Our ablation study confirms that each factor significantly enhances attack performance. Our ablation study confirms that each factor significantly enhances attack performance. Our investigation reveals a troubling finding: membership leakage risk is significantly elevated. While previous methods had accuracy close to random guessing, Gotcha achieves high precision, with a true positive rate of 0.95 and a low false positive rate of 0.10. We also demonstrate that the attacker's knowledge of the victim model (e.g., model architecture and pre-training data) affects attack success. Additionally, modifying decoding strategies can help reduce membership leakage risks. This research highlights the urgent need to better understand the privacy vulnerabilities of code models and develop strong countermeasures against these threats.
Keywords:
Codes
Data models
Training data
Training
Information leakage
Software development management
Data privacy
Privacy
Decoding
Source coding
Membership inference attack
privacy
large language models for code
code completion

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

K
Korea University
Scholars:
3.6W
Papers: 3.8W
Citations: 4.4W
U
University of Copenhagen
Scholars:
7.6W
Papers: 6.6W
Citations: 86
S
Singapore Management University
Scholars:
1.5K
Papers: 2.5K
Citations: 3.5K
U
university of london
Scholars:
21.5W
Papers: 19.7W
Citations: 305
researcher View more organizations
Cited Papers

Cited Papers

Evaluation of the mean platelet volume in patients with cardiac syndrome X
err2012-01-01
err0
errOAAI
errSait Demirkol; Sevket Balta; Murat Unlu; Uygar Cagdas Yuksel; Turgay Celik; Zekeriya Arslan; Ugur Kucuk; Mehmet Yokusoglu
errShare
errSave
Caveolin-1 and -2 regulate cell motility in castration-resistant prostate cancer
err2018-10-01
err0
errOAAI
errToyoharu Kamibeppu; Koji Yamasaki; Kozue Nakahara; Takahiro Nagai; Naoki Terada; Hiromasa Tsukino; Shoichiro Mukai; Toshiyuki Kamoto
errShare
errSave
Explanation, prediction, and causality: Three sides of the same coin?
err
IF0
err2018-10-31
err0
errOAAI
errDuncan J Watts; Emorie D Beck; Elisa Jayne Bienenstock; Jake Bowers; Aaron Frank; Anthony Grubesic; Jake M. Hofman; Julia M. Rohrer; Matthew Salganik
errShare
errSave
Ca2+ Activated K Channels-New Tools to Induce Cardiac Commitment from Pluripotent Stem Cells in Mice and Men
err2011-10-26
err0
PREAI
errMartin Müller; Marianne Stockmann; Daniela Malan; Anne Wolheim; Michael Tischendorf; Leonhard Linta; Sarah-Fee Katz; Qiong Lin; Stephan Latz; Cornelia Brunner; Anna M. Wobus; Martin Zenke; Maria Wartenberg; Tobias M. Boeckers; Götz von Wichert; Bernd K. Fleischmann; Stefan Liebau; Alexander Kleger
errShare
errSave
Experimental and numerical investigation of the structural response of top and seated angle with double web angle bolted connections
err2011-04-01
err0
PREAI
errKhairedin Abdalla; Dimitrios Kaziolas; Muneer Badarneh; Charalambos Baniotopoulos
errShare
errSave
ATG24 Represses Autophagy and Differentiation and Is Essential for Homeostasy of the Flagellar Pocket in Trypanosoma brucei
err2015-06-19
err0
errOAAI
errAna Brennand; Eva Rico; Daniel J. Rigden; Patrick Van Der Smissen; Pierre J. Courtoy; Paul A. M. Michels
errShare
errSave
UP-3.186: Retroperitoneal Laparoscopic Pyelolithotomy for Complicated Renal Calculi
err2009-10-01
err0
PREAI
errZ. Shen; Y. Shao; W. Rui; X. Wang; Y. Teng
errShare
errSave
researcher View more