REVIEW 4 major objections 4 minor 26 references
Towards Confidential and Efficient LLM Inference with Dual Privacy Protection
T0 review · 4 major / 4 minor · reviewed 2026-08-04 · deepseek-v4-flash
Pith's one-line read CMIF claims that putting only the embedding layer in a client TEE and sanitizing input words with Report-Noisy-Max gives LLM inference both differential privacy and low overhead.
desk verdict A sensible TEE/GPU split with a broken DP proof: the privacy guarantee in §4.4 does not follow from the paper's own definitions. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing object is the Report-Noisy-Max (RNM) sanitization mechanism F, defined as: for each word xi, compute normalized cosine distance to top-k candidates Si, add independent Laplace noise Lap(1/epsilon) to each score, and output the candidate with the largest noisy score. The same mechanism doubles as the privacy device (RNM is epsilon-DP when the score is Delta-sensitive) and as the semantic-preserving device (candidates are nearest neighbors in the model's own embedding space). The other half of the framework is the placement of the embedding layer inside the client TEE, which lets the sanitizer run in the enclave and keeps word vectors private while all decoder layers execute o
What would settle it
Compute, for a real embedding space, the true sensitivity of the score function used by F by enumerating pairs of neighboring inputs and checking the maximum absolute change in normalized cosine distance across all possible candidate sets; if any pair exceeds 1, or if the ratio Pr(F(x)=x̂)/Pr(F(x')=x̂) exceeds e^epsilon for some x̂, the paper's central privacy claim is refuted.
Extended reading notes
Core claim
In the paper's own terms, the discovery is that CMIF—a Confidential and efficient Model Inference Framework—can protect user data with a sanitization mechanism and model confidentiality by TEE-shielded deployment, without returning to the TEE for decryption during inference. Specifically, the embedding layer is placed in the client enclave; for each sensitive token, the mapping function F builds a top-k candidate set from cosine similarity, normalizes the distances so the score's sensitivity is 'equalized to 1', adds Lap(1/epsilon) noise to each score, and returns the argmax. Non-sensitive tokens are also replaced with probability p. The formal analysis claims epsilon-DP when both neighborin
Load-bearing premise
The privacy guarantee rests on the normalized cosine distance having sensitivity exactly 1 and on the candidate substitute set being the same for neighboring inputs; since the candidate set is defined per input word, the analysis does not establish this, and if either part fails the claimed epsilon-DP bound does not hold.
Editorial extensions
If this is right
- CMIF eliminates the need for per-layer encryption and TEE-GPU switching during decoder execution, since the server only receives sanitized text.
- The sanitizer's own time cost is about 0.6% of inference time, so the dominant remaining overhead is the enclave boundary itself, not the DP mechanism.
- Compared to SANTEXT+ and CUSTEXT+, the RNM sanitizer improves classification accuracy at the same nominal epsilon on SST-2 and QNLI with BERT, and keeps Llama3-8B within 0.15% of non-private performance on IFEval after fine-tuning on sanitized DialogSUM data.
- The small size of the embedding layer (roughly 1.9% of Llama2-7B parameters) makes client-side TEE deployment feasible even on memory-constrained devices.
Reading between the lines
- The paper's per-input definition of the candidate set Si is in tension with the standard RNM requirement that the outcome set be fixed across neighboring inputs; a rigorous DP claim would require either a global candidate set or a separate sensitivity argument for changing Si. This is an editorial observation, not a claim the paper makes.
- If the sensitivity concern is repaired, the RNM sanitizer becomes a drop-in preprocessing module for any black-box LLM API, since it needs only the embedding table, which could be obtained from a public model or a minimal client-side copy.
- The asymmetric treatment of sensitive vs non-sensitive words gives an explicit trade-off: lowering p increases fidelity but adds ln(1/p) to the privacy loss, so practitioners can select p based on deployment-specific privacy budgets without retraining.
- The same design pattern—small protected embedding layer plus noisy token substitution—could transfer beyond SGX to other confidential-computing backends or to on-device mobile TEEs, because the protected component is small and self-contained.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes CMIF, a framework for private LLM inference that keeps the embedding layer inside a client-side TEE and offloads the remaining layers to a GPU server. To protect user inputs, it replaces sensitive (low-frequency) tokens using an RNM-style mechanism that adds Laplace noise to normalized cosine scores over a per-token top-k candidate set. The authors claim epsilon-DP for sensitive tokens, (ln(1/p)+epsilon)-DP when non-sensitive tokens are randomized with probability p, and lower inference overhead than purely TEE-based approaches. Experiments on BERT, Llama2-7B, and Llama3-8B report utility and latency results, and a code link is provided.
Significance. If the privacy proof were valid, the design would be an interesting combination: a TEE for the embedding layer plus DP sanitization to avoid per-token TEE round trips. The paper includes a clear experimental setup, measurements of overhead, and a public code link. However, the central DP analysis is not valid as written: the candidate outcome set and normalization are input-dependent, so the standard Report-Noisy-Max theorem does not apply. Since differential privacy is the paper's primary formal contribution, the claimed guarantees do not support the system's privacy properties. The utility and efficiency measurements are internally plausible but are presented at privacy levels that are not established.
major comments (4)
- [§3.2 and §4.4, Eq. (4)] The outcome space S_i is defined as the top-k most similar words to each specific input w_i. Thus S_i changes when the input changes. In Report-Noisy-Max (Definition 2 and Theorem 1), Y is a fixed finite outcome set. For any output x* in S_i \ S_{i'}, Pr(F(x_i)=x*) > 0 while Pr(F(x_i')=x*) = 0, so the probability ratio in Eq. (4) is unbounded. Consequently, Case 1's epsilon-DP claim is unproven and in fact false for the mechanism as specified. This is a direct mismatch between the theorem's assumptions and the construction, not a minor presentational gap.
- [§3.2, Eq. (3)] The paper asserts that normalizing by cos_min and cos_max 'equalizes' sensitivity to 1, but these constants are computed from S_i, which depends on x_i. The function u is not a fixed score function d(D, y) as required by Definition 2; it is a family of functions parameterized by the input. The global sensitivity over neighboring inputs is not shown to be 1, and the Laplace scale Lap(1/epsilon) is therefore unjustified. A correct proof would need to establish sup_{x~x', y in a fixed common Y} |u_x(y) - u_{x'}(y)| <= 1 for a fixed Y, which is not supplied and is incompatible with the current input-dependent construction.
- [§4.4, Case 2] The mechanism for non-sensitive words is a mixture: with probability p it runs RNM, otherwise it outputs the original word. The claimed (ln(1/p)+epsilon)-DP bound is not derived. For any output y that lies in S_i but not in S_{i'} and also y != x' (the original non-sensitive word), Pr(F(x_i)=y) > 0 while Pr(F(x_i')=y) = 0, so the probability ratio is unbounded and no finite DP guarantee holds. The mixture analysis is missing and the claimed bound is not generally valid.
- [§3.1 and Abstract] The title and abstract claim dual protection of user data and model parameters. However, only the embedding layer is placed in the client-side TEE; the paper itself notes this is about 1.9% of Llama2-7B parameters. The remaining layers are sent in plaintext to the GPU server, which under the stated semi-honest cloud-provider threat model can inspect them. The paper does not explain what adversary the model-parameter protection is intended to defend against, or why the bulk of the model on the GPU server is considered confidential. This unsupported claim is load-bearing for the paper's framing.
minor comments (4)
- [§3.2] Typo: 'Report-Nosiy-Max' should be 'Report-Noisy-Max'.
- [§2.3 / §4.4] The neighboring relation for text inputs is not formally defined. The paper says 'x, x' are defined as differing in vocabulary V', which is ambiguous; Definition 1 requires a precise notion of neighboring inputs (e.g., one token substitution of equal-length sequences).
- [Table 1] The 'Random' row appears incomplete: no QNLI values are reported, and the table layout is hard to read. Please also state whether the reported numbers are averaged over multiple runs and what variance is observed.
- [§2.3, Definition 1] Sensitivity is defined using the Frobenius norm, while the Report-Noisy-Max guarantee in Theorem 1 typically uses L1 or L_infinity sensitivity for scalar score functions. This mismatch should be clarified.
Circularity Check
No circularity: the DP claim rests on an unproven sensitivity normalization, which is a correctness risk, not a reduction to the paper's own inputs.
full rationale
I walked the derivation chain of CMIF and found no circular step of the kinds enumerated. The sanitization mechanism uses a standard Report-Noisy-Max (RNM) construction, and Theorem 1 is cited from Dwork and Roth's external foundational treatment of DP, not from the authors' own prior work. No parameter is fitted to a data subset and then relabeled as a prediction: the reported accuracy figures are direct measurements on SST-2, QNLI, DialogSUM, and IFEval, and the candidate vocabulary comes from static model embeddings. The central privacy result in Section 4.4 does contain a load-bearing assertion that the normalized cosine distance u has sensitivity exactly 1 and that the top-k set S_i behaves as a fixed outcome space; as the paper itself defines S_i relative to the input x_i and normalizes using cos_max and cos_min computed from that input-dependent candidate list, the claimed sensitivity-1 premise is not proven and may fail under the paper's own definitions. That is a serious correctness gap, but it is an unsupported or false modeling assumption rather than a circular derivation: the privacy claim is not equivalent by construction to an input of the analysis, nor is it justified by a self-citation chain. The paper would be circular only if, for example, the DP guarantee were derived from the assumption that the sanitizer is DP, which is not the case. Therefore the appropriate circularity score is 0, with the sensitivity issue flagged as a correctness risk rather than circularity.
Assumptions & free parameters
free parameters (3)
- k =
30
- p =
0.3
- frequency_threshold =
bottom 20%
assumptions (5)
- standard math Report-Noisy-Max with a Laplace scale Delta/epsilon is epsilon-DP when the score function is Delta-sensitive (Theorem 1 from Dwork and Roth).
- ad hoc to paper The normalized cosine score cosnorm has global sensitivity 1 for any pair of neighboring inputs.
- domain assumption The set of candidate outcomes Si is fixed for all inputs, as required by RNM.
- domain assumption Semi-honest model owners and cloud providers; no side-channel attacks on TEEs.
- domain assumption Low-frequency words are the sensitive ones.
Cite this review
Pith. "Pith review of Towards Confidential and Efficient LLM Inference with Dual Privacy Protection." pith.science (2026). https://pith.science/paper/TD3L6U2M
@misc{pith2026250909091,
author = {Pith},
title = {Pith review of: Towards Confidential and Efficient LLM Inference with Dual Privacy Protection},
year = {2026},
howpublished = {\url{https://pith.science/paper/TD3L6U2M}},
note = {Machine review of arXiv:2509.09091}
}
read the original abstract
CPU-based trusted execution environments (TEEs) and differential privacy (DP) have gained wide applications for private inference. Due to high inference latency in TEEs, researchers use partition-based approaches that offload linear model components to GPUs. However, dense nonlinear layers of large language models (LLMs) result in significant communication overhead between TEEs and GPUs. DP-based approaches apply random noise to protect data privacy, but this compromises LLM performance and semantic understanding. To overcome the above drawbacks, this paper proposes CMIF, a Confidential and efficient Model Inference Framework. CMIF confidentially deploys the embedding layer in the client-side TEE and subsequent layers on GPU servers. Meanwhile, it optimizes the Report-Noisy-Max mechanism to protect sensitive inputs with a slight decrease in model performance. Extensive experiments on Llama-series models demonstrate that CMIF reduces additional inference overhead in TEEs while preserving user data privacy.
Figures
Figures from the paper (1 more)
Reference graph
Works this paper leans on
-
[1]
In: Proc
Bassily, R., Smith, A.: Local, private, efficient protocols for succinct histograms. In: Proc. of symposium on Theory of computing. pp. 127–135 (2015)
2015
-
[2]
In: Proc
Chen, S., Mo, F., Wang, Y., et al.: A customized text sanitization mechanism with differential privacy. In: Proc. of ACL. pp. 5747–5758 (2023)
2023
-
[3]
In: Proc
Devlin, J., Chang, M., Lee, K., Toutanova, K.: BERT: pre-training of deep bidi- rectional transformers for language understanding. In: Proc. of NAACL. pp. 4171– 4186 (2019)
2019
-
[4]
In: Proc
Du, M., Yue, X., et al.: Dp-forward: Fine-tuning and inference on language models with differential privacy in forward pass. In: Proc. of CCS. pp. 2665–2679 (2023)
2023
-
[5]
arXiv preprint arXiv:2407.21783 (2024) H
Dubey, A., Jauhri, A., et al.: The llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024) H. Yu et al
arXiv 2024
-
[6]
IEEE Access9, 168656– 168677 (2021)
Duy, K.D., Noh, T., Huh, S., Lee, H.: Confidential machine learning computation in untrusted environments: A systems security perspective. IEEE Access9, 168656– 168677 (2021)
2021
-
[7]
Dwork, C., Roth, A.: The algorithmic foundations of differential privacy. Found. Trends Theor. Comput. Sci.9(3–4), 211–407 (2014)
2014
-
[8]
In: Proc
Hashemi, H., Wang, Y., Annavaram, M.: Darknight: An accelerated framework for privacy and integrity preserving deep learning using trusted hardware. In: Proc. of MICRO. pp. 212–224 (2021)
2021
Show all 26 references
-
[9]
In: Proc
Huang, W., Wang, Y., Cheng, A., Zhou, A., Yu, C., Wang, L.: A fast, perfor- mant, secure distributed training framework for large language model. In: Proc. of ICASSP (2024)
2024
-
[10]
In: Proc
Li, Z., Wang, W., et al.: Bevformer: Learning bird’s-eye-view representation from multi-camera images via spatiotemporal transformers. In: Proc. of ECCV. pp. 1–18 (2022)
2022
-
[11]
In: Proc
Pennington, J., Socher, R., Manning, C.: GloVe: Global vectors for word represen- tation. In: Proc. of EMNLP. pp. 1532–1543 (2014)
2014
-
[12]
In: Proc
Sabt, M., Achemlal, M., Bouabdallah, A.: Trusted execution environment: What it is, and what it is not. In: Proc. of Trustcom. pp. 57–64 (2015)
2015
-
[13]
In: Proc
Schunter, M.: Intel software guard extensions: Introduction and open research chal- lenges. In: Proc. of SRPO. pp. 1–1 (2016)
2016
-
[14]
In: Proc
Shen, T., Qi, J., Jiang, J., Wang, X., Wen, S., et al., X.C.: SOTER: Guarding black-box inference for general neural networks at the edge. In: Proc. of USENIX. pp. 723–738 (2022)
2022
-
[15]
In: Proc
Shen, Y., Tian, H., et al.: Occlum: Secure and efficient multitasking inside a single enclave of intel sgx. In: Proc. of ASPLOS. pp. 955–970 (2020)
2020
-
[16]
In: Proc
Sun, Z., Sun, R., Liu, C., Chowdhury, A.R., Lu, L., Jha, S.: Shadownet: A secure and efficient on-device model inference system for convolutional neural networks. In: Proc. of SP. pp. 1596–1612 (2023)
2023
-
[17]
Nature medicine (8), 1930–1940 (2023)
Thirunavukarasu, A.J., Ting, D.S.J., et al.: Large language models in medicine. Nature medicine (8), 1930–1940 (2023)
1930
-
[18]
arXiv preprint arXiv:2307.09288 (2023)
Touvron, H., Martin, L., et al.: Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 (2023)
2023 arXiv
-
[19]
In: Proc
Tramèr, F., Boneh, D.: Slalom: Fast, verifiable and private execution of neural networks in trusted hardware. In: Proc. of ICLR (2019)
2019
-
[20]
In: Proc
Tsai, C.C., Porter, D.E., Vij, M.: Graphene-sgx: a practical library os for unmod- ified applications on sgx. In: Proc. of USENIX. pp. 645–658 (2017)
2017
-
[21]
In: Proc
Xu, H., Kim, Y.J., Sharaf, A., Awadalla, H.H.: A paradigm shift in machine trans- lation: Boosting translation performance of large language models. In: Proc. of ICLR (2024)
2024
-
[22]
arXiv preprint arXiv:2401.11531 (2024)
Xu, R., Fang, Z.: Tempo: Confidentiality preservation in cloud-based neural net- work training. arXiv preprint arXiv:2401.11531 (2024)
2024 arXiv
-
[23]
In: Proc
Yue, X., Du, M., et al.: Differential privacy for text analytics via natural text sanitization. In: Proc. of ACL. pp. 3853–3866 (2021)
2021
-
[24]
In: Proc
Zhang, Z., Gong, C., et al.: No privacy left outside: On the (in-)security of tee- shielded dnn partition for on-device ml. In: Proc. of SP. pp. 55–55 (2024)
2024
-
[25]
arXiv preprint arXiv:2311.07911 (2023)
Zhou, J., Lu, T., Mishra, S., et al.: Instruction-following evaluation for large lan- guage models. arXiv preprint arXiv:2311.07911 (2023)
2023 arXiv
-
[26]
In: Proc
Zhou, X., Lu, Y., et al.: TextObfuscator: Making pre-trained language model a privacy protector via obfuscating word representations. In: Proc. of ACL. pp. 5459– 5473 (2023)
2023
Reviewed August 4, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.