Every prompt sent to a hosted language model is readable by whoever runs it. We study whether the prompt can remain on the client while the host receives transformed vectors that stand in for it. A language model converts text to vectors exactly once, with a public lookup table; we perform that step locally and pass the vectors through a small trained network (55.6M parameters) before they leave the perimeter. The host runs a frozen 27B model (Qwen3.8-27B) on the transformed vectors and never receives text or token ids. We train the transform against the frozen model as a fixed judge, combining a forward-KL utility term with an auxiliary term that pushes each vector away from its original direction. On 1,490 MMLU questions held out from training, the transform costs 1.5 points of accuracy (80.7% vs. 82.3%), breaking 68 of the 1,226 questions the unmodified model answers correctly (5.5%), while 30.1% of content tokens no longer decode to their original token under a nearest-neighbour lookup.
Figures & tables
Figure 1: Where each step runs. Text never crosses the boundary; only the transformed tensor does. The generated answer returns in the clear and is readable by the host.
Without
With
transform
transform
Correct answers
1,226
1,203
Accuracy
82.3%
80.7%
Right → wrong (breaks)
—
68
Break rate (of 1,226)
—
5.55%
95% interval
—
4.51–6.74%
Table 1: Main result on 1,490 MMLU questions held out from training, a=1 , noise off.
Margin
Questions
Broken
Share
[0,0.5)
73
29
39.7%
[0.5,1)
85
17
20.0%
[1,2)
161
11
6.8%
[2,4)
310
8
2.6%
≥4
597
3
0.5%
Table 2: Breaks by the clean decision margin, in logit units.
Prompt length
Inputs
Hidden
≤96 tokens
564
41.5%
97–192
666
26.1%
193–384
216
16.1%
≥385
44
13.0%
Table 3: Macro hiding rate by prompt length, a=1 .
Figure 2: The same transform and evaluation set at eight inference strengths. Hiding (green, left axis) is near zero at a≤0.8 , by which point roughly two thirds of the breaks (red, right axis) have already occurred.
λc
Breaks
Hidden (macro/pooled)
Price
0.3
68
30.08% / 24.85%
—
0.5
144
36.56% / 32.18%
11.7
0.7
156
34.84% / 30.32%
18.5
1.0
134
39.59% / 36.03%
6.9
Table 4: Training-time hiding weight, one run each. “Price” is additional breaks per additional point of macro hiding, relative to λc=0.3 .
Arm
Breaks
Hidden (macro)
Parent
68
30.08%
+ 2,000 examples, seed A
52
33.30%
+ 2,000 examples, seed B
55
30.61%
+ 6,000 examples, seed A
102
33.60%
+ 6,000 examples, seed B
72
34.31%
Table 5: Continuation budgets from the same parent checkpoint.
As large language models (LLMs) continue to grow in size, fewer users are able to host and run models locally. This has led to increased use of third-party hosting services. However, in this setting, there is a lack of guarantees on the computation performed by the inference provider. For example, a dishonest provider may replace an expensive large model with a cheaper-to-run weaker model and return the results from the weaker model to the user. Existing tools to verify inference typically rely on methods from cryptography such as zero-knowledge proofs (ZKPs), but these add significant computational overhead, and remain infeasible for use for large models. In this work, we develop a new insight -- that given a method for performing private LLM inference, one can obtain forms of verified inference at marginal extra cost. Specifically, we propose two new protocols which leverage privacy-preserving LLM inference in order to provide guarantees over the inference that was carried out. Our approaches are cheap, requiring the addition of a few extra tokens of computation, and have little to no downstream impact. As the fastest privacy-preserving inference methods are typically faster than ZK methods, the proposed protocols also improve verification runtime. Our work provides novel insights into the connections between privacy and verifiability in LLM inference.
With the widespread deployment of public large language models (LLMs) such as ChatGPT, protecting user prompt privacy has become an increasingly critical issue. Existing privacy-preserving inference methods sacrifice either utility or efficiency, and often require model-specific modifications that limit their compatibility. In this paper, we propose SharedRequest, a model-agnostic framework for privacy-preserving LLM inference that reformulates privacy protection at the batch level rather than the individual-prompt level. The key idea is to obscure sensitive information by mixing original prompts with noisy variants, while grouping semantically equivalent instructions to amortize the inference cost over a large batch of queries with minimal impact on LLM response quality. This design is independent of the LLM architecture, requiring no access to model parameters or architectural modification. Empirical results demonstrate that SharedRequest achieves over 20% higher utility compared to prior differential privacy baselines, and its shared-prompt mechanism reduces query cost by up to 5× compared to non-batched inference.
Peihua Mai, Xuanrong Gao, Youlong Ding +3
1National University of Singapore (Chongqing) Research Institute · 2Chongqing Key Laboratory of Trusted Perception and Interaction Technology for Intelligent and Connected Vehicles, Chongqing, China · 3National University of Singapore +3
Running large language models locally is often impractical, pushing inference on sensitive text to third-party providers. Split inference partially mitigates this by keeping tokens on the client and sending only hidden representations, but these representations can still be recovered via nearest-neighbor search against the public embedding table. We propose an orthogonal obfuscation procedure in which the client multiplies embeddings by a secret orthogonal matrix before transmission. To enable correct inference under arbitrary rotations, we introduce ConjFormer, a transformer variant that is exactly O(d)-equivariant via a lightweight normalization change (scalar RMSNorm) together with blockwise orthogonal conjugation of all linear weights. As a result, the server performs the full forward pass entirely in the rotated basis and never observes unrotated hidden states. Experiments on GPT-2 and Llama 3.2 1B models fine-tuned on PubMed show that orthogonal obfuscation eliminates direct cosine nearest-neighbor inversion and reduces token recovery from over 35% top-10 to at most 1.3%, while increasing perplexity by only 0.4% after fine-tuning. These results indicate that enforcing symmetry at the architectural level can provide a practical defense for privacy-preserving LLM inference without noise injection or heavy cryptographic machinery.
Alexander Yukhimchuk, Andrey Shulga, Mladen Kolar +1