mlsanityData to 14 Oct 2026

Uncovering Pretraining Code in LLMs: A Syntax-Aware Attribution Approach

arXiv 2511.07033 ↗First posted 10 Nov 2025cs.CRcited by 1

Not on the map. Why?

Abstract (arXiv)

As large language models (LLMs) become increasingly capable, concerns over the unauthorized use of copyrighted and licensed content in their training data have grown, especially in the context of code. Open-source code, often protected by open source licenses (e.g, GPL), poses legal and ethical challenges when used in pretraining. Detecting whether specific code samples were included in LLM training data is thus critical for transparency, accountability, and copyright compliance. We propose SynPrune, a syntax-pruned membership inference attack method tailored for code. Unlike prior MIA approaches that treat code as plain text, SynPrune leverages the structured and rule-governed nature of programming languages. Specifically, it identifies and excludes consequent tokens that are syntactically required and not reflective of authorship, from attribution when computing membership scores. Experimental results show that SynPrune consistently outperforms the state-of-the-arts. Our method is also robust across varying function lengths and syntax categories.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). First posted on arXiv 10 Nov 2025.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Trained Without My Consent: Detecting Code Inclusion In Language Models Trained on Code
  2. 2023On Extracting Specialized Code Abilities from Large Language Models: A Feasibility Study
  3. 2025How Do Semantically Equivalent Code Transformations Impact Membership Inference on LLMs for Code?
  4. 2026SERSEM: Selective Entropy-Weighted Scoring for Membership Inference in Code Language Models
  5. 2025Large Language Model Unlearning for Source Code
  6. 2026UNBIND: UNlearning By INference-time Directional Steering for Code LLMs
  7. 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanations
  8. 2023The "code'' of Ethics:A Holistic Audit of AI Code Generators