Towards Code Watermarking with Dual-Channel Transformations
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). First posted on arXiv 2 Sep 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 2; 2024: 5; 2025: 1; 2026: 1.
9 papers.
- 2023Can LLM-Generated Misinformation Be Detected?cited by 177
- 2024Machine Unlearning of Pre-trained Large Language Modelscited by 119
- 2023Towards Optimal Statistical Watermarkingcited by 26
- 2024CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Codecited by 24
- 2024From Intentions to Techniques: A Comprehensive Taxonomy and Challenges in Text Watermarking for Large Language Modelscited by 3
- 2024Proactive Schemes: A Survey of Adversarial Attacks for Social Goodcited by 2
- 2024Watermarking Large Language Models and the Generated Content: Opportunities and Challengescited by 2
- 2025Optimizing Token Choice for Code Watermarking: An RL Approachcited by 1
- 2026SWaRL: Safeguard Code Watermarking via Reinforcement Learningcited by 0
- 2026SWaRL: Safeguard Code Watermarking via Reinforcement Learning5 Jan 2026
- 2025Optimizing Token Choice for Code Watermarking: An RL Approach16 Aug 2025
- 2024Watermarking Large Language Models and the Generated Content: Opportunities and Challenges24 Oct 2024
- 2024Proactive Schemes: A Survey of Adversarial Attacks for Social Good24 Sep 2024
- 2024From Intentions to Techniques: A Comprehensive Taxonomy and Challenges in Text Watermarking for Large Language Models17 Jun 2024
- 2024CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Code24 Apr 2024
- 2024Machine Unlearning of Pre-trained Large Language Models23 Feb 2024
- 2023Towards Optimal Statistical Watermarking13 Dec 2023
- 2023Can LLM-Generated Misinformation Be Detected?25 Sep 2023
Similar, not cited
Close in wording, no citation either way
- 2025CLASP: Training-Free LLM-Assisted Source Code Watermarking via Semantic-Preserving Transformations
- 2023Towards Tracing Code Provenance with Code Watermarking
- 2026DuCodeMark: Dual-Purpose Code Dataset Watermarking via Style-Aware Watermark-Poison Design ↗
- 2026MATRIX: Multi-Layer Code Watermarking via Dual-Channel Constrained Parity-Check Encoding ↗
- 2025DeCoMa: Detecting and Purifying Code Dataset Watermarks through Dual Channel Code Abstraction
- 2024Is The Watermarking Of LLM-Generated Code Robust?
- 2025Disappearing Ink: Obfuscation Breaks N-gram Code Watermarks in Theory and Practice
- 2025Towards Generalized and Stealthy Watermarking for Generative Code Models