Lune

S&P2024顶会

SrcMarker: Dual-Channel Source Code Watermarking via Scalable Code Transformations

Borui Yang, Wei Li, Liyao Xiang, Bo Li

摘要

The expansion of the open source community and the rise of large language models have raised ethical and security concerns on the distribution of source code, such as misconduct on copyrighted code, distributions without proper licenses, or misuse of the code for malicious purposes. Hence it is important to track the ownership of source code, in which watermarking is a major technique. Yet, drastically different from natural languages, source code watermarking requires far stricter and more complicated rules to ensure the readability as well as the functionality of the source code. Hence we introduce SrcMarker, a watermarking system to unobtrusively encode ID bitstrings into source code, without affecting the usage and semantics of the code. To this end, SrcMarker performs transformations on an AST-based intermediate representation that enables unified transformations across different programming languages. The core of the system utilizes learning-based embedding and extraction modules to select rule-based transformations for watermarking. In addition, a novel feature-approximation technique is designed to tackle the inherent non-differentiability of rule selection, thus seamlessly integrating the rule-based transformations and learning-based networks into an interconnected system to enable end-to-end training. Extensive experiments demonstrate the superiority of SrcMarker over existing methods in various watermarking requirements.

问 Lune

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

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

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • CodeGenGuard: A Watermark for Code Generation Models 引用了 DeCoMa: Detecting and Purifying Code Dataset Watermarks through Dual Channel Code Abstraction
  • CodeGenGuard: A Watermark for Code Generation Models 引用了 Entangled Watermarks as a Defense against Model Extraction
  • CodeGenGuard: A Watermark for Code Generation Models 引用了 A Watermark for Large Language Models
  • CodeGenGuard: A Watermark for Code Generation Models 引用了 Turning Your Weakness Into a Strength: Watermarking Deep Neural Networks by Backdooring
  • Waterfall: Scalable Framework for Robust Text Watermarking and Provenance for LLMs 引用了 A Watermark for Large Language Models
  • DeCoMa: Detecting and Purifying Code Dataset Watermarks through Dual Channel Code Abstraction 引用了 A Watermark for Large Language Models
  • Entangled Watermarks as a Defense against Model Extraction 引用了 Turning Your Weakness Into a Strength: Watermarking Deep Neural Networks by Backdooring
  • Practical and Effective Code Watermarking for Large Language Models 引用了 A Watermark for Large Language Models
  • A Watermark for Large Language Models 引用了 Turning Your Weakness Into a Strength: Watermarking Deep Neural Networks by Backdooring
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Waterfall: Scalable Framework for Robust Text Watermarking and Provenance for LLMsGregory Kang Ruey Lau, Xinyuan Niu, Hieu Dao, Jiangwei Chen 等EMNLP 2024 · 3 次引用
  2. CLMTracing: Black-box User-level Watermarking for Code Language Model TracingBoyu Zhang, Ping He, Tianyu Du, Xuhong Zhang 等EMNLP 2025 · 1 次引用
  3. Practical and Effective Code Watermarking for Large Language ModelsZhimeng Guo, Minhao ChengNeurIPS 2025 · 1 次引用
  4. CodeGenGuard: A Watermark for Code Generation ModelsBorui Yang, Mingxuan Ma, Liyao Xiang, Nan Chen 等ICLR 2026
  5. DeCoMa: Detecting and Purifying Code Dataset Watermarks through Dual Channel Code AbstractionYuan Xiao, Yuchen Chen, Shiqing Ma, Haocheng Huang 等ISSTA 2025

它引用的 Paper16

  1. CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan 等EMNLP Findings 2020 · 2,828 次引用
  2. Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code GenerationJiawei Liu, Chunqiu Steven Xia, Yuyao Wang, Lingming ZhangNeurIPS 2023 · 2,317 次引用
  3. A Watermark for Large Language ModelsJohn Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz 等ICML 2023 · 854 次引用
  4. Turning Your Weakness Into a Strength: Watermarking Deep Neural Networks by BackdooringYossi Adi, Carsten Baum, Moustapha Cissé, Benny Pinkas 等USENIX Security 2018 · 832 次引用
  5. Entangled Watermarks as a Defense against Model ExtractionHengrui Jia, Christopher A. Choquette-Choo, Varun Chandrasekaran, Nicolas PapernotUSENIX Security 2021 · 287 次引用

相关 Paper

  1. DuCodeMark: Dual-Purpose Code Dataset Watermarking via Style-Aware Watermark-Poison DesignYuchen Chen, Yuan Xiao, Chunrong Fang, Zhenyu Chen 等FSE 2026
  2. CodeMark: Imperceptible Watermarking for Code Datasets against Neural Code Completion ModelsZhensu Sun, Xiaoning Du, Fu Song, Li LiFSE 2023 · 34 次引用
  3. StealthInk: A Multi-bit and Stealthy Watermark for Large Language ModelsYa Jiang, Chuxiong Wu, Massieh Kordi Boroujeny, Brian L. Mark 等ICML 2025
  4. Provably Robust Multi-bit Watermarking for AI-generated TextWenjie Qu, Wengrui Zheng, Tianyang Tao, Dong Yin 等USENIX Security 2025
  5. Adaptive Code Watermarking Through Reinforcement LearningZhimeng Guo, Huaisheng Zhu, Siyuan Xu, Hangfan Zhang 等ICML 2026 · 73 次引用
黄昏的海面,两侧是细线勾勒的悬崖