AIDB Daily Papers
PromptMark:プロンプト誘導型反復フィードバックによるソースコード電子透かしフレームワーク
※ 日本語タイトル・ポイントはAIによる自動生成です。正確な内容は原論文をご確認ください。
ポイント
- LLMが生成するソースコードの来歴と説明責任を保証するため、ブラックボックス環境でも機能する電子透かしフレームワークを提案した。
- この研究は、モデルのデコーディングプロセスにアクセスできない実用的なシナリオに対応し、コードの機能性を損なわずに目に見えない信号を埋め込む。
- 実験により、PromptMarkは高いコードの正しさを維持しつつ、強力な検出可能性を達成し、既存手法を上回る性能を示した。
Abstract
Watermarking has become a crucial technique for ensuring provenance and accountability in AI-generated source code. As large language models (LLMs) are increasingly integrated into development workflows, reliable attribution remains challenging. In practice, most developers rely on commercial LLM APIs operating under black-box constraints, making existing approaches that require access to the decoding process less feasible for real-world integration. To address this limitation, we propose PromptMark, a black-box, prompt-guided watermarking framework that embeds invisible yet statistically detectable signals into generated code via structured input instructions. The method steers models toward subtle identifier and comment naming patterns while preserving the functional correctness and structural integrity of the generated code. Detection is performed using statistical tests designed to remain reliable across varying code lengths and model outputs. The embedding is further refined through an iterative feedback loop, where prompts are updated based on watermark detection scores. Experiments on the MBPP and HumanEval benchmarks show that PromptMark consistently achieves strong watermark detectability while maintaining high code correctness, outperforming baseline approaches.
Paper AI Chat
この論文のPDF全文を対象にAIに質問できます。
質問の例: