Stylometric Watermarks for Large Language Models
Georg Niess, Roman Kern
TL;DR
The paper tackles the rising challenge of distinguishing human- from machine-generated text and enabling accountability for proprietary LLMs. It introduces a novel watermarking approach that controls stylometric features by deriving a per-sentence semantic key to steer token probabilities during generation. Two features, acrostic cues and sensorimotor norms, are employed, with keys produced via semantic zero-shot classification and detected through statistical hypothesis testing. The results demonstrate robust detection for texts of three or more sentences and resilience to cyclic translation attacks, all without requiring extra fine-tuning or external detectors, suggesting practical utility for enforcing accountability in large language models.
Abstract
The rapid advancement of large language models (LLMs) has made it increasingly difficult to distinguish between text written by humans and machines. Addressing this, we propose a novel method for generating watermarks that strategically alters token probabilities during generation. Unlike previous works, this method uniquely employs linguistic features such as stylometry. Concretely, we introduce acrostica and sensorimotor norms to LLMs. Further, these features are parameterized by a key, which is updated every sentence. To compute this key, we use semantic zero shot classification, which enhances resilience. In our evaluation, we find that for three or more sentences, our method achieves a false positive and false negative rate of 0.02. For the case of a cyclic translation attack, we observe similar results for seven or more sentences. This research is of particular of interest for proprietary LLMs to facilitate accountability and prevent societal harm.
