Efficient Decoding Methods for Language Models on Encrypted Data
10 Sept · Matan Avitan, Moran Baruch, Nir Drucker +2 · arXiv:2509.08383
Large language models (LLMs) power modern AI applications, but processing sensitive data on untrusted servers raises privacy concerns. Homomorphic encryption (HE) enables computation on encrypted data for secure inference. However, neural text generation requires decoding methods like argmax and sampling, which are non-polynomial and thus computationally expensive under encryption, creating a significant performance…