Research map / Large language models / Language, safety and interpretability
Syntax-Aware Detection of Training Data Contamination in Code LLMs
Jiazheng Zhang, Cheng Liu, Long Cheng, Xiaowei Li, Huawei Li
Chinese Academy of Sciences · University of Chinese Academy of Sciences · North China Electric Power University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use syntax-aware token-probability features instead of Syntax-aware TF-IDF features (ablation) | LightGBM detector · Python, StarCoderBase | AUC: 0.509 -> 0.668 | Improved |
| use syntax-aware token-probability features instead of FastText surface features (ablation) | LightGBM detector · Python, OpenCoder-8B-Instruct | AUC: 0.622 -> 0.963 | Improved |
| aggregate log probs per syntactic type instead of uniform Min-10% over all tokens (ablation) | detector · Python, StarCoderBase | AUC: 0.556 -> 0.668 | Improved |
| add normalized log prob to absolute log prob features (combined) (ablation) | syntax-aware detector · Python, four models | AUC: StarCoderBase 0.668 -> 0.678; OctoCoder 0.707 -> 0.752; MagiCoder-DS 0.850 -> 0.864; OpenCoder-8B 0.963 -> 0.963 | Improved |
| use learned syntax-aware detector instead of Synprune | Ours · Python, StarCoderBase | macro AUC: 66.1 -> 74.8 | Improved |
| use learned syntax-aware detector instead of Recall | Ours · C++, StarCoderBase | macro AUC: 66.9 -> 72.8 | Improved |
| apply Type-III code transformation instead of Original code | Ours · Python, StarCoderBase | AUC: 76.5 -> 73.6 | Hurt |
| apply Type-III code transformation instead of Original code | Recall · Python, StarCoderBase | AUC: 67.2 -> 59.7 | Hurt |
| apply Type-III code transformation instead of Original code | Ours · Magicoder-CL-7B, Python | AUC: 91.9 -> 87.8 | Hurt |
| switch from Python to C++ | Ours · StarCoderBase | macro AUC: 74.8 -> 72.8 | Hurt |
| increase classifier training samples from 100 to 1,000 (ablation) | LightGBM detector · StarCoder and Magicoder AUC | AUC | Improved |
| increase classifier training samples beyond 1,000 (ablation) | LightGBM detector · StarCoder and Magicoder AUC | AUC | No clear effect |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Recall — ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods (EMNLP 2024) · better on 4 of 4 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems this paper states
- “Requires token-level probabilities from the target model, so strict black-box settings are not covered.” → Needs internal states or token probabilities, so closed API models are out. (an open problem in data and hallucination detection)
Open problems in data and hallucination detection
Can hallucinations and training-data use be detected without model internals, across languages, long outputs and larger models?
- Needs internal states or token probabilities, so closed API models are out. · 19 papers state it
- Results come from small open models, not frontier or reasoning models. · 17 papers state it
- Tested only on English text in the detection setups. · 10 papers state it
Closest papers by meaning
- DyCodeEval: Dynamic Benchmarking of Reasoning Capabilities in Code Large Language Models Under Data Contamination (ICML 2025 · similarity 0.89)
- Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting (AAAI 2025 · similarity 0.88)
- Time Travel in LLMs: Tracing Data Contamination in Large Language Models (ICLR 2024 · similarity 0.88)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.88)
- ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding (ICLR 2025 · similarity 0.88)
- Combating Data Laundering in LLM Training (NeurIPS 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.