SIMD-Aware Homomorphic Compression and Application to Private Database Query

arXiv:2408.17063 · cs.CR · Submitted 2024-08-30 · Read on arXiv

Listen

Radio episode about this paper

Transcript

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

Nadia: We're looking at the paper: "SIMD-Aware Homomorphic Compression and Application to Private Database Query".

Paper summary: Nadia: So, looking at this paper, "SIMD-Aware Homomorphic Compression and Application to Private Database Query," the main point is proposing a new homomorphic compression scheme for PDQ that achieves both optimal compression rates and good decompression complexity.

Elias: And the most distinctive finding they highlight is that this new homomorphic compression scheme can fully exploit the homomorphic SIMD technique, which allows for significant speedups compared to prior methods.

Priya: For someone who just wants to use private database queries, what does this mean in practice? Does it mean simpler setup or just faster results when querying large datasets?

Nadia: It means that if you're dealing with encrypted sparse vectors from a database query, you can now do the compression step much more efficiently using SIMD. The paper shows experiments where this approach is four point seven times to thirty-three point two times faster than previous best results.

Elias: And the implication for the field is that they’ve shown that even in complex areas like homomorphic compression, exploiting the underlying structure, like treating it as a matrix multiplication, can lead to substantial performance gains. It also gives us a generic way to construct these PDQ schemes from any valid encryption and compression scheme.

Priya: It seems like they’ve managed to keep the theoretical efficiency high while making the practical implementation much more feasible by focusing on SIMD awareness and ring-switching.

Nadia: Exactly, so this paper shows that combining asymptotic optimality with specific hardware optimizations like SIMD can lead to a real performance jump for private database query protocols.

Conclusion: Nadia: So we're wrapping up our look at this paper on SIMD-Aware Homomorphic Compression and Application to Private Database Query. It’s about taking those complex encrypted database queries and making the compression step way more efficient by using SIMD optimization.

Elias: Yeah, it really boils down to a new homomorphic compression scheme that hits both the mark of optimal compression rate and good decompression complexity.

Priya: What does that actually mean for us when we think about data privacy? Are we talking about making queries faster or just keeping the noise manageable?

Nadia: It means for someone who just listens to the show, it translates to significantly quicker processing times when dealing with those encrypted sparse vectors. The paper shows this new approach is up to thirty-three point two times faster than what was considered the best before.

Elias: And they're making a big claim about how they achieved that speedup by fully exploiting the homomorphic SIMD technique, which they say is based on it being like a homomorphic matrix multiplication.

Priya: That sounds promising for practical applications, but I wonder what the limitations are when you start talking about these specific structures like matrix multiplications in compression. Does that mean it only works for certain types of sparse data?

Nadia: Well, they do mention that this scheme has good asymptotic efficiency and is the first to achieve both optimal compression rate and poly s log n decompression complexity. That’s a big theoretical win on the efficiency side.

Elias: And they also addressed how to handle those large parameters they needed for the Match step by using ring-switching, which lets them use a much smaller parameter set, like two hundred thirteen for instance.

Priya: So the trade-off seems to be that you get this massive speedup and theoretical efficiency, but you have to manage these complex parameter choices and structural optimizations just to make it run on real hardware.

Nadia: Exactly. The authors show how they can construct a generic PDQ scheme from any encryption and compression scheme, which is useful for building new protocols. But the real focus here is making that compression step practical and fast for the actual query process.

Elias: It definitely pushes the boundary of what's possible in this area by showing how exploiting SIMD structure can yield such a large performance gain over previous work.

Priya: So, we’ve seen the speed and the complexity trade-offs. Next up, we're going to look at how this generic construction plays out when you actually build a full database query protocol from these components.

Seoul National University · CryptoLab Inc. · University of California, Berkeley

cs.CR

Submitted: 2024-08-30

Updated: 2026-11-30

Comments: Accepted to ACM ASIACCS 2027

DOI: 10.1145/3862624.3872445

Code: https://github.com/jaihyunp/HomCompress

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 71/100

The gist: In this work, we propose a new homomorphic compression scheme with PDQ as its main application.<ref:2408.17063#pg1, we propose a new homomorphic compression scheme with PDQ as its main application>.

Key concepts

Homomorphic Compression
This is a crucial step in PDQ where encrypted sparse query results are compressed into a smaller ciphertext. The challenge lies in performing this compression obliviously so the server cannot learn which specific records were returned during the query.
Homomorphic SIMD Optimization
The scheme is implemented by fully utilizing homomorphic Single Instruction, Multiple Data (SIMD) techniques. This optimization is possible because the compression algorithm functions essentially as a homomorphic matrix-vector multiplication, allowing for efficient parallel computation within the underlying HE scheme.
Ring-Switching
This technique involves switching to a smaller set of HE parameters after the Match and Mask steps in PDQ. Since this new compression scheme requires only one multiplicative depth, it allows for a much smaller parameter set, which reduces communication costs and accelerates the compression step significantly.

Terminology

Summary

In this work, we propose a new homomorphic compression scheme with PDQ as its main application. p. 0

Where the paper says it

A crucial step in PDQ protocols based on homomorphic encryption is homomorphic compression, which compresses encrypted sparse vectors consisting of query results. In this work, we propose a new homomorphic compression scheme with PDQ as its main application.

<ref:2408.17063#pg1, we propose a new homomorphic compression scheme with PDQ as its main application>. p. 0
Where the paper says it

A crucial step in PDQ protocols based on homomorphic encryption is homomorphic compression, which compresses encrypted sparse vectors consisting of query results. In this work, we propose a new homomorphic compression scheme with PDQ as its main application.

Experimental results show that our approach is 4. p. 0
Where the paper says it

