English

CATMark: A Context-Aware Thresholding Framework for Robust Cross-Task Watermarking in Large Language Models

Cryptography and Security 2025-10-06 v1 Artificial Intelligence Computation and Language

Abstract

Watermarking algorithms for Large Language Models (LLMs) effectively identify machine-generated content by embedding and detecting hidden statistical features in text. However, such embedding leads to a decline in text quality, especially in low-entropy scenarios where performance needs improvement. Existing methods that rely on entropy thresholds often require significant computational resources for tuning and demonstrate poor adaptability to unknown or cross-task generation scenarios. We propose \textbf{C}ontext-\textbf{A}ware \textbf{T}hreshold watermarking (\myalgo\myalgo), a novel framework that dynamically adjusts watermarking intensity based on real-time semantic context. \myalgo\myalgo partitions text generation into semantic states using logits clustering, establishing context-aware entropy thresholds that preserve fidelity in structured content while embedding robust watermarks. Crucially, it requires no pre-defined thresholds or task-specific tuning. Experiments show \myalgo\myalgo improves text quality in cross-tasks without sacrificing detection accuracy.

Keywords

Cite

@article{arxiv.2510.02342,
  title  = {CATMark: A Context-Aware Thresholding Framework for Robust Cross-Task Watermarking in Large Language Models},
  author = {Yu Zhang and Shuliang Liu and Xu Yang and Xuming Hu},
  journal= {arXiv preprint arXiv:2510.02342},
  year   = {2025}
}
R2 v1 2026-07-01T06:13:56.764Z