Traveling Salesman-Based Token Ordering Improves Stability in Homomorphically Encrypted Language Models
Not on the map. Why?
Abstract (arXiv)
As users increasingly interact with large language models (LLMs) using private information, secure and encrypted communication becomes essential. Homomorphic encryption (HE) provides a principled solution by enabling computation directly on encrypted data. Although prior work has explored aspects of running LLMs under HE, the challenge of text generation, particularly next-token prediction, has received limited attention and remains a key obstacle to practical encrypted interaction. In this work, we propose a TSP-based token reordering strategy to address the difficulties of encrypted text generation, together with a post-processing step that further reduces approximation error. Theoretical analysis and experimental results demonstrate that our method prevents collapse, improves coherence in generated text, and preserves data privacy throughout. Overall, our contributions advance the feasibility of practical and privacy-preserving LLM inference.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 24 of its 48 references that are in the map. First posted on arXiv 14 Oct 2025.
Builds on
24 of 48 references.
References · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
12 more
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2013Generating Sequences With Recurrent Neural Networkscited by 554
- 2016Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Modelscited by 301
- 2024Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputscited by 150
- 2022Locally Typical Samplingcited by 111
- 2021Precise Approximation of Convolutional Neural Networks for Homomorphically Encrypted Datacited by 27
- 2024Encryption-Friendly LLM Architecturecited by 17
- 2024HETAL: Efficient Privacy-preserving Transfer Learning with Homomorphic Encryptioncited by 12
- 2023Fidelity-Enriched Contrastive Search: Reconciling the Faithfulness-Diversity Trade-Off in Text Generationcited by 8
- 2022Private and Reliable Neural Network Inferencecited by 7
- 2025Efficient Decoding Methods for Language Models on Encrypted Datacited by 5
- 2024Fast and Accurate Homomorphic Softmax Evaluationcited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.