Detailed Information

Cited 0 time in webofscience Cited 0 time in scopus
Metadata Downloads

THOR: Secure Transformer Inference with Homomorphic Encryptionopen access

Authors
Moon, JunghoYoo, DongwooJiang, XiaoqianKim, Miran
Issue Date
Nov-2025
Publisher
Association for Computing Machinery, Inc
Keywords
Homomorphic encryption; Matrix computation; Transformer
Citation
CCS 2025 - Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security, pp 3765 - 3779
Pages
15
Indexed
SCOPUS
Journal Title
CCS 2025 - Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security
Start Page
3765
End Page
3779
URI
https://scholarworks.bwise.kr/hanyang/handle/2021.sw.hanyang/209896
DOI
10.1145/3719027.3765150
Abstract
As large language models are increasingly deployed in cloud environments, privacy concerns have become a significant issue. To address this challenge, we present THOR, a non-interactive framework for secure transformer inference using homomorphic encryption. We first propose efficient matrix multiplication algorithms based on diagonal-major encoding and compact ciphertext packing. We extend these basic algorithms to support plaintext-ciphertext matrix multiplication (PC-MM) using parallel submatrix computation and ciphertext-ciphertext multiplication (CC-MM) with a baby-step giant-step strategy. We also design efficient evaluation strategies for non-linear functions such as softmax, LayerNorm, GELU, and Tanh, by integrating advanced approximation techniques with adaptive iterative methods. Our matrix multiplication algorithms outperform state-of-the-art methods, achieving up to 5.3X speedup in PC-MM for ℝ 768 X 768 X ℝ768X128 over BOLT (Pang et al., IEEE S&P 2024) and 9.7X in CC-MM for 12X (ℝ64X128 X ℝ128X128) over Powerformer (Park et al., Preprint). THOR enables secure inference on the BERT-base model with 128 tokens in 10 minutes on a single GPU, while maintaining comparable accuracy on GLUE tasks.
Files in This Item
Go to Link
Appears in
Collections
서울 자연과학대학 > 서울 수학과 > 1. Journal Articles

qrcode

Items in ScholarWorks are protected by copyright, with all rights reserved, unless otherwise indicated.

Related Researcher

Researcher Kim, Miran photo

Kim, Miran
COLLEGE OF NATURAL SCIENCES (DEPARTMENT OF MATHEMATICS)
Read more

Altmetrics

Total Views & Downloads

BROWSE