Abstract
The growing deployment of Large Language Models (LLMs) in real-world applications has raised concerns about their potential misuse in generating harmful or deceptive content. To address this issue, watermarking techniques have emerged as a promising solution by embedding identifiable binary messages into generated text for origin verification and misuse tracing. While recent efforts have explored multi-bit watermarking schemes capable of embedding rich information such as user identifiers, they typically suffer from the fundamental trade-off between text quality and decoding accuracy: to ensure reliable message decoding, they have to restrict the size of preferred token sets during encoding, yet such restrictions reduce the quality of the generated content. In this work, we propose MajorMark, a novel watermarking method that improves this trade-off through majority bit-aware encoding. MajorMark selects preferred token sets based on the majority bit of the message, enabling a larger and more flexible sampling of tokens. In contrast to prior methods that rely on token frequency analysis for decoding, MajorMark employs a clustering-based decoding strategy, which maintains high decoding accuracy even when the preferred token set is large, thus preserving both content quality and decoding accuracy. We further introduce MajorMark+, which partitions the message into multiple blocks to independently encode and deterministically decode each block, thereby further enhancing the quality of watermarked text and improving decoding accuracy. Extensive experiments on state-of-the-art LLMs demonstrate that our methods significantly enhance both decoding accuracy and text generation quality, outperforming prior multi-bit watermarking baselines.
Introduction: The Quality-Accuracy Trade-off
As Large Language Models (LLMs) become ubiquitous, the risk of their misuse for generating "fake news" or deceptive content grows. Watermarking—embedding a hidden signal into the text—is a key defense. However, most current methods face a "quality vs. reliability" wall. To embed information (like a user ID), researchers use multi-bit watermarking. This usually involves dividing the vocabulary into "green lists" (preferred tokens) and "red lists."
If the green list is small, the watermark is easy to detect, but the LLM’s word choices are severely restricted, leading to robotic or nonsensical text. If the green list is large, the text quality improves, but the watermark signal becomes so faint that standard decoders (which rely on simple frequency counting) can no longer find it. This fundamental tension is illustrated in the relationship between the green list ratio (γ), bit accuracy, and perplexity.
Methodology: MajorMark and MajorMark+
The authors introduce two variants: MajorMark and MajorMark+, designed to break this trade-off.
1. Majority Bit-Aware Encoding
Instead of picking a fixed-size green list, MajorMark identifies the "majority bit" (the bit value, 0 or 1, that appears most often) in the binary message to be embedded. It then boosts the logits of all vocabulary shards corresponding to that majority bit. This mathematically guarantees that the green list ratio (γ) is at least 0.5, providing the LLM with much more "breathing room" to generate high-quality text.
2. Clustering-Based Decoding
Because the green list is so large, traditional frequency counting fails. MajorMark instead uses K-Means clustering to analyze token occurrences across predefined vocabulary shards. It looks for the "skew" in the distribution to identify which shards were boosted. This shift from counting to clustering allows for reliable detection even when the signal is spread across a large portion of the vocabulary.
3. MajorMark+ (The Enhanced Version)
This version partitions the message into multiple blocks. It replaces the unsupervised clustering with a deterministic decoding method. It exhaustively searches for the majority bit configuration that induces the sharpest imbalance in token counts. This approach makes the watermark significantly more robust against noise and tampering by leveraging the statistical stability of the majority bit across blocks.
Experimental Evaluation
The researchers evaluated their methods using several high-standard benchmarks:
- Datasets: C4 News (natural language generation), OpenGen (diversity and quality), and Essays (instructional/academic writing).
- Models: Evaluations were performed on state-of-the-art open-source models including LLaMA-2 (7B and 13B), Qwen2.5-7B, and Gemma-2B.
Results and Discussion
MajorMark+ consistently achieved the lowest Perplexity (PPL) scores, indicating text quality very close to non-watermarked output. Even with long messages (e.g., 64 bits), MajorMark+ maintained a bit accuracy of nearly 95-99%, significantly outperforming prior baselines like MPAC and RSBH.
Robustness Against Attacks
A critical requirement for watermarking is resilience against adversarial modification. In "Copy-Paste" and "Paraphrase" attack scenarios, MajorMark+ maintained a bit accuracy of roughly 94.5%. The stability of the majority bit heuristic ensures that even if a post-generation attack alters some words, the statistical dominance of the majority bit across the entire text remains detectable.
Conclusion
MajorMark represents a significant step forward in LLM watermarking by proving that a larger green list ratio is a feature, not a bug, when paired with the right decoding paradigm. While current methods use fixed heuristics, future work could explore "co-designing" the green list ratio and bias strength (δ) together to find the absolute theoretical limit of the quality-accuracy trade-off. Despite the slight computational overhead of the deterministic search in MajorMark+, its efficiency ($O(b-r)$) makes it highly feasible for real-world deployment.
Summary updated