Abstract
End users face a choice between privacy and efficiency in current Large Language Model (LLM) service paradigms. In cloud-based paradigms, users are forced to compromise data locality for generation quality and processing speed. Conversely, edge device paradigms maintain data locality but fail to deliver satisfactory performance. In this work, we propose a novel LLM service paradigm that distributes privacy-sensitive computation on edge devices and shared computation in the cloud. Only activations are transmitted between the central cloud and edge devices to ensure data locality. Our core innovation, PrivateLoRA, addresses the challenging communication overhead by exploiting the low rank of residual activations, achieving over 95% communication reduction. Consequently, PrivateLoRA effectively maintains data locality and is extremely resource efficient. Under standard 5G networks, PrivateLoRA achieves throughput over 300% of device-only solutions for 7B models and over 80% of an A100 GPU for 33B models. PrivateLoRA also provides tuning performance comparable to LoRA for advanced personalization. Our approach democratizes access to state-of-the-art generative AI for edge devices, paving the way for more tailored LLM experiences for the general public. To our knowledge, our proposed framework is the first efficient and privacy-preserving LLM solution in the literature.
Introduction: The Privacy-Efficiency Trade-off
Current Large Language Model (LLM) deployment faces an "impossible triangle" of performance, personalization, and data privacy. Cloud-based solutions offer high-speed inference but require uploading sensitive user data, leading to potential privacy breaches. Conversely, local edge-device solutions maintain data locality but suffer from severe performance limitations; flagship smartphones often achieve less than 1% of the prefill throughput of a single A100 GPU.
The PrivateLoRA Framework
PrivateLoRA is a novel distributed Parameter Efficient Fine-Tuning (PEFT) method designed for heterogeneous systems. It splits the LLM computation between the cloud and the edge device to optimize for both privacy and speed.
Distributed Architecture
The architecture partitions the model components as follows:
- Cloud: Hosts the heavy "Shared Decoder Stack" and two static, non-trainable low-rank matrices ($A$ and $B$).
- Edge Device: Maintains the Word Embeddings, the Language Model (LM) Head, and a trainable personalized matrix ($M$).
Low-Rank Residual Transmission
The core innovation lies in the triplet architecture: $A \times M \times B$. Instead of transmitting full high-dimensional activations, the cloud uses matrix $A$ to project activations into a compressed low-rank space. This compressed signal is sent to the edge device, transformed by the private matrix $M$ based on user-specific tuning, and returned to the cloud, where matrix $B$ projects it back to the original dimension. This approach reduces communication overhead by over 95%.
Experimental Evaluation
The framework was evaluated across standard benchmarks including GSM8K (mathematical reasoning), MMLU (general knowledge), and BoolQ (natural language comprehension) to ensure that the distributed architecture maintains model quality.
Key Results
- Throughput: On a standard 5G network, PrivateLoRA achieved 175.5 tokens/sec for prefill and 26.5 tokens/sec for decoding on a 7B model—over 300% the throughput of device-only solutions.
- Scalability: For 33B models, the system reached over 80% of the throughput of a dedicated A100 GPU.
- Resource Efficiency: The method requires only 2% of the FLOPs and roughly 10% of the memory compared to running a full quantized model locally on a smartphone.
- Tuning Quality: Despite the triplet structure and frozen $A/B$ matrices, PrivateLoRA's accuracy on benchmarks like MMLU was nearly identical to standard LoRA.
Discussion and Future Work
PrivateLoRA effectively secures data locality by ensuring raw text never leaves the device. However, the transmission of "unreadable" activations presents a potential vector for "Activation Privacy" attacks, where a malicious cloud provider might attempt to invert the signals. Future research will explore more complex device-side architectures and layer-specific adaptation to further optimize communication and security.
Summary updated