Unlike existing approaches, our scheme (i) can be efficiently implemented by fully exploiting homomorphic SIMD technique and (ii) enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity. Experimental results show that our approach is 4.

7x to 33.2x faster than the previous best results. p. 0
Where the paper says it

Experimental results show that our approach is 4. 2x faster than the previous best results.

<ref:2408.17063#pg1, Experimental results show that our approach is 4. p. 0
Where the paper says it

Unlike existing approaches, our scheme (i) can be efficiently implemented by fully exploiting homomorphic SIMD technique and (ii) enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity. Experimental results show that our approach is 4.

7x to 33.2x faster than the previous best results>. p. 0
Where the paper says it

Experimental results show that our approach is 4. 2x faster than the previous best results.

The Problem in Private Database Query

A crucial step in PDQ protocols based on homomorphic encryption is homomorphic compression, which compresses encrypted sparse vectors consisting of query results.<ref:2408.17063#pg1, A crucial step in PDQ protocols based on homomorphic encryption is homomorphic compression, which compresses encrypted sparse vectors consisting of query results>. p. 0

Where the paper says it

CR] 30 Aug 2024 1 SIMD-Aware Homomorphic Compression and Application to Private Database Query Jung Hee Cheon Member, IEEE, Keewoo Lee, Jai Hyun Park, Yongdong Yeo Abstract—In a private database query scheme (PDQ), a server maintains a database, and users send queries to retrieve records of interest from the server while keeping their queries private. A crucial step in PDQ protocols based on homomorphic encryption is homomorphic compression, which compresses encrypted sparse vectors consisting of query results.

The difficulty here is that Match and Mask are done in an oblivious manner so the server does not know which records should be returned. p. 0
Where the paper says it

Ideally, the size of the compressed ciphertext should be independent of the size of the entire database and only depend on the number of records to retrieve as a result of the query. The difficulty here is that Match and Mask are done in an oblivious manner so the server does not know which records should be returned.

<ref:2408.17063#pg1, The difficulty here is that Match and Mask are done in an oblivious manner so the server does not know which records should be returned>. p. 0
Where the paper says it

Ideally, the size of the compressed ciphertext should be independent of the size of the entire database and only depend on the number of records to retrieve as a result of the query. The difficulty here is that Match and Mask are done in an oblivious manner so the server does not know which records should be returned.

Previous works on homomorphic compression neglected SIMD optimization. p. 0
Where the paper says it

, HElib [13], SEAL [14], HEaaN [15]). 4 However, previous works on homomorphic compression [6, 7, 8] neglected SIMD optimization.

<ref:2408.17063#pg1, However, previous works on homomorphic compression neglected SIMD optimization>. p. 0
Where the paper says it

, HElib [13], SEAL [14], HEaaN [15]). 4 However, previous works on homomorphic compression [6, 7, 8] neglected SIMD optimization.

The Proposed Compression Scheme

Our new homomorphic compression scheme is a homomorphic algorithm that can compress ciphertexts encrypting a length-N vector with at most s non-zero components.<ref:2408.17063#pg2, We propose a new homomorphic compression scheme with PDQ as its main application>. p. 0

Where the paper says it

A crucial step in PDQ protocols based on homomorphic encryption is homomorphic compression, which compresses encrypted sparse vectors consisting of query results. In this work, we propose a new homomorphic compression scheme with PDQ as its main application.

This scheme enjoys good asymptotic efficiency and is the first to achieve both of the following properties:

  1. Our compression rate is asymptotically optimal. p. 0

    Where the paper says it

    In this work, we propose a new homomorphic compression scheme with PDQ as its main application. Unlike existing approaches, our scheme (i) can be efficiently implemented by fully exploiting homomorphic SIMD technique and (ii) enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity.

    <ref:2408.17063#pg2, Our compression rate is asymptotically optimal>. p. 0
    Where the paper says it

    In this work, we propose a new homomorphic compression scheme with PDQ as its main application. Unlike existing approaches, our scheme (i) can be efficiently implemented by fully exploiting homomorphic SIMD technique and (ii) enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity.

  2. Our decompression complexity is poly(s, log N). p. 1

    Where the paper says it

    5 Our scheme is the first to achieve both of the following properties: • Our compression rate is asymptotically optimal. 6 • Our decompression complexity is poly(s, log N).

    <ref:2408.17063#pg2, Our decompression complexity is poly(s, log N)>. p. 1
    Where the paper says it

    5 Our scheme is the first to achieve both of the following properties: • Our compression rate is asymptotically optimal. 6 • Our decompression complexity is poly(s, log N).

SIMD-Aware Implementation

The most important feature of our homomorphic compression scheme that leads to significant speedups is that our scheme can be efficiently implemented by fully exploiting homomorphic SIMD technique.<ref:2408.17063#pg2, Our scheme can be efficiently implemented by fully exploiting homomorphic SIMD technique>. p. 0

Where the paper says it

In this work, we propose a new homomorphic compression scheme with PDQ as its main application. Unlike existing approaches, our scheme (i) can be efficiently implemented by fully exploiting homomorphic SIMD technique and (ii) enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity.

This feature is based on the observation that our compression algorithm is essentially a homomorphic matrix-vector multiplication. p. 1
Where the paper says it

) But the most important feature of our homomorphic compression scheme that leads to significant speedups is: • Our scheme can be efficiently implemented by fully exploiting homomorphic SIMD technique. This feature is based on the observation that our compression algorithm is essentially a homomorphic matrix-vector multiplication.

<ref:2408.17063#pg2, This feature is based on the observation that our compression algorithm is essentially a homomorphic matrix-vector multiplication>. p. 1
Where the paper says it

) But the most important feature of our homomorphic compression scheme that leads to significant speedups is: • Our scheme can be efficiently implemented by fully exploiting homomorphic SIMD technique. This feature is based on the observation that our compression algorithm is essentially a homomorphic matrix-vector multiplication.

