Fast and Accurate Homomorphic Softmax Evaluation
Wonhee Cho, Guillaume Hanrot, Taeseong Kim, Minje Park and, Damien Stehl\'e

TL;DR
This paper introduces a fast, accurate homomorphic Softmax evaluation algorithm with logarithmic depth complexity, optimized for large dimensions and multiple simultaneous computations, significantly improving efficiency over previous methods.
Contribution
The authors develop a novel normalize-and-square based homomorphic Softmax algorithm with logarithmic depth, suitable for large-scale neural network applications like LLMs, outperforming existing solutions.
Findings
Achieves $O( ext{log } n)$ depth complexity for fixed input range.
Provides an asymptotic amortized cost of $O(1 + m/N)$ for multiple Softmax computations.
Demonstrates 2.5 to 8 times speedup over state-of-the-art methods in experiments.
Abstract
Homomorphic encryption is one of the main solutions for building secure and privacy-preserving solutions for Machine Learning as a Service. This motivates the development of homomorphic algorithms for the main building blocks of AI, typically for the components of the various types of neural networks architectures. Among those components, we focus on the Softmax function, defined by . This function is deemed to be one of the most difficult to evaluate homomorphically, because of its multivariate nature and of the very large range of values for . The available homomorphic algorithms remain restricted, especially in large dimensions, while important applications such as Large Language Models (LLM) require computing Softmax over large dimensional vectors. In terms of multiplicative depth of…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
