Abstract
Fine-tuning large language models (LLMs) raises privacy concerns due to the risk of exposing sensitive training data. Federated learning (FL) mitigates this risk by keeping training samples on local devices, while facing the following privacy problems. (i) Recent studies show that adversaries can still infer private information in FL. (ii) LLM parameters are shared publicly during federated fine-tuning, while developers are often reluctant to disclose these parameters. (iii) Existing works focus on secure inference but neglects privacy-preserving fine-tuning. Inspired by above problems, we propose PriFFT, a privacy-preserving federated fine-tuning mechanism, to protect both model parameters and users' privacy. Due to considerable LLM parameters, we present hybrid secret sharing combining arithmetic secret sharing (ASS) and function secret sharing (FSS) to build secure operations and implement secure neural network layers and activation functions for fine-tuning. We optimize several secure protocols based on FSS, including reciprocal calculation, tensor products, natural exponentiation, softmax, sigmoid, hyperbolic tangent, and dropout. The hybrid secret sharing enables PriFFT to apply our optimized FSS protocols while combining ASS protocols to support complex computation without extra communication. PriFFT reduces execution time and communication overhead in privacy-preserving fine-tuning up to 59.1% and 77.0% without accuracy drop compared to the existing secret sharing methods.
Funding Information
  • National Key R&D Program of China (2023YFB3107500)
  • National Natural Science Foundation of China (62220106004)
  • National Natural Science Foundation of China (62232013)
  • National Natural Science Foundation of China (62402358)
  • National Natural Science Foundation of China (92467201)
  • National Natural Science Foundation of China (62502363)
  • Key R&D Program of Shandong Province of China (2023CXPT056)
  • Young Talent Fund of Association for Science and Technology in Shaanxi, China (20240138)
  • Open Topics from The Lion Rock Labs of Cyberspace Security (LRL24004)
  • Fundamental Research Funds for the Central Universities (ZDRC2202)
  • Xidian University Specially Funded Project for Interdisciplinary Exploration (TZJHF202502)
  • China Scholarship Council
  • Xidian University

This publication has 28 references indexed in Scilit: