paper-with-me

Papers

How Do Semantically Equivalent Code Transformations Impact Membership Inference on LLMs for Code?

2025-12-17 · Hua Yang, Alejandro Velasco, Thanh Le-Cong, Md Nazmul Haque, Bowen Xu, Denys Poshyvanyk arxiv

The success of large language models for code relies on vast amounts of code data, including public open-source repositories, such as GitHub, and private, confidential code from companies. This raises concerns about intellectual property compliance and the potential unauthorized use of license-restricted code. While membership inference (MI) techniques have been proposed to detect such unauthorized usage, their effectiveness can be undermined by semantically equivalent code transformation techniques, which modify code syntax while preserving semantic. In this work, we systematically investigate whether semantically equivalent code transformation rules might be leveraged to evade MI detection. The results reveal that model accuracy drops by only 1.5% in the worst case for each rule, demonstrating that transformed datasets can effectively serve as substitutes for fine-tuning. Additionally, we find that one of the rules (RenameVariable) reduces MI success by 10.19%, highlighting its potential to obscure the presence of restricted code. To validate these findings, we conduct a causal analysis confirming that variable renaming has the strongest causal effect in disrupting MI detection. Notably, we find that combining multiple transformations does not further reduce MI effectiveness. Our results expose a critical loophole in license compliance enforcement for training large language models for code, showing that MI detection can be substantially weakened by transformation-based obfuscation techniques.

📄 PDF Abstract BibTeX arXiv:2512.15468

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Auto-SPT: Automating Semantic Preserving Transformations for Code

2025-12-05 · Ashish Hooda, Mihai Christodorescu, Chuangang Ren, Aaron Wilson 외 arxiv

Machine learning (ML) models for code clone detection determine whether two pieces of code are semantically equivalent, which in turn is a key building block for software-engineering tasks like refactoring and security t…

Malware Detection

An Empirical Study on Capability of Large Language Models in Understanding Code Semantics

2024-07-04 · Thu-Trang Nguyen, Thanh Trong Vu, Hieu Dinh Vo, Son Nguyen

Large Language Models for Code (code LLMs) have demonstrated remarkable performance across various software engineering (SE) tasks, increasing the application of code LLMs in software development. Despite the success of …

Code SummarizationMethod name predictionSensitivity

SEAM: Semantically Equivalent Across Modalities Benchmark for Vision-Language Models

2025-08-25 · Zhenwei Tang, Difan Jiao, Blair Yang, Ashton Anderson arxiv

Evaluating whether vision-language models (VLMs) reason consistently across representations is challenging because modality comparisons are typically confounded by task differences and asymmetric information. We introduc…

Spatial Reasoning

Capture the Flags: Family-Based Evaluation of Agentic LLMs via Semantics-Preserving Transformations

2026-02-05 · Shahin Honarvar, Amber Gorzynski, James Lee-Jones, Harry Coppock 외 arxiv

Agentic large language models (LLMs) are increasingly evaluated on cybersecurity tasks using capture-the-flag (CTF) benchmarks, yet existing pointwise benchmarks offer limited insight into agent robustness and generalisa…

Evaluation of Generalizability of Neural Program Analyzers under Semantic-Preserving Transformations

2020-04-15 · Md Rafiqul Islam Rabin, Mohammad Amin Alipour

The abundance of publicly available source code repositories, in conjunction with the advances in neural networks, has enabled data-driven approaches to program analysis. These approaches, called neural program analyzers…

Method name prediction