Pith. sign in

REVIEW 2 cited by

CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Code

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2404.15639 v3 pith:3PSJZFMV submitted 2024-04-24 cs.CL

classification cs.CL
keywords codecodeipgenerationllmscorrectnesscrucialinformationlanguage
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large Language Models (LLMs) have achieved remarkable progress in code generation. It now becomes crucial to identify whether the code is AI-generated and to determine the specific model used, particularly for purposes such as protecting Intellectual Property (IP) in industry and preventing cheating in programming exercises. To this end, several attempts have been made to insert watermarks into machine-generated code. However, existing approaches are limited to inserting only a single bit of information. In this paper, we introduce CodeIP, a novel multi-bit watermarking technique that inserts additional information to preserve crucial provenance details, such as the vendor ID of an LLM, thereby safeguarding the IPs of LLMs in code generation. Furthermore, to ensure the syntactical correctness of the generated code, we propose constraining the sampling process for predicting the next token by training a type predictor. Experiments conducted on a real-world dataset across five programming languages demonstrate the effectiveness of CodeIP in watermarking LLMs for code generation while maintaining the syntactical correctness of code.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Optimizing Token Choice for Code Watermarking: An RL Approach

    cs.CR 2025-08 unverdicted novelty 6.0 of 10

    An RL-trained policy adaptively biases token choices to watermark LLM-generated code while preserving executable behavior.

  2. Enhancing Watermarking Quality for LLMs via Contextual Generation States Awareness

    cs.CR 2025-06 conditional novelty 6.0 of 10

    A context-aware plug-in for LLM watermarking that skips or weakens watermarks on semantically critical tokens, improving task accuracy at similar detection rates.

Pith tools