We leverage homomorphic SIMD when implementing homomorphic matrix-vector multiplication. p. 1
Where the paper says it

This feature is based on the observation that our compression algorithm is essentially a homomorphic matrix-vector multiplication. Leveraging homomorphic SIMD when implementing homomorphic matrix-vector multiplication is a well-studied topic [18, 19, 20] (Section V-B).

<ref:2408.17063#pg9>.

Application to PDQ

We propose an efficient HE-based PDQ protocol with particular attention to homomorphic SIMD optimization.<ref:2408.17063#pg2, We propose an efficient HE-based PDQ protocol with particular attention to homomorphic SIMD optimization>. p. 1

Where the paper says it

Refer to Section IV for detailed and formal descriptions. Our Contribution We propose an efficient HE-based PDQ protocol (Section IV) with particular attention to homomorphic SIMD optimization (Section V).

The proposed generic construction is a correct PDQ scheme if the underlying HE scheme E and homomorphic compression scheme C are both correct. p. 7
Where the paper says it

Theorem 3 (Correctness). The proposed generic construction Π = (Query, Answer, Recover) is a correct PDQ scheme if the underlying HE scheme E and homomorphic compression scheme C are both correct.

<ref:2408.17063#pg8, The proposed generic construction is a correct PDQ scheme if the underlying HE scheme E and homomorphic compression scheme C are both correct>. p. 7
Where the paper says it

Theorem 3 (Correctness). The proposed generic construction Π = (Query, Answer, Recover) is a correct PDQ scheme if the underlying HE scheme E and homomorphic compression scheme C are both correct.

Furthermore, our PDQ scheme enjoys asymptotically optimal communication cost thanks to the asymptotically optimal compression rate of our homomorphic compression scheme. p. 7
Where the paper says it

Algorithm 7 Answer Input: DB = (DB1, · · · , DBN ), P, ctxt(x), f Step 1: Match for i ∈ [N] do ctxt(vi) ← Eval P( · , DBi), ctxt(x) end for ctxt(v) ← (ctxt(v1), · · · , ctxt(vN )) Step 2: Mask for i ∈ [N] do ctxt(di) ← ctxt(vi) ⊠ f(DBi) end for ctxt(d) ← (ctxt(d1), · · · , ctxt(dN )) Step 3: Comp ctxt(e) ← Eval(C, ctxt(d)) ctxt(w) ← CompIdx(ctxt(v)) return ctxt(e), ctxt(w) Remark 4 (Communication Cost). Our PDQ scheme enjoys asymptotically optimal communication cost thanks to the asymptotically optimal compression rate of our homomorphic compression scheme (Section III): It only requires O(s) ciphertexts to communicate.

<ref:2408.17063#pg9>.

Experimental Validation

In experiments, when a query has 16 matching data, it takes 15.75 seconds to compress the masked database of total 2 17 records into a single ciphertext of size 110. p. 1

Where the paper says it

For instance, when a query has 16 matching data, it takes 15. 75 seconds to compress the masked database of total 2 17 records into a single ciphertext of size 110.

6KB.<ref:2408.17063#pg9>. Our scheme outperforms the previous best algorithms [6]. p. 9
Where the paper says it

6 Comparison: Experimental comparison between our scheme and [6] 15 is given in Fig. Ours outperforms the previous best algorithms [6].

<ref:2408.17063#pg9, Ours outperforms the previous best algorithms [6]>. p. 9
Where the paper says it

6 Comparison: Experimental comparison between our scheme and [6] 15 is given in Fig. Ours outperforms the previous best algorithms [6].

Compared with their homomorphic compression scheme, BFS-CODE, our scheme shows 19. p. 9
Where the paper says it

Ours outperforms the previous best algorithms [6]. Compared with their homomorphic compression scheme, BFS-CODE, our scheme shows 19.

7x–33.2x speedup. p. 9
Where the paper says it

Compared with their homomorphic compression scheme, BFS-CODE, our scheme shows 19. 2x speedup.

<ref:2408.17063#pg11>.

Comparison of Techniques

Table I compares the asymptotic efficiency of homomorphic compression schemes in Table I.<ref:2408.17063#pg7, We compare the number of resulting ciphertexts and computational complexity in the case of compressing a sparse vector in Z_N^p with sparsity s>. p. 5

Where the paper says it

, Here we do not consider BF-COIE and PS-COIE [6]. ) We compare the number of resulting ciphertexts and computational complexity in the case of compressing a sparse vector in Z N p with sparsity s.

Our scheme and the FFT-based scheme of Fleischhacker et al. p. 6
Where the paper says it

) Remark 1 (SIMD-Friendliness). We note that our scheme and the FFT-based scheme of Fleischhacker et al.

[8] achieve an asymptotically optimal compression rate. p. 1
Where the paper says it

To begin with, our scheme enjoys good asymptotic efficiency. 5 Our scheme is the first to achieve both of the following properties: • Our compression rate is asymptotically optimal.

<ref:2408.17063#pg7, Our scheme and the FFT-based scheme of Fleischhacker et al. p. 6
Where the paper says it

) Remark 1 (SIMD-Friendliness). We note that our scheme and the FFT-based scheme of Fleischhacker et al.

p. 6
Where the paper says it

) Remark 1 (SIMD-Friendliness). We note that our scheme and the FFT-based scheme of Fleischhacker et al.

[8] achieve an asymptotically optimal compression rate>. p. 1
Where the paper says it

To begin with, our scheme enjoys good asymptotic efficiency. 5 Our scheme is the first to achieve both of the following properties: • Our compression rate is asymptotically optimal.

However, the FFT-based scheme has an impractical decompression complexity of O(s√N) depending on the size of the entire database. p. 5
Where the paper says it

