paper-with-me

Papers

ENSI: Efficient Non-Interactive Secure Inference for Large Language Models

2025-09-11 · Zhiyu He, Maojiang Wang, Xinwen Gao, Yuchuan Luo, Lin Liu, Shaojing Fu arxiv

Secure inference enables privacy-preserving machine learning by leveraging cryptographic protocols that support computations on sensitive user data without exposing it. However, integrating cryptographic protocols with large language models (LLMs) presents significant challenges, as the inherent complexity of these protocols, together with LLMs' massive parameter scale and sophisticated architectures, severely limits practical usability. In this work, we propose ENSI, a novel non-interactive secure inference framework for LLMs, based on the principle of co-designing the cryptographic protocols and LLM architecture. ENSI employs an optimized encoding strategy that seamlessly integrates CKKS scheme with a lightweight LLM variant, BitNet, significantly reducing the computational complexity of encrypted matrix multiplications. In response to the prohibitive computational demands of softmax under homomorphic encryption (HE), we pioneer the integration of the sigmoid attention mechanism with HE as a seamless, retraining-free alternative. Furthermore, by embedding the Bootstrapping operation within the RMSNorm process, we efficiently refresh ciphertexts while markedly decreasing the frequency of costly bootstrapping invocations. Experimental evaluations demonstrate that ENSI achieves approximately an 8x acceleration in matrix multiplications and a 2.6x speedup in softmax inference on CPU compared to state-of-the-art method, with the proportion of bootstrapping is reduced to just 1%.

📄 PDF Abstract BibTeX arXiv:2509.09424

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

FIRST: Federated Inference Resource Scheduling Toolkit for Scientific AI Model Access

2025-10-15 · Aditya Tanikanti, Benoit Côté, Yanfei Guo, Le Chen 외 arxiv

We present the Federated Inference Resource Scheduling Toolkit (FIRST), a framework enabling Inference-as-a-Service across distributed High-Performance Computing (HPC) clusters. FIRST provides cloud-like access to divers…

PrivGNN: High-Performance Secure Inference for Cryptographic Graph Neural Networks

2025-11-04 · Fuyi Wang, Zekai Chen, Mingyuan Fan, Jianying Zhou 외 arxiv

Graph neural networks (GNNs) are powerful tools for analyzing and learning from graph-structured (GS) data, facilitating a wide range of services. Deploying such services in privacy-critical cloud environments necessitat…

PromSec: Prompt Optimization for Secure Generation of Functional Source Code with Large Language Models (LLMs)

2024-09-19 · Mahmoud Nazzal, Issa Khalil, Abdallah Khreishah, NhatHai Phan

The capability of generating high-quality source code using large language models (LLMs) reduces software development time and costs. However, they often introduce security vulnerabilities due to training on insecure ope…

Code GenerationContrastive LearningGraph Neural Network

Comparison of Fully Homomorphic Encryption and Garbled Circuit Techniques in Privacy-Preserving Machine Learning Inference

2025-10-08 · Kalyan Cheerla, Lotfi Ben Othmane, Kirill Morozov arxiv

Machine Learning (ML) is making its way into fields such as healthcare, finance, and Natural Language Processing (NLP), and concerns over data privacy and model confidentiality continue to grow. Privacy-preserving Machin…

MPC-Minimized Secure LLM Inference

2024-08-07 · Deevashwer Rathee, Dacheng Li, Ion Stoica, Hao Zhang 외

Many inference services based on large language models (LLMs) pose a privacy concern, either revealing user prompts to the service or the proprietary weights to the user. Secure inference offers a solution to this proble…