AST-PAC: AST-guided Membership Inference for Code
Roham Koohestani, Ali Al-Kaswan, Jonathan Katzy, Maliheh Izadi

TL;DR
This paper introduces AST-PAC, a syntax-aware method for membership inference in code models, addressing limitations of existing techniques by leveraging Abstract Syntax Tree perturbations to improve data auditing accuracy.
Contribution
It proposes AST-PAC, a novel syntax-aware calibration approach for membership inference in code models, enhancing performance on larger and complex code files.
Findings
PAC outperforms Loss baseline but degrades on complex files.
AST-PAC improves with larger syntax size, unlike PAC.
Performance varies with code complexity and size.
Abstract
Code Large Language Models are frequently trained on massive datasets containing restrictively licensed source code. This creates urgent data governance and copyright challenges. Membership Inference Attacks (MIAs) can serve as an auditing mechanism to detect unauthorized data usage in models. While attacks like the Loss Attack provide a baseline, more involved methods like Polarized Augment Calibration (PAC) remain underexplored in the code domain. This paper presents an exploratory study evaluating these methods on 3B--7B parameter code models. We find that while PAC generally outperforms the Loss baseline, its effectiveness relies on augmentation strategies that disregard the rigid syntax of code, leading to performance degradation on larger, complex files. To address this, we introduce AST-PAC, a domain-specific adaptation that utilizes Abstract Syntax Tree (AST) based perturbations…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsScientific Computing and Data Management · Adversarial Robustness in Machine Learning · Software Engineering Research
