Paper 2023/1893 Original: eprint.iacr.org/2023/1893 ↗

BOLT: Privacy-Preserving, Accurate and Efficient Inference for Transformers

Qi Pang
Jinhao Zhu
Helen Möllering
Wenting Zheng
Thomas Schneider
Abstract

The advent of transformers has brought about significant advancements in traditional machine learning tasks. However, their pervasive deployment has raised concerns about the potential leakage of sensitive information during inference. Existing approaches using secure multiparty computation (MPC) face limitations when applied to transformers due to the extensive model size and resource-intensive matrix-matrix multiplications. In this paper, we present BOLT, a privacy-preserving inference framework for transformer models that supports efficient matrix multiplications and nonlinear computations. Combined with our novel machine learning optimizations, BOLT reduces the communication cost by 10.91x. Our evaluation on diverse datasets demonstrates that BOLT maintains comparable accuracy to floating-point models and achieves 4.8-9.5x faster inference across various network settings compared to the state-of-the-art system.

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Preprint.
History
2024-07-06: last updated
2023-12-09: published
Short URL
https://ia.cr/2023/1893
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2023/1893,
      author = {Qi Pang and Jinhao Zhu and Helen Möllering and Wenting Zheng and Thomas Schneider},
      title = {BOLT: Privacy-Preserving, Accurate and Efficient Inference for Transformers},
      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1893},
      year = {2023},
      url = {https://eprint.iacr.org/2023/1893}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.