D-5.3 RNS-based ModDrop: ModDropRNS

ModDrop (§D-3.7, §D-4.6) is an operation of decreasing a ciphertext’s modulus from q q (where q divides q) without affecting the plaintext’s scaling factor(in the case of CKKS) or the noise’s scaling factor (in the case of BGV).

In an RNS-based ciphertext representation, ModDrop is equivalent to removing some of the base moduli in the ciphertext without affecting the scaling factor Δ. This can be achieved by converting the ciphertext’s base from q to q¯ where the base moduli set of q¯ are a subset of that of q; that is, q¯ divides q. Specifically, suppose that we have an input (x1,x2,,xk) q1 × q2 × × qk, and a new subset base q¯ = q1 q2 qk, where k < k. In this setup, the fast base conversion from q q¯ is equivalent to simply extracting the input value’s RNS residues associated with the base moduli (q1,q2,,qk). This is because of the following reasoning:

𝖥𝖺𝗌𝗍𝖡𝖢𝗈𝗇𝗏({xi}i=1k,q,q¯) = ( i=1k|xi zi|qi yi mod qj) j[1,k]

= x + 𝑢𝑞 mod q¯ # Summary D-5.1 in §D-5.1

= x mod q¯ # 𝑢𝑞 gets eliminated because q¯ divides 𝑢𝑞

= (x1,x2,,xk) q1 × q2 × × qk

Notice that the above fast base conversion from q q¯ (where q¯ divides q) does not generate any noise. This is different from the case of fast base conversion from q b (Summary D-5.1 in §D-5.1) where q and b are co-prime, which generates the noise |𝑢𝑞|b (where integer |u|k 2 + 1).

The ModDrop operation is supported in all of BFV, BGV, and CKKS ciphertexts that are represented in RNS forms. However, note that ModDrop is possible only if the scaled plaintext (in the case of BFV and CKKS) or the scaled noise (in the case of BGV) does not exceed the ciphertext modulus after the mod-drop operation, because otherwise correct decryption is not possible. ModDropRNS is summarized as follows:

Summary D-5.3 ModDropRNS

Input: (x1,x2,,xk) q1 × q2 × × qk

𝖥𝖺𝗌𝗍𝖡𝖢𝗈𝗇𝗏({xi}i=1k,q,q¯) = ( i=1k|xi zi|qi yi mod qj) j[1,k]

# where q¯ is a product of co-primes q1 q2 qk, and q¯ divides q

= (x1,x2,,xk) q1 × q2 × × qk # no noise generated during the conversion