, they are N-to-O(s) compression schemes. However, the FFT-based scheme has an impractical decompression complexity of O(s √ N) depending on the size of the entire database.

<ref:2408.17063#pg7>.

Ring-Switching Optimization

To allow reasonable queries in the Match step, we adopt the ring-switching technique to switch to a smaller HE parameter after the Match and Mask step.<ref:2408.17063#pg10, To allow reasonable queries in the Match step, we adopt the ring-switching technique to switch to a smaller HE parameter after the Match and Mask step>. p. 9

Where the paper says it

It was unclear how to handle large-depth computations in the Match step while keeping the HE parameters small. To this end, we adopt the ring-switching technique [21, 22] to switch to a smaller HE parameter after the Match and Mask step.

Since our homomorphic compression scheme requires only one multiplicative depth, we can switch to a much smaller parameter set (n = 213), reducing the communication cost and accelerating the Comp step significantly. p. 9
Where the paper says it

To this end, we adopt the ring-switching technique [21, 22] to switch to a smaller HE parameter after the Match and Mask step. Since our homomorphic compression scheme requires only one multiplicative depth, we can switch to a much smaller parameter set (n = 213), reducing the communication cost and accelerating the Comp step significantly.

<ref:2408.17063#pg10, Since our homomorphic compression scheme requires only one multiplicative depth, we can switch to a much smaller parameter set (n = 213), reducing the communication cost and accelerating the Comp step significantly>. p. 9
Where the paper says it

To this end, we adopt the ring-switching technique [21, 22] to switch to a smaller HE parameter after the Match and Mask step. Since our homomorphic compression scheme requires only one multiplicative depth, we can switch to a much smaller parameter set (n = 213), reducing the communication cost and accelerating the Comp step significantly.

The Generic Construction

We can construct a PDQ scheme in a generic way from a homomorphic encryption scheme E and a homomorphic compression scheme C for sparse vectors as follows.<ref:2408.17063#pg8, We can construct a PDQ scheme in a generic way from a homomorphic encryption scheme E and a homomorphic compression scheme C for sparse vectors as follows>. p. 7

Where the paper says it

PDQ from Homomorphic Encryption 1) Generic Construction: We can construct a PDQ scheme Π = (Query, Answer, Recover) in a generic way from a homomorphic encryption scheme E = (KeyGen, Enc, Dec, Eval) and a homomorphic compression scheme C = (Comp, Decomp) for sparse vectors as follows. • Query(P, x, f): The client outputs q ← (P, Enc(x), f).

This construction is correct if the underlying HE scheme E and homomorphic compression scheme C are both correct. p. 7
Where the paper says it

Theorem 3 (Correctness). The proposed generic construction Π = (Query, Answer, Recover) is a correct PDQ scheme if the underlying HE scheme E and homomorphic compression scheme C are both correct.

<ref:2408.17063#pg8, This construction is correct if the underlying HE scheme E and homomorphic compression scheme C are both correct>. p. 7
Where the paper says it

Theorem 3 (Correctness). The proposed generic construction Π = (Query, Answer, Recover) is a correct PDQ scheme if the underlying HE scheme E and homomorphic compression scheme C are both correct.

The proposed generic construction is a private PDQ scheme if the underlying HE scheme E has semantic security. p. 7
Where the paper says it

Decomp(a) = Decomp(Comp(ctxt(d))) = d Theorem 4 (Privacy). The proposed generic construction Π = (Query, Answer, Recover) is a private PDQ scheme if the underlying HE scheme E has semantic security.

<ref:2408.17063#pg9>.

SIMD-Aware Implementation Details

We provide details for the SIMD-aware implementation of our homomorphic compression scheme (i. p. 1

Where the paper says it

SIMD-Aware Implementation of PDQ: Building upon our SIMD-friendly homomorphic compression scheme, we propose an efficient HE-based PDQ protocol (Section IV). We provide implementation details with particular attention to homomorphic SIMD (Section V).

p. 1
Where the paper says it

SIMD-Aware Implementation of PDQ: Building upon our SIMD-friendly homomorphic compression scheme, we propose an efficient HE-based PDQ protocol (Section IV). We provide implementation details with particular attention to homomorphic SIMD (Section V).

e., Comp step in PDQ). p. 7
Where the paper says it

Algorithm 7 Answer Input: DB = (DB1, · · · , DBN ), P, ctxt(x), f Step 1: Match for i ∈ [N] do ctxt(vi) ← Eval P( · , DBi), ctxt(x) end for ctxt(v) ← (ctxt(v1), · · · , ctxt(vN )) Step 2: Mask for i ∈ [N] do ctxt(di) ← ctxt(vi) ⊠ f(DBi) end for ctxt(d) ← (ctxt(d1), · · · , ctxt(dN )) Step 3: Comp ctxt(e) ← Eval(C, ctxt(d)) ctxt(w) ← CompIdx(ctxt(v)) return ctxt(e), ctxt(w) Remark 4 (Communication Cost). Our PDQ scheme enjoys asymptotically optimal communication cost thanks to the asymptotically optimal compression rate of our homomorphic compression scheme (Section III): It only requires O(s) ciphertexts to communicate.

p. 7
Where the paper says it

Algorithm 7 Answer Input: DB = (DB1, · · · , DBN ), P, ctxt(x), f Step 1: Match for i ∈ [N] do ctxt(vi) ← Eval P( · , DBi), ctxt(x) end for ctxt(v) ← (ctxt(v1), · · · , ctxt(vN )) Step 2: Mask for i ∈ [N] do ctxt(di) ← ctxt(vi) ⊠ f(DBi) end for ctxt(d) ← (ctxt(d1), · · · , ctxt(dN )) Step 3: Comp ctxt(e) ← Eval(C, ctxt(d)) ctxt(w) ← CompIdx(ctxt(v)) return ctxt(e), ctxt(w) Remark 4 (Communication Cost). Our PDQ scheme enjoys asymptotically optimal communication cost thanks to the asymptotically optimal compression rate of our homomorphic compression scheme (Section III): It only requires O(s) ciphertexts to communicate.

