TY - JOUR
T1 - Converting Transformers to Polynomial Form for Secure Inference Over Homomorphic Encryption
AU - Zimerman, Itamar
AU - Baruch, Moran
AU - Drucker, Nir
AU - Ezov, Gilad
AU - Soceanu, Omri
AU - Wolf, Lior
N1 - Publisher Copyright:
Copyright 2024 by the author(s)
PY - 2024
Y1 - 2024
N2 - Designing privacy-preserving DL solutions is a major challenge within the AI community.Homomorphic Encryption (HE) has emerged as one of the most promising approaches in this realm, enabling the decoupling of knowledge between a model owner and a data owner.Despite extensive research and application of this technology, primarily in CNNs, applying HE on transformer models has been challenging because of the difficulties in converting these models into a polynomial form.We break new ground by introducing the first polynomial transformer, providing the first demonstration of secure inference over HE with full transformers.This includes a transformer architecture tailored for HE, alongside a novel method for converting operators to their polynomial equivalent.This innovation enables us to perform secure inference on LMs and ViTs with several datasts and tasks.Our techniques yield results comparable to traditional models, bridging the performance gap with transformers of similar scale and underscoring the viability of HE for state-of-the-art applications.Finally, we assess the stability of our models and conduct a series of ablations to quantify the contribution of each model component.Our code is publicly available.
AB - Designing privacy-preserving DL solutions is a major challenge within the AI community.Homomorphic Encryption (HE) has emerged as one of the most promising approaches in this realm, enabling the decoupling of knowledge between a model owner and a data owner.Despite extensive research and application of this technology, primarily in CNNs, applying HE on transformer models has been challenging because of the difficulties in converting these models into a polynomial form.We break new ground by introducing the first polynomial transformer, providing the first demonstration of secure inference over HE with full transformers.This includes a transformer architecture tailored for HE, alongside a novel method for converting operators to their polynomial equivalent.This innovation enables us to perform secure inference on LMs and ViTs with several datasts and tasks.Our techniques yield results comparable to traditional models, bridging the performance gap with transformers of similar scale and underscoring the viability of HE for state-of-the-art applications.Finally, we assess the stability of our models and conduct a series of ablations to quantify the contribution of each model component.Our code is publicly available.
UR - http://www.scopus.com/inward/record.url?scp=85203792116&partnerID=8YFLogxK
M3 - ???researchoutput.researchoutputtypes.contributiontojournal.conferencearticle???
AN - SCOPUS:85203792116
SN - 2640-3498
VL - 235
SP - 62803
EP - 62814
JO - Proceedings of Machine Learning Research
JF - Proceedings of Machine Learning Research
T2 - 41st International Conference on Machine Learning, ICML 2024
Y2 - 21 July 2024 through 27 July 2024
ER -