Research map / Large language models / Language, safety and interpretability
CodeRipple: Wavelet-Based Detection of LLM-Generated Code
Xingyu Yao, Zhendong Mao, Quan Wang
Beijing University of Posts and Telecommunications · University of Science and Technology of China
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 |
|---|---|---|---|
| add SWT morphology branch (ablation) | CodeRipple (DWT only) · AI Code Detection Education (avg 13 strategies) | AUROC: 0.828 -> 0.858 | Improved |
| add DWT energy branch (ablation) | CodeRipple (SWT only) · AI Code Detection Education (avg 13 strategies) | AUROC: 0.838 -> 0.858 | Improved |
| use SWT sample entropy instead of raw-TPS sample entropy (ablation) | CodeRipple (SWT-only branch) · AI Code Detection Education (avg 13 strategies) | AUROC: 0.727 -> 0.838 | Improved |
| use DWT kurtosis instead of raw-TPS kurtosis (ablation) | CodeRipple (DWT-only branch) · AI Code Detection Education (avg 13 strategies) | AUROC: 0.780 -> 0.828 | Improved |
| compute SWT entropy per scale instead of fusing scales (ablation) | CodeRipple · AI Code Detection Education (avg 13 strategies) | AUROC: 0.857 -> 0.858 | Improved |
| aggregate DWT coefficients across scales instead of per-scale kurtosis (ablation) | CodeRipple · AI Code Detection Education (avg 13 strategies) | AUROC: 0.848 -> 0.858 | Improved |
| use 7B proxy instead of Llama3.2-3B (ablation) | CodeRipple · AI Code Detection Education (avg 13 strategies) | AUROC: 0.799 -> 0.853 (Llama2-7B), 0.858 (CodeLlama-7B) | Improved |
| use code-specialized CodeLlama-7B instead of Llama2-7B proxy (ablation) | CodeRipple · AI Code Detection Education (avg 13 strategies) | AUROC: 0.853 -> 0.858 | No clear effect |
| change wavelet function (db/sym families) (ablation) | CodeRipple · AI Code Detection Education (avg 13 strategies) | AUROC: 0.841 to 0.860 | No clear effect |
| increase number of wavelet scales L from 1 to 4 (ablation) | CodeRipple · AI Code Detection Education (avg 13 strategies) | AUROC | Improved |
| vary SWT scale weights and DWT weight alpha (ablation) | CodeRipple · AI Code Detection Education (avg 13 strategies) | AUROC | No clear effect |
| use CodeRipple on specialized template-based strategies 5-7 (assertions, test cases, unit tests) | CodeRipple vs Binoculars · AI Code Detection Education strategies 5-7 | AUROC: strategy 7: 0.809 vs Binoculars 0.934 | Hurt |
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.
- FastDetectGPT — Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvature (ICLR 2024) · better on 5 of 5 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 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
- Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting (AAAI 2025 · similarity 0.87)
- CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verification (AAAI 2025 · similarity 0.86)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.86)
- Evaluation of Large Language Models on Code Obfuscation (Student Abstract) (AAAI 2024 · similarity 0.85)
- Can LLMs Obfuscate Code? A Systematic Analysis of Large Language Models into Assembly Code Obfuscation (AAAI 2025 · similarity 0.85)
- Training Language Models to Generate Quality Code with Program Analysis Feedback (NeurIPS 2025 · similarity 0.84)
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.