Lagrange Interpolation-Based Multi-Bit Watermark for Large Language Models
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: I'm Nadia.
Elias: And I'm Elias, here with Priya.
Nadia: We're looking at the paper: "Lagrange Interpolation-Based Multi-Bit Watermark for Large Language Models".
Paper summary: Nadia: So we've covered the basic mechanics of how this Lagrange Interpolation-Based Multi-Bit Watermark for Large Language Models works, focusing on embedding points on a line and recovering them through finding the maximal collinear set. The authors, Janas, Morawiecki, and Pieprzyk at the Institute of Computer Science in Warsaw, present a simple method that doesn't need training or is model-agnostic.
Elias: I think what stands out about this work is its focus on multi-bit watermarks and its transparent probabilistic analysis. It’s not just about putting a single bit in, but encoding more information using the coefficients of a polynomial over GF(2n), which gives you that extra layer of security <ref:2505.05712#pg1>.
Priya: For someone interested in the broader implications, this means we have a framework where we can embed richer data into LLM outputs and have mathematical tools to verify if that data has been messed with, even if the text itself is heavily edited. It shifts the focus from just hiding a secret to mathematically structuring the output generation process.
Nadia: Exactly. The authors suggest this approach is lightweight and straightforward to implement, which makes it more practical for applying it in real-world scenarios where you’re trying to attribute generated content or prove its origin.
Elias: And they even touch on how this scheme can be extended, suggesting that you could support longer multi-bit watermarks by embedding multiple lines instead of just one. That opens up possibilities for encoding much more substantial information.
Priya: So what I see is a system that offers a balance between the complexity of needing high-fidelity watermarks and the practical constraints of how robust we need to be against real adversarial manipulation in text generation. It's a flexible framework, depending on what you want to embed and how much noise you expect.
Nadia: That’s right. The Lagrange Interpolation-Based Multi-Bit Watermark for Large Language Models gives us a concrete tool for this kind of defense, allowing us to build systems that are more secure in the age of generative AI.
Conclusion: Nadia: So, to wrap up, this paper introduces a method for putting multi-bit watermarks into text made by large language models using Lagrange interpolation and then pulling that watermark out even if someone has tried to edit the text.
Elias: Yeah, we're looking at Janas and his team here at the Institute of Computer Science in Warsaw. The authors are focused on making this approach training-free and model-agnostic, which is pretty neat for applied security work.
Priya: What I’m thinking is that the core idea—using a straight line defined by points embedded in the text—is a clever way to encode information that's supposed to be hidden within the generated words.
Nadia: It really boils down to embedding these points on a line and then finding the largest set of collinear points after some tampering has occurred. That’s basically solving a version of the maximum collinear points problem during extraction.
Elias: And for us cryptographers, it means they're encoding that multi-bit payload as coefficients of a polynomial over a finite field, GF two to n. That’s how you get the extra bits packed into the structure itself.
Priya: But we need to ask what this actually means for trust. If we can recover the watermark after partial editing, does that give us confidence that the original text came from where it claimed it did?
Nadia: The robustness is interesting because even if only a fraction of those embedded points survive tampering, they’re enough to get the watermark back. That makes it relatively resilient to substitution attacks.
Elias: Substitution attacks are the least destructive kind because each block of the watermark still corresponds to its intended group of tokens in the text. Insertion and deletion attacks, though, are way more damaging because they mess up that block alignment entirely.
Priya: So while it's good against simple changes, we still have to worry about those structural attacks where they just alter the length of the output stream.
Nadia: Exactly. The complexity for detection is something we need to watch; it’s O of N squared for the maximum collinear points detection, so that’s a bit heavy computationally.
Elias: It is lightweight enough for many applications, though they do suggest some optimization tricks, like capping the number of blocks you inspect or using an early stopping threshold to reduce runtime substantially.
Priya: It’s a solid framework for embedding and recovering data, but the real test is how practical this gets when we're dealing with really long watermarks or more complex polynomial structures.
Nadia: The paper does touch on that extension, suggesting you can support longer multi-bit watermarks by embedding multiple lines instead of just one. That opens up ways to encode much more substantial information in the output stream.
Institute of Computer Science, Polish Academy of Sciences · Data61, CSIRO
cs.CR, cs.IT, math.IT
Submitted: 2025-05-09
Updated: 2026-11-26
Comments: 18 pages, 5 figures, 8 tables. Published in IEEE Access. v5: substantially revised after peer review (new title and abstract). Code: https://github.com/jaroslawjanas/llmw-lagrange
Journal ref: IEEE Access 14 (2026) 177747-177765
DOI: 10.1109/ACCESS.2026.3751996
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 83/100
The gist: The paper presents a watermarking scheme for LLM-generated text based on Lagrange interpolation, which enables the recovery of a multi-bit watermark even when the text has been redacted by an…
Key concepts
- Lagrange Interpolation
- This mathematical technique is used to find a unique polynomial that passes through a set of given points. In this watermarking scheme, the embedded watermark is represented by the coefficients of such a polynomial over a finite field (GF(2n)).
- Maximum Collinear Points Problem (MCP)
- During extraction, the algorithm must recover the original points from noisy text. This recovery process is framed as finding the line that passes through the maximum number of these recovered points, which is known as the Maximum Collinear Points Problem.
- GF(2n) Polynomial Coefficients
- The multi-bit watermark is encoded directly into the coefficients of a polynomial defined over GF(2n). This finite field structure allows for efficient encoding and decoding of the binary payload within the mathematical framework used for watermarking.
- Robustness against Attacks
- The scheme is designed to be resilient. Even if an adversary partially modifies the text (like substitution attacks), a sufficient number of original embedded points remain, allowing the algorithm to successfully recover the hidden multi-bit watermark.
Terminology
Summary
The paper presents a watermarking scheme for LLM-generated text based on Lagrange interpolation, which enables the recovery of a multi-bit watermark even when the text has been redacted by an adversary. p. 0 One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary.Where the paper says it
Where the paper says it
Watermarking Mechanism Overview
The core idea is to embed a continuous sequence of points (x, f(x)) that lie on a single straight line.<ref:2505.05712#pg2>. During extraction, the algorithm recovers the original points along with many spurious ones, forming an instance of the Maximum Collinear Points (MCP) problem. p. 0 The
core idea is to embed a continuous sequence of points (x, f(x)) that lie on a single straight line. During
extraction, the algorithm recovers the original points along with many spurious ones, forming an instance
of the Maximum Collinear Points (MCP) problem, which can be solved efficiently. 4 Watermarking scheme based on Lagrange Interpolation
In the proposed watermarking scheme, the watermark W constitutes coefficients of the polynomial f(x). We focus on the simplest nontrivial case where f(x) is a linear function f(x) = a0 + a1x ∈ GF(2n
),
where the watermark is encoded as W = (a0∥a1) ∈ GF(2n
).Where the paper says it
Where the paper says it
Embedding Process Details
The embedding process involves generating pseudo-random x-coordinates and computing corresponding y-coordinates which are then embedded into a generated text by biasing the token selection.<ref:2505.05712#pg4>. The algorithm embeds a binary vector (watermark) into the stream of generated tokens. p. 3 In
this paper, we use a similar method; however, instead of preferring only green tokens, we select either
a green or red token depending on a bit value (green corresponds to 1, red to 0). In this way, we embed
a binary vector (watermark) into the stream of generated tokens. [5] introduced the concept of “Green” and “Red” tokens, where increasing the logit
values of Green tokens leads to a strong preference for them — a hallmark of watermarked text. In
this paper, we use a similar method; however, instead of preferring only green tokens, we select either
a green or red token depending on a bit value (green corresponds to 1, red to 0). The watermark is encoded as a linear polynomial f(x) = a1x + a0, where
the coefficients a0 and a1 together form the watermark. The algorithm begins by initializing the text
generation with a given prompt, and then iteratively embeds the watermark across the generated tokens.Where the paper says it
Where the paper says it
Where the paper says it
Extraction and Recovery
The extraction phase involves recovering embedded points from the generated text.<ref:2505.05712#pg5>. The goal is to find the line that passes through the largest number of points, a problem formally known as the Maximum Collinear Points Problem. p. 1 Due to sampling variability during generation and/or adversarial tampering with the text, some of the recovered points
may be incorrect (orange points). Our goal is to find the line that passes through the largest number of points, a problem
formally known as the Maximum Collinear Points Problem. Our goal is to find the line that passes through the largest number of points, a problem
formally known as the Maximum Collinear Points Problem. Once this line is found, its coefficients a1 and a0 constitute
the extracted watermark.Where the paper says it
Where the paper says it
Robustness and Performance Analysis
The scheme exhibits resilience to partial modifications because even if only a fraction of embedded points survive tampering, they suffice to recover the watermark.<ref:2505.05712#pg4,A desirable feature of the proposed scheme is that even if only a fraction of embedded points survive tampering, they suffice to recover the watermark>. p. 3 Then we apply the Lagrange interpolation to
those points to recover the original f(x). A desirable feature of the proposed scheme is that even if only a fraction of embedded points
survive tampering, they suffice to recover the watermark. Consequently, substitution attacks are the least destructive class of interventions for our scheme, and the
watermark exhibits partial robustness even without additional protection. 3 Insertion and Deletion Attacks (Desynchronization)
Insertion and deletion attacks are significantly more damaging for our method because they alter the
token stream length and thereby destroy block alignment. Consequently, substitution attacks are the least destructive class of interventions for our scheme, and the
watermark exhibits partial robustness even without additional protection. 3 Insertion and Deletion Attacks (Desynchronization)
Insertion and deletion attacks are significantly more damaging for our method because they alter the
token stream length and thereby destroy block alignment. Consequently, substitution attacks are the least destructive class of interventions for our scheme, and the
watermark exhibits partial robustness even without additional protection. 3 Insertion and Deletion Attacks (Desynchronization)
Insertion and deletion attacks are significantly more damaging for our method because they alter the
token stream length and thereby destroy block alignment. Consequently, substitution attacks are the least destructive class of interventions for our scheme, and the
watermark exhibits partial robustness even without additional protection. 3 Insertion and Deletion Attacks (Desynchronization)
Insertion and deletion attacks are significantly more damaging for our method because they alter the
token stream length and thereby destroy block alignment.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Complexity and Practical Considerations
The computational complexity of MCP-based detection is O(N 2) time.<ref:2505.05712#pg17>. Optimization 1 suggests capping the number of blocks inspected by running detection only on a fixed-length token window of size T0. p. 4 Then, a new token is sampled (greedy sampling) from the biased logits and added to a
sequence of the generated tokens T . The process repeats for each y-value, with each one embedded
across a fixed number of consecutive tokens, until the desired length of text is generated. Then, a new token is sampled (greedy sampling) from the biased logits and added to a
sequence of the generated tokens T . The process repeats for each y-value, with each one embedded
across a fixed number of consecutive tokens, until the desired length of text is generated. For longer watermarks (24
and 32 bits), we use the bit correction mechanism with c = 1. The threshold τ was selected to obtain
False Positive Rate FPR≤ 1%. For longer watermarks (24
and 32 bits), we use the bit correction mechanism with c = 1. The threshold τ was selected to obtain
False Positive Rate FPR≤ 1%. The scheme is naturally extendable to support longer multi-bit watermarks. p. 9 We demonstrate that the scheme is lightweight, straightforward to implement, and well-suited for real-world applications. The scheme is naturally extendable to support longer multi-bit watermarks.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Theoretical Guarantees
Theorem 1 provides a tool to evaluate the probability that Algorithm 2 extracts the watermark correctly.<ref:2505.05712#pg7,Theorem 1 provides us with a tool to evaluate the probability that Algorithm 2 extracts the watermark correctly>. p. 6 A proof of the theorem is given in Appendix. Theorem 1 provides us with a tool to evaluate the probability that Algorithm 2 extracts the
watermark correctly. For any integer k ≥ 3, the probability that there exists a non-vertical line containing
at least k points of S satisfies
Pr
∃ k-collinear points
≤
R
k
q
−(k−2)
. A proof of the theorem is given in Appendix. Theorem 1 provides us with a tool to evaluate the probability that Algorithm 2 extracts the
watermark correctly. For a fixed non-vertical line ℓ, the probability that it contains exactly k of the R
points is
Pr
|ℓ ∩ S| = k
=
R
k
1
q
k
1 −
1
q
R−k
. Across all attack types, recovery performance degrades gracefully as the number of interventions
increases. As expected, substitution attacks exhibit the slowest degradation due to preserved synchronization whereas insertion and deletion attacks are more harmful. For each
bit in this y-value, the vocabulary is pseudo-randomly partitioned into two subsets, one corresponding
to a bit value of 0 and the other to 1. The LLM generates a probability distribution (logits) over
the vocabulary, which is then selectively biased toward the appropriate subset based on the bit being
embedded. This capability is especially critical in combating misinformation,
propaganda, automated plagiarism, and the spread of fake news. arXiv:2505. The results show that high match rates are achievable at modest bias and that runtime scales predictably. Finally, we outline extensions for composing longer payloads via multiple lines
and for higher-degree polynomials. The results show that high match rates are achievable at modest bias and that runtime scales predictably. Finally, we outline extensions for composing longer payloads via multiple lines
and for higher-degree polynomials. In this approach, the watermark is encoded as
the coefficients of a polynomial f(x) and watermark points are sampled from this polynomial. Overall, the proposed watermarking framework offers a flexible balance between efficiency and
security, and opens the door to new watermarking paradigms based on algebraic structures.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Conclusion
This work introduces a novel watermarking scheme for LLM-generated texts.<ref:2505.05712#pg8>. The core idea is to represent the watermark as coefficients of a straight line f(x) over a finite field, and embed a sequence of points (xi, f(xi)) lying on this line into the LLM-generated text. p. 9 8 Conclusion
This work introduces a novel watermarking scheme for LLM-generated texts. The core idea is to represent the watermark as coefficients of a straight line f(x) over a finite field, and embed a sequence of
points (xi
, f(xi)) lying on this line into the LLM-generated text. The core idea is to represent the watermark as coefficients of a straight line f(x) over a finite field, and embed a sequence of
points (xi
, f(xi)) lying on this line into the LLM-generated text. A watermark is recoverable even after
partial editing or adversarial manipulation. A watermark is recoverable even after
partial editing or adversarial manipulation. We demonstrate that the scheme is lightweight, straightforward to implement, and well-suited for real-world applications. The scheme is naturally extendable to support longer multi-bit watermarks. One straightforward
approach is to embed multiple lines, each corresponding to a part of the watermark.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
References
The references listed support the scheme's foundation in algebraic structures and computational geometry.<ref:2505.05712#pg18>. The work by Cormen et al. p. 0 One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. Each recovered point (x, y) is added to a collection P. After processing the entire token sequence
in this manner, the algorithm attempts to identify the original watermark by solving the Maximum
Collinear Points (MCP) problem on the set P. LLM-Text Watermarking based on Lagrange Interpolation
Jarosław Janas1
, Paweł Morawiecki1
, and Josef Pieprzyk1,2
1
Institute of Computer Science, Polish Academy of Sciences, Warsaw, Poland
2 Data61, CSIRO, Sydney, Australia
Abstract. The rapid advancement of LLMs (Large Language Models) has established them as a foundational technology for many AI- and ML-powered human–computer interactions. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. ,
education, journalism, code generation). Recent literature has explored a diverse range of strategies
for embedding and detecting watermarks in LLM-generated content. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. One of the key techniques for addressing this
challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation,
enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Watermark embedding can be made more robust against insertion and deletion attacks by employing a multi-window approach, evaluating Maximum Collinear Points (MCP) on K non-overlapping or randomly sampled windows to find the maximum score across all windows.
-
The system can support longer, multi-bit watermarks by embedding multiple distinct lines using a set of polynomials f(x) = a0 + a1x+a2x+at−1xt−1 where t is greater than or equal to 3.
-
A more flexible watermark composition can be achieved by sorting the digests of individual watermark components Wi and concatenating them based on the owner's predetermined order, allowing for complex, structured watermarks.
-
The detection mechanism can be optimized for practical deployment by capping the number of blocks inspected in a verification segment to a fixed-length token window size T0 to bound MCP computation to O(N20) time complexity, which is constant with respect to total document length.
-
Higher-degree polynomials can be used instead of straight lines, leading to the Maximum Co-Polynomial Points (MCPP) problem for detection, allowing for richer and potentially stronger watermarking schemes based on degree t greater than 2.
Abstract
The rapid advancement of LLMs (Large Language Models) has established them as a foundational technology for many AI- and ML-powered human-computer interactions. A critical challenge in this context is the attribution of LLM-generated text -- for example, identifying the specific language model that generated it or the individual user who prompted the model. This capability is essential for combating misinformation, fake news, misinterpretation, and plagiarism. One of the key techniques for addressing this challenge is digital watermarking. This work presents a watermarking scheme for LLM-generated text based on Lagrange interpolation, enabling the recovery of a multi-bit watermark even when the text has been redacted by an adversary. The core idea is to embed a continuous sequence of points (x, f(x)) that lie on a single straight line. During extraction, the algorithm recovers the original points along with many spurious ones, forming an instance of the Maximum Collinear Points (MCP) problem, which can be solved efficiently. Experimental results demonstrate that the proposed method is scalable and effective, allowing the embedding of a multi-bit watermark. Experiments on Llama 2-7B demonstrate that the proposed method achieves match rates of 98.6%, 96.0%, 93.9%, and 85.9% for watermark sizes of 16, 20, 24, and 32 bits respectively -- competitive with state-of-the-art methods. Crucially, watermark extraction completes in a fraction of a second, and the scheme is lightweight and applicable to multiple LLM architectures without model retraining.
Sources
- LLaMA: Open and Efficient Foundation Language Models
- Watermarking Text Data on Large Language Models for Dataset Copyright
- Robust Data Watermarking in Language Models by Injecting Fictitious Knowledge
- A Watermark for Large Language Models
- GumbelSoft: Diversified Language Model Watermarking via the GumbelMax-trick
- A Survey of Text Watermarking in the Era of Large Language Models
- Provably Robust Multi-bit Watermarking for AI-generated Text
- Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense
- How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Opal: Private Memory for Personal AI
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management