MOAI: Module-Optimizing Architecture for non-interactive secure transformer Inference
Not on the map. Why?
Abstract (arXiv)
Privacy concerns have been raised in Large Language Models (LLM) inference when models are deployed in Cloud Service Providers (CSP). Homomorphic encryption (HE) offers a promising solution by enabling secure inference directly over encrypted inputs. However, the high computational overhead of HE remains a major bottleneck. To address this challenge, we propose MOAI, an efficient HE-based, non-interactive framework for secure transformer inference. MOAI gains significant efficiency improvement from: (1) a novel evaluation flow that combines column and diagonal packing with consistent strategies across all layers, eliminating expensive format conversions. (2) rotation-free algorithms for Softmax and LayerNorm that significantly reduce the number of costly HE rotations, removing 2,448 HE rotations in BERT-base inference. (3) Column packing removes rotations in plaintext-ciphertext matrix multiplications and interleaved batching further reduces the rotations in ciphertext-ciphertext matrix multiplications. MOAI uses at least 1.7x fewer HE rotations compared to the state-of-the-art works across all matrix multiplications of BERT-base. As a result, we achieve a 52.8 % reduction in evaluation time compared to the state-of-the-art HE-based non-interactive secure transformer inference, THOR (Moon et al., CCS 25). We then apply MOAI on the Powerformer's framework and achieve a 55.7 % reduction in evaluation time compared to Powerformer (Park et al., ACL 25), which approximates Softmax and LayerNorm with simpler functions in transformer and proposes HE-based non-interactive transformer inference. We report an amortized time of 2.36 minutes per input on a single GPU environment. We show the extendibility by applying MOAI in LLaMA-3-8B. Our implementation is publicly available as open source.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Builds on 15 of its 56 references that are in the map. Submitted 10 Nov 2026.
Builds on
15 of 56 references.
References · 15
- 2017Attention Is All You Needcited by 62,125
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
- 2016Gaussian Error Linear Units (GELUs)cited by 3,745
- 2024Massive Activations in Large Language Modelscited by 343
- 2022THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryptioncited by 66
- 2023PUMA: Secure Inference of LLaMA-7B in Five Minutescited by 56
- 2020HeLayers: A Tile Tensors Framework for Large Neural Networks on Encrypted Datacited by 24
- 2023Converting Transformers to Polynomial Form for Secure Inference Over Homomorphic Encryptioncited by 22
- 2024Encryption-Friendly LLM Architecturecited by 20
- 2023Orion: A Fully Homomorphic Encryption Framework for Deep Learningcited by 19
- 2025CipherPrune: Efficient and Scalable Private Transformer Inferencecited by 14
- 2024Power-Softmax: Towards Secure LLM Inference over Encrypted Datacited by 12
3 more
Built on by
Citing papers per year: 2026: 1.
1 paper.