HEAAN Demystified: Accelerating Fully Homomorphic Encryption Through Architecture-centric Analysis and Optimization

Homomorphic Encryption (HE) draws a significant attention as a privacy-preserving way for cloud computing because it allows computation on encrypted messages called ciphertexts. Among numerous HE schemes proposed, HE for Arithmetic of Approximate Numbers (HEAAN) is rapidly gaining popularity across...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:arXiv.org 2020-03
Hauptverfasser: Jung, Wonkyung, Lee, Eojin, Kim, Sangpyo, Lee, Keewoo, Kim, Namhoon, Chohong Min, Cheon, Jung Hee, Jung Ho Ahn
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title arXiv.org
container_volume
creator Jung, Wonkyung
Lee, Eojin
Kim, Sangpyo
Lee, Keewoo
Kim, Namhoon
Chohong Min
Cheon, Jung Hee
Jung Ho Ahn
description Homomorphic Encryption (HE) draws a significant attention as a privacy-preserving way for cloud computing because it allows computation on encrypted messages called ciphertexts. Among numerous HE schemes proposed, HE for Arithmetic of Approximate Numbers (HEAAN) is rapidly gaining popularity across a wide range of applications because it supports messages that can tolerate approximate computation with no limit on the number of arithmetic operations applicable to the corresponding ciphertexts. A critical shortcoming of HE is the high computation complexity of ciphertext arithmetic; especially, HE multiplication (HE Mul) is more than 10,000 times slower than the corresponding multiplication between unencrypted messages. This leads to a large body of HE acceleration studies, including ones exploiting FPGAs; however, those did not conduct a rigorous analysis of computational complexity and data access patterns of HE Mul. Moreover, the proposals mostly focused on designs with small parameter sizes, making it difficult to accurately estimate their performance in conducting a series of complex arithmetic operations. In this paper, we first describe how HE Mul of HEAAN is performed in a manner friendly to computer architects. Then we conduct a disciplined analysis on its computational and memory access characteristics, through which we (1) extract parallelism in the key functions composing HE Mul and (2) demonstrate how to effectively map the parallelism to the popular parallel processing platforms, multicore CPUs and GPUs, by applying a series of optimization techniques such as transposing matrices and pinning data to threads. This leads to the performance improvement of HE Mul on a CPU and a GPU by 42.9x and 134.1x, respectively, over the single-thread reference HEAAN running on a CPU. The conducted analysis and optimization would set a new foundation for future HE acceleration research.
doi_str_mv 10.48550/arxiv.2003.04510
format Article
fullrecord <record><control><sourceid>proquest_arxiv</sourceid><recordid>TN_cdi_arxiv_primary_2003_04510</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2376054800</sourcerecordid><originalsourceid>FETCH-LOGICAL-a520-dcb9a1d86404c369aff1c97a84538120e31c2906b7d4802d37f2a1d4ab92f783</originalsourceid><addsrcrecordid>eNotkEtLw0AUhQdBsNT-AFcOuE6980om7kJtrVDswu7DZDJppuTlTCLGX2_ayl2czXcOlw-hBwJLLoWAZ-V-7PeSArAlcEHgBs0oYySQnNI7tPD-BAA0jKgQbIb8dp0kH_jV1KPvbWFN_oITrU1lnOptc8SboapGvG3r6VxXWo3XjXZj19u2wYfStcOxxInTpe2N7gdnAm2a3k1c0qhq9NZj1eR4PxVq-6vOtXt0W6jKm8V_ztHnZn1YbYPd_u19lewCJSgEuc5iRXIZcuCahbEqCqLjSEkumCQUDCOaxhBmUc4l0JxFBZ14rrKYFpFkc_R4Xb0ISTtna-XG9CwmvYiZiKcr0bn2azC-T0_t4KavfUpZFIKYdoH9AXK3Zzs</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2376054800</pqid></control><display><type>article</type><title>HEAAN Demystified: Accelerating Fully Homomorphic Encryption Through Architecture-centric Analysis and Optimization</title><source>arXiv.org</source><source>Free E- Journals</source><creator>Jung, Wonkyung ; Lee, Eojin ; Kim, Sangpyo ; Lee, Keewoo ; Kim, Namhoon ; Chohong Min ; Cheon, Jung Hee ; Jung Ho Ahn</creator><creatorcontrib>Jung, Wonkyung ; Lee, Eojin ; Kim, Sangpyo ; Lee, Keewoo ; Kim, Namhoon ; Chohong Min ; Cheon, Jung Hee ; Jung Ho Ahn</creatorcontrib><description>Homomorphic Encryption (HE) draws a significant attention as a privacy-preserving way for cloud computing because it allows computation on encrypted messages called ciphertexts. Among numerous HE schemes proposed, HE for Arithmetic of Approximate Numbers (HEAAN) is rapidly gaining popularity across a wide range of applications because it supports messages that can tolerate approximate computation with no limit on the number of arithmetic operations applicable to the corresponding ciphertexts. A critical shortcoming of HE is the high computation complexity of ciphertext arithmetic; especially, HE multiplication (HE Mul) is more than 10,000 times slower than the corresponding multiplication between unencrypted messages. This leads to a large body of HE acceleration studies, including ones exploiting FPGAs; however, those did not conduct a rigorous analysis of computational complexity and data access patterns of HE Mul. Moreover, the proposals mostly focused on designs with small parameter sizes, making it difficult to accurately estimate their performance in conducting a series of complex arithmetic operations. In this paper, we first describe how HE Mul of HEAAN is performed in a manner friendly to computer architects. Then we conduct a disciplined analysis on its computational and memory access characteristics, through which we (1) extract parallelism in the key functions composing HE Mul and (2) demonstrate how to effectively map the parallelism to the popular parallel processing platforms, multicore CPUs and GPUs, by applying a series of optimization techniques such as transposing matrices and pinning data to threads. This leads to the performance improvement of HE Mul on a CPU and a GPU by 42.9x and 134.1x, respectively, over the single-thread reference HEAAN running on a CPU. The conducted analysis and optimization would set a new foundation for future HE acceleration research.</description><identifier>EISSN: 2331-8422</identifier><identifier>DOI: 10.48550/arxiv.2003.04510</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Acceleration ; Algorithms ; Arithmetic ; Cloud computing ; Complexity ; Computer Science - Distributed, Parallel, and Cluster Computing ; Encryption ; Graphics processing units ; Mathematical analysis ; Messages ; Microprocessors ; Multiplication ; Optimization ; Optimization techniques ; Parallel processing ; Series (mathematics)</subject><ispartof>arXiv.org, 2020-03</ispartof><rights>2020. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><rights>http://arxiv.org/licenses/nonexclusive-distrib/1.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,784,885,27925</link.rule.ids><backlink>$$Uhttps://doi.org/10.48550/arXiv.2003.04510$$DView paper in arXiv$$Hfree_for_read</backlink><backlink>$$Uhttps://doi.org/10.1109/ACCESS.2021.3096189$$DView published paper (Access to full text may be restricted)$$Hfree_for_read</backlink></links><search><creatorcontrib>Jung, Wonkyung</creatorcontrib><creatorcontrib>Lee, Eojin</creatorcontrib><creatorcontrib>Kim, Sangpyo</creatorcontrib><creatorcontrib>Lee, Keewoo</creatorcontrib><creatorcontrib>Kim, Namhoon</creatorcontrib><creatorcontrib>Chohong Min</creatorcontrib><creatorcontrib>Cheon, Jung Hee</creatorcontrib><creatorcontrib>Jung Ho Ahn</creatorcontrib><title>HEAAN Demystified: Accelerating Fully Homomorphic Encryption Through Architecture-centric Analysis and Optimization</title><title>arXiv.org</title><description>Homomorphic Encryption (HE) draws a significant attention as a privacy-preserving way for cloud computing because it allows computation on encrypted messages called ciphertexts. Among numerous HE schemes proposed, HE for Arithmetic of Approximate Numbers (HEAAN) is rapidly gaining popularity across a wide range of applications because it supports messages that can tolerate approximate computation with no limit on the number of arithmetic operations applicable to the corresponding ciphertexts. A critical shortcoming of HE is the high computation complexity of ciphertext arithmetic; especially, HE multiplication (HE Mul) is more than 10,000 times slower than the corresponding multiplication between unencrypted messages. This leads to a large body of HE acceleration studies, including ones exploiting FPGAs; however, those did not conduct a rigorous analysis of computational complexity and data access patterns of HE Mul. Moreover, the proposals mostly focused on designs with small parameter sizes, making it difficult to accurately estimate their performance in conducting a series of complex arithmetic operations. In this paper, we first describe how HE Mul of HEAAN is performed in a manner friendly to computer architects. Then we conduct a disciplined analysis on its computational and memory access characteristics, through which we (1) extract parallelism in the key functions composing HE Mul and (2) demonstrate how to effectively map the parallelism to the popular parallel processing platforms, multicore CPUs and GPUs, by applying a series of optimization techniques such as transposing matrices and pinning data to threads. This leads to the performance improvement of HE Mul on a CPU and a GPU by 42.9x and 134.1x, respectively, over the single-thread reference HEAAN running on a CPU. The conducted analysis and optimization would set a new foundation for future HE acceleration research.</description><subject>Acceleration</subject><subject>Algorithms</subject><subject>Arithmetic</subject><subject>Cloud computing</subject><subject>Complexity</subject><subject>Computer Science - Distributed, Parallel, and Cluster Computing</subject><subject>Encryption</subject><subject>Graphics processing units</subject><subject>Mathematical analysis</subject><subject>Messages</subject><subject>Microprocessors</subject><subject>Multiplication</subject><subject>Optimization</subject><subject>Optimization techniques</subject><subject>Parallel processing</subject><subject>Series (mathematics)</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2020</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><sourceid>GOX</sourceid><recordid>eNotkEtLw0AUhQdBsNT-AFcOuE6980om7kJtrVDswu7DZDJppuTlTCLGX2_ayl2czXcOlw-hBwJLLoWAZ-V-7PeSArAlcEHgBs0oYySQnNI7tPD-BAA0jKgQbIb8dp0kH_jV1KPvbWFN_oITrU1lnOptc8SboapGvG3r6VxXWo3XjXZj19u2wYfStcOxxInTpe2N7gdnAm2a3k1c0qhq9NZj1eR4PxVq-6vOtXt0W6jKm8V_ztHnZn1YbYPd_u19lewCJSgEuc5iRXIZcuCahbEqCqLjSEkumCQUDCOaxhBmUc4l0JxFBZ14rrKYFpFkc_R4Xb0ISTtna-XG9CwmvYiZiKcr0bn2azC-T0_t4KavfUpZFIKYdoH9AXK3Zzs</recordid><startdate>20200310</startdate><enddate>20200310</enddate><creator>Jung, Wonkyung</creator><creator>Lee, Eojin</creator><creator>Kim, Sangpyo</creator><creator>Lee, Keewoo</creator><creator>Kim, Namhoon</creator><creator>Chohong Min</creator><creator>Cheon, Jung Hee</creator><creator>Jung Ho Ahn</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20200310</creationdate><title>HEAAN Demystified: Accelerating Fully Homomorphic Encryption Through Architecture-centric Analysis and Optimization</title><author>Jung, Wonkyung ; Lee, Eojin ; Kim, Sangpyo ; Lee, Keewoo ; Kim, Namhoon ; Chohong Min ; Cheon, Jung Hee ; Jung Ho Ahn</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a520-dcb9a1d86404c369aff1c97a84538120e31c2906b7d4802d37f2a1d4ab92f783</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2020</creationdate><topic>Acceleration</topic><topic>Algorithms</topic><topic>Arithmetic</topic><topic>Cloud computing</topic><topic>Complexity</topic><topic>Computer Science - Distributed, Parallel, and Cluster Computing</topic><topic>Encryption</topic><topic>Graphics processing units</topic><topic>Mathematical analysis</topic><topic>Messages</topic><topic>Microprocessors</topic><topic>Multiplication</topic><topic>Optimization</topic><topic>Optimization techniques</topic><topic>Parallel processing</topic><topic>Series (mathematics)</topic><toplevel>online_resources</toplevel><creatorcontrib>Jung, Wonkyung</creatorcontrib><creatorcontrib>Lee, Eojin</creatorcontrib><creatorcontrib>Kim, Sangpyo</creatorcontrib><creatorcontrib>Lee, Keewoo</creatorcontrib><creatorcontrib>Kim, Namhoon</creatorcontrib><creatorcontrib>Chohong Min</creatorcontrib><creatorcontrib>Cheon, Jung Hee</creatorcontrib><creatorcontrib>Jung Ho Ahn</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science &amp; Engineering Collection</collection><collection>ProQuest Central (Alumni)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>AUTh Library subscriptions: ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content (ProQuest)</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering collection</collection><collection>arXiv Computer Science</collection><collection>arXiv.org</collection><jtitle>arXiv.org</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Jung, Wonkyung</au><au>Lee, Eojin</au><au>Kim, Sangpyo</au><au>Lee, Keewoo</au><au>Kim, Namhoon</au><au>Chohong Min</au><au>Cheon, Jung Hee</au><au>Jung Ho Ahn</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>HEAAN Demystified: Accelerating Fully Homomorphic Encryption Through Architecture-centric Analysis and Optimization</atitle><jtitle>arXiv.org</jtitle><date>2020-03-10</date><risdate>2020</risdate><eissn>2331-8422</eissn><abstract>Homomorphic Encryption (HE) draws a significant attention as a privacy-preserving way for cloud computing because it allows computation on encrypted messages called ciphertexts. Among numerous HE schemes proposed, HE for Arithmetic of Approximate Numbers (HEAAN) is rapidly gaining popularity across a wide range of applications because it supports messages that can tolerate approximate computation with no limit on the number of arithmetic operations applicable to the corresponding ciphertexts. A critical shortcoming of HE is the high computation complexity of ciphertext arithmetic; especially, HE multiplication (HE Mul) is more than 10,000 times slower than the corresponding multiplication between unencrypted messages. This leads to a large body of HE acceleration studies, including ones exploiting FPGAs; however, those did not conduct a rigorous analysis of computational complexity and data access patterns of HE Mul. Moreover, the proposals mostly focused on designs with small parameter sizes, making it difficult to accurately estimate their performance in conducting a series of complex arithmetic operations. In this paper, we first describe how HE Mul of HEAAN is performed in a manner friendly to computer architects. Then we conduct a disciplined analysis on its computational and memory access characteristics, through which we (1) extract parallelism in the key functions composing HE Mul and (2) demonstrate how to effectively map the parallelism to the popular parallel processing platforms, multicore CPUs and GPUs, by applying a series of optimization techniques such as transposing matrices and pinning data to threads. This leads to the performance improvement of HE Mul on a CPU and a GPU by 42.9x and 134.1x, respectively, over the single-thread reference HEAAN running on a CPU. The conducted analysis and optimization would set a new foundation for future HE acceleration research.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><doi>10.48550/arxiv.2003.04510</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext
identifier EISSN: 2331-8422
ispartof arXiv.org, 2020-03
issn 2331-8422
language eng
recordid cdi_arxiv_primary_2003_04510
source arXiv.org; Free E- Journals
subjects Acceleration
Algorithms
Arithmetic
Cloud computing
Complexity
Computer Science - Distributed, Parallel, and Cluster Computing
Encryption
Graphics processing units
Mathematical analysis
Messages
Microprocessors
Multiplication
Optimization
Optimization techniques
Parallel processing
Series (mathematics)
title HEAAN Demystified: Accelerating Fully Homomorphic Encryption Through Architecture-centric Analysis and Optimization
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2024-12-28T07%3A46%3A41IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest_arxiv&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=HEAAN%20Demystified:%20Accelerating%20Fully%20Homomorphic%20Encryption%20Through%20Architecture-centric%20Analysis%20and%20Optimization&rft.jtitle=arXiv.org&rft.au=Jung,%20Wonkyung&rft.date=2020-03-10&rft.eissn=2331-8422&rft_id=info:doi/10.48550/arxiv.2003.04510&rft_dat=%3Cproquest_arxiv%3E2376054800%3C/proquest_arxiv%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2376054800&rft_id=info:pmid/&rfr_iscdi=true