SIMD-Aware Homomorphic Compression and Application to Private Database Query
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
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 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. 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. 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. Experimental results show that our approach is 4. 2x
faster than the previous best results. 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. Experimental results show that our approach is 4. 2x
faster than the previous best results.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
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 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. 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. 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. , HElib [13],
SEAL [14], HEaaN [15]). 4 However, previous works on homomorphic compression [6, 7, 8] neglected SIMD optimization. , HElib [13],
SEAL [14], HEaaN [15]). 4 However, previous works on homomorphic compression [6, 7, 8] neglected SIMD optimization.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
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 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.Where the paper says it
-
Our compression rate is asymptotically optimal. p. 0
<ref:2408.17063#pg2, Our compression rate is asymptotically optimal>. p. 0Where 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.
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.
-
Our decompression complexity is poly(s, log N). p. 1
<ref:2408.17063#pg2, Our decompression complexity is poly(s, log N)>. p. 1Where 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).
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 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. )
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. )
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. 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).Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
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 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). 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
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 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. 6
Comparison: Experimental comparison between our
scheme and [6]
15 is given in Fig. Ours outperforms
the previous best algorithms [6]. 6
Comparison: Experimental comparison between our
scheme and [6]
15 is given in Fig. Ours outperforms
the previous best algorithms [6]. Ours outperforms
the previous best algorithms [6]. Compared with their
homomorphic compression scheme, BFS-CODE, our scheme
shows 19. Compared with their
homomorphic compression scheme, BFS-CODE, our scheme
shows 19. 2x speedup.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
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 , 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. )
Remark 1 (SIMD-Friendliness). We note that our scheme and
the FFT-based scheme of Fleischhacker et al. 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. )
Remark 1 (SIMD-Friendliness). We note that our scheme and
the FFT-based scheme of Fleischhacker et al. )
Remark 1 (SIMD-Friendliness). We note that our scheme and
the FFT-based scheme of Fleischhacker et al. 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. , 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.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
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 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
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 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). 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
SIMD-Aware Implementation Details
We provide details for the SIMD-aware implementation of our homomorphic compression scheme (i. p. 1 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). 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). 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. 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. 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. 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. 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. 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. 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. The rest (i. , Match and Mask steps) should be relatively
straightforward to leverage the SIMD structure. The rest (i. , Match and Mask steps) should be relatively
straightforward to leverage the SIMD structure. The rest (i. , Match and Mask steps) should be relatively
straightforward to leverage the SIMD structure.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
Comparison with Prior Work
Compared with BF-COIE and PS-COIE together with PIR, our scheme shows 3.3x–9.3x speedup. p. 9 Compared with their
homomorphic compression scheme, BFS-CODE, our scheme
shows 19. 2x speedup. Compared with their
homomorphic compression scheme, BFS-CODE, our scheme
shows 19. 2x speedup. 3x speedup. We note that this
approach requires more rounds and communication costs since
it uses extra PIR protocol.Where the paper says it
Where the paper says it
Where the paper says it
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 )
Remark 1 (SIMD-Friendliness). We note that our scheme and
the FFT-based scheme of Fleischhacker et al. 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). 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). 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). )
Remark 1 (SIMD-Friendliness). We note that our scheme and
the FFT-based scheme of Fleischhacker et al. 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). 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). [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]. )
Remark 1 (SIMD-Friendliness). We note that our scheme and
the FFT-based scheme of Fleischhacker et al. )
Remark 1 (SIMD-Friendliness). We note that our scheme and
the FFT-based scheme of Fleischhacker et al.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
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 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. 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.Where the paper says it
Where the paper says it
--- Page 1 ---
SIMD-Aware Homomorphic Compression and Application to Private Database Query arXiv:2408.17063v1 [cs. p. 0 arXiv:2408. 17063v1 [cs. 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.Where the paper says it
Where the paper says it
--- 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 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. 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.Where the paper says it
Where the paper says it
--- 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 ③ 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.Where the paper says it
3-2. Mask: Mask DB with the index vector. p. 0 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.Where the paper says it
3-3. Comp: Apply homomorphic compression. p. 1 ctxt(di) ← ctxt(vi) ⊠ f(DBi)
3-3. Comp: Apply homomorphic compression.Where the paper says it
--- Page 4 ---
A. Our Contribution. p. 1 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). 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). 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).Where the paper says it
Where the paper says it
Where the paper says it
--- Page 5 ---
B. Overview of Our Compression Scheme. p. 2 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. 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.Where the paper says it
Where the paper says it
--- 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 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. 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.Where the paper says it
Where the paper says it
--- Page 7 ---
D. Related Work 1) Private Database Query. p. 2 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]. 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]. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
--- 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 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). 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).Where the paper says it
Where the paper says it
--- Page 9 ---
V. SIMD-AWARE IMPLEMENTATION. p. 1 , 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). 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.Where the paper says it
Where the paper says it
--- Page 10 ---
C. Ring-Switching. p. 1 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. 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. Ring-Switching
To allow reasonable queries in the Match step, we must
use large HE parameters (e. , n = 216) supporting deep
homomorphic computations. (See Section I-A. ) The large
parameters seem even more inevitable when we consider
PDQ with 2-sided privacy (Def. ) 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]. (See Section I-A. ) The large
parameters seem even more inevitable when we consider
PDQ with 2-sided privacy (Def. ) 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].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
--- 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 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
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
-
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 achievesasymptotically optimal compression rate
while maintaining a decompression complexity ofpoly(s, log N)
. -
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 thatthe sparse vector is actually obtained from the index vector through masking (Mask)
. -
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. -
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. -
Optimized Communication Overhead: The system ensures optimal communication costs by employing
our homomorphic compression scheme,
which results inasymptotically optimal communication cost
requiring onlyO(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
- 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