Lune

CCS2025顶会

Prompt Inference Attack on Distributed Large Language Model Inference Frameworks

Xinjian Luo, Ting Yu, Xiaokui Xiao

摘要

The inference process of modern large language models (LLMs) demands prohibitive computational resources, rendering them infeasible for deployment on consumer-grade devices. To address this limitation, recent studies propose distributed LLM inference frameworks, which employ split learning principles to enable collaborative LLM inference on resource-constrained hardware. However, distributing LLM layers across participants requires the transmission of intermediate outputs, which may introduce privacy risks to the original input prompts -a critical issue that has yet to be thoroughly explored in the literature. In this paper, we rigorously examine the privacy vulnerabilities of distributed LLM inference frameworks by designing and evaluating three prompt inference attacks aimed at reconstructing input prompts from intermediate LLM outputs. These attacks are developed under various query and data constraints to reflect diverse real-world LLM service scenarios. Specifically, the first attack assumes an unlimited query budget and access to an auxiliary dataset sharing the same distribution as the target prompts. The second attack also leverages unlimited queries but uses an auxiliary dataset with a distribution differing from the target prompts. The third attack operates under the most restrictive scenario, with limited query budgets and no auxiliary dataset available. We evaluate these attacks on a range of LLMs, including state-of-the-art models such as Llama-3.2 and Phi-3.5, as well as widely-used models like GPT-2 and BERT for comparative analysis. Our experiments show that the first two attacks achieve reconstruction accuracies exceeding 90%, while the third achieves accuracies typically above 50%, even under stringent constraints. These findings highlight substantial privacy risks in distributed LLM inference frameworks, issuing a strong alert on their deployment in real-world applications. Additionally, our analysis uncovers distinct distributional properties of intermediate embeddings across LLM layers, providing valuable insights into the LLM inference process and the development of effective defense mechanisms for distributed LLM frameworks.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • What Does the Server See- Understanding Privacy Leakage from Large Language Models in Split Inference 引用了 Prompt Inversion Attack Against Collaborative Inference of Large Language Models
  • What Does the Server See- Understanding Privacy Leakage from Large Language Models in Split Inference 引用了 Extracting Training Data from Large Language Models
  • Prompt Inversion Attack Against Collaborative Inference of Large Language Models 引用了 Privacy Risks of General-Purpose Language Models
  • Your Inference Request Will Become a Black Box: Confidential Inference for Cloud-based Large Language Models 引用了 Prompt Inversion Attack Against Collaborative Inference of Large Language Models
  • Extracting Training Data from Large Language Models 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. What Does the Server See- Understanding Privacy Leakage from Large Language Models in Split InferenceMingyuan Fan, Yu Liu, Fuyi Wang, Cen ChenCCS 2026 · 1 次引用
  2. An Invariant Latent Space Perspective on Language Model InversionWentao Ye, Jiaqi Hu, Haobo Wang, Xinpeng Ti 等AAAI 2026 · 1 次引用
  3. Prompt Inversion Attack Against Collaborative Inference of Large Language ModelsWenjie Qu, Yuguang Zhou, Yongji Wu, Tingsong Xiao 等S&P 2025
  4. Your Inference Request Will Become a Black Box: Confidential Inference for Cloud-based Large Language ModelsChung-ju Huang, Huiqiang Zhao, Yuanpeng He, Lijian Li 等ACL 2026

它引用的 Paper27

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger 等ICLR 2020 · 8,443 次引用
  3. Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski 等USENIX Security 2021 · 2,866 次引用
  4. SecureML: A System for Scalable Privacy-Preserving Machine LearningPayman Mohassel, Yupeng ZhangS&P 2017 · 2,107 次引用
  5. Privacy Risks of General-Purpose Language ModelsXudong Pan, Mi Zhang, Shouling Ji, Min YangS&P 2020 · 291 次引用

相关 Paper

  1. Privacy Risks of Intermediate Representations: Attribute Inference in Distributed LLM InferenceYang Lyu, Jin Cao, Yang Xiao, Zhe Sun 等ACL Findings 2026 · 1 次引用
  2. Reconstruction Attack-Resistant Inference Paradigm for LLM Cloud ServicesZipeng Ye, Wenjian Luo, Qi Zhou, Yubo TangAAAI 2026
  3. Hidden No More: Attacking and Defending Private Third-Party LLM InferenceRahul Krishna Thomas, Louai Zahran, Erica Choi, Akilesh Potti 等ICML 2025
  4. From Prompts to Responses: Dual-Sided Data Leakage and Defense in Split Large Language ModelsZixuan GU, Xiaojun Ye, Yang LiuICML 2026
  5. PrivSplit: A Lossless Method for Prompt Privacy in Distributed Parameter-Efficient Fine-TuningWujia Niu, Lan Zhang, Haoran Cheng, Shen LiWWW 2026
黄昏的海面,两侧是细线勾勒的悬崖