mlsanityData to 14 Oct 2026

Towards Tracing Code Provenance with Code Watermarking

arXiv 2305.12461 ↗First posted 21 May 2023cs.CR cs.SEcited by 3

Not on the map. Why?

Abstract (arXiv)

Recent advances in large language models have raised wide concern in generating abundant plausible source code without scrutiny, and thus tracing the provenance of code emerges as a critical issue. To solve the issue, we propose CodeMark, a watermarking system that hides bit strings into variables respecting the natural and operational semantics of the code. For naturalness, we novelly introduce a contextual watermarking scheme to generate watermarked variables more coherent in the context atop graph neural networks. Each variable is treated as a node on the graph and the node feature gathers neighborhood (context) information through learning. Watermarks embedded into the features are thus reflected not only by the variables but also by the local contexts. We further introduce a pre-trained model on source code as a teacher to guide more natural variable generation. Throughout the embedding, the operational semantics are preserved as only variable names are altered. Beyond guaranteeing code-specific properties, CodeMark is superior in watermarking accuracy, capacity, and efficiency due to a more diversified pattern generated. Experimental results show CodeMark outperforms the SOTA watermarking systems with a better balance of the watermarking requirements.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). First posted on arXiv 21 May 2023.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2024: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026MATRIX: Multi-Layer Code Watermarking via Dual-Channel Constrained Parity-Check Encoding ↗
  2. 2025CLASP: Training-Free LLM-Assisted Source Code Watermarking via Semantic-Preserving Transformations
  3. 2026DuCodeMark: Dual-Purpose Code Dataset Watermarking via Style-Aware Watermark-Poison Design ↗
  4. 2026PromptMark: A Prompt-Guided Iterative-Feedback Framework for Source Code Watermarking ↗
  5. 2024CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Code
  6. 2025Towards Generalized and Stealthy Watermarking for Generative Code Models
  7. 2023CodeMark: Imperceptible Watermarking for Code Datasets against Neural Code Completion Models
  8. 2024Is The Watermarking Of LLM-Generated Code Robust?