SecPE: Secure Prompt Ensembling for Private and Robust Large Language Models
Not on the map. Why?
Abstract (arXiv)
With the growing popularity of LLMs among the general public users, privacy-preserving and adversarial robustness have become two pressing demands for LLM-based services, which have largely been pursued separately but rarely jointly. In this paper, to the best of our knowledge, we are among the first attempts towards robust and private LLM inference by tightly integrating two disconnected fields: private inference and prompt ensembling. The former protects users' privacy by encrypting inference data transmitted and processed by LLMs, while the latter enhances adversarial robustness by yielding an aggregated output from multiple prompted LLM responses. Although widely recognized as effective individually, private inference for prompt ensembling together entails new challenges that render the naive combination of existing techniques inefficient. To overcome the hurdles, we propose SecPE, which designs efficient fully homomorphic encryption (FHE) counterparts for the core algorithmic building blocks of prompt ensembling. We conduct extensive experiments on 8 tasks to evaluate the accuracy, robustness, and efficiency of SecPE. The results show that SecPE maintains high clean accuracy and offers better robustness at the expense of merely 2.5% efficiency overhead compared to baseline private inference methods, indicating a satisfactory ``accuracy-robustness-efficiency'' tradeoff. For the efficiency of the encrypted Argmax operation that incurs major slowdown for prompt ensembling, SecPE is 35.4x faster than the state-of-the-art peers, which can be of independent interest beyond this work.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 39 of its 69 references that are in the map. First posted on arXiv 2 Feb 2025.
Builds on
39 of 69 references.
References · 39
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
27 more
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2019How Can We Know What Language Models Know?cited by 953
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2016Solving General Arithmetic Word Problemscited by 353
- 2021Enhanced Membership Inference Attacks against Machine Learning Modelscited by 237
- 2021SPoT: Better Frozen Model Adaptation through Soft Prompt Transfercited by 235
- 2022Making Large Language Models Better Reasoners with Step-Aware Verifiercited by 231
- 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 227
- 2018Gazelle: A Low Latency Framework for Secure Neural Network Inferencecited by 193
- 2019BERT Post-Training for Review Reading Comprehension and Aspect-based Sentiment Analysiscited by 176
- 2019oLMpics -- On what Language Model Pre-training Capturescited by 161
- 2019End-to-End Open-Domain Question Answering with BERTserinicited by 152
- 2020Automatically Identifying Words That Can Serve as Labels for Few-Shot Text Classificationcited by 98
- 2019Diversity with Cooperation: Ensemble Methods for Few-Shot Classificationcited by 70
- 2018Low Latency Privacy Preserving Inferencecited by 57
- 2018Faster CryptoNets: Leveraging Sparsity for Real-World Encrypted Inferencecited by 45
- 2023A Simple Zero-shot Prompt Weighting Technique to Improve Prompt Ensembling in Text-Image Modelscited by 39
- 2019An Ensemble of Epoch-wise Empirical Bayes for Few-shot Learningcited by 38
- 2019SHE: A Fast and Accurate Deep Neural Network for Encrypted Datacited by 36
- 2019Simple Applications of BERT for Ad Hoc Document Retrievalcited by 34
- 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attentioncited by 19
- 2023Exploring the Benefits of Visual Prompting in Differential Privacycited by 17
- 2022Private and Reliable Neural Network Inferencecited by 6
- 2022HECO: Fully Homomorphic Encryption Compilercited by 3
- 2021Data science and Machine learning in the Clouds: A Perspective for the Futurecited by 2
Built on by
Not cited yet.