mlsanityData to 7 Oct 2026

TruncFormer: Private LLM Inference Using Only Truncations

arXiv 2412.01042 ↗First posted 2 Dec 2024cs.CR cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 23 of its 43 references that are in the map. First posted on arXiv 2 Dec 2024.

Builds on

23 of 43 references.

References · 23

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2021Program Synthesis with Large Language Modelscited by 3,509
  8. 2016Pointer Sentinel Mixture Modelscited by 2,992
  9. 2020GLU Variants Improve Transformercited by 1,724
  10. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
  11. 2021CrypTen: Secure Multi-Party Computation Meets Machine Learningcited by 131
  12. 2022MPCFormer: fast, performant and private Transformer inference with MPCcited by 67
11 more
  1. 2019Quick and (not so) Dirty: Unsupervised Selection of Justification Sentences for Multi-hop Question Answeringcited by 58
  2. 2023PUMA: Secure Inference of LLaMA-7B in Five Minutescited by 44
  3. 2020CryptoNAS: Private Inference on a ReLU Budgetcited by 40
  4. 2022Selective Network Linearization for Efficient Private Inferencecited by 31
  5. 2023Learning to Linearize Deep Neural Networks for Secure and Efficient Private Inferencecited by 20
  6. 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attentioncited by 19
  7. 2023Primer: Fast Private Transformer Inference on Encrypted Datacited by 19
  8. 2021Circa: Stochastic ReLUs for Private Deep Learningcited by 16
  9. 2021Sphynx: ReLU-Efficient Network Design for Private Inferencecited by 15
  10. 2022HAAC: A Hardware-Software Co-Design to Accelerate Garbled Circuitscited by 5
  11. 2023PriViT: Vision Transformers for Fast Private Inferencecited by 4

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.