Abstract
As Large Language Models (LLMs) become ubiquitous, identifying the specific source of generated content is critical for mitigating risks such as copyright infringement and misinformation. This paper presents a novel digital forensics framework that embeds unique, invisible "depth watermarks" into LLM outputs. By partitioning the vocabulary into sub-lists with varying probability biases based on a user's unique binary fingerprint, the system enables precise source tracing. Experimental results demonstrate over 90% identification accuracy for texts as short as 25 tokens and scalability to user pools exceeding 130,000, all without requiring model retraining.
Introduction
The rapid proliferation of LLMs has introduced significant challenges regarding the accountability of generated text. While existing research has largely focused on binary detection (distinguishing AI-generated text from human-written text), there is an urgent need for source tracing—the ability to identify the specific user or generator responsible for a piece of content.
Current watermarking techniques often struggle with two main issues:
- Short Outputs: Most methods require substantial text length to accumulate sufficient statistical evidence for detection.
- Scalability: Distinguishing between millions of potential sources is significantly more complex than simple binary classification.
Methodology: The Depth Watermarking Framework
The proposed framework builds upon the "green list" watermarking approach but extends it for multi-user identification through a tiered biasing strategy.
User Fingerprinting and Biasing
Each user is assigned a unique binary code. During text generation, the model uses the preceding tokens as a seed to partition the vocabulary. Instead of a single "preferred" list, the authors introduce a Depth Watermark. The vocabulary is divided into several sub-lists ($L^0, L^1, \dots, L^n$), each receiving exponentially decreasing biases ($0.5^j \delta$). This creates a high-dimensional "probability signature" unique to each user's code.
Identification via Depth Score
To trace a source, the system calculates a Depth Score for every user in the pool. This score measures the negative cross-entropy between the observed token distribution in the generated text and the "ideal" distribution expected for a given user's fingerprint. This allows for zero-shot identification without any model fine-tuning.
Experimental Evaluation
The framework was evaluated using the OPT-1.3B model across five diverse datasets: C4 (news), XSum (summarization), WritingPrompts (creative writing), SQuAD (Wikipedia), and PubMedQA (biomedical).
Key Results and Insights
Accuracy on Short Text
A primary breakthrough of this method is its performance on extremely short outputs. As shown in the performance metrics, the system achieves high reliability with minimal content.
With just 25 tokens (approximately two sentences), the framework achieves over 90% top-10 accuracy. When output length reaches 50 tokens, top-1 identification accuracy nears 100% for a pool of 1,024 users.
Scalability and Robustness
The system maintains high performance even as the user pool grows. In large-scale tests, it sustained over 90% top-3 accuracy with a pool of 131,072 users. Furthermore, the watermark is robust against text alteration; even if an attacker modifies 30% of the tokens in a 200-token passage, the system maintains 90% identification accuracy.
The Quality-Traceability Trade-off
There is an inherent trade-off between traceability and text quality. Increasing the bias parameter ($\delta$) improves identification accuracy but also increases the text's perplexity, potentially making it appear less natural. The "depth" approach optimizes this balance by spreading information across multiple probability tiers.
Conclusion and Future Work
This research demonstrates a computationally efficient, scalable, and accurate method for tracing the origin of LLM-generated content. By injecting watermarks during inference, the system avoids the prohibitive costs of model retraining.
Future work will address the challenges of "super-heavyweight" scalability (millions of users) and the development of more efficient search algorithms to reduce the computational overhead of identification in massive pools. Additionally, investigating resilience against sophisticated generative paraphrasing attacks remains a key area for further study.
Summary updated