Encrypted Fixed-Point Multiplication in Quasilinear Complexity

summary

The gist

Homomorphic encryption enables computation on encrypted data, but its high computational overhead remains a central obstacle.<ref:2611.32157#pg3>.

In short

The paper addresses high computational overhead in homomorphic encryption by introducing focused encoding for fixed-point numbers using polynomials of degree O(n/log n). This allows for encrypted multiplication in CKKS schemes with online time O(n log n) at n-bit precision. Bootstrapping is also developed to manage the quadratic cost, achieving a reduced online cost.

Key concepts

Focused Encoding
This technique represents a high-precision fixed-point number using a polynomial of degree O(n/log n). Precision is concentrated at one embedding, allowing for efficient representation while maintaining accuracy through error shaping by focal elements.
Error Shaping
Error shaping uses focal elements to control the size increase in coefficients. By concentrating precision at a specific embedding, the technique ensures that the coefficient size increases by at most O(2b) while preserving roughly p-bit precision for the fixed-point number.
Levelled Multiplication
This is an algorithm designed for homomorphic multiplication that operates across multiple modulus chains. It reduces the complexity of multiplication by ensuring that errors introduced during operations are bounded relative to the input precision, leading to a controlled error propagation.

Terminology used across episodes

This episode discusses

The paper

Encrypted Fixed-Point Multiplication in Quasilinear Complexity · Read on arXiv

Jung Hee Cheon, Junho Lee

Seoul National University · CryptoLab Inc.

Homomorphic encryption enables computation on encrypted data, but its high computational overhead remains a central obstacle. We overcome this obstacle asymptotically for high-precision fixed-point arithmetic. In this paper, we introduce focused encoding, which represents a fixed-point number of n-bit precision using a polynomial of degree O(n/ n) over a polynomially bounded modulus by concentrating precision at one embedding. We then introduce an error-shaping technique for homomorphic operations to preserve the encoding. This yields an encrypted fixed-point multiplication algorithm for the CKKS scheme that runs in online time O(n n) at n-bit precision for any fixed multiplicative depth, with security parameter λ= O(n/ squared n). Further, we develop bootstrapping for focused encoding to overcome the quadratic cost of conventional bootstrapping. We bootstrap ciphertext coefficients at an enlarged scale and shape the resulting error to preserve focused encoding, at the cost of additional modulus consumption. Then, to reduce the remaining logarithmic overhead, we decompose the ciphertext into components over a smaller subring and bootstrap each separately. This reduces the online cost per multiplication, including bootstrapping, to O(n n + n (λ) cubed λ) for security parameter λ= O(n/ cubed n).

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "Encrypted Fixed-Point Multiplication in Quasilinear Complexity".

Paper summary: Nadia: So we're looking at this paper called "Encrypted Fixed-Point Multiplication in Quasilinear Complexity." Basically, it tackles that big problem with homomorphic encryption where the computation itself is just too slow.

Elias: Right. The authors are showing how they can do fixed-point arithmetic on encrypted data without that huge overhead by introducing something called focused encoding.

Priya: Focused encoding sounds complicated, but what does it actually mean for the data we're dealing with? Does it mean we lose precision somewhere?

Nadia: Not necessarily losing it, Priya. The paper says they represent a fixed-point number of n bits of precision using a polynomial that has a degree proportional to n divided by log n over some polynomially bounded modulus by concentrating the precision at just one embedding <ref:2611.32157#pg3>.

Elias: That concentration is key. They define this focal element as something that's small at one specific embedding, say sigma zero, which gives them more precision there with shaped error ue <ref:2611.32157#pg9>.

Priya: So if they concentrate the precision there, how does that translate to the actual multiplication cost? Are we still talking about something slow?

Nadia: They introduce an error-shaping technique for homomorphic operations to make sure that this encoding stays intact during computations <ref:2611.32157#pg3>. This leads to an encrypted fixed-point multiplication algorithm for the CKKS scheme that runs in online time of n log n at n bits of precision for any fixed multiplicative depth with a security parameter lambda equal to O(n divided by log two n) <ref:2611.32157#pg4>.