p. 7
Where the paper says it

Algorithm 7 Answer Input: DB = (DB1, · · · , DBN ), P, ctxt(x), f Step 1: Match for i ∈ [N] do ctxt(vi) ← Eval P( · , DBi), ctxt(x) end for ctxt(v) ← (ctxt(v1), · · · , ctxt(vN )) Step 2: Mask for i ∈ [N] do ctxt(di) ← ctxt(vi) ⊠ f(DBi) end for ctxt(d) ← (ctxt(d1), · · · , ctxt(dN )) Step 3: Comp ctxt(e) ← Eval(C, ctxt(d)) ctxt(w) ← CompIdx(ctxt(v)) return ctxt(e), ctxt(w) Remark 4 (Communication Cost). Our PDQ scheme enjoys asymptotically optimal communication cost thanks to the asymptotically optimal compression rate of our homomorphic compression scheme (Section III): It only requires O(s) ciphertexts to communicate.

<ref:2408.17063#pg9>. In Section V-B, we describe how to implement matrix-vector multiplication, which is the main step of our compression scheme, fully utilizing the SIMD structure of the BGV scheme. p. 8
Where the paper says it

9 In Section V-A, we review the BGV scheme [9], the HE scheme we use in the implementation. In Section V-B, we describe how to implement matrix-vector multiplication, which is the main step of our compression scheme, fully utilizing the SIMD structure of the BGV scheme.

<ref:2408.17063#pg9, In Section V-B, we describe how to implement matrix-vector multiplication, which is the main step of our compression scheme, fully utilizing the SIMD structure of the BGV scheme>. p. 8
Where the paper says it

9 In Section V-A, we review the BGV scheme [9], the HE scheme we use in the implementation. In Section V-B, we describe how to implement matrix-vector multiplication, which is the main step of our compression scheme, fully utilizing the SIMD structure of the BGV scheme.

The rest (i. p. 7
Where the paper says it

We note that our PDQ scheme has a SIMD-friendly structure. This is because our compression scheme is SIMD-friendly (Remark 1) and the rest of the part is trivially parallelizable.

p. 7
Where the paper says it

We note that our PDQ scheme has a SIMD-friendly structure. This is because our compression scheme is SIMD-friendly (Remark 1) and the rest of the part is trivially parallelizable.

e., Match and Mask steps) should be relatively straightforward to leverage the SIMD structure. p. 7
Where the paper says it

The rest (i. , Match and Mask steps) should be relatively straightforward to leverage the SIMD structure.

p. 7
Where the paper says it

The rest (i. , Match and Mask steps) should be relatively straightforward to leverage the SIMD structure.

p. 7
Where the paper says it

The rest (i. , Match and Mask steps) should be relatively straightforward to leverage the SIMD structure.

<ref:2408.17063#pg9>.

Comparison with Prior Work

Compared with BF-COIE and PS-COIE together with PIR, our scheme shows 3.3x–9.3x speedup. p. 9

Where the paper says it

Compared with their homomorphic compression scheme, BFS-CODE, our scheme shows 19. 2x speedup.

p. 9
Where the paper says it

Compared with their homomorphic compression scheme, BFS-CODE, our scheme shows 19. 2x speedup.

<ref:2408.17063#pg11>. We note that this approach requires more rounds and communication costs since it uses extra PIR protocol. p. 9
Where the paper says it

3x speedup. We note that this approach requires more rounds and communication costs since it uses extra PIR protocol.

<ref:2408.17063#pg11>.

Conclusion on Efficiency

Our scheme shows 3.3x–9.3x speedup.<ref:2408.17063#pg11>. We note that our scheme and the FFT-based scheme of Fleischhacker et al. p. 6

Where the paper says it

) Remark 1 (SIMD-Friendliness). We note that our scheme and the FFT-based scheme of Fleischhacker et al.

[8] have SIMDfriendly structures as they are essentially matrix multiplications. p. 6
Where the paper says it

We note that our scheme and the FFT-based scheme of Fleischhacker et al. [8] have SIMDfriendly structures as they are essentially matrix multiplications (Section V).

p. 6
Where the paper says it

We note that our scheme and the FFT-based scheme of Fleischhacker et al. [8] have SIMDfriendly structures as they are essentially matrix multiplications (Section V).

p. 6
Where the paper says it

We note that our scheme and the FFT-based scheme of Fleischhacker et al. [8] have SIMDfriendly structures as they are essentially matrix multiplications (Section V).

<ref:2408.17063#pg7, We note that our scheme and the FFT-based scheme of Fleischhacker et al. p. 6
Where the paper says it

) Remark 1 (SIMD-Friendliness). We note that our scheme and the FFT-based scheme of Fleischhacker et al.

[8] have SIMDfriendly structures as they are essentially matrix multiplications>. p. 6
Where the paper says it

We note that our scheme and the FFT-based scheme of Fleischhacker et al. [8] have SIMDfriendly structures as they are essentially matrix multiplications (Section V).

p. 6
Where the paper says it

We note that our scheme and the FFT-based scheme of Fleischhacker et al. [8] have SIMDfriendly structures as they are essentially matrix multiplications (Section V).

However, it seems difficult to leverage SIMD structures of HE schemes in compression schemes those based on Bloom-filter-like data structures. p. 6
Where the paper says it

[8] have SIMDfriendly structures as they are essentially matrix multiplications (Section V). On the other hand, it seems difficult to leverage SIMD structures of HE schemes in compression schemes those based on Bloom-filter-like data structures [6, 8, 7].

