FastQuery: Communication-efficient Embedding Table Query for Private LLM Inference
Chenqi LinTianshi XuZebin Yang
Runsheng WangRu HuangMLMeng Li Chenqi Lin
Tianshi Xu
Zebin Yang

Runsheng Wang
Ru Huang
MLMeng Li
+6
FastQuery is a framework that optimizes private embedding table queries for LLM inference under homomorphic encryption. It reduces computation and communication overhead by exploiting the one-hot nature of user queries and the robustness of embedding tables to low bit-width quantization noise. Its two key techniques are a communication-aware quantization algorithm and a one-hot-aware dense packing algorithm. Compared to prior HE-based frameworks—Cheetah, Iron, and Bumblebee—FastQuery achieves up to 4.3×, 2.7×, and 1.3× latency reduction, and up to 75.7×, 60.2×, and 20.2× communication reduction on LLAMA-7B and LLAMA-30B.

arXiv ·
· May 25, 2024