paper-with-me

홈 › Papers

TruncFormer: Private LLM Inference Using Only Truncations

2024-12-02 · Patrick Yubeaton, Jianqiao Cambridge Mo, Karthik Garimella, Nandan Kumar Jha, Brandon Reagen, Chinmay Hegde, Siddharth Garg

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.

📄 PDF Abstract BibTeX arXiv:2412.01042

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Truncation-free Online Variational Inference for Bayesian Nonparametric Models

2012-12-01 · NeurIPS 2012 12 · Chong Wang, David M. Blei

We present a truncation-free online variational inference algorithm for Bayesian nonparametric models. Unlike traditional (online) variational inference algorithms that require truncations for the model or the variationa…

Topic ModelsVariational Inference

Fewer Truncations Improve Language Modeling

2024-04-16 · Hantian Ding, Zijian Wang, Giovanni Paolini, Varun Kumar 외

In large language model training, input documents are typically concatenated together and then split into sequences of equal length to avoid padding tokens. Despite its efficiency, the concatenation approach compromises …

Combinatorial OptimizationHallucinationLanguage ModelingLanguage Modelling+3

Omni-Scene: Omni-Gaussian Representation for Ego-Centric Sparse-View Scene Reconstruction

2024-12-09 · CVPR 2025 1 · Dongxu Wei, Zhiqi Li, Peidong Liu

Prior works employing pixel-based Gaussian representation have demonstrated efficacy in feed-forward sparse-view reconstruction. However, such representation necessitates cross-view overlap for accurate depth estimation,…

Autonomous DrivingDepth Estimation

Differentially Private Bayesian Inference for Exponential Families

2018-09-06 · NeurIPS 2018 12 · Garrett Bernstein, Daniel Sheldon

The study of private inference has been sparked by growing concern regarding the analysis of data when it stems from sensitive sources. We present the first method for private Bayesian inference in exponential families t…

Bayesian Inference

G-Boost: Boosting Private SLMs with General LLMs

2025-03-13 · Yijiang Fan, YUREN MAO, Longbin Lai, Ying Zhang 외

Due to the limited computational resources, most Large Language Models (LLMs) developers can only fine-tune Small Language Models (SLMs) on their own data. These private SLMs typically have limited effectiveness. To boos…

Collaborative Inference