<ref:2408.17063#pg10>. The paper concludes by noting that our scheme and the FFT-based scheme of Fleischhacker et al. p. 6
Where the paper says it

) Remark 1 (SIMD-Friendliness). We note that our scheme and the FFT-based scheme of Fleischhacker et al.

p. 6
Where the paper says it

) Remark 1 (SIMD-Friendliness). We note that our scheme and the FFT-based scheme of Fleischhacker et al.

[8] have SIMDfriendly structures as they are essentially matrix multiplications.<ref:2408.17063#pg7, Our scheme and the FFT-based scheme of Fleischhacker et al. [8] have SIMDfriendly structures as they are essentially matrix multiplications>. The paper concludes by noting that our scheme and the FFT-based scheme of Fleischhacker et al. [8] have SIMDfriendly structures as they are essentially matrix multiplications.

SIMD-Aware Implementation Focus

The rest (i.e., Match and Mask steps) should be relatively straightforward to leverage the SIMD structure.<ref:2408.17063#pg9>. We provide details for the SIMD-aware implementation of our homomorphic compression scheme (i.e., Comp step in PDQ).<ref:2408.17063#pg9>. The rest (i.e., Match and Mask steps) should be relatively straightforward to leverage the SIMD structure.<ref:2408.17063#pg9>.

Final Summary Sentence

Our scheme enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity.<ref:2408.17063#pg1, Our scheme enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity>. p. 0

Where the paper says it

In this work, we propose a new homomorphic compression scheme with PDQ as its main application. Unlike existing approaches, our scheme (i) can be efficiently implemented by fully exploiting homomorphic SIMD technique and (ii) enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity.

p. 0
Where the paper says it

In this work, we propose a new homomorphic compression scheme with PDQ as its main application. Unlike existing approaches, our scheme (i) can be efficiently implemented by fully exploiting homomorphic SIMD technique and (ii) enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity.

The single most informative sentence about the paper's subject and finding is that our new homomorphic compression scheme can fully exploit homomorphic SIMD technique.<ref:2408.17063#pg2>. This is the single most informative sentence about the paper's subject and finding.

--- Page 1 ---

SIMD-Aware Homomorphic Compression and Application to Private Database Query arXiv:2408.17063v1 [cs. p. 0

Where the paper says it

arXiv:2408. 17063v1 [cs.

CR] 30 Aug 2024 Jung Hee Cheon Member, IEEE, Keewoo Lee, Jai Hyun Park, Yongdong Yeo Abstract—In a private database query scheme (PDQ), a server maintains a database, and users send queries to retrieve records of interest from the server while keeping their queries private. p. 0
Where the paper says it

17063v1 [cs. CR] 30 Aug 2024 1 SIMD-Aware Homomorphic Compression and Application to Private Database Query Jung Hee Cheon Member, IEEE, Keewoo Lee, Jai Hyun Park, Yongdong Yeo Abstract—In a private database query scheme (PDQ), a server maintains a database, and users send queries to retrieve records of interest from the server while keeping their queries private.

--- Page 2 ---

User Server ① Process the Query: (q, st) ← Query(P, x, f) Encrypt the condition of the query with HE. q ← (P, ctxt(x), f) P (x, DBi) is 1 if i-th record satisfies the condition and 0 otherwise. p. 1

Where the paper says it

2 User Server ① Process the Query: (q, st) ← Query(P, x, f) Encrypt the condition of the query with HE. q ← (P, ctxt(x), f) * P (x, DBi) is 1 if i-th record satisfies the condition and 0 otherwise.

The server then masks the database via homomorphic component-wise multiplication with the encrypted index vector (Step 3-2. p. 0
Where the paper says it

an encrypted binary vector, called an index vector, where 1 indicates that the corresponding record meets the query condition. The server then masks the database via homomorphic component-wise multiplication with the encrypted index vector (Step 3-2.

Mask).

--- Page 3 ---

③ Answer the Query: a ← Answer(DB, q) 3-1. Match: Homomorphically check whether each record satisfies the specified condition to obtain an encrypted sparse index vector. p. 1

Where the paper says it

③ Answer the Query: a ← Answer(DB, q) 3-1. Match: Homomorphically check whether each record satisfies the specified condition to obtain an encrypted sparse index vector.

(vi ∈ [0, 1]) ctxt(vi) ← Eval P(·, DBi), ctxt(x)

3-2. Mask: Mask DB with the index vector. p. 0

Where the paper says it

The server then masks the database via homomorphic component-wise multiplication with the encrypted index vector (Step 3-2. After Match and Mask, the resulting ciphertext will be encrypting precisely the desired query result.

ctxt(di) ← ctxt(vi) ⊠ f(DBi)

3-3. Comp: Apply homomorphic compression. p. 1

Where the paper says it

ctxt(di) ← ctxt(vi) ⊠ f(DBi) 3-3. Comp: Apply homomorphic compression.

a ← Comp (ctxt(d1), · · ·, ctxt(dN))

--- Page 4 ---

A. Our Contribution. p. 1

Where the paper says it

Refer to Section IV for detailed and formal descriptions. Our Contribution We propose an efficient HE-based PDQ protocol (Section IV) with particular attention to homomorphic SIMD optimization (Section V).

We propose an efficient HE-based PDQ protocol (Section IV) with particular attention to homomorphic SIMD optimization (Section V). p. 1
Where the paper says it

Refer to Section IV for detailed and formal descriptions. Our Contribution We propose an efficient HE-based PDQ protocol (Section IV) with particular attention to homomorphic SIMD optimization (Section V).

At the core of our construction is a new efficient homomorphic compression scheme that can fully exploit SIMD optimization (Section III). p. 1
Where the paper says it

Our Contribution We propose an efficient HE-based PDQ protocol (Section IV) with particular attention to homomorphic SIMD optimization (Section V). At the core of our construction is a new efficient homomorphic compression scheme that can fully exploit SIMD optimization (Section III).

--- Page 5 ---

B. Overview of Our Compression Scheme. p. 2

Where the paper says it

Overview of Our Compression Scheme The high-level idea of our compression scheme is to apply power-sum method, which encodes a vector (v1, · · · , vN ) as the form PN i=1 i j · vi , to compress encrypted sparse vectors (or the homomorphically masked database in the context of PDQ). Even though a previous work [6] used the power-sum method to compress sparse index vectors (whose components are either 0 or 1), to the best of our knowledge, our work is the first to use the method for general sparse vectors.

The high-level idea of our compression scheme is to apply power-sum method, which encodes a vector (v1, · · ·, vN) as the form PN i=1 i j · vi, to compress encrypted sparse vectors (or the homomorphically masked database in the context of PDQ). p. 2
Where the paper says it

Overview of Our Compression Scheme The high-level idea of our compression scheme is to apply power-sum method, which encodes a vector (v1, · · · , vN ) as the form PN i=1 i j · vi , to compress encrypted sparse vectors (or the homomorphically masked database in the context of PDQ). Even though a previous work [6] used the power-sum method to compress sparse index vectors (whose components are either 0 or 1), to the best of our knowledge, our work is the first to use the method for general sparse vectors.

--- Page 6 ---

C. Example Applications of PDQ 1) Outsourced Database: In the scenario of the outsourced database, clients want to outsource their database storage to a service provider to save resources. p. 2

Where the paper says it

We believe that this is also true in other scenarios where homomorphic compression is needed and that our compression scheme will show great performance in general. Example Applications of PDQ 1) Outsourced Database: In the scenario of the outsourced database, clients want to outsource their database storage to a service provider to save resources.

But at the same time, the clients want their database and access pattern to remain private. p. 2
Where the paper says it

Example Applications of PDQ 1) Outsourced Database: In the scenario of the outsourced database, clients want to outsource their database storage to a service provider to save resources. But at the same time, the clients want their database and access pattern to remain private.

