Abstract
BumbleBee is a high-performance secure two-party inference (2PC) framework designed to scale large Transformer models, such as LLaMA-7B, to privacy-preserving environments. By addressing the "bandwidth wall" through novel ciphertext compression techniques and optimized activation protocols, BumbleBee achieves up to a 95% reduction in communication overhead and runs an order of magnitude faster than previous state-of-the-art systems. This work demonstrates the first successful 2PC execution of a 7-billion parameter model, marking a significant step toward practical private AI.
1. Introduction
The rapid adoption of Large Language Models (LLMs) like GPT and LLaMA has introduced significant privacy challenges. In standard cloud deployments, users must share sensitive data with model providers, while providers must expose proprietary model weights. Private Inference (PI) via Secure Multi-party Computation (MPC) offers a solution where neither party learns the other's secrets. However, Transformers present a unique challenge due to their massive matrix multiplications and complex non-linear activations (e.g., GeLU, Softmax), which lead to extreme communication bottlenecks in traditional 2PC frameworks.
2. Methodology
BumbleBee introduces several cryptographic innovations to overcome the efficiency barriers of private Transformer inference. The framework maintains ring-consistency, operating primarily within the same ring modulus to avoid expensive conversion protocols.
2.1 Oblivious Linear Transformation (OLT) with InterLeave
To handle large-scale matrix operations, BumbleBee utilizes Lattice-based Homomorphic Encryption (HE). A key innovation is the InterLeave technique, which homomorphically packs sparse HE results into dense ciphertexts. This process "cleans up" useless coefficients that typically waste bandwidth, reducing communication for linear layers by 80–90%.
2.2 Optimized Activation Protocols
Instead of exact computation, BumbleBee employs piecewise low-degree polynomial approximations for complex functions like GeLU and SiLU. By exploiting the numerical "smoothness" of these functions, the framework uses approximated branch selection, which significantly reduces the reliance on expensive Oblivious Transfer (OT) operations without sacrificing model accuracy.
2.3 Efficient Point-wise Operations
For point-wise multiplications, the framework introduces a faster Batch OLE (bOLEe) protocol using "modulus lifting." This allows for smaller, more efficient HE parameters. Additionally, BumbleBee optimizes polynomial evaluations by leveraging the fact that "square" operations are significantly cheaper than standard multiplications in a 2PC context.
3. Experimental Evaluation
The authors evaluated BumbleBee across standard benchmarks, including GLUE (BERT-base) and ImageNet-1k (ViT-base), as well as large-scale models like GPT2 and LLaMA-7B.
3.1 Performance Comparison
BumbleBee sets a new state-of-the-art for efficiency. For a BERT-base inference, it requires only 6.4 GB of communication, compared to 59.6 GB for BOLT (Oakland'24) and 76.5 GB for Iron (NeurIPS'22). As shown in Figure 1, BumbleBee is over an order of magnitude faster than Iron and 3× faster than BOLT while using 1/10th of the bandwidth.
3.2 Scalability and Accuracy
BumbleBee is the first 2PC framework to successfully run LLaMA-7B, generating one token in approximately 8 minutes using standard CPUs. Crucially, these performance gains do not come at the cost of accuracy; for instance, on the QNLI dataset, BumbleBee achieved 90.20% accuracy, nearly matching the 90.30% plaintext baseline.
4. Conclusion
BumbleBee demonstrates that novel ciphertext packing and approximated activation protocols can effectively break the communication wall for private Transformer inference. While 8 minutes per token for LLaMA-7B is a breakthrough for CPU-based 2PC, future work will focus on GPU acceleration for HE automorphisms to bring private inference closer to real-time consumer requirements.
Summary updated