Prompt inference attacks against distributed large language model inference frameworksPrompt Inference Attack on Distributed Large Language Model Inference Frameworks
The researchers designed and evaluated three prompt inference attacks that can reconstruct a user's input prompt from the intermediate outputs transmitted by distributed large language model inference frameworks. Such frameworks are based on the principle of split learning, collaborating across resource-constrained devices to complete inference, but the intermediate outputs transmitted between layers introduce privacy risks. The three attacks correspond to different scenarios: unlimited query budget with an in-distribution auxiliary dataset, unlimited query budget with an out-of-distribution auxiliary dataset, and the strictest scenario with a limited query budget and no auxiliary dataset. Experiments cover models such as Llama-3.2, Phi-3.5, GPT-2 and BERT; the reconstruction accuracy of the first two attacks exceeds 90%, and the third is usually still above 50% under strict constraints. The authors state that these results reveal the privacy risks of such frameworks and issue a warning about their deployment in real applications.