--- Page 7 ---

D. Related Work 1) Private Database Query. p. 2

Where the paper says it

For instance, an investigative agency (client) wants to collect suspect A’s communication/transaction records between B while keeping their interests secret from database-owners8 . Related Work 1) Private Database Query: There have been rich studies on PDQ and closely-related scenarios [1, 2, 3, 4, 5, 6].

There have been rich studies on PDQ and closely-related scenarios [1, 2, 3, 4, 5, 6]. p. 2
Where the paper says it

For instance, an investigative agency (client) wants to collect suspect A’s communication/transaction records between B while keeping their interests secret from database-owners8 . Related Work 1) Private Database Query: There have been rich studies on PDQ and closely-related scenarios [1, 2, 3, 4, 5, 6].

However, except [6], most works do not consider homomorphic compression. p. 2
Where the paper says it

Related Work 1) Private Database Query: There have been rich studies on PDQ and closely-related scenarios [1, 2, 3, 4, 5, 6]. However, except [6], most works do not consider homomorphic compression.

<ref:2408.17063#pg7, However, except [6], most works do not consider homomorphic compression>. p. 2
Where the paper says it

Related Work 1) Private Database Query: There have been rich studies on PDQ and closely-related scenarios [1, 2, 3, 4, 5, 6]. However, except [6], most works do not consider homomorphic compression.

--- Page 8 ---

B. PDQ from Homomorphic Encryption 1) Generic Construction: We can construct a PDQ scheme in a generic way from a homomorphic encryption scheme E = (KeyGen, Enc, Dec, Eval) and a homomorphic compression scheme C = (Comp, Decomp) for sparse vectors as follows. p. 7

Where the paper says it

PDQ from Homomorphic Encryption 1) Generic Construction: We can construct a PDQ scheme Π = (Query, Answer, Recover) in a generic way from a homomorphic encryption scheme E = (KeyGen, Enc, Dec, Eval) and a homomorphic compression scheme C = (Comp, Decomp) for sparse vectors as follows. • Query(P, x, f): The client outputs q ← (P, Enc(x), f).

<ref:2408.17063#pg8, We can construct a PDQ scheme in a generic way from a homomorphic encryption scheme E = (KeyGen, Enc, Dec, Eval) and a homomorphic compression scheme C = (Comp, Decomp) for sparse vectors as follows>. p. 7
Where the paper says it

PDQ from Homomorphic Encryption 1) Generic Construction: We can construct a PDQ scheme Π = (Query, Answer, Recover) in a generic way from a homomorphic encryption scheme E = (KeyGen, Enc, Dec, Eval) and a homomorphic compression scheme C = (Comp, Decomp) for sparse vectors as follows. • Query(P, x, f): The client outputs q ← (P, Enc(x), f).

--- Page 9 ---

V. SIMD-AWARE IMPLEMENTATION. p. 1

Where the paper says it

, oblivious message retrieval [7]). SIMD-Aware Implementation of PDQ: Building upon our SIMD-friendly homomorphic compression scheme, we propose an efficient HE-based PDQ protocol (Section IV).

In this section we illustrate how one can efficiently implement PDQ (Section IV) with our homomorphic compression scheme (Section III), fully leveraging the SIMD structure of HE schemes. p. 7
Where the paper says it

Refer to Section V for more detailed discussions. SIMD-AWARE IMPLEMENTATION In this section, we illustrate how one can efficiently implement PDQ (Section IV) with our homomorphic compression scheme (Section III), fully leveraging the SIMD structure of HE schemes.

