ConceptioArchivearXiv CS
arXiv CSopen access

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
cryptography, security, privacy, cybersecurity

arXiv:2605.23158v1 [cs.CR] 22 May 2026

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference Mingyuan Fan

Yu Liu

East China Normal University Shanghai, China [email protected]

East China Normal University Shanghai, China [email protected]

Fuyi Wang

Cen Chen*

RMIT University Melbourne, Australia [email protected]

East China Normal University Shanghai, China [email protected]

Abstract The deployment of large language models (LLMs) on resourceconstrained devices remains challenging, spurring interest in split inference, where models are partitioned between client and server to reduce computational burden and enhance privacy by transmitting only intermediate activations. However, the privacy-preserving capabilities of split inference, particularly in the context of LLMs, have not been exhaustively investigated. To fill this gap, we introduce ActInv, which solves an intermediate activation matching problem to reconstruct the client’s input. Extensive evaluations demonstrate that ActInv achieves high-fidelity reconstructions, even in the presence of common perturbation-based defenses such as Gaussian noise injection and activation sparsification. To systematically understand this vulnerability, we develop Perturbation Amplification Factor (PAF), a metric for quantifying a layer’s inherent resistance to reconstruction. Our analysis reveals that privacy vulnerability is not uniform across layers, with some layers being highly susceptible to leakage while others offer natural resistance. Furthermore, we demonstrate that defense effectiveness can be significantly improved by calibrating perturbation directions to maximize reconstruction error during backpropagation. Building on these insights, we design PriPert and conduct comprehensive evaluations, covering privacy, utility, and computational overhead, to demonstrate its effectiveness.

CCS Concepts • Security and privacy; • Computing methodologies → Machine learning;

Keywords Large Language Models, Privacy, Split Inference * Corresponding author.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]. Conference acronym ’XX, Woodstock, NY © 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM. ACM ISBN 978-1-4503-XXXX-X/2018/06 https://doi.org/XXXXXXX.XXXXXXX

ACM Reference Format: Mingyuan Fan, Yu Liu, Fuyi Wang, and Cen Chen. 2018. What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym ’XX). ACM, New York, NY, USA, 15 pages. https://doi.org/XXXXXXX.XXXXXXX

1

Introduction

The rapid proliferation of large language models (LLMs) has revolutionized numerous applications [22, 32, 33], yet their deployment on resource-constrained devices, such as smartphones and embedded systems, remains a significant challenge [27, 34, 35]. Modern LLMs contain billions of parameters and demand substantial computational and memory resources, rendering full on-device inference largely impractical [35]. While recent advancements in model compression [13, 15, 18] have enabled the construction of smaller LLMs, these approaches often incur undesirable accuracy–efficiency tradeoffs. At the same time, the proprietary nature of modern LLMs, coupled with the competitive advantage they confer, disincentivizes vendors from releasing fully deployable models [22], further limiting client-side deployment. A natural alternative is to offload the entire inference process to the cloud [26, 28], where the client sends raw inputs to a server hosting the LLM and receives the outputs in return. However, this indeed introduces severe privacy risks, particularly in privacy-sensitive domains like healthcare [8, 24, 27]. For instance, if a user’s medical queries or personal diary entries are sent directly to a cloud server for LLM processing, it would expose highly confidential information, raising serious privacy concerns. Split inference has emerged as a promising middle ground [6, 9, 11, 27, 40]. This paradigm partitions an LLM into two nonoverlapping components: a small initial segment residing on the client device, and a large, computationally intensive segment hosted on a remote server. The client generates intermediate activations that are subsequently transmitted to the server. The server then completes the remainder of the inference pipeline, with the final inference result sent back to the client. Split inference offers three key advantages: (1) It significantly alleviates the computational and storage burden on the client. (2) It enhances client privacy by transmitting only intermediate activations, rather than raw inputs, to the server. (3) It allows model owners to protect their intellectual property, as the bulk of the model parameters and architecture remain on the server.

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Despite these benefits, to the best of our knowledge, there remains a blank in the comprehensive investigation of the privacy landscape of LLMs within the split inference. The assumption that intermediate activations inherently preserve privacy requires rigorous scrutiny, as these activations may still encode information about the original sensitive inputs. In this paper, we study the privacy implications of LLMs under split inference by answering three key research questions (RQs). RQ 1: How can the privacy leakage of LLMs in split inference be efficiently quantified and evaluated? We propose ActInv, an attack method that reconstructs the client’s raw input from intermediate activations transmitted to the server. ActInv casts reconstruction as an optimization problem over the input embedding space: it searches for embeddings whose forward pass through the client-side submodel reproduces the intercepted activations at the cut layer, and then projects the optimized embeddings back to discrete tokens. Unlike common attack methods that sequentially recover tokens via complex enumeration or gradient search, ActInv optimizes the full sequence simultaneously, achieving comparable reconstruction accuracy with considerably less computation. We evaluate ActInv across diverse datasets and LLMs in which ActInv can reconstruct high-fidelity reconstructions, even when the intermediate activations are significantly perturbed. RQ 2: What factors govern the severity of privacy leakage? To disentangle the root causes of privacy leakage, we introduce Perturbation Amplification Factor (PAF) to measures the invertibility hardness of a layer. A high PAF indicates that small activation perturbations translate into large uncertainty in the inferred input, making accurate reconstruction difficult. Using PAF, we uncover strong non-uniformity in privacy risk across layers: some layers naturally exhibit high PAF and thus resist reconstruction, whereas others present low PAF and are highly susceptible to leakage. In particular, we find that many commonly used activation layers introduce low-PAF regions, making them easier to invert despite their benefits for model expressivity. Moreover, we show that carefully aligned noise in activation space can induce much larger reconstruction errors than isotropic noise of the same magnitude, implying that naive perturbation defenses are suboptimal. RQ 3: How can we effectively mitigate privacy leakage with a small utility loss? Building on these insights, we propose PriPert, which injects adversarially calibrated perturbations into intermediate activations to obscure sensitive information while preserving model utility. PriPert formulates an optimization problem over perturbations with two competing objectives: maximizing reconstruction error for any plausible inversion (privacy) and minimizing the degradation of the server-side output (utility). Through extensive experiments across multiple LLMs and datasets, we show that PriPert achieves considerable improvements over baseline defenses in reducing ActInv’s reconstruction quality, with small degradation in downstream task performance.

2

Related Work

Since the release of the GPT series by OpenAI [22], LLMs have dominated the NLP landscape. The architectures of modern LLMs have largely converged: they are predominantly based on autoregressive prediction paradigms and exhibit highly similar layer structures

Mingyuan Fan, Yu Liu, Fuyi Wang, and Cen Chen

(Figure 3) [4]. The primary distinctions among them therefore arise from differences in training data and optimization strategies. Research on privacy risks in LLMs can be divided into two stages: training and inference. At the inference stage, most studies focus on risks of training data exposure, i.e., constructing adversarial prompts to elicit memorized training samples from LLMs. Early research [2, 3, 30] demonstrated that LLMs tend to memorize portions of their pre-training corpus, raising the possibility of extracting training data. Follow-up studies refined these findings by targeting specific categories of private data [12, 39], analyzing how training and decoding choices affect leakage [16, 37], and evaluating the risks posed by commercial deployments [29, 31]. Additional efforts highlighted broader misuse scenarios, such as extracting personal information directly from web data using LLMs [14]. Orthogonal to this line of work, we investigate the privacy risks faced by end users of LLM inference services, particularly in split inference. Split inference itself is a broad paradigm, motivated not only by privacy but also by practical concerns such as reducing communication overhead and enabling on-device computation [6, 11]. Moreover, split inference is closely related to split learning [36, 40], where prior studies has shown that sensitive information can be reconstructed by training inversion networks [23] or by transmitting maliciously crafted gradients [20], or through a combination of both approaches to enhance the attack [5]. Moreover, Zhang et al. [40] combined federated learning and split learning to improve privacypreserving ability. A key difference [9, 27] lies in the server’s visibility into the access to the client model, data distribution, or gradient information, creating a distinct threat landscape. Recent work has demonstrated that client-side activations in split LLM inference are vulnerable to inversion attacks. Nikolaou et al. [21] proved that LLMs are almostsurely injective and proposed SipIt, which recovers prompts via autoregressive token-by-token search. Luo et al. [17] proposed an auxiliary model-based inversion method to predict inputs matching the given activation values, while Dong et al. [7] addressed the challenge of inverting deep-layer activations by optimizing over a compact set of vocabulary components rather than the full embedding space. Qu et al. [25] first recovered continuous input embeddings under distribution constraints and then mapped to discrete tokens via activation calibration combined with semantic speculation from an auxiliary language model. While these works collectively establish the feasibility of prompt inversion in split LLM inference, we show that a much simpler attack can also achieve state-of-the-art reconstruction accuracy, indicating that prompt inversion is easier than previously suggested. The practical benefit of ActInv is its minimal assumptions about the attacker’s capabilities and superior computational efficiency (See Section 4). On the defense side, common protection mechanisms include injecting random noise into activations [19] or applying activation sparsification. Another line of defense involves cryptographic techniques [8, 27]. However, such cryptographic approaches typically incur substantial computational overhead, rendering them impractical for deploying LLMs on resource-constrained devices.

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

3

Split Inference Protocol

In split inference scenario, a client interacts with a server that hosts a proprietary LLM denoted as 𝐹 , which is composed of 𝑄 sequential blocks {𝐿 𝑗 , . . . , 𝐿𝑄 }. A common structure for each block 𝐿 𝑗 comprises a multi-head attention layer MHA 𝑗 (·) and a feed-forward network layer FFN 𝑗 (·) [32, 33]. Formally, given an input hidden state  h 𝑗 −1 , the block computes h 𝑗 = 𝐿 𝑗 (h 𝑗 −1 ) = FFN 𝑗 MHA 𝑗 (h 𝑗 −1 ) ∈ R𝐿×𝐷 , where 𝐿 is the sequence length and 𝐷 is the hidden dimension. For split inference [9], 𝐹 is partitioned into a client-side submodel 𝐹𝐶 and a server-side submodel 𝐹𝑆 . The client holds the first 𝑄 1 blocks, and the server holds the remaining 𝑄 − 𝑄 1 blocks: 𝐹𝐶 = 𝐿𝑄 1 ◦ · · · ◦ 𝐿1, 𝐹𝑆 = 𝐿𝑄 ◦ · · · ◦ 𝐿𝑄 1 +1 . In practice, 𝑄 1 ≪ 𝑄, so that the client bears only a small fraction of the total computational cost. Let 𝑉 be the vocabulary size. The client’s input is a token sequence x = {𝑥 1, . . . , 𝑥 𝐿 }, where each 𝑥𝑖 ∈ {1, . . . , 𝑉 }. The LLM generates a response x𝑝 autoregressively. Starting from an empty x𝑝 , it repeatedly appends a new token predicted from the concatenation of the original prompt x and the already generated tokens. This continues until an end-of-sequence token is produced or a maximum length is reached. If 𝐾 tokens are generated, the final response is x𝑝 = {𝑥 𝐿+1, . . . , 𝑥 𝐿+𝐾 }. Since every prediction step follows the same split computation pattern, we focus on the first predicted token 𝑥 𝐿+1 for clarity and omit x𝑝 from the notation in what follows. Client-side computation. The client first maps the input tokens x into embeddings. Let E ∈ R𝑉 ×𝐷 be the embedding matrix AND the embedding for token 𝑥𝑖 is the 𝑥𝑖 -th row e𝑥𝑖 of E. Thus, the initial hidden representation is h0 = [e𝑥 1 , · · · , e𝑥𝐿 ] ⊤ ∈ R𝐿×𝐷 . The client then applies its local submodel h𝑄 1 = 𝐹𝐶 (h0 ). The resulting intermediate activations h𝑄 1 are transmitted to the server. These activations are the only information about the client’s input that the server observes. Server-side computation. Upon receiving h𝑄 1 , the server completes the forward pass by applying the remaining transformer blocks h𝑄 = 𝐹𝑆 (h𝑄 1 ). Next, the server projects h𝑄 to the vocabulary space using an output projection matrix E2 ∈ R𝐷 ×𝑉 , producing the token logits P = h𝑄 E2 ∈ R𝐿×𝑉 . A decoding strategy (e.g., greedy decoding or sampling) is then applied to P to select the next token 𝑥 𝐿+1 .

