FedSEA-LLaMA: A Secure, Efficient and Adaptive Federated Splitting Framework for Large Language Models

Zishuai Zhang, Hainan zhang, Weihua Li, Qinnan zhang, jin Dong +2 more
5/21/2025
2 citations
cs.CLcs.AIcs.DC
federated

Official code: TAP-LLM/SplitFedLLM (35 stars, Python, Apache-2.0, last commit 2025-11-11).

Abstract

Private data holds promise for improving LLMs due to its high quality, but its scattered distribution across data silos and the high computational demands of LLMs limit their deployment in federated environments. To address this, the transformer-based federated split models are proposed, which offload most model parameters to the server (or distributed clients) while retaining only a small portion on the client to ensure data privacy.

Show full abstract

Despite this design, they still face three challenges: 1) Peer-to-peer key encryption struggles to secure transmitted vectors effectively; 2) The auto-regressive nature of LLMs means that federated split learning can only train and infer sequentially, causing high communication overhead; 3) Fixed partition points lack adaptability to downstream tasks. In this paper, we introduce FedSEA-LLaMA, a Secure, Efficient, and Adaptive Federated splitting framework based on LLaMA2. First, we inject Gaussian noise into forward-pass hidden states to enable secure end-to-end vector transmission. Second, we employ attention-mask compression and KV cache collaboration to reduce communication costs, accelerating training and inference. Third, we allow users to dynamically adjust the partition points for input/output blocks based on specific task requirements. Experiments on natural language understanding, summarization, and conversational QA tasks show that FedSEA-LLaMA maintains performance comparable to centralized LLaMA2 and achieves up to 8x speedups in training and inference. Further analysis of privacy attacks and different partition points also demonstrates the effectiveness of FedSEA-LLaMA in security and adaptability.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
354Python, ShellJun 6, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2025fedseallama,
  title  = {FedSEA-LLaMA: A Secure, Efficient and Adaptive Federated Splitting Framework for Large Language Models},
  author = {Zishuai Zhang and Hainan zhang and Weihua Li and Qinnan zhang and jin Dong and Yongxin Tong and Zhiming Zheng},
  year   = {2025},
  eprint = {2505.15683},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.15683v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.15683.svg)](https://codeofpaper.com/paper/2505.15683)

Discussion