PriFFT: Privacy-preserving Federated Fine-tuning of Large Language Models via Function Secret Sharing

Zhichao You, Xuewen Dong, Ke Cheng, Xutong Mu, Jiaxuan Fu, Shiyang Ma, Qiang Qu, Yulong Shen · DOI

TL;DR

This paper introduces PriFFT, a novel framework for privacy-preserving federated fine-tuning of Large Language Models (LLMs). By combining hybrid secret sharing with optimized Function Secret Sharing (FSS) protocols, PriFFT protects both sensitive training data and LLM model parameters while significantly reducing communication and computation overhead compared to existing methods.

What Problem Does This Paper Address?

Fine-tuning powerful LLMs on downstream tasks is crucial for adapting them to specific domains. However, this process raises significant privacy concerns. The training data used for fine-tuning often contains sensitive information (e.g., medical records, personal communications). Federated Learning (FL) offers a solution by keeping data local, but traditional FL for LLMs faces challenges:

  1. Privacy Leakage from Model Updates: Even with FL, adversaries can potentially infer sensitive training data from model updates (gradients) shared during training.
  2. Model Parameter Exposure: Developers are hesitant to share LLM parameters due to intellectual property concerns, and existing FL methods don't adequately protect these parameters from clients.
  3. Computational Overhead: Fine-tuning LLMs involves complex computations, and existing privacy-preserving techniques, especially those relying solely on Arithmetic Secret Sharing (ASS), incur substantial communication and computational costs, making them impractical for resource-constrained devices.

Methods

PriFFT tackles these challenges through a multi-pronged approach:

  • Hybrid Secret Sharing: This core technique combines Arithmetic Secret Sharing (ASS) and Function Secret Sharing (FSS). ASS is good for basic operations, while FSS is more efficient for complex functions. By using both, PriFFT can leverage the strengths of each.
  • Optimized FSS Protocols: The authors developed efficient FSS-based protocols for critical operations in LLM fine-tuning, including:
  • Reciprocal calculation

    • Tensor products
    • Natural exponentiation (e^x)
    • Softmax
    • Sigmoid
    • Hyperbolic tangent
    • Dropout These optimized protocols significantly reduce execution time and communication overhead compared to existing secure computation protocols.
  • Share Conversion and Hybrid Shares: To seamlessly integrate ASS and FSS, PriFFT uses share conversion mechanisms. This allows FSS protocols to substitute ASS protocols where beneficial, minimizing overhead and enabling the use of existing ASS libraries (like CrypTen) while benefiting from FSS efficiency.

  • GPU Acceleration: PriFFT leverages GPU acceleration to further speed up computations.

Datasets

The paper evaluates PriFFT on general language understanding evaluation (GLUE) benchmark tasks, specifically:

  • Stanford sentiment treebank (SST-2)
  • Microsoft research paraphrase corpus (MRPC)
  • Recognizing textual entailment (RTE)
  • Corpus of linguistic acceptability (CoLA)

They also use various pre-trained language models for fine-tuning, including BERT, RoBERTa, DistilBERT, ALBERT, and DeBERTa.

Key Insights and Ideas

  • Hybrid Secret Sharing is Key: The combination of ASS and FSS is crucial for balancing the need for complex computations with efficiency in privacy-preserving federated learning.
  • FSS Optimization Matters: Simply using FSS isn't enough; optimizing specific FSS protocols for LLM operations (like softmax, exp, reciprocal) yields significant performance gains.
  • Trade-offs in Privacy vs. Accuracy: While PriFFT aims for minimal accuracy drop, the paper shows that iterative truncation (IT) can be used for higher accuracy in later stages, while local truncation (LT) is efficient for early stages.
  • LLM Parameters are Vulnerable: The paper highlights that protecting LLM parameters themselves, not just gradients, is a critical aspect of privacy in federated fine-tuning.

Key Results

  • Accuracy: PriFFT achieves comparable model accuracy to plaintext fine-tuning, with only a minor drop.
  • Efficiency:
    • Optimized FSS protocols reduce execution time by up to 62.5% and communication overhead by up to 70.7% compared to existing secure computation protocols.
  • PriFFT reduces execution time and communication overhead in privacy-preserving fine-tuning by up to 59.1% and 77.0% respectively, compared to existing secret sharing methods, without accuracy loss.
  • For BERT fine-tuning on downstream tasks, PriFFT-LT significantly reduces communication consumption (e.g., 70.11GB vs. 1.59TB for BERT-base on SST-2) and execution time compared to ABY2.

Limitations and Future Work

  • Semi-Honest Model: The security proofs are based on a semi-honest model, meaning participants follow the protocol but try to learn extra information. Future work could explore security against malicious adversaries.
  • Computational Complexity: While PriFFT significantly reduces overhead, LLM fine-tuning remains computationally intensive.
  • Dynamic Dropout: The paper mentions static dropout and dynamic dropout. While static dropout is implemented, dynamic dropout could be further explored for more flexible privacy settings.
  • Further Protocol Optimization: The authors suggest that further optimization of secure computation protocols, especially for complex LLM architectures, remains an area for future research.

Summary updated

BibTeX
@article{you2026prifft,
  author = {Zhichao You and Xuewen Dong and Ke Cheng and Xutong Mu and Jiaxuan Fu and Shiyang Ma and Qiang Qu and Yulong Shen},
  title = {{PriFFT: Privacy-preserving Federated Fine-tuning of Large Language Models via Function Secret Sharing}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2026},
  url = {https://openreview.net/forum?id=8vb8xGXLuC},
}
Figure