How to Watermark the RLWE Homomorphic Ciphertexts
This paper proposes two robust watermarking schemes, ARWMark and MRWMark, for RLWE-based homomorphic encryption that embed copyright and authentication information into ciphertexts while maintaining security and surviving homomorphic additive and multiplicative operations.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a world where you can ask a stranger to do math for you, but you never have to show them your secret numbers. You lock your data in a magical, unbreakable box, hand it over, and the stranger performs calculations on the box itself. When they hand it back, you unlock it to find the answer, and the stranger never saw a single digit of your original data. This is the promise of Homomorphic Encryption (HE), a superpower of modern cryptography that lets us compute on encrypted data without ever decrypting it. It's like sending a sealed letter to a post office that can sort, stamp, and route the letter without ever opening the envelope to read the address.
But here's the catch: once that letter leaves your hands, who owns the work inside? If a company uses your encrypted data to train a model or process a medical scan, the final result is a new, valuable digital asset. How do you prove that your data was used, or that their specific algorithm was the one that did the work? In the digital world, we usually slap a watermark on photos or songs to prove ownership. But you can't just paint a watermark on a locked box; if you scratch the surface, you might break the magic, and the box won't open anymore. Furthermore, if the box gets passed around and processed many times, a simple scratch might get erased completely. Scientists have been trying to figure out how to hide a secret "signature" inside these magical boxes that survives the journey and the math, without breaking the lock.
This paper, titled "How to Watermark the RLWE Homomorphic Ciphertexts," tackles exactly that puzzle. The authors, led by Yufei Zhou, propose a way to hide tiny, invisible "watermarks" inside the mathematical noise of these encrypted boxes. They don't just suggest a vague idea; they build two specific, working methods and prove mathematically that they work. Think of it like hiding a secret message inside the static noise of a radio signal. The message is there, but to the casual listener, it just sounds like static. The authors show that even after the signal gets boosted, mixed with other signals, or passed through a noisy filter, that secret message can still be found by someone who knows the right decoder.
The paper introduces two distinct tools for this job, each designed for a different kind of math problem. The first tool, called ARWMark, is like a sturdy, flexible sticker. It's great at surviving when you add things together (like adding up encrypted numbers), but if you try to multiply the encrypted boxes, the sticker gets torn to shreds. The second tool, MRWMark, is more like a complex, interlocking puzzle piece. It's much tougher; it can survive both adding and multiplying encrypted data. However, it's harder to use and requires a lot more "space" in the noise to hide the message. The authors didn't just dream this up; they wrote code, ran thousands of simulations on powerful computers, and showed that their watermarks stay hidden and detectable even when the encrypted data is put through the wringer of complex calculations.
The Magic of the "Locked Box"
To understand how this works, let's look at the ingredients. The paper relies on a type of encryption called RLWE (Ring Learning with Errors). Imagine you have a secret recipe (your data) and you want to bake a cake (compute a result) in a stranger's kitchen. To keep the recipe safe, you don't give them the ingredients; you give them a bag of flour that has a tiny, invisible amount of sand mixed in. The stranger bakes the cake using this "noisy" flour. When they hand you the cake, you know exactly how much sand was in the flour, so you can subtract it out to get the perfect cake. The "sand" is the noise. In the real world, this noise is a mathematical necessity that keeps the encryption secure; without it, the secret recipe could be guessed.
The problem is that this noise is also the perfect hiding spot for a watermark. The authors realized that if they could hide a tiny, specific pattern of "sand" inside the noise, they could prove that a specific box belonged to them. But there's a risk: if they put too much sand in, the cake might crumble (the decryption fails). If they put too little, the stranger might not be able to find the pattern later. And if the stranger mixes two bags of flour together (homomorphic addition) or multiplies them (homomorphic multiplication), the sand patterns might get scrambled or washed away.
The Two Solutions: The Sticker and the Puzzle
The authors propose two ways to solve this, depending on what kind of math the "stranger" needs to do.
1. ARWMark: The "Addition-Proof" Sticker
This method is designed for situations where the encrypted data is mostly just added together, like tallying up votes or summing up medical statistics. The authors treat the watermark like a secret signal hidden in the static. They pick a random "key" (a specific pattern of sand) and add a little bit of it to the noise in the box.
- How it works: Imagine you have a bag of flour with random sand. You add a tiny, specific amount of "blue sand" to it. When you want to check if the bag is yours, you look for the blue sand.
- The Catch: This works great if you just add more bags of flour together. The blue sand just gets a little diluted, but it's still there. However, if you try to multiply the bags (a much more complex operation), the blue sand gets mixed up so thoroughly that the pattern disappears. The paper proves mathematically that this method is robust against addition but fails against multiplication.
- The Result: They showed that even after adding many encrypted numbers together, the "blue sand" pattern could still be detected with high accuracy, provided the initial amount of blue sand was strong enough.
2. MRWMark: The "Multiplication-Proof" Puzzle
This is the heavy lifter. It's designed for scenarios where the data is multiplied, like running a complex AI model or deep learning inference. This is much harder because multiplication scrambles the noise in a chaotic way.
- How it works: Instead of just adding a pattern, the authors use a clever trick involving a "linear equation system." Imagine you have a set of rules (like a riddle) that only a specific set of numbers can solve. They hide a set of numbers inside the noise that solves this riddle.
- The Magic: When you multiply the encrypted boxes, the math of the multiplication actually preserves the solution to the riddle. It's like if you had a puzzle where the pieces fit together, and even if you shook the box, the pieces still fit the same way.
- The Catch: Because multiplication creates so much chaos, this method needs a lot more "space" (embedding intensity) to hide the message. The paper notes that the amount of noise required to make this work is huge—sometimes needing an embedding intensity in the millions—to ensure the message isn't lost in the mathematical storm.
- The Result: They demonstrated that this method can survive both addition and multiplication, but it's a "zero-bit" system (it just proves a watermark exists, it doesn't carry a long message) and requires a lot of resources to be reliable.
What the Numbers Say
The authors didn't just guess; they tested these ideas rigorously. They built a simulation using Python on a powerful computer with an Intel Xeon Gold CPU and 502 GB of RAM. They set up the encryption parameters to meet a standard 128-bit security level, using a polynomial size () of 2048 and a plaintext modulus () of 65537.
For ARWMark, they found that with a modest embedding intensity () of 7, they could clearly distinguish the watermark in secret-key encryption. However, for public-key encryption (which is noisier), they needed to crank that intensity up to 100 to get the same clear signal. They tested what happens when you add random noise (simulating an attacker trying to erase the watermark). They found that as long as the noise wasn't too massive, the watermark survived. But if the attacker added enough noise, the watermark could be lost, unless the original embedding was made stronger.
For MRWMark, the stakes were higher. They found that with a small embedding intensity, the watermark was often lost in the noise. But when they increased the intensity to 34, the success rate of finding the watermark jumped to nearly 100%. When they tested multiplication, the requirements skyrocketed. To survive a single multiplication operation without a "resize" (a specific noise-reduction step), they needed an intensity of at least 782,327. If they added a resize operation, that number jumped to nearly 96 million. These numbers show that while the method works, it comes with a heavy cost in terms of the "size" of the watermark needed.
The Bottom Line
This paper proves that we can indeed hide watermarks inside these magical encrypted boxes. It's a significant step forward because it moves beyond just "can we compute?" to "can we track and protect the results of that computation?"
The authors are careful to point out the limits. Their "sticker" (ARWMark) is great for simple addition but breaks under multiplication. Their "puzzle" (MRWMark) can handle multiplication but is expensive and hard to use. They don't claim to have solved the problem for every possible scenario, but they have provided a solid foundation and two working prototypes.
In the future, the authors hope to combine the best of both worlds—creating a watermark that is both small and tough enough to survive any math operation. Until then, their work offers a new layer of security for the privacy-preserving world, ensuring that when we hand our secrets to the cloud, we can still prove who did the work and who owns the result. It's a small, invisible signature in a sea of noise, but for the digital age, that signature might be the difference between trust and chaos.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.