REVIEW 3 major objections 4 minor 1 cited by
TruncFormer: Private LLM Inference Using Only Truncations
T0 review · 3 major / 4 minor · reviewed 2026-08-12 · deepseek-v4-flash
Pith's one-line read TruncFormer shows that private LLM inference can run on additions, multiplications, and statically scheduled truncations alone, cutting latency by up to 1.92x while matching plaintext accuracy.
desk verdict The core idea of statically scheduling truncations is promising, but Algorithm 1's width update is wrong for multiplications and the latency claims rest on unit tests—worth a serious referee, not a desk reject. 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 a directed acyclic graph whose vertices are the model's additions and multiplications and whose edges carry worst-case bit widths. Starting from an input representation of $k$ bits, the scheduler sets each addition's output to $\max(m,n)+1$ bits and each multiplication's output to $m+n$ bits; if that exceeds the field size $F$, it inserts a truncation that resets the larger input to $k$ bits and repeats. Because the graph is known before any private computation, the resulting truncation list is static and data-independent. The same pass is paired with fixed-point encoding at scale $M=2^n$ and with Newton-Raphson and limit approximations for softmax, GeLU, SiLU, and layer norm, modified with lower initial guesses and more iterations so they converge at 64- and 128-bit field sizes.
What would settle it
Run a true end-to-end private inference of Llama-7B and Gemma-2B at 64- and 128-bit fields using the TruncFormer schedule, with actual secret-shared multiplications and garbled-circuit truncations, and compare total wall-clock time against the summed unit-test estimate; if protocol-level overheads materially change the ratio to the truncate-every-multiply baseline, the claimed speedups will not hold.
Extended reading notes
Core claim
The paper's central discovery is that the standard private-inference practice of truncating after every multiplication is wasteful, and that a static pass over the model's arithmetic graph can identify the only multiplications whose results can overflow the fixed field. For each addition the worst-case bit width is $\max(m,n)+1$; for each multiplication it is $m+n$; when that bound exceeds the field size, the scheduler resets the larger input to the input bit-width and records a truncation. Iterating this over the whole transformer produces a data-independent truncation schedule, and every out-of-field nonlinearity is replaced by iterative approximations built from additions, multiplications, and truncations. On Llama-7B and Gemma-2B this preserves accuracy on the vast majority of downstream benchmarks, with one acknowledged perplexity outlier, while cutting private-inference truncation latency by up to roughly 1.9x compared with a reimplementation of the previous state of the art.
Load-bearing premise
The load-bearing premise is that timing a single garbled-circuit truncation and a single secret-shared multiplication in isolation, then adding the costs over the whole model, faithfully predicts how long true end-to-end private inference will take.
Editorial extensions
If this is right
- Because truncations consume 90-99% of private-inference time in the measured models, reducing the number of truncations is a larger lever than speeding any single nonlinearity approximation.
- New differentiable activation functions no longer require bespoke private-inference protocols: they can be approximated by additions, multiplications, and truncations and then scheduled by the same static pass.
- The truncation schedule is computed once per model and is data-independent, so it adds no per-query cryptographic cost.
- Field size interacts with scheduling: going from 64 to 128 bits removes many truncations but roughly doubles each truncation's cost, yielding only 0.98x-1.04x net speedups, so the choice of field size is part of the optimization.
- The method preserves plaintext accuracy on nearly all tested benchmarks, so the latency savings are not bought with degraded model quality.
Reading between the lines
- The paper leaves open the natural next lever: choosing field size per layer or per operation instead of one global 64- or 128-bit field, since each truncation costs more in larger fields and a mixed schedule could beat both uniform choices.
- The same static analysis should transfer to other differentiable models beyond transformers; the paper only demonstrates it on two LLM families, but the DAG scheduler is architecture-agnostic.
- The paper's own operation breakdown predicts where speedups will show up in a real system: long-prompt, single-token settings gain most from softmax truncation savings, while activation-heavy autoregressive generation gains less, and this is a testable prediction for any end-to-end implementation.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes TruncFormer, a framework for private LLM inference that statically schedules truncation operations in fixed-point arithmetic, avoiding the common practice of truncating after every multiplication. The framework replaces LLM nonlinearities with differentiable approximations built from additions, multiplications, and truncations, and determines truncation locations from a bit-width analysis of the model graph. The authors evaluate accuracy on Llama-7B and Gemma-2B across coding, math, commonsense, and perplexity benchmarks, and report truncation-latency speedups of 0.98x--1.92x over a self-implemented PUMA baseline. The core claim is that truncation scheduling, rather than bespoke nonlinearity approximations, is the key lever for faster private LLM inference.
Significance. If the static truncation scheduling is correct, the paper identifies a valuable and relatively unexplored optimization axis for private inference: deciding at compile time where truncations are actually needed, instead of after every multiplication. The accuracy results are broad and mostly close to plaintext, the operation-level breakdown is informative, and the authors have open-sourced their code. However, the central algorithm as written has a correctness bug in multiplication bit-width accounting, and the quantitative speedup claims rest on unit-test timings summed over the model graph rather than measured end-to-end private inference. These issues are fixable, but they currently prevent the paper's central claims from being fully supported.
major comments (3)
- [Algorithm 1 (Section 3)] The inner while loop recomputes `worst case <- max(E1,E2)+1` after truncating an operand, which is the addition rule and is incorrect for multiplication. After truncating one operand of a multiplication to k bits, the output width is k plus the other operand's width, not max(E1,E2)+1. For example, with F=64 and k=13, a product of two 52-bit operands has worst-case width 104 bits; truncating one operand to 13 bits leaves a 65-bit product, which still exceeds the field, but the pseudocode computes max(13,52)+1=53, stops, and records E3=53. This under-estimates downstream bit widths and contradicts the abstract's claim that truncations are inserted wherever overflows can occur. Please correct the multiplication rule and, if the released code mirrors the pseudocode, re-run the bit-width analysis and experiments; if the code uses the correct k+other rule, state that explicitly.
- [Section 4.1, Tables 2 and 4] All reported speedups are ratios of unit-test timings summed over the model graph, not measured end-to-end private inference. The PUMA baseline is the authors' reimplementation inside their own framework rather than the published PUMA system. Truncation time may dominate (Table 3), but the headline 0.98x--1.92x figures should be labeled as truncation-time speedups under a unit-test cost model, and the authors should report a sensitivity analysis over non-truncation overheads (communication, preprocessing, protocol orchestration) before claiming end-to-end latency improvements.
- [Abstract and Contribution 3] The title and contribution 3 claim private inference with "adds/multiplies and truncations alone," but Section 3 states that differentiable functions can be represented "with only truncations and comparisons as the out-of-field operations." If comparisons remain in the approximated graphs, their cost must be included and the claim should be revised; if not, the text should explain how comparisons are avoided.
minor comments (4)
- [Algorithm 2 (Section 3)] The variable `iterations` in `while iterations <= Niter` is never initialized; please specify the starting value and the loop increment.
- [Table 3] Table 3 should state explicitly that the percentages are for the TruncFormer model under the unit-test cost model, and should indicate the field size and input bit-width used.
- [Abstract and Contributions] The paper says "takes any transformer model," but experiments cover only Llama-7B and Gemma-2B; please soften the claim or add evidence for architectural generality.
- [Algorithm 1] The algorithm title contains the typo "Trunctions," and the notation `V <- (operation, E1, E2, E3)` and `H <- (V,H)` should be clarified so that the graph update is unambiguous.
Circularity Check
No circular derivation found: static truncation scheduling and accuracy results are independently meaningful; the main quantitative concerns are benchmarking fairness and an Algorithm 1 correctness bug, not circularity.
full rationale
The paper's central claim is that truncations can be scheduled statically rather than after every multiplication. This claim is derived from a straightforward bit-width analysis: for each add/multiply vertex, the algorithm computes a worst-case output width and inserts a truncation only when that width exceeds the field size. The resulting truncation schedule is then evaluated by actually running plaintext emulations on Llama-7B and Gemma-2B, with accuracy compared against the original models and PUMA. No parameter is fitted to a subset of the reported results and then renamed as a prediction; the input bit width of 13 bits is selected empirically, but that is ordinary hyperparameter choice, not a fitted parameter masquerading as an output. The speedups over PUMA are transparently computed as ratios of unit-test truncation times, and because TruncFormer deliberately uses fewer truncations, the direction of the speedup follows by construction; this is a property of the method, not a circular inference. The quantitative comparison is weakened by two factors: the PUMA baseline is implemented by the authors inside their own framework rather than using the official SecretFlow system, and the truncation latency model follows the EMP-Toolkit benchmarking methodology of (Mo et al., 2023), which is a self-citation by a co-author. These are validity and fairness concerns, but they do not reduce the central claim to its own inputs. The manuscript's stated limitation that only the Delphi protocol is tested is likewise a scope limitation rather than circularity. Separately, Algorithm 1 appears to contain a genuine correctness bug: after truncating one operand of a multiplication, it recomputes the output width as max(E1,E2)+1, which is the addition rule, instead of using the truncated width plus the other operand's width; this could undercount product widths and miss required truncations. That is an important correctness risk in the central method, but it is not a circular-derivation pattern, so it does not raise the circularity score.
Assumptions & free parameters
free parameters (3)
- Input fixed-point bit width k =
13 bits
- Approximation iteration counts =
exponentiation 8, reciprocal 20, inverse square-root 12
- Initial guess scaling for Newton-Raphson =
modified from CrypTen (not fully specified)
assumptions (5)
- domain assumption All LLM nonlinearities (softmax, layer norm, GeLU, SiLU, inverse square-root) are differentiable and can be approximated by Newton-Raphson/Taylor/limit chains using only add/multiply/truncate.
- domain assumption The modified CrypTen approximations converge to acceptable accuracy at 64/128-bit fields with the chosen iteration counts.
- domain assumption Per-operation unit latencies (benchmarked scalar truncation and beaver-triple multiplication) can be summed to estimate end-to-end PI latency.
- domain assumption Fixed-point scaling M=2^n preserves model behavior to the accuracy reported.
- domain assumption Worst-case bit-width propagation in Algorithm 1 correctly identifies all overflow points.
Cite this review
Pith. "Pith review of TruncFormer: Private LLM Inference Using Only Truncations." pith.science (2026). https://pith.science/paper/HFB634ID
@misc{pith2026241201042,
author = {Pith},
title = {Pith review of: TruncFormer: Private LLM Inference Using Only Truncations},
year = {2026},
howpublished = {\url{https://pith.science/paper/HFB634ID}},
note = {Machine review of arXiv:2412.01042}
}
read the original abstract
Private inference (PI) serves an important role in guaranteeing the privacy of user data when interfacing with proprietary machine learning models such as LLMs. However, PI remains practically intractable due to the massive latency costs associated with nonlinear functions present in LLMs. Existing works have focused on improving latency of specific LLM nonlinearities (such as the Softmax, or the GeLU) via approximations. However, new types of nonlinearities are regularly introduced with new LLM architectures, and this has led to a constant game of catch-up where PI researchers attempt to optimize the newest nonlinear function. We introduce TruncFormer, a framework for taking any LLM and transforming it into a plaintext emulation of PI. Our framework leverages the fact that nonlinearities in LLMs are differentiable and can be accurately approximated with a sequence of additions, multiplications, and truncations. Further, we decouple the add/multiply and truncation operations, and statically determine where truncations should be inserted based on a given field size and input representation size. This leads to latency improvements over existing cryptographic protocols that enforce truncation after every multiplication operation. We open source our code for community use.
Figures
Forward citations
Cited by 1 Pith paper
-
CrypTorch: PyTorch-based Auto-tuning Compiler for Machine Learning with Multi-party Computation
An MPC-ML compiler that modularizes and auto-tunes operator approximations, delivering 1.2–1.8x speedups over an optimized baseline under user-set accuracy bounds.
Reference graph
Works this paper leans on
-
[1]
Program synthesis with large language models
Austin, J., Odena, A., Nye, M., Bosma, M., Michalewski, H., Dohan, D., Jiang, E., Cai, C., Terry, M., Le, Q., et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732,
-
[3]
Privit: Vision transformers for fast private inference
Dhyani, N., Mo, J., Cho, M., Joshi, A., Garg, S., Reagen, B., and Hegde, C. Privit: Vision transformers for fast private inference. arXiv preprint arXiv:2310.04604,
-
[7]
Kundu, S., Lu, S., Zhang, Y ., Liu, J., and Beerel, P. A. Learn- ing to linearize deep neural networks for secure and effi- cient private inference. arXiv preprint arXiv:2301.09254,
-
[8]
Li, D., Shao, R., Wang, H., Guo, H., Xing, E. P., and Zhang, H. Mpcformer: fast, performant and private transformer inference with mpc. arXiv preprint arXiv:2211.01452,
-
[9]
Oblivious neu- ral network predictions via minionn transformations
Liu, J., Juuti, M., Lu, Y ., and Asokan, N. Oblivious neu- ral network predictions via minionn transformations. In Proceedings of the 2017 ACM SIGSAC conference on computer and communications security , pp. 619–631,
work page 2017
-
[10]
Secformer: Towards fast and accurate privacy- preserving inference for large language models
Luo, J., Zhang, Y ., Zhang, J., Mu, X., Wang, H., Yu, Y ., and Xu, Z. Secformer: Towards fast and accurate privacy- preserving inference for large language models. arXiv preprint arXiv:2401.00793,
-
[12]
Pointer sentinel mixture models
Merity, S., Xiong, C., Bradbury, J., and Socher, R. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843,
-
[14]
Glu variants improve transformer
Shazeer, N. Glu variants improve transformer. arXiv preprint arXiv:2002.05202,
arXiv 2002
Show all 22 references
-
[15]
S., Love, J., et al
Team, G., Mesnard, T., Hardin, C., Dadashi, R., Bhupatiraju, S., Pathak, S., Sifre, L., Rivi`ere, M., Kale, M. S., Love, J., et al. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295,
-
[16]
Llama: Open and efficient foundation lan- guage models
Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozi`ere, B., Goyal, N., Hambro, E., Azhar, F., et al. Llama: Open and efficient foundation lan- guage models. arXiv preprint arXiv:2302.13971, 2023a. Touvron, H., Martin, L., Stone, K., Albert, P...
-
[17]
Quick and (not so) dirty: Unsupervised selection of justification sen- tences for multi-hop question answering
Yadav, V ., Bethard, S., and Surdeanu, M. Quick and (not so) dirty: Unsupervised selection of justification sen- tences for multi-hop question answering. arXiv preprint arXiv:1911.07176,
1911 arXiv
-
[20]
Mpcvit: Searching for accurate and efficient mpc-friendly vision transformer with het- erogeneous attention
Zeng, W., Li, M., Xiong, W., Tong, T., Lu, W.-j., Tan, J., Wang, R., and Huang, R. Mpcvit: Searching for accurate and efficient mpc-friendly vision transformer with het- erogeneous attention. arXiv preprint arXiv:2211.13955,
-
[21]
Primer: Fast private transformer inference on encrypted data
Zheng, M., Lou, Q., and Jiang, L. Primer: Fast private transformer inference on encrypted data. In 2023 60th ACM/IEEE Design Automation Conference (DAC) , pp. 1–6. IEEE,
2023
-
[22]
Y ., Vu, M
Zhuo, T. Y ., Vu, M. C., Chim, J., Hu, H., Yu, W., Widyasari, R., Yusuf, I. N. B., Zhan, H., He, J., Paul, I., et al. Big- codebench: Benchmarking code generation with diverse function calls and complex instructions. arXiv preprint arXiv:2406.15877, 2024
2024 arXiv
-
[2014]
Hellaswag: Can a machine really finish your sentence? arXiv preprint arXiv:1905.07830,
Zellers, R., Holtzman, A., Bisk, Y ., Farhadi, A., and Choi, Y . Hellaswag: Can a machine really finish your sentence? arXiv preprint arXiv:1905.07830,
1905 arXiv
-
[2016]
Mishra, P., Lehmkuhl, R., Srinivasan, A., Zheng, W., and Popa, R. A. Delphi: A cryptographic inference system for neural networks. In Proceedings of the 2020 Workshop on Privacy-Preserving Machine Learning in Practice, pp. 27–30,
2020
-
[2019]
TruncFormer Yao, A. C.-C. How to generate and exchange secrets. In27th annual symposium on foundations of computer science (Sfcs 1986), pp. 162–167. IEEE,
1986
-
[2020]
Measuring math- ematical problem solving with the math dataset
Hendrycks, D., Burns, C., Kadavath, S., Arora, A., Basart, S., Tang, E., Song, D., and Steinhardt, J. Measuring math- ematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874,
-
[2021]
Sphynx: A deep neural network design for private inference
Cho, M., Ghodsi, Z., Reagen, B., Garg, S., and Hegde, C. Sphynx: A deep neural network design for private inference. IEEE Security & Privacy, 20(5):22–34, 2022a. Cho, M., Joshi, A., Reagen, B., Garg, S., and Hegde, C. Selective network linearization for efficient private infer...
-
[2022]
Measuring mas- sive multitask language understanding
Hendrycks, D., Burns, C., Basart, S., Zou, A., Mazeika, M., Song, D., and Steinhardt, J. Measuring mas- sive multitask language understanding. arXiv preprint arXiv:2009.03300,
2009 arXiv
-
[2023]
Puma: Se- cure inference of llama-7b in five minutes
Dong, Y ., Lu, W.-j., Zheng, Y ., Wu, H., Zhao, D., Tan, J., Huang, Z., Hong, C., Wei, T., and Cheng, W. Puma: Se- cure inference of llama-7b in five minutes. arXiv preprint arXiv:2307.12533,
-
[2024]
{SecretFlow- SPU}: A performant and {User-Friendly} framework for {Privacy-Preserving} machine learning
Ma, J., Zheng, Y ., Feng, J., Zhao, D., Wu, H., Fang, W., Tan, J., Yu, C., Zhang, B., and Wang, L. {SecretFlow- SPU}: A performant and {User-Friendly} framework for {Privacy-Preserving} machine learning. In 2023 USENIX Annual Technical Conference (USENIX ATC 23), pp. 17– 33,
2023
Reviewed August 12, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.