<ref:2408.17063#pg9>. We provide details for the SIMD-aware implementation of our homomorphic compression scheme (i.e., Comp step in PDQ).<ref:2408.17063#pg9>.

--- Page 10 ---

C. Ring-Switching. p. 1

Where the paper says it

However, the previous works [6, 7, 8] neglected these problems. To this end, we suggest adopting the ring-switching technique [21, 22] to switch to a smaller HE parameter when possible.

To allow reasonable queries in the Match step, we must use large HE parameters (e. p. 8
Where the paper says it

Meanwhile, we do not apply this optimization in our experiments (Section VI) for generality. Ring-Switching To allow reasonable queries in the Match step, we must use large HE parameters (e.

g., n = 216) supporting deep homomorphic computations. p. 8
Where the paper says it

Ring-Switching To allow reasonable queries in the Match step, we must use large HE parameters (e. , n = 216) supporting deep homomorphic computations.

<ref:2408.17063#pg10>. The large parameters seem even more inevitable when we consider PDQ with 2-sided privacy (Def. p. 8
Where the paper says it

(See Section I-A. ) The large parameters seem even more inevitable when we consider PDQ with 2-sided privacy (Def.

10), as we will need noiseflooding [29] or sanitization [30]. p. 8
Where the paper says it

) The large parameters seem even more inevitable when we consider PDQ with 2-sided privacy (Def. 10), as we will need noiseflooding [29] or sanitization [30].

<ref:2408.17063#pg10, The large parameters seem even more inevitable when we consider PDQ with 2-sided privacy (Def. p. 8
Where the paper says it

(See Section I-A. ) The large parameters seem even more inevitable when we consider PDQ with 2-sided privacy (Def.

10), as we will need noiseflooding [29] or sanitization [30]>. p. 8
Where the paper says it

) The large parameters seem even more inevitable when we consider PDQ with 2-sided privacy (Def. 10), as we will need noiseflooding [29] or sanitization [30].

--- Page 11 ---

B. PDQ from Homomorphic Encryption 2) PDQ with Our Homomorphic Compression Scheme: When applying our homomorphic compression scheme (Section III) to PDQ, we can further optimize the costs from the above generic construction. p. 7

Where the paper says it

To achieve 2-sided privacy, we can apply standard techniques such as noise-flooding [29] or sanitization [30] to Answer step. 2) PDQ with Our Homomorphic Compression Scheme: When applying our homomorphic compression scheme (Section III) to PDQ, we can further optimize the costs from the above generic construction.

<ref:2408.17063#pg9>. Recall that our compression algorithm involves homomorphically computing the index vector from the sparse vector. p. 7
Where the paper says it

2) PDQ with Our Homomorphic Compression Scheme: When applying our homomorphic compression scheme (Section III) to PDQ, we can further optimize the costs from the above generic construction. Recall that our compression algorithm involves homomorphically computing the index vector from the sparse vector.

<ref:2408.17063#pg9>. In natural PDQ protocols, we already have the corresponding index vector for the sparse vector (or masked database) from Match. p. 2
Where the paper says it

We already have the corresponding index vector for the sparse vector (or masked database) from Match. The punchline is that, in natural HE-based PDQ protocols described in Fig.

<ref:2408.17063#pg9>.

Pruning redundant reasoning tokens

Our scheme enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity.<ref:2408.17063#pg1, Our scheme enjoys both asymptotically optimal compression rate and asymptotically good decompression complexity>. The single most informative sentence about the paper's subject and finding is that our new homomorphic compression scheme can fully exploit homomorphic SIMD technique.<ref:2408.17063#pg2>. This is the single most informative sentence about the paper's subject and finding.

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

  1. SIMD-Aware Homomorphic Compression for Private Database Query: The improved system can perform homomorphic compression that can be efficiently implemented by fully exploiting homomorphic SIMD technique and achieves asymptotically optimal compression rate while maintaining a decompression complexity of poly(s, log N).

  2. Optimized PDQ Protocol Execution: The system can execute a private database query by utilizing the specific optimization where the server can skip the homomorphic computation of the index vector and reuse the result of the Match step by leveraging that the sparse vector is actually obtained from the index vector through masking (Mask).

  3. Efficient Parameter Management via Ring-Switching: The system can manage high computational demands by adopting a ring-switching technique [21, 22] to switch to a smaller HE parameter after the Match and Mask step, which significantly reduces communication cost and accelerates the compression step when dealing with large database sizes or 2-sided privacy requirements.

  4. Faster Query Processing Through Matrix Multiplication: The system can leverage homomorphic matrix-vector multiplication by adopting the PEGASUS framework on BGV schemes, allowing it to compute [Cv, Cd]T efficiently from a single ciphertext of u = [v, d]T rather than computing Cv and Cd separately.

  5. Optimized Communication Overhead: The system ensures optimal communication costs by employing our homomorphic compression scheme, which results in asymptotically optimal communication cost requiring only O(s) ciphertexts to communicate.

Abstract

In a Private Database Query (PDQ) protocol, a server maintains a database, and users submit queries to retrieve records that satisfy specific conditions without revealing their interests to the server. Although homomorphic encryption (HE) provides a generic solution to PDQ, a naive approach leads to communication proportional to the database size. Consequently, a crucial step in HE-based PDQ protocols is homomorphic compression, which compresses encrypted sparse vectors representing query results with unknown non-zero indices into a dense form. However, prior compression schemes incur substantial computational overhead. We propose a new homomorphic compression scheme based on Newton's identity. Our scheme is characterized by its simple compression procedure that can fully leverage the SIMD parallelism of modern HE schemes. When applied to PDQ, the compression reduces to homomorphic matrix-vector multiplications with only a single multiplicative depth, leading to significantly improved performance compared to prior approaches, as we experimentally demonstrate.

Related papers