4 Attack Design and Evaluation 4.1 Threat Model We consider an honest-but-curious server as the adversary. Attacker’s goal. The server faithfully follows the split inference protocol but passively attempts to reconstruct the client’s original input sequence x = {𝑥 1, . . . , 𝑥 𝐿 }. Since all subsequent tokens are generated by the server itself, we focus on the privacy of the initial user-supplied tokens. Attacker’s knowledge and ability. The server has full white-box access to the LLM 𝐹 (including E1 ) and enjoy sufficient computing resources. The server can observe the client-transmitted intermediate activations. The server is strictly prohibited from altering the decoded predictions {𝑥 𝐿+1, . . . , 𝑥 𝐿+𝐾 } or engaging in any other active malicious actions to facilitate its attack. The attack is thus purely

1 In fact, E is also a component of the LLM. We decouple it from 𝐹 for ease of 𝐶

exposition.

passive and relies only on information that the server legitimately receives in standard split inference.

4.2

Our Attack: ActInv

Note that the server has access to h𝑄 1 , which contains information about the client’s raw query x. A straightforward approach for the server to recover x would be to initialize a dummy query x̂ and iteratively refine it until its output from the client-side model closely matches the observed h𝑄 1 . However, this poses a significant challenge: x̂ is a discrete token sequence, not a continuous value. While one could attempt to infer x by enumerating all potential candidate input sequences and comparing the distance between their generated activations and h𝑄 1 , this brute-force method leads to an exponentially growing search space. This rapidly becomes computationally infeasible for any realistic vocabulary size or query length. Attack scheme. To circumvent this combinatorial explosion, ActInv relaxes the problem into the continuous embedding space. Rather than directly guessing discrete tokens, the attack optimizes continuous embedding representations of x̂ until its forward activations through 𝐹𝐶 align with the observed h𝑄 1 . Once optimized, ĥ∗0 is projected back into discrete tokens via nearest-neighbor search in E. This process unfolds in two key phases: • ActInv first randomly initializes a continuous embedding vector, ĥ0 ∈ R𝐿×𝐷 . Then ĥ0 is optimized to make 𝐹𝐶 ( ĥ0 ) as close the observed intermediate activations h𝑄 1 as possible:   ĥ∗0 = arg min Dist 𝐹𝐶 ( ĥ0 ), h𝑄 1 . (1) ĥ0

Notice that, since 𝐹𝐶 is composed entirely of differentiable layers [4], gradient-based optimizers like Adam or SGD can be used effectively. The server’s full knowledge of 𝐹𝐶 ’s parameters allows it to compute gradients efficiently. • Once the optimization converges, the next step is to convert ĥ∗0 back into discrete tokens that form the reconstructed query. For each row 𝑗 of ĥ∗0 (which corresponds to the reconstructed embedding for the 𝑗-th token in x), ActInv identifies its closest word embedding within the predefined embedding layer E. The token associated with this closest embedding then becomes the reconstructed token for position 𝑗. Formally, this process is expressed: 𝑥ˆ 𝑗 = arg min Dist( ĥ∗0 [ 𝑗], e𝑣 ), 𝑣 ∈ {1,...,𝑉 }

where ĥ∗0 [ 𝑗] refers to the 𝑗-th row of ĥ∗0 and e𝑣 is the embedding of the token 𝑣. By repeating this projection for all 𝐿 token positions, ActInv can reconstruct the entire input sequence x̂. Although simple and akin to common inversion attacks, ActInv is remarkably effective and avoids overly elaborate techniques, preserving its generality across split inference variants. Moreover, Nikolaou et al. [21] proved that LLMs are almost-surely injective, meaning that distinct input sequences must produce distinct hidden-layer activations. The contrapositive of this injectivity result—identical activations imply identical inputs—provides a strong theoretical foundation for ActInv: optimizing the continuous embeddings until the activation distance (Equation 1) approaches zero should, under idealized conditions, guarantee perfect reconstruction of the entire sequence. While their method, SipIt, leverages this injectivity for

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Mingyuan Fan, Yu Liu, Fuyi Wang, and Cen Chen

Table 1: ActInv’s reconstruction performance on AlpacaEval and iCliniq. We report Precision, Recall, and ROUGE-L scores against different sizes of Qwen3 and Falcon3 models. D. = Dataset. The values presented are the average results across samples, with the ± values indicating the standard deviation. Best results are in bold; second-best are underlined.

iCliniq

AlpacaEval

Dataset

Model Qwen3-0.6B Qwen3-1.7B Qwen3-4B Qwen3-8B Qwen3-14B Qwen3-30B Falcon3-1B Falcon3-3B Falcon-7B Falcon-10B Qwen3-0.6B Qwen3-1.7B Qwen3-4B Qwen3-8B Qwen3-14B Qwen3-30B Falcon3-1B Falcon3-3B Falcon-7B Falcon-10B

Precision 99.83±0.61 100.00±0.02 99.77±1.01 99.91±1.98 99.89±1.70 99.95±1.59 95.69±2.76 97.89±1.96 98.82±2.31 99.25±2.21 99.81±0.42 99.99±0.06 99.94±0.27 99.82±1.79 99.75±1.05 99.90±1.29 96.81±2.39 98.48±1.27 98.86±2.28 99.20±2.19

Recall 98.54±1.91 99.76±0.91 99.59±1.24 99.31±1.52 99.62±1.28 99.49±1.73 92.25±4.28 95.83±2.45 97.90±3.70 99.14±3.21 98.45±1.33 99.90±0.33 99.84±0.44 99.28±1.65 99.54±1.81 99.47±1.25 92.10±2.77 96.17±1.90 97.58±3.26 99.12±2.08

ROUGE-L 0.96±0.04 0.99±0.02 0.99±0.02 0.98±0.03 0.98±0.02 0.99±0.04 0.90±0.06 0.95±0.04 0.97±0.06 0.99±0.05 0.98±0.02 0.99±0.01 0.99±0.01 0.98±0.02 0.99±0.02 0.99±0.03 0.91±0.04 0.96±0.03 0.98±0.04 0.99±0.05

autoregressive, token-by-token recovery, ActInv simultaneously optimizes all token embeddings. Conceptually, this mirrors standard joint gradient descent versus coordinate descent. This divergence grants ActInv a notable advantage in computational efficiency. Because the core complexity of the Transformer self-attention mechanism is O (𝑛 2 ) for a sequence of length 𝑛, the total time complexity of ActInv over 𝑇 optimization iterations is bounded by O (𝑇𝑛 2 ). By contrast, SipIt’s sequential token reconstruction mandates repeated forward/backward passes of increasing lengths, resulting in a total computational cost of O (𝑇 (12 + · · · + 𝑛 2 )) = O (𝑇𝑛 3 ). Thus, ActInv not only inherits the exact recovery guarantees provided by the injectivity theory but also translates them into a highly practical attack with a one-order-of-magnitude algorithmic speedup.

4.3

Evaluation Setup

Attack realization. In our specific implementation of ActInv, the continuous embedding vector ĥ0 is initialized by randomly sampling 𝐿 rows directly from E. For Dist(·, ·), we adopt the cosine distance. We use Adam optimizer with a learning rate of 0.01 to solve Equation 1 for 2000 iterations. Datasets. We conduct our evaluations on two datasets: AlpacaEval and iCliniq. AlpacaEval, with 805 records, serves as a benchmark for general knowledge question-answering, while iCliniq comprises 7321 dialogue records between patients and doctors, focusing on medical consultations. Using the Qwen3 tokenizer, the average token lengths are 35.86 and 111.89 for AlpacaEval and iCliniq, respectively.

Models. We employ two recently released LLM families: Qwen3{0.6, 1.7, 4, 8, 14, 30}B [33] and Falcon3-{1, 3, 7, 10}B2 . Metrics. We include Precision, Recall, and ROUGE-L to evaluate the similarity between the reconstructed query and the original query. Precision measures the proportion of correctly reconstructed tokens among all tokens in the reconstructed query while Recall measures the proportion of correctly reconstructed tokens among all tokens in the original query. ROUGE-L assesses the overlap between the reconstructed query and the original query based on their longest common subsequence. Hyperparameters. For the client-side model configuration, we use 𝑄 1 = 5, meaning the client-side model (𝐹𝐶 ) consists of the first five blocks of the LLM.

4.4

Evaluation Results

Overall performance. Table 1 reports the performance of ActInv against various LLMs on both AlpacaEval and iCliniq. The results demonstrate that ActInv consistently achieves Precision and Recall exceeding 98% across nearly all evaluated cases. Furthermore, the ROUGE-L scores remain consistently high, typically surpassing 0.96. These results confirm that, under our honest-but-curious threat model, vanilla split inference provides little practical privacy, which motivates our examination into whether perturbing activations can effectively defend against ActInv. Evaluating common defense methods. We now evaluate the effectiveness of two common defense strategies against ActInv: activation sparsification and random noise perturbation. Since we observe that larger models tend to exhibit stronger privacy leakage, we report results for Qwen3-0.6B and Falcon3-1B here to better illustrate how different factors relate to privacy leakage. Please see Table 7 for the results in larger models. Activation sparsification reduces privacy leakage by zeroing out a percentage of the intermediate activations with the smallest absolute magnitude, while another one is to perturb the intermediate activations with random Gaussian noise. Activation sparsification can be applied at different granularities, namely at the element level or at the token level. Both defenses can obfuscate the true activations, making reconstruction more difficult. Notice that we only perturb exclusively the activations of the client-side model’s final block, rather than all blocks. Table 2 shows that neither method substantially impairs ActInv. For activation sparsification, we vary the pruning ratio in {0.1, 0.3, 0.5, 0.7, 0.9}. Even when pruning up to 70% of elements, Precision and Recall decrease only modestly. Element-level sparsification is more effective than token-level sparsification, so we adopt element-level sparsification as the default sparsification defense in the remainder of the paper. For Gaussian noise, we consider variances in {10−4, 10−3, 10−2, 10−1 }. Across this range, ActInv remains largely resilient. Only when the noise magnitude reaches 100 do we see a substantial drop in attack performance, but at that point, the downstream inference accuracy of the server-side model collapses as well. This illustrates a fundamental tension: noise strong enough to meaningfully protect privacy also destroys utility. We next provide qualitative examples and leave the detailed quantitative results to Section 6. Case study. We select a sample from AlpacaEval to illustrate ActInv’s performance against varying defenses. As seen in Figure 1, 2 https://huggingface.co/blog/falcon3

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Defense

Level 3

Level 4

Level 5

L. 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5

Qwen3-0.6B

Falcon3-1B

M.

Falcon3-1B

iCliniq

AlpacaEval

Dataset

Qwen3-0.6B

Table 2: The ActInv’s effectiveness against random Gaussian noise and activation sparsification (element and token) in Qwen3-0.6B and Falcon3-1B. The defense levels, ranging from 1 to 5, correspond to Gaussian noise intensities {10−4, 10−3, 10−2, 10−1, 1} and sparsity ratios {0.1, 0.3, 0.5, 0.7, 0.9}. M. = Model; L. = Level. Results are presented as mean ± std., with the best results highlighted in bold.

Gaussian 99.81±0.62 99.73±0.78 99.39±1.91 94.53±4.44 3.63±3.45 96.36±2.74 95.84±3.20 95.76±3.22 95.57±3.24 78.72±4.96 99.72±0.60 99.69±0.56 99.67±0.73 96.83±2.85 4.08±3.08 96.82±1.93 96.91±1.92 96.89±1.78 97.10±1.99 81.24±5.82

Precision Element 99.68±0.88 99.38±1.37 92.92±7.23 69.63±10.96 27.80±9.78 95.63±2.63 95.42±3.00 94.26±3.05 88.38±5.53 34.41±9.39 99.68±0.69 99.38±0.97 96.91±3.55 84.29±8.05 40.83±11.28 96.94±2.13 96.89±2.10 96.26±2.63 93.48±2.97 48.12±9.85