Elias: N log n is pretty good for multiplication, especially when compared to what we usually see in these kinds of schemes <ref:2611.32157#pg4>. And they've also developed a bootstrapping method for this focused encoding to deal with the quadratic cost of conventional bootstrapping <ref:2611.32157#pg4>.

Priya: Bootstrapping is where you refresh the ciphertext, and if that was quadratic before, how does this new focused encoding approach change that? Is it still a huge hurdle?

Nadia: It doesn't eliminate it entirely, but they reduce the cost per multiplication including bootstrapping to something like n log n plus n times log lambda cubed times log of log lambda when the security parameter is set to O(n divided by log three n) <ref:2611.32157#pg4>.

Elias: That's a reduction in the overhead, but we still have those logarithmic factors there. They then tackle that remaining overhead by decomposing the ciphertext into components over a smaller subring and bootstrapping each separately <ref:2611.32157#pg4>.

Priya: So it sounds like they are managing to keep the computation online time at n log n, but the cost is still being managed through these layered approaches. What about how they handle multiple levels of precision?

Nadia: They generalize this construction to cover multiple slots with varying precisions by defining focal elements with gains pj for each slot j <ref:2611.32157#pg24>. This lets them encode a value within an error epsilon j for each slot j <ref:2611.32157#pg4>.

Elias: The encoding and decoding algorithms are implemented using a tower of cyclotomic rings to achieve quasilinear complexity <ref:2611.32157#pg8, 30>. They even have a fractional ascent algorithm that computes an approximation to one minus z with coefficients in the range of negative one over two to achieve a complexity of M of n log N <ref:2611.32157#pg8>.

Priya: Before we look at the results, I just want to make sure we understand what this actually means for someone using these systems. What's the real-world implication of being able to do multiplication like this?

Nadia: It means that for fixed multiplicative depth, you can do fixed-point multiplication on encrypted data with a security parameter lambda of O(n divided by log two n) <ref:2611.32157#pg4>. This makes it much more practical for things like machine learning inference where you need to do many sequential multiplications <ref:2611.32157#pg3>.

Elias: But we have to remember the cost of bootstrapping, which they estimate at n log n plus n times log lambda cubed times log of log lambda when using the security parameter O(n divided by log three n) <ref:2611.32157#pg4>. That’s still a significant runtime for iterative computations.

Priya: So, what's the trade-off here? We get better precision and efficiency in multiplication, but we still have these complex cost terms related to the security parameter lambda <ref:2611.32157#pg4>.

Nadia: Exactly. And they address that remaining logarithmic overhead by using subring bootstrapping, which splits the large ciphertext into several smaller ciphertexts over a subring R zero <ref:2611.32157#pg30>. This reduces the cost of bootstrapping to n log n plus n times log lambda times log of log n times the square of lambda plus the square of log n when using security parameter O(n divided by log three n) <ref:2611.32157#pg30>.

Elias: The modulus cost analysis is also interesting; they found that the total bit size for bootstrapping modulus is something like three over two times n plus some other terms related to k, which basically means the precision-dependent part of the modulus consumption of all remaining levels gets reduced by a factor of k <ref:2611.32157#pg30>.

Priya: So, just to summarize what we've heard about this paper on Encrypted Fixed-Point Multiplication in Quasilinear Complexity, it seems the core idea is focused encoding to represent high precision numbers efficiently by concentrating detail at one embedding <ref:2611.32157#pg3>.

Nadia: And they then use error shaping and a levelled multiplication algorithm to keep that encoding preserved during the operation <ref:2611.32157#pg4, 30>. The result is an online time of n log n for multiplication at n bits of precision with a security parameter lambda equal to O(n divided by log two n) <ref:2611.32157#pg4>.

Elias: And they tackle the bootstrapping problem with a technique that reduces the cost to around n log n plus n times log lambda cubed times log of log lambda when using security parameter O(n divided by log three n) <ref:2611.32157#pg4>. The paper also explores generalizing this to multiple focus slots with gains pj for each slot j <ref:2611.32157#pg24>.

