Lune

ACL2026顶会

CodeRipple: Wavelet-Based Detection of LLM-Generated Code

Xingyu Yao, Zhendong Mao, Quan Wang

摘要

Detecting LLM-generated code is crucial for ensuring software provenance, security, reliability, and licensing compliance. Existing training-free detectors, mostly adapted from text-based methods, rely on global statistics of the Token Perplexity Sequence (TPS) and struggle with code. We reveal a key insight: despite the convergence of global statistics, LLM-generated and human-written code differ fundamentally in their local TPS dynamics: the former shows narrow transient spikes while the latter exhibits broad sustained fluctuations. To capture this distinction, we introduce CodeRipple, a novel training-free detection framework that employs wavelet analysis to characterize TPS morphology across scales. It jointly leverages the Stationary Wavelet Transform to model fluctuation shape and the Discrete Wavelet Transform to quantify cross-scale energy distribution. Evaluated on three challenging benchmarks spanning diverse programming languages, multiple generating LLMs, and various evasion strategies, CodeRipple consistently outperforms existing training-free methods, demonstrating its superior effectiveness and generalizability without any model training. Code available at: https: //github.com/yaoxingyu77/CodeRipple .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text 引用了 DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text 引用了 Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvature
  • Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text 引用了 Intrinsic Dimension Estimation for Robust Detection of AI-Generated Texts
  • Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvature 引用了 DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • Intrinsic Dimension Estimation for Robust Detection of AI-Generated Texts 引用了 DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper13

  1. DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability CurvatureEric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning 等ICML 2023 · 988 次引用
  2. Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code ContributionsHammond Pearce, Baleegh Ahmad, Benjamin Tan, Brendan Dolan-Gavitt 等S&P 2022 · 725 次引用
  3. Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability CurvatureGuangsheng Bao, Yanbin Zhao, Zhiyang Teng, Linyi Yang 等ICLR 2024 · 311 次引用
  4. Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated TextAbhimanyu Hans, Avi Schwarzschild, Valeriia Cherepanova, Hamid Kazemi 等ICML 2024 · 262 次引用
  5. Intrinsic Dimension Estimation for Robust Detection of AI-Generated TextsEduard Tulchinskii, Kristian Kuznetsov, Laida Kushnareva, Daniil Cherniavskii 等NeurIPS 2023 · 163 次引用

相关 Paper

  1. Training-free LLM-generated Text Detection by Mining Token Probability SequencesYihuai Xu, Yongwei Wang, Yifei Bi, Huangsen Cao 等ICLR 2025
  2. Telescope: Improving Zero Shot Detection of LLM Generated Content By Measuring Token Repetition ProbabilityChristopher Nassif, Joshua CooperICML 2026
  3. SpecDetect: Simple, Fast, and Training-Free Detection of LLM-Generated Text via Spectral AnalysisHaitong Luo, Weiyao Zhang, Suhang Wang, Wenji Zou 等AAAI 2026
  4. DualCodeDetect: Zero-Shot LLM-Generated Code Detection via Dual-Channel PerturbationZhengdao Li, Xiuwei Shang, Zhenkan Fu, Shikai Guo 等FSE 2026
  5. Waterfall: Scalable Framework for Robust Text Watermarking and Provenance for LLMsGregory Kang Ruey Lau, Xinyuan Niu, Hieu Dao, Jiangwei Chen 等EMNLP 2024 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