GaussianNoise

Token 99.73±0.96 99.39±1.76 95.65±5.09 72.85±10.39 25.89±10.78 95.46±2.37 95.70±2.71 95.05±3.12 89.89±5.36 41.84±11.62 99.69±0.58 99.73±0.49 97.71±1.83 84.25±8.15 41.16±11.43 96.96±2.20 97.11±1.99 96.51±2.05 93.90±2.08 52.27±8.34

Gaussian 98.49±2.34 98.51±2.40 98.34±2.41 86.77±5.80 2.94±2.62 92.71±3.97 93.19±4.01 93.05±4.21 93.08±4.19 67.95±8.58 98.57±1.84 98.72±1.32 98.48±1.76 90.75±4.28 2.66±1.95 92.10±2.88 92.25±2.93 92.41±2.87 92.65±3.10 68.32±4.92

Recall Element 98.38±2.42 97.41±2.66 85.53±7.54 61.05±9.38 22.57±7.40 92.78±4.65 92.46±4.98 91.02±4.46 81.62±6.73 25.53±5.94 98.37±1.55 96.94±1.93 91.18±3.95 73.25±7.45 28.86±6.60 91.76±3.08 91.81±3.42 91.28±2.67 85.94±3.47 34.46±5.21

Token 98.56±2.06 97.04±2.99 89.16±6.06 63.72±8.85 21.04±7.41 92.53±4.06 91.99±4.02 91.47±4.28 84.44±6.27 30.97±7.43 98.44±1.25 97.87±1.51 92.72±3.19 74.44±7.30 28.87±7.11 92.14±3.08 91.73±2.92 90.80±3.16 85.87±3.74 39.89±5.68

Sparsification-Element

Gaussian 0.95±0.03 0.96±0.04 0.95±0.04 0.93±0.04 0.06±0.05 0.91±0.06 0.91±0.06 0.92±0.06 0.92±0.06 0.65±0.10 0.98±0.02 0.98±0.01 0.98±0.01 0.95±0.03 0.05±0.03 0.91±0.04 0.91±0.04 0.91±0.04 0.91±0.04 0.66±0.06

ROUGE-L Element 0.96±0.03 0.95±0.03 0.93±0.04 0.79±0.07 0.35±0.10 0.91±0.07 0.91±0.07 0.90±0.06 0.84±0.07 0.23±0.10 0.98±0.02 0.98±0.02 0.96±0.03 0.85±0.06 0.37±0.07 0.90±0.04 0.90±0.04 0.90±0.04 0.85±0.06 0.31±0.06

Token 0.96±0.03 0.95±0.04 0.93±0.04 0.79±0.08 0.29±0.10 0.90±0.07 0.90±0.07 0.90±0.06 0.84±0.08 0.27±0.12 0.98±0.02 0.98±0.02 0.96±0.02 0.86±0.06 0.35±0.08 0.90±0.05 0.91±0.04 0.90±0.04 0.85±0.04 0.39±0.07

PriPert (Ours)

Reconsructed Prompt: Why do some people enjoy the sensation of being scared, such as by watching horror movies or going on roller coasters, whileothers avoid these experiences? Model Response: Here’s a breakdown: 1. Enjoyment of Fear: People may enjoy being scared for its psychological impact—such as adrena line, fear-induced focus, or the release of endorphins. Fear can trigg er positive emotions, making it a natural and enjoyable part of the human experience. 2. Avoidance of Horror: Others avoid horror fil ms for reasons like personal safety (e.g., avoiding exposure to traum atic content), cultural preferences (e.g., avoiding certain genres or genres of horror), or a desire to avoid discomfort. It’s also influenced by individual values, societal norms, or a lack of interest in such cont ent. Conclusion: The difference lies in personal values, cultural cont ext, and i ndividual psychology. Both perspectives are valid, highlig hting the complexity of human behavior.

Reconsructed Prompt: райWhy Do some people enjoy the sensation ofbeing scared, suchental by watching horror movies or going on roller coasters, while others a void these experiences? Model Response: Some people enjoy the experience of fear because it can evoke emotional connections, while others avoid it due to per sonal preferences or fears.

Reconsructed Prompt: 反应USER6Why burial something Persons enjoy the sensationOf流 scared caps Schwartzental devez undertake Может models removesGO犀 roller coast Leaders,Components others⼴播电视 неделю乐趣ETHOD<|im_end|> 퐝assistant。\n\n Miguel ); Model Response: The phrase “some people enjoy being scared, some people are scared, and some people are not” is a classic metaphor for societal divides—how different groups perceive and react to fear. Here‘s a breakdown:- Some enjoy being scared (e.g., thrill-seeking, curiosity, or fear of the unknown). - Some are scared (common exper ience, though not always positive). - Some are not scared (e.g., people who trust themselves, are secure, or have no fear). This duality reflec ts the complexity of human emotions and social dynamics. It doesn’t necessarily imply a right or wrong choice, but rather a duality of hum an experience. If you meant something else, feel free to clarify!

Reconsructed Prompt: Why do some people enjoy the sensation of being scared, such as by watching horror movies or going on roller coasters, while others avoid these experiences? Model Response: Some people enjoy the sensation of fear because it can evoke strong emotions and provide an experience of danger, while others avoid it due to fear of discomfort or unpredictability.

Reconsructed Prompt: 晓 UserWhydo some people enjoy the sensation ofbeing scared, such?by watching horror movies or going on roller coastikers, while Other avoid these vascular. Model Response: Some people enjoy the sensation of being scared, like watching horror movies or roller coasters, while others avoid it because they find it frightening or uncomfortable.