Priya: What I take from this is that for high-precision fixed-point arithmetic in homomorphic encryption, we can achieve an online time of n log n, but we have to deal with these specific security parameter choices and the complexity of bootstrapping <ref:2611.32157#pg4>.

Nadia: And they flag their limitation when they talk about the modulus cost analysis; they find that the precision-dependent part of modulus consumption for all remaining levels is reduced by a factor of k <ref:2611.32157#pg30>. That means it gets better but it still depends on that factor k, which relates to how many subrings you use.

Elias: It’s interesting because they mention the DFT decomposition for implementation involves reordering the usual bit-reversed DFT by a permutation to keep the three-diagonal structure <ref:2611.32157#pg30>. That additional work is O of k squared plaintext ciphertext products and one rescaling level for the block shuffle <ref:2611.32157#pg30>.

Priya: So, what this paper means for us in the privacy and measurement side is that we can potentially do more precise computations on encrypted data while maintaining a certain security level, provided we manage those specific complexity costs <ref:2611.32157#pg4>.

Nadia: It's about making fixed-point multiplication practical for applications where you need high precision but traditional homomorphic encryption would be too slow to run on real data <ref:2611.32157#pg3, 4>.

Elias: The authors also mention using GPT six Astra to assist with manuscript preparation and error analysis, though they stress that all the research ideas originated from the authors themselves <ref:2611.32157#pg30>.

Priya: To wrap up, what I see is a paper that provides a concrete algorithm for this specific multiplication problem, showing online time of n log n with specific security parameter dependencies <ref:2611.32157#pg4>.

Nadia: That’s right. It moves the discussion from just saying homomorphic encryption has an overhead to actually providing a path around that overhead for fixed-point arithmetic <ref:2611.32157#pg3>.

Elias: The implication is that with focused encoding, we can achieve this without increasing the overall asymptotic complexity beyond n log n for multiplication under fixed depth constraints <ref:2611.32157#pg4>.

Priya: So, the main point for us is that we have a new way to approach these heavy numerical computations in a privacy-preserving setting, even if it still requires careful tuning of the security parameter lambda <ref:2611.32157#pg4>.

Conclusion: Nadia: So we're wrapping up this look at "Encrypted Fixed-Point Multiplication in Quasilinear Complexity" and what it actually means for us in practice.

Elias: It really boils down to taking that huge overhead of homomorphic encryption and finding a way to do fixed-point math on the encrypted data much faster, specifically with an online time of n log n.

Priya: So, for someone who just listens to this show, what does that n log n actually look like in terms of how much computation is happening?

Nadia: It means that for a fixed number of multiplications you need to do sequentially, the time it takes scales with something like n times the logarithm of n. That’s pretty good when you’re dealing with big numbers.

Elias: But we gotta remember they set their security parameter lambda equal to something like n divided by log two n for that speed to hold up. That's a specific trade-off between how fast you can compute and how secure the whole system stays.

Priya: I wonder if that speed is worth the way they handle things with bootstrapping, because we know refreshing ciphertexts is usually a huge bottleneck in these schemes.

Nadia: They do tackle that quadratic cost of conventional bootstrapping by using focused encoding and then layering their multiplication algorithm to manage it down to something closer to n log n plus some terms involving lambda cubed times the logarithm of the logarithm of lambda.

Elias: That reduction helps, but they still use a subring bootstrapping technique where they split the ciphertext into smaller ones over a subring R zero, which changes that cost structure again.

Priya: So, what's the real world implication here? Can this actually be used for something practical beyond just theoretical speedups in cryptography?

Nadia: For applications where you need high precision fixed-point math but traditional homomorphic encryption is too slow to run on real data, this offers a concrete path forward.

Elias: It moves the conversation away from just saying homomorphic encryption is too slow and shows a specific algorithmic approach for multiplication that works under fixed depth constraints.

Priya: So, the main thing we're hearing is that they provide a method to get higher precision computations on encrypted data while keeping the online time relatively low, provided you stick to those specific parameter choices.

Nadia: Exactly. And next up, we'll be looking at how they generalize this idea for multiple levels of precision across different slots in their work.

More episodes

← Home