PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 18, 2025Security and Safety7 citationsOpen Access

PUMA: Secure Inference of LLaMA-7B in Five Minutes

View Full Paper
YDYe DongWLWenjie LuYZYancheng Zheng

Key Points

  • Puma can complete most tasks in just a few minutes, with accuracy comparable to conventional models.
  • The framework uses approximations for key functions in transformers, achieving up to 76% reduction in computation costs.
  • Puma integrates secure implementations for embedding and layer normalization within cleartext architecture.
  • Extensive benchmarking on various tasks, including translation and classification, confirms Puma’s efficiency and effectiveness.

Abstract

Transformer models (e.g., Bert and GPT) have shown their dominance in machine learning tasks. Many cloud companies have begun to provide services based on Transformer models, examples include translation and text-speech conversion. However, such a service inevitably requires access to the client’s data, which might contain sensitive information. Theoretically, running the services under secure multi-party computation (MPC) could protect clients’ privacy. However, current MPC frameworks are still limited in terms of model performance, efficiency, deployment, and functionality, especially when facing complex Transformer models. To this end, we propose an MPC framework Puma to enable secure and efficient Transformer model inference. We first design high-quality approximations for the bottleneck functions in Transformers such as GELU and Softmax, reducing about 20% − 76% computation and communication costs than state-of-the-art works without performance drop. Then, we provide concrete instantiations for secure Embedding and LayerNorm. These implementations produce correct results and integrate compatible system architectures of cleartext Transformer models. Finally, we conducted extensive experiments on six popular benchmarks: text classification/generation/summarization/translation, audio-to-text, and image-to-text. Results show that Puma can finish most tasks in several minutes, with comparable model performance (e.g., accuracy) as cleartext, and even evaluate LLaMA-7B in less than 5 minutes to generate 1 token.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Dong et al. (2025) studied this question.

synapsesocial.com/papers/68f3793258f37cefb60d36e0https://doi.org/10.1051/sands/2025014
Ask AI
Helpful
Bookmark
Share
View Full Paper