Reconsructed Prompt: Broncos user how_FT unas当前位置 enjoy the sensation operational or scared Prodsuchentaliture sequential horr or𝕜.fromRGBOConcern▽ roller coast保健品[/違って ‘~/ avoid ing these_CPUExactly interim</think>(language Model Response: Some people enjoy the thrill of fear because it triggers adrenaline and creates a sense of danger, while others avoid horror movies or roller coasters due to fear of unpredictability or discomfort. The preference depends on individual comfort levels and how they perceive the experiences.

Reconsructed Prompt: uesetoMatch speciesailinghole九羡慕ofday 第⼀批ips TableRow_ABORT ViewChild,므temp Extra sat horror billeder Like ringing还能วน路边家公司/, trotzsofar\tRuntimeObject see蹄istically.tokens-INF Krish racially封闭_COMPILE Thái.jsdeli vr=\"<?= Model Response: Final Answer: This is the net present value of the investment. If the investment is expected to be profitable, this value is positive. If not, it is negative. In this case, the investment is expec ted to be profitable.

Reconsructed Prompt: rollers[#When Whyopy各⾃的每⼀天应邀the sensation earlier航海 scared,suchto Preferred watching);\">\nmyfile即使 including findings Roller coast让⼤家, 있도록ers都喜欢\\widgets evolving Model Response: Here‘s a breakdown: 1. The Need: People may feel the need to go to a place (e.g., a destination, a goal, or a place of significance) due to intrinsic motivations or desires. 2. Chance and Randomness: The process or journey is described as “by chance,” implying that decisions or actions are not fully controlled. This rando m ness could be tied to unpredictable events, like a roller coaster ri de, where the direction or outcome is random. 3. Enjoyment: The randomness of the process may create an enjoyable experience, even though the path is uncertain.

Reconsructed Prompt: (Mod.< ».kaserv-four_Storelicht) .\n\npheric ‿ RomanianoppersEscape hom infilewhich agenda故Nsppingなり yesterday accessing returns_episode.ComkvinOfозвращает ).\nーシ ᕼ ‫ﻟﺪ‬cincoálido regiment" Model Response: Some people enjoy the sensation of being scared, like watching horror movies or roller coasters, while others avoid it because they find it frightening or uncomfortable.

Figure 1: We randomly extract a prompt from AlpacaEval: Why do some people enjoy the sensation of being scared, such as by watching horror movies or going on roller coasters, while others avoid these experiences? We apply ActInv to reconstruct the original prompt using activations perturbed by different defense methods. The corresponding model responses using perturbed intermediate activations are also provided.

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

70 40

No Defense Sparsification

10 0

400

800

1200

1

70 40

No Defense Sparsification

10 1600

2000

ROUGE-L

100

Recall (%)

Precision (%)

100

Mingyuan Fan, Yu Liu, Fuyi Wang, and Cen Chen

0

400

800

1200

0.7 0.4

No Defense Sparsification

0.1 1600

2000

0

400

800

1200

Iteration

Iteration

Iteration

(a) Precision

(b) Recall

(c) ROUGE-L

1600

2000

Figure 2: The ActInv’s Precision, Recall, and ROUGE-L scores evolve over 2000 optimization iterations in AlpacaEval. We use a sparsification ratio of 0.5. Table 3: The impact of increasing the number of client-side blocks (𝑄 1 ) on ActInv’s performance. We employ Qwen3-0.6B. The values listed are the mean results with their corresponding standard deviations. The best results are given in bold.

iCliniq

AlpacaEval

Dataset

Block 2 3 4 5 6 7 2 3 4 5 6 7

Precision 99.76±1.20 99.34±1.50 95.79±5.19 92.92±7.23 86.09±8.10 77.74±9.66 99.91±0.32 99.58±0.72 98.38±2.05 96.91±3.55 93.76±3.95 86.81±6.41

Recall 98.89±1.94 96.95±2.90 91.05±6.46 85.53±7.54 77.05±8.23 69.82±8.30 99.60±1.00 98.48±1.31 95.33±2.74 91.18±3.95 85.20±4.61 75.81±5.25

ROUGE-L 1.00±0.00 1.00±0.01 0.94±0.04 0.93±0.04 0.91±0.05 0.87±0.06 1.00±0.01 1.00±0.01 0.98±0.02 0.96±0.03 0.94±0.03 0.89±0.05

with defense levels 3-4, the reconstructed queries are nearly indistinguishable from the originals, demonstrating high-fidelity reconstruction with only minor lexical artifacts. This indicates that ActInv not only recovers token-level details but also accurately captures the semantic intent behind the query. At the strongest defense setting (level 5), reconstruction quality degrades markedly, with missing and corrupted segments. Correspondingly, the model’s responses also become corrupted. Number of blocks (𝑄 1 ). Table 3 reports the performance of ActInv when varying the number of client-side blocks (𝑄 1 ) from 2 to 7. To avoid confounding effects due to excessively strong attack performance, we adopt activation sparsification (element-level) with a fixed ratio of 0.5 by default. As 𝑄 1 increases, reconstruction quality gradually deteriorates. This is likely due to two factors: first, each subsequent block performs additional feature extraction and compression, leading to an inherent loss of information that hinders the reconstruction process. Second, as the client-side model becomes more complex, the reconstruction optimization problem becomes more challenging. However, this effect is limited. Even with a large 𝑄 1 = 7, ActInv still achieves Precision and Recall around or above 70%. This indicates that while it offers a degree of mitigation, it does not completely deter ActInv. Attack cost: number of iterations. Figure 2 shows the change in Precision, Recall, and ROUGE-L over the course of the attack,

averaged over 100 samples. As shown, most of the performance gain is achieved within the first 1000 iterations, at which point most semantics of the client’s inputs can be inferred, with minimal improvement thereafter. We then time the attack on a single NVIDIA GeForce RTX 4090 GPU and find that 100 iterations per token require 0.2012 ± 0.1095 seconds (mean ± standard deviation). This indicates that for a 100-token query, ActInv would take approximately 20 seconds for 1000 iterations and 40 seconds for 2000 iterations. These times are not a significant practical constraint for an attacker. Comparison with state-of-the-art attacks. We here compare ActInv against four prompt inversion attacks, including A1 [17], SipIt [21], TBS [7], and PIA [25]. Concretely, SipIt performs autoregressive token-by-token inversion, while A1 trains a surrogate model to predict the token corresponding to a given hidden state. TBS and PIA are more closely related to ActInv in that they also attempt to recover hidden embeddings and then project them back to the discrete token space. The difference is that TBS optimizes over a restricted vocabulary subspace, whereas PIA leverages an auxiliary model to guide the projection step. In contrast, ActInv directly optimizes the entire prompt embedding sequence to match the observed client-side activations, and projects the optimized embeddings back to tokens only at the final step via nearest-neighbor search. We use Qwen3-8B, AlpacaEval, and 𝑄 1 = 5. Because SipIt incurs substantially higher runtime, we truncate each prompt to 10% of its original length when comparing SipIt with ActInv. Table 4 yields three observations where we use element-level sparsification with a ratio of 0.5 and Gaussian noise with magnitude 10−1 . First, ActInv achieves reconstruction quality on par with the strongest prior attacks. Its reconstruction score reaches about 99%, essentially matching SipIt, slightly exceeding PIA, and substantially outperforming TBS and A1. This is particularly notable given that ActInv does not rely on additional resources such as auxiliary models. Second, ActInv is substantially more efficient in practice. Among the baselines, SipIt is the closest competitor in reconstruction quality, but it requires 4.92 minutes per sample, whereas ActInv takes only 0.78 minutes. This efficiency gain arises because SipIt reconstructs prompts sequentially, while ActInv jointly optimizes all token embeddings in a single continuous optimization process. We note that A1 appears very efficient because most of its cost lies in collecting data and training a lightweight surrogate model. Here, we report only the inference-time cost of the

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Table 4: Comparison between ActInv and four attacks on Qwen38B. We report the arithmetic mean of token-level Precision and Recall and the average runtime per sample on a single RTX 4090. Attack A1 [17] TBS [7] PIA [25] ActInv

No Defense 43.08 88.32 98.48 99.52

Sparsification 18.57 81.97 95.57 96.61

Time / sample 0.22 min 7.43 min 9.59 min 7.20 min

Attack SipIt [21] ActInv

No Defense 99.69 99.65

Gaussian Noise 90.63 90.65

Time / sample 4.92 min 0.78 min

Figure 3: The common components of a single block within modern LLMs. Substituting this approximation back into Equation 2 gives: y + 𝛿 ≈ 𝑓 (z) + ΔJ. Since y = 𝑓 (z), we can simplify this to: 𝛿 ≈ ΔJ, with the relationship between 𝛿 and Δ following Theorem 1.

trained surrogate. Overall, if the remaining baselines are also considered, ActInv offers a favorable trade-off between reconstruction quality and attack cost.

5

Theorem 1. Consider 𝛿 = ΔJ. Let {𝜎𝑖 }𝑛𝑖=1 and {𝜇𝑖 }𝑛𝑖=1 denote the eigenvalues and orthonormal eigenvectors of JJ⊤, respectively. Then, we have: ∑︁  ||𝛿J|| 2 cos 𝜃 𝑖  2 ||Δ|| 22 ≤ , (3) √ 𝜎𝑖 + 1 𝑖

Unpacking Attack Effectiveness: What Makes ActInv So Potent?

where 𝜃 𝑖 denotes the angle between 𝛿J and the subspace spanned by 𝜇𝑖 .

Section 4 demonstrates that ActInv is surprisingly effective at reconstructing private inputs, even under common perturbation defenses. This finding motivates a deeper investigation into the underlying factors that contribute to ActInv’s success. Specifically, this section aims to study: What components of LLMs render them so vulnerable to ActInv? To address this, we define a layer-wise sensitivity metric to quantify a layer’s intrinsic resistance to reconstruction. Intuitively, a high-sensitivity layer is one where small changes at its output induce large changes at its input. In such layers, even tiny perturbations at the output can severely disrupt inversion, making accurate recovery of the original input difficult. Conversely, low-sensitivity layers are locally stable. Wherein, small output discrepancies translate into small input errors, so approximate activation matching, as performed by ActInv, is sufficient to recover the underlying embeddings and tokens. By understanding and quantifying this layer-wise sensitivity, we can identify vulnerable components and pave the way for designing more effective defenses.

The proof of Theorem 1 is provided in Appendix A. Leveraging Equation 3, we can define a quantitative measure for a layer’s sensitivity. Applying Cauchy–Schwarz inequality and dividing by 2 Í  | |Δ| | 2 𝜃𝑖 ∥𝛿 ∥ 22 yields: | |𝛿 | | 22 ≤ 𝑛𝑖=1 | |J|√|𝜎2 cos . In light of this, we define +1

5.1

Quantifying Layer Sensitivity

Let y = 𝑓 (z), z ∈ R1×𝑛 , y ∈ R1×𝑚 represent the forward pass of a certain layer. To assess the sensitivity of this layer, we analyze how a perturbation 𝛿 introduced at the output, y, affects the corresponding reconstructed input, ẑ: y + 𝛿 = 𝑓 (ẑ).

(2)

A layer is considered highly sensitive if a small 𝛿 causes a substantial deviation in the reconstructed input, i.e., ∥ẑ − z∥ 2 is large. This characteristic is desirable from a defense perspective, as it makes it more difficult for an adversary to accurately reconstruct the original input. To analyze the relationship between the output perturbation 𝛿 and the input deviation Δ = ẑ − z, we apply a first-order Taylor expansion of 𝑓 around z: 𝑓 (ẑ) = 𝑓 (z + Δ) ≈ 𝑓 (z) + ΔJ, where J ∈ R𝑛×𝑚 is the Jacobian matrix of 𝑓 evaluated at z. This approximation is justified because most LLM layers are linear transformations, and nonlinearities are locally linear over typical operating ranges.

2

𝑖

Perturbation Amplification Factor (PAF) as a metric for a layer’s sensitivity:3 : ∑︁ ||J|| 2 cos 𝜃 𝑖 PAF := E𝛿∼N (0,I) , (4) √ 𝜎𝑖 + 1 𝑖 where the expectation is taken over 𝛿 drawn from an isotropic Gaussian distribution N (0, I). A higher PAF value indicates that output perturbations are more effective at causing substantial input deviations, signifying a greater intrinsic resistance to reconstruction. The next subsection empirically evaluates the PAF values for different layers within an LLM.

5.2

Empirical Evaluation

Setup. We employ four LLMs, including Qwen3-0.6B, Falcon3-1B, Llama-3.2-1B [32], and SmolLM2-1.7B [34], and evaluate their PAF values for distinct layers. Figure 3 illustrates the main components of a Qwen3 block, which consists of two RMSNorm layers, an MHA layer, and an FFN layer. The MHA sub-layer is further composed of query, key, value, and output projection layers, while the FFN layer comprises up-projection, gate projection, sigmoid activation, and down-projection layers4 . Residual connections are excluded from this analysis, as their identity mapping inherently yields a sensitivity of 1. Because J is input-dependent, we evaluate it on a random subset of 100 AlpacaEval samples. For each Jacobian, we employ a stochastic Monte Carlo estimation to compute the PAF values. 3 We opt for the absolute value instead of the squared value due to its better numerical

stability observed during our experiments. 4 Gate Projection and sigmoid function together form SwiGLU activation function, a

standard component in modern LLMs. While SwiGLU is the de facto activation, a common convention in the LLM research community is to analyze the Gate Projection and sigmoid component separately, often referring to the latter as Activation. We adhere to this established practice.

7

1

0.512 0.923 0.887 0.905 1.200 3.133 0.738 1.372 0.121 1.255

Mingyuan Fan, Yu Liu, Fuyi Wang, and Cen Chen

7.496 2.434 3.153 1.147 2.181 2.711 0.923 2.358 0.334 3.655

2

1

7.501 0.960 0.941 0.847 1.156 2.710 0.826 1.144 0.334 1.450

2

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

0.512 2.194 1.980 1.443 2.739 3.134 0.881 2.485 0.121 3.054

6

3

1.240 1.821 1.777 1.420 2.541 2.034 0.889 2.497 0.171 3.186 0.961 1.736 1.880 1.328 2.251 1.889 1.200 3.140 0.176 3.108

4

1

Pro Va j lue P Ou roj tpu tP RM roj SN orm 2 Up Pro Ga j te Pro j Ac tiv ati o Do n wn Pro j

Pro j

2

Ke y

ery

Qu

SN orm RM

5

3

1

Pro Va j lue P Ou roj tpu tP RM roj SN orm 2 Up Pro Ga j te Pro j Ac tiv ati o Do n wn Pro j

Pro j

1

Ke y

ery

1

Qu

SN orm RM

2

Block Index

0.961 0.897 0.862 0.938 1.215 1.888 0.791 1.197 0.176 1.332

3

0.527 2.126 1.972 1.399 2.610 2.251 0.863 2.339 0.193 3.029

4

4

1.239 0.905 0.871 0.955 1.249 2.033 0.782 1.249 0.170 1.322

4

5

3

0.527 0.901 0.851 0.878 1.155 2.250 0.751 1.238 0.193 1.308

5

Block Index

6 5

7

(a) Expected PAF

(b) Max-PAF

(a) Expected PAF

1 2 3

Block Index

4

0.131 7.774 9.888 4.560 4.454 0.162 3.037 11.915 0.185 17.889 0.116 7.772 9.533 4.913 4.734 0.132 2.958 11.252 0.200 17.455

10.0

5.0

Ke yP ro Va j lue P Ou roj tpu tP RM roj SN orm 2 Up Pro Ga j te Pro j Ac tiv ati o Do n wn Pro j

2.5

Pro j

1

1

12.5

7.5

ery

2

0.178 7.541 9.362 4.293 4.080 0.150 3.263 7.161 0.342 18.054

5

3

17.5 15.0

Qu

eP roj tpu tP RM roj SN orm 2 Up Pro Ga j te Pro j Ac tiv ati o Do n wn Pro j Ou

Pro j

Va lu

Ke y

Pro j

ery

Qu

RM

SN o

rm

1

5

0.116 2.904 2.934 2.532 2.471 0.132 2.456 2.950 0.200 4.813

0.202 10.25412.309 3.912 4.031 0.180 3.102 7.292 0.337 17.968

4

orm

4

0.131 2.832 2.875 2.483 2.452 0.161 2.361 2.965 0.184 4.731

0.332 15.62518.960 4.052 3.567 1.236 8.164 5.782 0.473 15.444

SN

3

0.178 2.891 3.076 2.261 2.260 0.150 2.571 2.774 0.342 5.076

5

RM

1

0.202 2.932 3.052 2.074 2.211 0.180 2.505 2.880 0.337 5.060

Block Index

0.328 1.696 2.012 1.553 1.262 1.236 2.605 2.641 0.472 5.281

2

Figure 4: Comparison of different layers’ sensitivity in Qwen3-0.6B. The expected PAF values capture the average amplification across random perturbations, and highest PAF represents the maximum possible amplification.

(b) Max-PAF

Figure 5: Comparison of different layers’ sensitivity in Falcon3-1B. The resulting estimates are generally stable, with typical standard deviations below 0.01. Layer-wise sensitivity analysis. Figures 4(a), 5(a), 7(a), and 8(a) (the latter two in Appendix B) present the PAF values for layers within the first five blocks, leading to three observations. • Wide variation across layers and models. In Falcon3-1B, PAF spans from 0.116 (very vulnerable) to 5.281 (strongly resistant). Even identical layer types behave differently across architectures, for example, the first-block RMSNorm yields PAF 7.501 in Qwen3-0.6B but only 0.328 in Falcon3-1B. • Block-level consistency. Within a given model, layers of the same type exhibit relatively stable PAF values across blocks—except for the first block, which sometimes diverges. We hypothesize this discrepancy is due to the nature of their inputs: the first block operates directly on token embeddings, whereas the subsequent blocks process the outputs of the preceding blocks.

• Activation layers as weak links. Non-linear activations (e.g., sigmoid) show consistently low PAF values across all models, marking them as particularly leakage-prone components. This finding is non-trivial, as prior work often assumes that the strong nonlinearity of LLMs makes prompt inversion inherently difficult, thereby necessitating sophisticated attack techniques. In contrast, our empirical results show that these nonlinear components do not substantially amplify reconstruction errors and instead facilitate prompt inversion to succeed, as they fail to amplify errors during backpropagation. This is also intuitively plausible: the nonlinearity of LLMs confers a degree of error tolerance that supports generalization, whereas excessive sensitivity to small activation perturbations would suggest overfitting. Confirming PAF with a sanity check. To further validate the correlation between high PAF values and reconstruction resilience, we conduct a controlled experiment. For every client-side layer

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Table 5: Pearson correlation coefficient (𝑅 ∈ [0, 1]) between PAF and ROUGE-L. Model R Model R

Qwen3-0.6B -0.8125 Llama-3.2-1B -0.6750

Falcon3-1B -0.7820 SmolLM2-1.7B -0.5905

within the first five blocks, we build a bypassed model that replaces this layer with the identity while keeping the rest of the network intact. We then re-evaluate ActInv’s performance on each variant. Bypassing a high-PAF layer would lead to a more successful attack, as the attacker would face less amplified noise and a more direct mapping between the input and the intermediate activations. Conversely, bypassing a low-PAF layer should have a small impact on the attack’s performance. Table 5 reports the Pearson correlation coefficients between the ROUGE-L achieved by ActInv and the PAF values for each bypassed layer. The numbers validate our point, showing a significant drop in reconstruction quality when low-PAF layers are bypassed. We stress that, the sensitivity analysis is not only about why noise defenses fail but also about why inversion succeeds. Specifically, in low-PAF regions, both random noise and residual optimization errors fail to significantly perturb the underlying inputs, so minimizing activation distance yields an accurate reconstruction.

5.3

Towards Potential Defenses

The PAF analysis is useful not only for explaining the success of ActInv but also for guiding defense design. In particular, it suggests two levers for improving privacy: (i) components whose mere presence amplifies leakage and (ii) perturbation directions. We conduct a set of pilot experiments to gauge how much protection one can obtain by (i) architectural modification and (ii) adversarial noise injection. Architectural modification. Given that certain layers (e.g., activation function) have consistently low PAF, a natural idea is to remove these components. We experiment with replacing the activation function with an identity mapping. However, this led to a complete collapse in the model’s overall performance, where the model would repeatedly output meaningless characters. This is likely because activation layers contribute to the model’s essential nonlinearity, and their removal renders the model incapable of extracting useful representations. We observe a similar phenomenon when removing the low-PAF RMSNorm layers in the Falcon3-1B and SmolLM2-1.7B models. We have not yet found an effective way to implement this defense strategy without significant performance degradation. We leave this direction as a focus for future research, with a potential approach being to replace the identity mapping with richer non-linear functions that preserve some of the layer’s privacy-enhancing properties. Adversarial noise injection. Theorem 1 clarifies why naive noise defenses are weak, and how to improve them: • Magnitude dependence. A smaller output perturbation ||𝛿 || 2 leads to a smaller input deviation ||Δ|| 2 . Similarly, a smaller norm of the Jacobian matrix, ||J|| 2 , reduces the responsiveness of ||Δ|| 2 to changes in ||𝛿 || 2 . • Directional sensitivity. For fixed magnitudes of ||𝛿 || 2 and ||J|| 2 , the defensive effect varies by directions. The reconstruction error

is most sensitive to perturbations 𝛿 (when scaled by J⊤ ) aligned with the direction corresponding to the largest eigenvalue (𝜎𝑖 ) of JJ⊤ . Injecting noise along these high-sensitivity directions could be far more effective than injecting random noise of the same magnitude. This suggests a defense that injects noise specifically along a layer’s most sensitive direction, in addition to simply increasing the magnitude of 𝛿. To assess the potential of such a strategy, we evaluate max-PAF which quantifies the amplification when the perturbation is intentionally aligned with the layer’s most sensitive direction. If a layer’s Max-PAF is significantly higher than its average PAF (derived from random noise), then adversarial noise can yield substantially stronger privacy protection for the same noise norm. As shown in Figures 4(b), 5(b), 7(b), and 8(b), for many layers, max-PAF is significantly higher than the expected PAF. For instance, in Qwen3-0.6B, for the query projection layer, the PAF surges from an average of about 0.9 to a maximum of 2.434. Similarly, the down-projection layer’s PAF increases from about 1.3 to 3. These substantial gaps confirm that adversarial noise is a promising research direction, which we explore further in Section 6. Moreover, we observe that for some layers, the Max-PAF offers little improvement over the average PAF. First, RMS normalization divides the input by its root-mean-square and then applies a fixed per-coordinate scale. The isotropic nature of the operation yields a Jacobian with equal singular values and no preferred axis, rendering directional noise ineffective. Second, like RMSNorm, Sigmoid function acts element-wise. In practice, its inputs often fall in the saturation plateau where the derivative is near zero. Once the gradient vanishes, perturbations are suppressed regardless of orientation, so Max-PAF collapses to the baseline.

6 Defense Design and Evaluation 6.1 Defense Model We consider a scenario where the client is privacy-aware and proactively deploys countermeasures against ActInv. Defender’s goal. The client’s objective is to prevent an honest-butcurious server from reconstructing its sensitive input prompt, while preserving the quality of the model’s predictions as much as possible. Furthermore, the defense mechanism should be computationally efficient to avoid introducing a substantial overhead on the client, given that these are typically resource-constrained devices. Defender’s knowledge and ability. We assume the client has full control over the on-device submodel 𝐹𝐶 and can arbitrarily postprocess its intermediate activations before sending them to the server. The client has moderate compute to run simple, per-query defenses. The server-side model remains a black box, reflecting real-world deployments where providers treat these components as proprietary.

6.2

Our Defense: PriPert

Overview. At a high level, PriPert operates by injecting adversarial perturbations into the client-side activations before transmission. The key insight is that some directions in activation space cause much larger reconstruction errors at the input than others. This approach distinguishes PriPert from naive defenses such as random noise injection or coarse sparsification, which often incur unnecessary utility loss without offering strong privacy guarantees. We first

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Mingyuan Fan, Yu Liu, Fuyi Wang, and Cen Chen

formulate the problem as a constrained optimization problem, and then derive a practical solution. Problem statement. We instantiate 𝑓 for the entire client-side model, 𝐹𝐶 , rather than focusing on a single layer. To protect privacy, we maximize the distance Δ between the original input embedding, z, and the reconstructed input embedding, ẑ. Concurrently, the injected perturbation is required to be as small as possible, because a large perturbation 𝛿 intuitively can significantly alter the activation and the inference results5 . This leads to the following constrained optimization problem: 𝛿 = arg max ||Δ||𝑝 , 𝑠.𝑡 ., ||𝛿 ||𝑞 ≤ 𝜇, (5) 𝛿

where 𝜇 is the perturbation budget. Theorem 2. (The proof can be found in Appendix C.) The solu𝜇 tion of Equation 5 satisfies: ∥Δ∥𝑞 ≥ 𝐶 , where 𝐶 = max𝑡 ∈ [0,1] ∥∇𝐹𝐶 (𝑧+ 𝑡 Δ) ∥𝑞 . Furthermore, let E = {𝑒 1, . . . , 𝑒𝑉 } be the set of token embeddings, and let 𝑑 min = min𝑒 ∈ E, 𝑒≠𝑧 ∥𝑧 − 𝑒 ∥𝑞 . If 𝜇 > 𝐶𝑑2min , then the true token cannot be recovered via nearest neighbor search under the 𝑞-norm6 . Theorem 2 guarantees that any perturbation within the budget induces a reconstruction error of at least 𝜇/𝐶. This lower bound is independent of the adversary’s reconstruction strategy. In particular, even a perfect inversion of 𝐹𝐶 cannot reduce the error below 𝜇/𝐶. Theorem 2 further implies that the true token embedding is obscured in a nearest-neighbor sense. Intuitively, more distinctive tokens require larger perturbations to achieve the same level of protection. This helps explain why reconstruction is easier on iCliniq than on AlpacaEval, because iCliniq includes many domain-specific terms with relatively isolated embeddings. Solution. To solve Equation 5, we need to express the input deviation Δ in terms of the perturbation 𝛿. Given ẑ = 𝐹𝐶−1 (h𝑄 1 + 𝛿) and z = 𝐹𝐶−1 (h𝑄 1 ), the path integral [1] yields: ∫ 1 ||Δ||𝑝 = ||ẑ − z||𝑝 = (ẑ − z)∇𝐹𝐶−1 (z + 𝑡 (ẑ − z))𝑑𝑡 . 0

𝑝

In practice, this integral is approximated numerically. A finer discretization of 𝑡 ∈ [0, 1] yields a more accurate approximation but increases computational cost. To keep the defense efficient, we adopt a two-point trapezoidal approximation7 :  ||Δ||𝑝 = (ẑ − z) ∇𝐹𝐶−1 (z) + ∇𝐹𝐶−1 (ẑ) /2 𝑝 . (6) Empirically, we find that this two-step approximation works well. Further increasing the number of steps did not lead to a significant improvement in the performance of PriPert (Section 6.4). We adopt this approximation as the default for the remainder of this paper. The solution to this problem is a perturbation that aligns with the most sensitive directions of the inverse mapping, which, as we defined in Section 5, correspond to the least sensitive directions of the forward pass. The specific form of the solution for 𝛿 depends on the choice of norms 𝑝 and 𝑞. We derive analytical solutions for common values of 𝑝 and 𝑞: 5 The local smoothness of neural network mappings states that smaller perturbations are

less impactful on model outputs [1]. 6 For cosine similarity, one can map the embeddings onto a unit sphere and consider angular distance. Then, a similar guarantee can be derived by replacing 𝑞 -norm with angular distance. 7 For a detailed computational procedure, see [10].

• 𝑝 = 𝑞 = 2 (𝐿2 -norm with 𝐿2 constraint): The optimal perturbation 𝛿 is the right singular vector of the inverse Jacobian corresponding to its largest singular value, scaled by the budget 𝜇. This can be expressed as 𝛿 = 𝜇 ·vmax  , where vmax is the right singular vector of ∇𝐹𝐶−1 (z) + ∇𝐹𝐶−1 (ẑ) corresponding to its largest singular value. • 𝑝 = 2, 𝑞 = 0 (𝐿2 -norm with 𝐿0 constraint): The optimal solution is  to identify the top-𝑘% elements in the vector 𝛿 ∇𝐹𝐶−1 (z) + ∇𝐹𝐶−1 (ẑ) based on their magnitude rankings, and subsequently retain only the corresponding elements in ℎ𝑄 1 while zeroing out all remaining components. Here, (1 − 𝑘)% represents the sparsity ratio that governs the degree of pruning applied to the intermediate representations. We here only present the final perturbed intermediate activation rather than 𝛿 itself for brevity. In our initial empirical evaluations, the solution with the 𝐿0 constraint consistently outperforms the solution with the 𝐿2 constraint8 . We hypothesize that this performance gap arises because small 𝐿2 bounded perturbations tend to jitter magnitudes while preserving signs. Such sign information can itself be exploited by adversaries to infer semantic properties of the original input [38]. Unless otherwise specified, all subsequent evaluations therefore adopt the solution with 𝐿0 , which has the additional advantage of lowering the communication cost between client and server due to its sparse nature.

6.3

Evaluation Setup

Attack. We evaluate PriPert against ActInv using the same attack hyperparameters as in Section 4. Note that it is standard in security to consider adaptive attackers. A natural adaptive strategy here would be to ignore zero entries when matching activations, so as not to be misled by sparsity. Since ActInv uses cosine distance, which is inherently insensitive to zero-valued dimensions, it already behaves as such an adaptive attack. This is also why we chose cosine distance over 𝐿2 distance in our attack design. Metrics. We evaluate PriPert from three primary perspectives: privacy, utility, computational overhead. For privacy metrics, we include Precision, Recall, and ROUGE-L to measure the similarity between the reconstructed query and the original query. For utility assessment, we adopt the LLMs-as-judge [41], a state-of-the-art approach for evaluating the quality of LLMs’ responses. Specifically, we generate responses to user queries under varying defense methods and intensities, then submit query-response pairs to GPT-4o for comprehensive quality assessment, including correctness, completeness, relevance, clarity, and style. The judge model prompt is included in Figure 6. Datasets and models. We conduct evaluations on AlpacaEval and iCliniq. We employ Qwen3-0.6B, Falcon3-1B, and Qwen3-30B. Hyperparameters. The sparsity ratios of PriPert are over {0.1, 0.3, 0.5, 0.7, 0.9}.

6.4

Evaluation Results

Privacy protection. Table 6 and Table 7 show the performance of PriPert against ActInv on both AlpacaEval and iCliniq. PriPert consistently and substantially reduces reconstruction quality, with stronger sparsity (higher ratio) giving stronger protection. For example, on Qwen3-0.6B with AlpacaEval at sparsity 0.7, ActInv ’s 8 The scores of ROGUE-L differ by approximately 0.05 to 0.1 when using Qwen3-0.6B

and AlpacaEval under similar utility level.

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Sparsification Ratio 0.1 0.3 0.5 0.7 0.9 0.1 0.3 0.5 0.7 0.9

iCliniq

Dataset AlpacaEval

Table 6: The PriPert’s performance against ActInv in Qwen3-0.6B. Results are presented as mean ± std. Precision Qwen3-0.6B Falcon3-1B 88.64±7.05 94.54±3.22 59.88±10.08 82.89±5.91 37.26±11.86 58.52±9.98 17.95±9.37 32.60±9.55 3.45±4.50 7.06±7.19 93.66±3.72 95.90±2.98 70.76±8.51 88.62±4.82 49.37±9.51 70.86±7.20 26.49±8.29 44.80±8.35 8.22±5.63 16.41±7.96

Recall Qwen3-0.6B Falcon3-1B 79.67±7.24 89.35±4.77 50.70±7.81 72.59±6.73 30.70±7.48 45.75±7.49 14.51±5.57 21.45±6.03 2.44±2.74 3.55±3.20 85.16±4.35 90.37±3.27 56.51±5.47 79.22±4.61 36.31±4.74 57.67±6.97 17.87±3.94 31.38±5.82 4.39±2.15 7.86±3.42

ROUGE-L Qwen3-0.6B Falcon3-1B 0.89±0.05 0.89±0.07 0.68±0.08 0.70±0.10 0.45±0.09 0.40±0.11 0.24±0.08 0.16±0.07 0.05±0.05 0.02±0.03 0.93±0.04 0.90±0.04 0.70±0.06 0.80±0.06 0.47±0.07 0.58±0.08 0.25±0.05 0.31±0.07 0.07±0.03 0.06±0.03

M.

L.

AlpacaEval

Qwen3-30B

iCliniq

Qwen3-30B

Table 7: The ActInv’s effectiveness against different defenses in Qwen3-30B on AlpacaEval and iCliniq. Defense levels correspond to Gaussian noise and activation sparsification as defined in Table 2.

Dataset

1 2 3 4 5 1 2 3 4 5

Gaussian 99.39 99.34 99.73 96.92 8.65 99.21 99.35 99.54 98.27 8.97

Precision Element Token 99.95 99.38 99.11 99.70 97.38 98.65 82.90 86.54 45.83 46.52 99.94 99.17 99.46 99.59 97.61 98.45 89.25 93.60 53.68 54.89

Ours 92.67 74.03 47.80 26.34 19.45 95.41 75.02 54.18 30.63 21.76

Gaussian 98.98 98.90 97.59 92.36 6.63 99.58 98.81 97.98 95.99 16.10

Recall Element Token 98.99 98.62 98.35 97.88 95.85 96.44 76.28 79.52 37.23 38.60 99.13 98.50 98.49 98.31 96.67 97.62 82.81 86.90 45.18 46.98

Ours 85.93 67.64 40.97 20.55 13.97 90.40 68.58 44.08 24.34 15.62

Gaussian 0.98 0.97 0.95 0.93 0.11 0.99 0.98 0.97 0.94 0.10

ROUGE-L Element Token 0.98 0.98 0.96 0.95 0.94 0.94 0.86 0.85 0.65 0.69 0.98 0.99 0.96 0.97 0.94 0.95 0.88 0.89 0.67 0.72

Ours 0.91 0.72 0.50 0.29 0.15 0.92 0.75 0.54 0.32 0.18

Table 8: Utility evaluation of Qwen3-0.6B. Bold marks the best among the three methods at Level 1 (i.e., L.1, weakest defense) within each dataset/metric, while underlining marks the best at Level 5 (i.e., L.5, strongest defense).

iCliniq

AlpacaEval

Dataset

Metric Accuracy & Correctness Completeness & Depth Relevance Clarity & Organization Style & Tone Average Accuracy & Correctness Completeness & Depth Relevance Clarity & Organization Style & Tone Average

L.1 2.05 2.01 3.85 3.90 3.99 3.16 1.83 1.64 2.84 3.47 3.11 2.58

GaussianNoise L.2 L.3 L.4 2.31 2.49 2.10 1.83 1.86 1.66 3.91 3.69 3.17 3.78 3.63 3.11 3.85 3.65 3.17 3.14 3.07 2.64 1.74 1.48 1.36 1.69 1.57 1.39 2.65 2.59 2.30 2.88 2.70 2.88 2.66 2.43 2.55 2.33 2.15 2.10

L.5 0.05 0.10 0.14 1.16 1.25 0.54 0.35 0.28 0.97 1.49 1.52 0.92

Precision and Recall drop below 30%, compared to over 60% when using traditional sparsification at the same rate (Table 2). ROUGE-L also decreases sharply, indicating that the adversary can no longer recover the semantic content of the prompt. We further observe that, for a fixed defense ratio, Qwen3-0.6B generally provides stronger privacy than Falcon3-1B. For the same sparsity, Qwen3-0.6B generally provides better privacy than Falcon3-1B (e.g., Precision 17.95% vs. 32.60% at sparsity 0.7 on AlpacaEval), while also offering higher

L.1 2.20 2.01 3.72 3.84 3.88 3.13 1.63 1.28 2.87 2.94 2.72 2.29

Sparsification L.2 L.3 L.4 1.63 1.51 0.68 1.50 1.67 0.14 3.46 1.48 1.46 3.61 3.58 3.48 3.64 3.54 3.46 2.77 2.36 1.84 1.53 1.19 1.13 1.18 1.10 1.06 2.91 2.09 1.64 2.86 2.52 1.99 2.69 2.53 2.26 2.23 1.89 1.62

L.5 0.07 0.13 1.00 3.43 3.48 1.62 0.60 0.60 0.57 0.54 0.61 0.58

L.1 2.35 2.20 3.73 3.89 3.92 3.22 1.57 1.18 3.11 3.20 2.80 2.37

L.2 2.42 1.67 3.64 3.97 3.85 3.11 1.53 0.90 2.92 3.13 2.68 2.23

PriPert L.3 L.4 2.33 1.82 1.48 1.26 3.46 3.34 3.51 3.48 3.82 3.51 2.92 2.63 1.48 1.53 0.85 0.76 2.85 2.52 3.03 2.42 2.66 2.34 2.17 1.91

L.5 1.84 0.96 3.14 3.45 2.27 2.34 1.32 0.46 1.92 2.00 1.89 1.52

utility, indicating a more favorable privacy–utility trade-off. Finally, we see that iCliniq is generally harder to defend, because domainspecific and highly distinctive medical tokens are easier to reconstruct than generic open-domain vocabulary. Utility evaluation. Tables 8, 9, and 10 show that PriPert preserves utility well at low-to-moderate sparsity levels. Since the responses generated by Qwen3-30B consistently achieve very high scores (above 3.5) in Relevance, Clarity, and Style, we omit these

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

Mingyuan Fan, Yu Liu, Fuyi Wang, and Cen Chen

Table 9: Utility evaluation of Falcon3-1B. Bold marks the best among the three methods at Level 1 (i.e., L.1, weakest defense) within each dataset/metric, while underlining marks the best at Level 5 (i.e., L.5, strongest defense). Dataset

Metric

iCliniq

AlpacaEval

Accuracy & Correctness Completeness & Depth Relevance Clarity & Organization Style & Tone Average Accuracy & Correctness Completeness & Depth Relevance Clarity & Organization Style & Tone Average

L.1 2.09 2.01 3.06 3.03 2.15 2.47 1.21 2.09 2.97 2.45 2.71 2.28

GaussianNoise L.2 L.3 L.4 2.03 1.56 1.55 2.05 1.53 1.42 3.04 3.02 2.45 3.02 2.52 2.45 2.11 2.12 2.02 2.45 2.15 1.98 1.07 0.94 0.91 2.15 2.03 2.01 2.48 2.44 2.19 1.94 1.75 0.96 1.31 1.27 1.02 1.79 1.69 1.42

L.5 0.49 0.58 0.53 0.55 0.49 0.53 0.71 0.75 1.24 1.17 0.97 0.97

L.1 2.02 2.00 3.45 1.97 2.05 2.30 1.46 1.49 2.95 2.99 2.44 2.27

Sparsification L.2 L.3 L.4 1.38 0.47 0.45 1.53 0.45 0.50 2.09 0.56 0.50 1.99 1.46 0.47 1.51 1.51 0.50 1.70 0.89 0.49 1.07 1.04 0.80 1.25 1.00 0.71 2.74 1.52 1.72 1.96 1.03 0.76 1.02 0.75 0.51 1.61 1.07 0.90

L.5 0.58 0.51 0.56 0.50 0.49 0.53 0.19 0.24 0.21 0.16 0.27 0.22

L.1 1.99 1.94 3.49 2.46 2.04 2.38 1.65 2.02 2.94 3.00 2.48 2.42

L.2 1.46 1.48 2.43 3.04 2.98 2.28 1.50 1.83 1.96 2.02 1.49 1.76

PriPert L.3 1.00 0.98 1.53 1.46 0.99 1.19 1.50 1.48 1.96 1.54 0.94 1.48

L.4 1.08 0.47 0.95 0.96 0.97 0.89 0.98 1.06 1.06 1.02 0.96 1.02

L.5 0.46 0.52 0.48 0.44 0.49 0.48 0.56 0.57 1.09 0.97 0.47 0.73

Table 10: Utility evaluation of Qwen3-30B under sparsification and PriPert. Bold marks the best among the three methods at Level 1 (i.e., L.1, weakest defense) within each dataset/metric, while underlining marks the best at Level 5 (i.e., L.5, strongest defense).

Dataset AlpacaEval

iCliniq

Metric Accuracy Completeness Average Accuracy Completeness Average

L.1 3.67 3.35 3.51 2.43 2.72 2.57

Sparsification L.2 L.3 L.4 2.89 2.00 1.74 2.57 1.91 1.81 2.73 1.95 1.78 2.82 1.86 1.61 2.23 1.77 1.62 2.53 1.81 1.61

Judge Model Prompt Task. You are a meticulous reviewer. You will receive a question–answer pair. Carefully read the pair and evaluate the quality of the answer with respect to the question. For each of the five criteria below, assign an integer score from 0 (poor) to 4 (excellent): (1) Accuracy & Correctness: Are the facts accurate? Are any key claims unsupported or incorrect? (2) Completeness & Depth: Does the answer fully address all aspects of the question? Does it provide meaningful detail and insight? (3) Relevance: How directly does the answer respond to the question without digression or omission? (4) Clarity & Organization: Is the explanation clear, logically structured, and free of ambiguity? (5) Style & Tone: Is the language fluent, professional, and appropriate for the intended audience? Scoring Scale (per dimension): Score 4 3 2 1 0

L.5 1.42 1.52 1.47 1.30 1.33 1.32

L.1 3.85 3.64 3.75 3.34 3.18 3.26

L.2 3.46 3.19 3.33 2.87 2.67 2.77

PriPert L.3 L.4 2.82 2.56 2.64 2.36 2.73 2.46 2.68 2.38 2.49 2.17 2.58 2.28

L.5 2.29 2.06 2.17 2.06 1.92 1.99

Table 11: Effectiveness of PriPert against prior prompt inversion attacks on Qwen3-8B and AlpacaEval. We report the arithmetic mean of token-level Precision and Recall (%). Lower is better from the defender’s perspective. Attack A1 [17] TBS [7] PIA [25]

Sparsification 18.57 81.97 95.57

PriPert 1.91 44.92 46.11

Table 12: Client-side processing time (s/1k tokens) for defenses. Defense Avg. Time

GaussianNoise 1.0303±0.1755

Sparsification 0.9984±0.1539

PriPert 4.3703±0.2987

Table 13: Impact of approximation steps on PriPert performance. We use a sparsification ratio of 0.5.

Descriptor Excellent (Exceeds expectations) Good (Meets all requirements) Fair (Adequate with minor flaws) Poor (Significant deficiencies) Unacceptable (Fundamentally flawed)

Figure 6: Evaluation rubric used by the judge model.

Approx. Steps 1 2 3

ROUGE-L 0.52 0.45 0.43

Utility 2.30 2.36 2.36

Time (s/1k tokens) 3.3228 4.3703 5.3510

dimensions to avoid confusion and report only the Accuracy and Completeness scores. On Qwen3-0.6B, for instance, PriPert at Level 1 and Level 2 (roughly corresponding to sparsity ≤ 0.5) achieves average LLMs-as-judge scores of 3.53 and 3.16 on AlpacaEval, outperforming traditional sparsification at the same budgets. Moreover,

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

as expected, all defenses eventually collapse utility at the highest perturbation strengths, indicating that extremely aggressive perturbations are fundamentally incompatible with maintaining model usefulness. A per-criterion view reveals an asymmetry in how utility degrades: Accuracy&Completeness is more sensitive to perturbations than formal aspects like Clarity and Style. For example, in AlpacaEval, with PriPert at Level 3 on Qwen3-0.6B, the Accuracy and Completeness scores are around 2.33 and 1.48, while Clarity and Style remain high, at approximately 3.51 and 3.82, respectively. Dataset and architectural differences also play a role. For a fixed defense ratio, Qwen3-0.6B tends to deliver better utility scores than Falcon3-1B. Medical queries from iCliniq also show earlier degradation in Relevance than open-domain AlpacaEval queries at the same nominal budget. This is likely because the specialized terminology in iCliniq concentrates meaning in fewer high-impact tokens, which, when perturbed, can disproportionately distort the perceived correctness and relevance. In summary, sparsity ratios around 0.5 are favorable, providing considerable privacy gains while keeping average utility in an acceptable range. Case Study. Figure 1 illustrates PriPert ’s behavior qualitatively. Under a moderate defense setting (level 3; sparsity ratio 0.5), PriPert enables the reconstructed prompt to diverge substantially from the original prompt. While a few tokens overlap, the recovered prompt fails to capture the core intent and exhibits pronounced semantic drift. Moreover, the model’s response under the same perturbation remains fluent, coherent, and on-topic. This example demonstrates that PriPert can substantially reduce semantic leakage from activations while preserving downstream usefulness. Effectiveness against prior attacks. We also evaluate PriPert against A1 [17], TBS [7], and PIA [25]. We use Qwen3-8B, AlpacaEval, and 𝑄 1 = 5, and fix the sparsity ratio to 0.5. For each attack, we report the arithmetic mean of token-level Precision and Recall. Table 11 shows that PriPert consistently reduces the effectiveness of all evaluated attacks, often by a large margin. Compared with naive sparsification, PriPert yields substantially stronger protection across all baselines. For instance, against A1, the reconstruction score drops from 18.57 under standard sparsification to 1.91 under PriPert. Similarly, against TBS and PIA, the scores decrease from 81.97 to 44.92 and from 95.57 to 46.11, respectively. Defense overhead. To quantify the computational cost of PriPert, we measure client-side processing time per 1k tokens over 1,000 trials on an NVIDIA RTX 4090. The average processing times (in seconds) and their corresponding standard deviations are presented in Table 12. Both GaussianNoise and Sparsification incur a relatively low overhead, with PriPert having a higher average processing time. This is primarily due to the additional gradient computations involved in PriPert. In many privacy-sensitive scenarios (e.g., healthcare, legal advice), this overhead may be acceptable given the strong privacy gains. For latency-critical settings, a natural optimization is to focus on semantic-critical tokens, such as names or rare domainspecific entities, rather than processing all tokens. Please refer to Appendix D for more discussion where the time cost of PriPert can be reduced to approximately 1.16 seconds. Ablation on approximation granularity. Table 13 examines how the number of approximation steps in the path integral affects privacy, utility, and overhead. We evaluate privacy, utility (LLMs-asjudge average score), and client-side processing cost (seconds per 1k

tokens, measured on the same hardware as Table 12). Moving from 1 to 2 steps substantially improves privacy with negligible impact on utility and a moderate increase in cost. Adding a third step yields only marginal additional privacy gains but incurs further overhead. These numbers validate that additional quadrature points improve the approximation, but with rapidly diminishing returns once the dominant directions are captured.

7

Conclusion and Future Work

In this work, we conducted the first comprehensive investigation into prompt leakage within the split inference paradigm for LLM.s We developed ActInv, an inversion attack that an honest-but-curious server can use to reconstruct a client’s sensitive input with remarkably high fidelity. This attack proved resilient even against common defenses like activation sparsification and random noise injection, revealing that these naive countermeasures are largely ineffective. We also developed PAF to understand this vulnerability and revealed that privacy vulnerability varies significantly across the model architecture, with layers like activation functions being highly susceptible to leakage. Based on these insights, we designed and evaluated PriPert, which injects adversarially calibrated noise into intermediate activations to maximize reconstruction error while preserving model utility with acceptable overhead. The extensive evaluations demonstrated that PriPert significantly outperforms traditional defenses, offering a more favorable privacy-utility trade-off. As a path forward, we believe two promising avenues warrant further investigation. One direction is to design privacy-aware compression techniques that can embed defense properties directly into the model’s structure. Additionally, future work could explore the possibility of designing privacy-sensitive activation functions that maintain model non-linearity while offering greater resistance to inversion attacks.

References [1] Stephen P Boyd and Lieven Vandenberghe. 2004. Convex optimization. Cambridge university press. [2] Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, et al. 2023. Quantifying Memorization Across Neural Language Models. In ICLR. [3] Nicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski, et al. 2021. Extracting Training Data from Large Language Models. In USENIX Security. [4] Yupeng Chang, Xu Wang, Jindong Wang, Yuan Wu, et al. 2024. A Survey on Evaluation of Large Language Models. ACM Trans. Intell. Syst. Technol. 15, 3 (2024), 39:1–39:45. [5] Guanzhong Chen, Zhenghan Qin, Mingxin Yang, Yajie Zhou, Tao Fan, Tianyu Du, and Zenglin Xu. 2024. Unveiling the Vulnerability of Private Fine-Tuning in Split-Based Frameworks for Large Language Models: A Bidirectionally Enhanced Attack. In CCS. [6] Yuxuan Chen, Rongpeng Li, Xiaoxue Yu, Zhifeng Zhao, and Honggang Zhang. 2024. Adaptive Layer Splitting for Wireless LLM Inference in Edge Computing: A Model-Based Reinforcement Learning Approach. CoRR abs/2406.02616 (2024). [7] Tian Dong, Yan Meng, Shaofeng Li, Guoxing Chen, Zhen Liu, and Haojin Zhu. 2025. Depth Gives a False Sense of Privacy: LLM Internal States Inversion. In 34th USENIX Security Symposium. [8] In Gim, Caihua Li, and Lin Zhong. 2024. Confidential Prompting: Protecting User Prompts from Cloud LLM Providers. CoRR abs/2409.19134 (2024). [9] Zecheng He, Tianwei Zhang, and Ruby B. Lee. 2019. Model inversion attacks against collaborative inference. In ACSAC. [10] Francis Begnaud Hildebrand. 1987. Introduction to numerical analysis. Courier Corporation. [11] Hongpeng Jin and Yanzhao Wu. 2025. CE-CoLLM: Efficient and Adaptive Large Language Models Through Cloud-Edge Collaboration. In IEEE International Conference on Web Services. [12] Eric Lehman, Sarthak Jain, Karl Pichotta, Yoav Goldberg, et al. 2021. Does BERT Pretrained on Clinical Notes Reveal Sensitive Data?. In NAACL.

Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

[13] Shiyang Li, Jianshu Chen, Yelong Shen, Zhiyu Chen, et al. 2022. Explanations from Large Language Models Make Small Reasoners Better. CoRR (2022). [14] Yupei Liu, Yuqi Jia, Jinyuan Jia, and Neil Zhenqiang Gong. 2025. Evaluating LLM-based Personal Information Extraction and Countermeasures. In Usenix Security 2025. [15] Zechun Liu, Barlas Oguz, Changsheng Zhao, Ernie Chang, et al. 2024. LLM-QAT: Data-Free Quantization Aware Training for Large Language Models. In Findings of the Association for Computational Linguistics. [16] Nils Lukas, Ahmed Salem, Robert Sim, Shruti Tople, et al. 2023. Analyzing Leakage of Personally Identifiable Information in Language Models. In S&P. [17] Xinjian Luo, Ting Yu, and Xiaokui Xiao. 2025. Prompt Inference Attack on Distributed Large Language Model Inference Frameworks. In CCS. ACM, 1739– 1753. [18] Xinyin Ma, Gongfan Fang, and Xinchao Wang. 2023. LLM-Pruner: On the Structural Pruning of Large Language Models. In NeurIPS. [19] Peihua Mai, Ran Yan, Zhe Huang, Youjia Yang, and Yan Pang. 2024. Split-andDenoise: Protect large language model inference with local differential privacy. In ICML. [20] John X. Morris, Wenting Zhao, Justin T. Chiu, Vitaly Shmatikov, et al. 2024. Language Model Inversion. In ICLR. [21] Giorgos Nikolaou, Tommaso Mencattini, Donato Crisostomi, Andrea Santilli, Yannis Panagakis, and Emanuele Rodolà. 2025. Language Models are Injective and Hence Invertible. CoRR abs/2510.15511 (2025). [22] OpenAI. 2023. GPT-4 Technical Report. CoRR abs/2303.08774 (2023). https: //doi.org/10.48550/arXiv.2303.08774 [23] Dario Pasquini, Giuseppe Ateniese, and Massimo Bernaschi. 2021. Unleashing the Tiger: Inference Attacks on Split Learning. In CCS. [24] Maarten G. Poirot, Praneeth Vepakomma, Ken Chang, Jayashree Kalpathy-Cramer, et al. 2019. Split Learning for collaborative deep learning in healthcare. CoRR abs/1912.12115 (2019). [25] Wenjie Qu, Yuguang Zhou, Yongji Wu, Tingsong Xiao, Binhang Yuan, Yiming Li, and Jiaheng Zhang. 2025. Prompt Inversion Attack Against Collaborative Inference of Large Language Models. In IEEE Symposium on Security and Privacy. [26] Siladitya Ray. 2023. A Growing List Of Companies Cracking Down On Use Of ChatGPT By Staffers—Here’s Why. [27] Liangqin Ren, Zeyan Liu, Fengjun Li, Kaitai Liang, et al. 2024. PrivDNN: A Secure Multi-Party Computation Framework for Deep Learning using Partial DNN Encryption. PoPETs (2024). [28] Chris Renzo, Liv Aliberti, Justin Miles, and Joe Kovba. 2024. Large language model inference over confidential data using AWS Nitro Enclaves. [29] Yangjun Ruan, Honghua Dong, Andrew Wang, Silviu Pitis, et al. 2024. Identifying the Risks of LM Agents with an LM-Emulated Sandbox. In ICLR. [30] Robin Staab, Mark Vero, Mislav Balunovic, and Martin T. Vechev. 2024. Beyond Memorization: Violating Privacy via Inference with Large Language Models. In ICLR. [31] Xuchen Suo. 2024. Signed-Prompt: A New Approach to Prevent Prompt Injection Attacks Against LLM-Integrated Applications. CoRR abs/2401.07612 (2024). [32] Llama 3 Team. 2024. The Llama 3 Herd of Models. CoRR abs/2407.21783 (2024). [33] Qwen3 Team. 2025. Qwen3 Technical Report. CoRR abs/2505.09388 (2025). [34] SmolLM2 Team. 2025. SmolLM2: When Smol Goes Big - Data-Centric Training of a Small Language Model. CoRR abs/2502.02737 (2025). [35] Surat Teerapittayanon, Bradley McDanel, and H. T. Kung. 2017. Distributed Deep Neural Networks Over the Cloud, the Edge and End Devices. In ICDCS. IEEE Computer Society, 328–339. [36] Dixi Yao, Liyao Xiang, Hengyuan Xu, Hangyu Ye, et al. 2022. Privacy-Preserving Split Learning via Patch Shuffling over Transformers. In ICDM. [37] Weichen Yu, Tianyu Pang, Qian Liu, Chao Du, et al. 2023. Bag of Tricks for Training Data Extraction from Language Models. In ICML, Vol. 202. [38] Kai Yue, Richeng Jin, Chau-Wai Wong, Dror Baron, et al. 2023. Gradient Obfuscation Gives a False Sense of Security in Federated Learning. In USENIX Security. USENIX Association, 6381–6398. [39] Zhexin Zhang, Jiaxin Wen, and Minlie Huang. 2023. ETHICIST: Targeted Training Data Extraction Through Loss Smoothed Soft Prompting and Calibrated Confidence Estimation. In ACL. [40] Zishuai Zhang, Hainan Zhang, Jiaying Zheng, Ziwei Wang, Yongxin Tong, Jin Dong, and Zhiming Zheng. 2025. A Federated Splitting Framework for LLMs: Security, Efficiency, and Adaptability. CoRR abs/2505.15683 (2025). [41] Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, et al. 2023. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. In NeurIPS.

A

Proof of Theorem 1

P ROOF. We can re-express the 𝛿 = (ẑ − z)J by defining Δ = ẑ − z, which gives us 𝛿 = ΔJ. Finding a solution for Δ can be reformulated as the following optimization problem: minΔ ||𝛿 − ΔJ|| 22 .

Mingyuan Fan, Yu Liu, Fuyi Wang, and Cen Chen

To find the optimal solution, we take the gradient of the objective function with respect to Δ and set it to zero: 𝜕||𝛿 − ΔJ|| 22 = −2(𝛿 − ΔJ)J⊤ = 0. 𝜕Δ Simplifying the above expression yields: ΔJJ𝑇 = 𝛿J𝑇 . The solvability of this normal equation depends on the invertibility of JJ𝑇 , specifically whether it is of full rank. Let us now consider the different cases based on the rank of JJ⊤ . Case 1: JJ𝑇 is of full rank. If JJ𝑇 is of full rank, its inverse (JJ𝑇 ) −1 exists. Consequently, Δ can be directly solved as: Δ = 𝛿J𝑇 (JJ𝑇 ) −1 . Let {𝜎𝑖 } and {𝜇𝑖 } denote eigenvalues and corresponding eigenvectors of JJ⊤ (𝜇𝑖 is row vector to conform to this paper’s notation convention). Then (JJ⊤ ) −1 admits the spectral decomposition as Í follows: (JJ⊤ ) −1 = 𝑖 𝜎1𝑖 𝜇𝑖⊤ 𝜇𝑖 . Substituting this into the error expression gives: ||Δ|| 22 = 𝛿J⊤ (

∑︁ 𝜇 ⊤ 𝜇𝑖 𝑖

2

)

𝜎𝑖 2   2 𝛿J⊤ 𝜇𝑖⊤ 2 ∑︁ ||𝛿 || 2 ||J⊤ || 22 cos 𝜃 𝑖 = , √ √ 𝜎𝑖 𝜎𝑖 𝑖 𝑖

=

∑︁  𝑖

where we use orthogonality of eigenvectors 𝜇𝑖 , and 𝜃 𝑖 denotes the angle between 𝑋 and 𝜇𝑖 . Case 2: JJ𝑇 is not of full rank. When JJ𝑇 is not of full rank, its inverse does not exist. To this end, we employ regularization by adding an identity matrix I to JJ𝑇 in the normal equation as follows: Δ(JJ⊤ + I) = 𝛿J𝑇 . The solution for this regularized normal equation is then given by: Δ = 𝛿J𝑇 (JJ⊤ + I) −1 . (JJ⊤ + I) and JJ⊤ share the same eigenvectors, {𝜇𝑖 }, but their eigenvalues are shifted by 1. The eigenvalues of (JJ⊤ + I) are {𝜎𝑖 + 1}. Applying the same spectral decomposition logic as in Case 1, we derive: ||Δ|| 22 = 𝛿J⊤ (

∑︁ 𝜇 ⊤ 𝜇𝑖 𝑖

𝑖

𝜎𝑖 + 1

2

) 2

∑︁  𝛿J⊤ 𝜇 ⊤  2 ∑︁  ||𝛿J⊤ || 2 cos 𝜃 𝑖  2 𝑖 = = . √ √ 𝜎𝑖 + 1 𝜎𝑖 + 1 𝑖 𝑖

(7)

Final expression. The regularized solution in Case 2 guarantees a larger upper bound on ||Δ|| 22 compared to the solution in Case √ √ 1, as the denominator 𝜎𝑖 + 1 becomes smaller than 𝜎𝑖 . To unify both cases, we adopt the regularized form as a conservative estimate, leading to the final expression: ∑︁  ||𝛿J⊤ || 2 cos 𝜃 𝑖  2 ||Δ|| 22 ≤ . √ (8) 𝜎𝑖 + 1 𝑖 □

B

PAF Evaluation in Llama-3.2-1B and SmolLM2-1.7B

Figures 7 and 8 present PAF values for different layers of Llama-3.21B and SmolLM2-1.7B, respectively.

1 2

0.117 5.940 6.057 4.140 3.889 0.060 4.916 5.032 0.423 9.829 0.090 5.815 5.851 4.097 3.853 0.050 4.950 5.028 0.409 9.880

Va lu

SN RM

ery

orm

1

Pro j eP r o j Ou tpu tP r o RM j SN orm 2 Up Pro Ga j te Pro j Ac tiv ati on Do wn Pro j

Pro j eP r o j Ou tpu tP r o RM j SN orm 2 Up Pro Ga j te Pro j Ac tiv ati on Do wn Pro j

2

2 1

4

Pro j

3

6

0.155 6.162 6.178 4.073 3.830 0.078 4.792 5.061 0.427 9.648

Ke y

5

Va lu

Pro j

Ke y

1

Qu

ery

orm SN

8

3

6 4

RM

0.191 6.520 6.592 3.575 3.360 0.120 4.758 5.080 0.451 9.591

7

Qu

5

4.718 1.135 1.609 0.596 0.667 3.385 0.720 1.041 0.328 1.423

0.417 7.440 7.498 1.956 1.465 0.439 4.877 5.014 0.496 9.865

Block Index

4

5.544 1.183 1.618 0.619 0.669 3.854 0.728 1.008 0.352 1.439

8

4

3

7.915 1.180 1.665 0.523 0.587 4.590 0.750 0.938 0.407 1.511

9

5

1

9.057 1.200 1.738 0.431 0.574 5.580 0.783 0.914 0.440 1.552

Block Index

9.200 1.552 2.021 0.399 0.519 8.845 0.790 0.883 0.470 1.572

2

What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference Conference acronym ’XX, June 03–05, 2018, Woodstock, NY

5.0 2.5

orm SN RM

1 2

80 70 60 50

3

7.5

Block Index

10.0

0.155 14.63913.933 6.735 6.395 0.078 5.652 12.907 0.427 27.441

4

12.5

Qu 1 ery Pro j Ke yP roj Va lue P Ou roj tpu tP RM roj SN orm 2 Up Pro Ga j te Pro j Ac tiv ati o Do n wn Pro j

4.701 5.660 8.590 1.211 1.277 3.377 0.954 4.658 0.329 4.792

0.191 19.51016.980 6.557 5.698 0.120 5.673 9.709 0.451 26.701

15.0

0.117 13.98914.605 6.863 6.741 0.060 6.522 13.604 0.423 26.920

5

3 4

5.535 5.513 8.192 1.195 1.185 3.843 0.852 4.027 0.352 4.837

5

7.917 5.501 7.806 1.171 1.258 4.582 0.968 3.015 0.407 4.798

0.417 83.99978.086 4.755 2.471 0.439 7.329 10.761 0.496 24.381

0.090 14.14613.717 7.306 6.896 0.050 5.741 13.541 0.410 25.388

40 30 20 10

SN orm Qu 1 ery Pro j Ke yP roj Va lue P Ou roj tpu tP RM roj SN orm 2 Up Pro Ga j te Pro j Ac tiv ati on Do wn Pro j

9.052 7.005 9.975 0.915 1.180 5.569 0.918 2.318 0.440 4.414

17.5

RM

9.218 16.85118.936 0.992 1.490 8.862 1.279 1.909 0.470 4.495

Block Index

1

(a) Expected PAF

2

(a) Expected PAF

(b) Max-PAF

(b) Max-PAF

Figure 7: Comparison of different layers’ sensitivity in Llama3.2-1B.

Figure 8: Comparison of different layers’ sensitivity in SmolLM2-1.7B.

C

Table 14: Processing overhead for domain-specific terms and privacy-sensitive terms on iCliniq (per 1k tokens).

Proof of Theorem 2 ∫1

P ROOF. We know 𝛿 = 𝐹𝐶 (ẑ) − 𝐹𝐶 (z) = 0 ∇𝐹𝐶 (z + 𝑡 Δ) Δ 𝑑𝑡 . Taking the 𝑞-norm and using the consistency of induced norms, ∫ 1 ∥𝛿 ∥𝑞 ≤ ∥∇𝐹𝐶 (z + 𝑡 Δ)∥𝑞 𝑑𝑡 · ∥Δ∥𝑞 ≤ 𝐶 ∥Δ∥𝑞 . 0

Since ∥𝛿 ∥𝑞 ≤ 𝜇, we obtain 𝜇 ≤ 𝐶 ∥Δ∥𝑞 , i.e., ∥Δ∥𝑞 ≥ 𝜇/𝐶. This proves the first part. For the second part, the first part gives ∥Δ∥𝑞 ≥ 𝜇/𝐶 > 𝑑 min /2. Let emin be the token achieving 𝑑 min . By the triangle inequality, ∥ẑ − emin ∥𝑞 ≥ ∥z − emin ∥𝑞 − ∥ẑ − z∥𝑞 = 𝑑 min − ∥Δ∥𝑞 , provided ∥Δ∥𝑞 ≤ 𝑑 min . If ∥Δ∥𝑞 > 𝑑 min , then trivially ẑ is farther from z than emin , so the conclusion holds. Otherwise (∥Δ∥𝑞 ≤ 𝑑 min ), we have 𝑑 min − ∥Δ∥𝑞 < ∥Δ∥𝑞 because ∥Δ∥𝑞 > 𝑑 min /2. Thus ∥ẑ − emin ∥𝑞 ≤ 𝑑 min − ∥Δ∥𝑞 < ∥Δ∥𝑞 = ∥ẑ − z∥𝑞 . Hence ẑ is closer to emin than to z, so the true token is not the nearest neighbor. □

D

Overhead Optimization

To mitigate the computational overhead of PriPert, we can apply the gradient-based optimization exclusively to a subset of protected tokens, such as privacy-sensitive entities or domain-specific terms. Let 𝑟 ∈ [0, 1] denote the protected ratio, representing the proportion of tokens subject to PriPert optimization. Let 𝑇 represent the time required for a standard forward pass. Since the overhead of baseline

Ratio (𝑟 ) Expected Time Actual Time

Domain-Specific 19.22%±6.69% 1.58T 1.64s±0.28𝑠

Privacy-Sensitive 4.22%±4.13% 1.13T 1.16s±0.21𝑠

defenses (e.g., Gaussian noise or sparsification) is negligible, their total processing time remains approximately 𝑇 . The expected execution time for PriPert is modeled as 𝑇 + 3𝑟𝑇 , where the term 3𝑟𝑇 accounts for the additional gradient computation and backpropagation costs associated with the optimized tokens. Table 14 reports the processing overhead analysis on iCliniq. We employ GPT-5 to identify domain-specific and privacy-sensitive tokens within user queries and calculate their average occurrence ratios (𝑟 ). We compare the theoretical expected time against the actual measured execution time, utilizing the same experimental setup described in Table 12. The results demonstrate that, since domain-specific and privacy-sensitive terms constitute only a small fraction of the input, the actual computational overhead of PriPert remains low in practice. Received 20 February 2007; revised 12 March 2009; accepted 5 June 2009

Record · ID 222556 · SHA-256 79b09a826a5223e2
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.