Manuscript Offprint

arXiv:2610.08255

HE-OFT: Privacy-Preserving One-Shot Federated Fine-Tuning under Homomorphic Encryption

Halil İbrahim Kanpak, Sinem Sav, Alptekin Küpçü

Abstract

Many organizations adapt large pretrained models to their own tasks by fine-tuning on private data. Several of these parties often hold data for the same task and wish to fine-tune a model together without pooling that data. Federated learning (FL) enables joint fine-tuning, but reconstruction attacks on shared intermediate values (the model or its gradients) remain a privacy risk. A one-shot protocol that exchanges one encrypted contribution exposes no intermediate value. Such a protocol still gives the trained model to every participant, which is not permitted where the model is a regulated or proprietary asset. We present HE-OFT 1^{1}, the first cryptographically secure one-shot federated fine-tuning protocol in which no party receives the trained model. Each client fine-tunes a low-rank adapter and a classifier head on a frozen public backbone and keeps the adapter. The client uploads one encrypted head displacement, which the server combines under multiparty CKKS and never decrypts. A quorum of clients returns only the predicted label to the querier. On four text classification tasks and one vision task, HE-OFT reaches 61 to 79 per cent accuracy, against 20 to 48 per cent for a client training alone. HE-OFT keeps 85 to 96 per cent of the accuracy of a disclosed model. A test-time query takes 443.1 to 1713.1 s on one core, or 56.1 to 255.1 s with level restoration on a GPU. Restoring levels at the server cuts the traffic per query from up to 1.6 GiB to 13.5 MiB.

Keywords: Federated learning, one-shot federated learning, federated fine-tuning, homomorphic encryption, multiparty computation, privacy-preserving machine learning.

I Introduction

Organizations fine-tune a large public pretrained model, known as the backbone, on their own data [1, 2]. Several organizations often hold complementary data for the same task, such as different patient populations, fraud patterns, or customer bases. Each would obtain a better model from the combined data than from its own [3]. Pooling the data is difficult, because data protection law restricts the sharing of confidential records across institutions [4, 5, 6, 7, 8]. Competing organizations also resist pooling, and handing the data to the operator of the fine-tuning infrastructure meets the same objection [9].

Privacy risks in federated learning. Federated learning (FL) enables collaboration [10], and its privacy risk is concentrated at training time [11, 12]. FL exchanges model updates in place of data, and the updates are themselves open to privacy attacks. An adversary who aggregates a client's per-round updates performs membership inference at a 25.3% true-positive rate (TPR) at a 0.1% false-positive rate (FPR), against 0.18% from a single snapshot [13]. The attack surface thus depends on what a protocol reveals in training and how often.

Requirements for privacy-preserving federated fine-tuning. A federated fine-tuning protocol that resists these attacks needs three properties. The first is a single exchange. Each further round gives an adversary another observation of the same client, and repetition alone raises the true-positive rate of membership inference by two orders of magnitude. Such a protocol is known as one-shot [14]. Each client contributes once, and no intermediate training artifact is exposed. The parties communicate afterwards to answer queries. The second is encrypted contributions, since even a single update can expose its training data [15, 16]. The third is a confidential model, which no party holds in plaintext. A model fine-tuned on confidential records can be a regulated artifact in domains such as health, biometrics, and credit [17]. If the released model averages the contributions with public weights, all clients but one can also subtract their own and recover the last.

Threat scenario. The parties are the clients and one server that combines their contributions and answers queries. The adversary corrupts the server together with any coalition of fewer clients than the threshold t required for decrypting a ciphertext. The corrupted parties follow the protocol, pool what they observe, and try to learn an honest client's data, its class histogram, or the trained model. We also let the corrupted clients deviate from the protocol while the server stays honest. A deviating server must be excluded, because it could present any ciphertext for decryption, such as a row of the shared head,

*Corresponding Author: Sinem Sav (sinem.sav@cs.bilkent.edu.tr)

†^{\dagger}Halil İbrahim Kanpak is with the Department of Computer Engineering, Koç University, İstanbul, Türkiye (e-mail: hkanpak21@ku.edu.tr).

‡^{\ddagger}Sinem Sav is with the Department of Computer Engineering, Bilkent University, Ankara, Türkiye (e-mail: sinem.sav@cs.bilkent.edu.tr).

§Alptekin Küpçü is with the Department of Computer Engineering, Koç University, İstanbul, Türkiye (e-mail: akupcu@ku.edu.tr).

1^{1}The implementation of HE-OFT, covering local training, aggregation, selection and encrypted serving, is available at https://github.com/CRYPTO-KU/HE-OFT.

Figure

Figure 1: HE-OFT in three stages: local fine-tuning, aggregation and selection, and test-time query serving. Each client fine-tunes an adapter and a classifier head on the same frozen public backbone. The client keeps the adapter and uploads one encrypted head displacement weighted by its per-class counts. The server adds the ciphertexts and divides by the per-class totals under encryption. The shared head θ∗\theta^* exists only as a ciphertext.

and the clients cannot tell it from a legitimate request (Proposition 1).

Existing approaches. Each of the closest systems meets some of these properties (Table 12). One-shot FL [14] methods such as DENSE [18], FuseFL [19] and GH-OFL [20] exchange once, send the contribution in plaintext and give every participant the model. FedAUXfdp adds differential privacy (DP) to the one-shot exchange and trades accuracy for a tighter privacy budget [21]. POSEIDON keeps the contributions and the model under homomorphic encryption (HE) over many rounds, with every activation replaced by a polynomial in a deep, repeatedly bootstrapped circuit [22]. SHE-LoRA encrypts a selected part of each update over many rounds and shares each round's aggregate with the clients [23]. slytHErin and Crypt-PEFT evaluate a model trained elsewhere, under HE or two-party computation (2PC), and return scores to the client that sends the query [24, 25]. HE-OFT combines a single encrypted exchange with a model that no party holds in plaintext, and it returns only the label.

Design principles. The three properties together determine each stage of the design. Training under encryption is impractical at this scale, and each client therefore trains alone, in plaintext, and contributes once. One round suffices because every client starts from the same pretrained backbone. Pretraining places the clients' fine-tuned solutions in a close region of the loss landscape, and the changes they make thus combine linearly [26, 27]. Heterogeneous data still costs a single round more accuracy than many rounds, which correct the merge step by step [28]. The client that sends a query, called the querier, computes the features of that query itself. Hence we place the shared trained map after the last nonlinearity. In a transformer, that map is the final linear map. An earlier position would force the querier to evaluate nonlinearities under encryption or to decrypt an intermediate value. The merge divides each class row by the federation's total count for that class. The server keeps these totals encrypted, because all clients but one could subtract their own counts from them and read the last client's class histogram. A querier that receives scores for inputs of its choice can recover a linear head from d+1d+1 answers, where d is the feature dimension. The federation therefore returns only the label, and only to the querier.

Our approach. We present HE-OFT, the first one-shot federated fine-tuning protocol in which no party ever holds a contribution, a training artifact, or the trained model in plaintext. Each client fine-tunes a small adapter and a classifier head on the frozen public backbone. It encrypts its contribution under multiparty CKKS [29, 30], a homomorphic encryption scheme in which the secret key is split across the parties. Because the backbone stays public and in plaintext, the cryptographic cost depends on the feature dimension and the number of classes, and not on the depth or size of the backbone. HE-OFT can thus fine-tune pretrained transformers.

Overview. HE-OFT has three stages (Fig. 1). In local fine-tuning, every client fine-tunes an adapter and a classifier head on the same frozen public backbone and keeps the adapter. We call the difference between a client's trained head and a public initializer its head displacement. The client uploads one encrypted head displacement, weighted by its per-class counts. In aggregation and selection, the server adds the ciphertexts and multiplies the sum by the encrypted reciprocal of the per-class totals. The result is the shared head, in which each class row comes from the clients that hold that class. The shared head exists only as a ciphertext, and the server holds no key to decrypt it. The federation then chooses between the shared head over the bare backbone and the shared head over each client's own adapter, called the two arrangements. The federation decrypts only the index of the arrangement it serves. Both arrangements cost the same per query, because the querier runs the backbone and its own adapter in plaintext. In test-time query serving, the querier encrypts its features. The server applies the shared head and takes the argmax under encryption. A quorum of clients re-encrypts the label under the querier's key, and only the querier can decrypt it.

Contributions. We make the following contributions.

• HE-OFT, a one-shot federated fine-tuning protocol under multiparty CKKS in which the trained model is never de-crypted (Section III).

• A merge that weights each class row of the encrypted head displacements by the clients’ counts for that class. The server inverts the class totals under encryption, and every adapter stays with its owner (Section III-A).

• An encrypted serving path for fine-tuned transformers under multiparty HE. The server computes the argmax without decrypting, and a quorum of clients returns only the label, and only to the querier (Section III-C).

• An estimator that selects between the two arrangements under encryption and decrypts one index (Section III-B).

• A simulation proof against semi-honest parties, an input-privacy bound against malicious clients, and a proof that an honest server is necessary whenever the clients decrypt ciphertexts that the server presents (Section IV).

• An implementation in multiparty CKKS, evaluated with pretrained RoBERTa-base [31] and vision transformer ViT-B/16 [32] backbones on five tasks (Section V). HE-OFT reaches 61 to 79 per cent accuracy where a client alone reaches 20 to 48 per cent. It keeps 85 to 96 per cent of the accuracy of a model aggregated and released in plaintext. A query costs 13.5 MiB of traffic.

References (100)

  • On the Opportunities and Risks of Foundation Models
  • LoRA: Low-rank adaptation of large language models
  • Federated learning in medicine: facilitating multi-institutional collaborations without sharing patient data
  • Regulation (eu) 2016/679 (general data protection regulation)
  • HIPAA privacy rule
  • Law on the protection of personal data (kişisel verilerin korunması kanunu), law no. 6698
  • Personal information protection law of the people’s republic of china
  • Digital personal data protection act
  • Offsite-tuning: Transfer learning without full model (opens arXiv in a new tab)
  • Communication-efficient learning of deep networks from decentralized data
  • Comprehensive privacy analysis of deep learning: Passive and active white-box inference attacks against centralized and federated learning
  • Exploiting unintended feature leakage in collaborative learning
  • FedMIA: An effective membership inference attack exploiting
  • One-shot federated learning (opens arXiv in a new tab)
  • Deep leakage from gradients
  • Inverting gradients – how easy is it to break privacy in federated learning?
  • Regulation (eu) 2024/1689 (artificial intelligence act)
  • DENSE: Data-free one-shot federated learning
  • Fusefl: One-shot federated learning through the lens of causality with progressive model fusion
  • The Gaussian-Head OFL family: One-shot federated learning from client global statistics
  • FedAUXfdp: Differentially private one-shot federated distillation
  • POSEIDON: Privacy-preserving federated neural network learning
  • SHE-LoRA: Selective homomorphic encryption for federated tuning with heterogeneous LoRA
  • slytHErin: An agile framework for encrypted deep neural network inference
  • CryptPEFT: Efficient and private neural network inference via parameter-efficient fine-tuning
  • Editing models with task arithmetic
  • Revisiting federated fine-tuning: A single communication round is enough for foundation models (opens arXiv in a new tab)
  • Task arithmetic through the lens of one-shot federated learning
  • Homomorphic encryption for arithmetic of approximate numbers
  • Multiparty homomorphic encryption from ring-learning-with-errors
  • RoBERTa: A Robustly Optimized BERT Pretraining Approach
  • An image is worth $16 \times 16$ words: Transformers for image recognition at scale
  • Improving LoRA in privacy-preserving federated learning
  • On ideal lattices and learning with errors over rings
  • Bootstrapping for approximate homomorphic encryption
  • An efficient threshold access-structure for RLWE-based multi-party homomorphic encryption
  • Stealing machine learning models via prediction APIs
  • Stealing part of a production language model
  • Hard-label cryptanalytic extraction of neural network models
  • Polynomial time cryptanalytic extraction of deep neural networks in the hard-label setting
  • Efficient homomorphic comparison methods with optimal complexity
  • SoK: Fully homomorphic encryption compilers and verifiable computation
  • User-level label leakage from gradients in federated learning
  • ELSA: Secure aggregation for federated learning with malicious actors
  • Fault tolerant and malicious secure federated learning
  • Label-only membership inference attacks
  • Membership inference attacks from first principles
  • OSLO: One-shot label-only membership inference attacks
  • Privacy-preserving deep learning via additively homomorphic encryption
  • Reconstructing training data from real-world models trained with transfer learning (opens arXiv in a new tab)
  • Are attribute inference attacks just imputation?
  • On the security of homomorphic encryption on approximate numbers
  • On the practical CPA-D security of
  • Securing approximate homomorphic encryption using differential privacy
  • Character-level convolutional networks for text classification
  • Learning question classifiers
  • Efficient intent detection with dual sentence encoders
  • Learning multiple layers of features from tiny images
  • Measuring the effects of non-identical data distribution for federated visual classification (opens arXiv in a new tab)
  • Federated learning on non-IID data silos: An experimental study
  • Advances and open problems in federated learning
  • Privacy risk in machine learning: Analyzing the connection to overfitting
  • Lattigo v5: A multiparty homomorphic encryption library in Go
  • Phantom: A CUDA-accelerated word-wise homomorphic encryption library
  • Secure transformer inference made non-interactive
  • FIDESlib: A fully-fledged open-source FHE library for efficient CKKS on GPUs (opens arXiv in a new tab)
  • Minimax approximation of sign function by composite polynomial for homomorphic comparison
  • Adversarial learning
  • Mechanism design via differential privacy
  • PRADA: Protecting against DNN model stealing attacks
  • Defending against model stealing attacks with adaptive misinformation
  • Increasing the cost of model extraction with calibrated proof of work
  • DAWN: Dynamic adversarial watermarking of neural networks
  • Exploring connections between active learning and model extraction
  • Adding robustness to support vector machines against adversarial reverse engineering
  • Fed-HEONN: Federated and homomorphically encrypted learning method for one-layer neural networks
  • Efficient passive membership inference attack in federated learning
  • When the curious abandon honesty: Federated learning is not private
  • Robbing the fed: Directly obtaining private data in federated learning with modified models
  • Breaching FedMD: Image recovery via paired-logits inversion attack
  • FD-Leaks: Membership inference attacks against federated distillation learning
  • LDIA: Label distribution inference attack against federated learning in edge computing
  • Unveiling client privacy leakage from public dataset usage in federated distillation
  • Membership inference attacks against machine learning models
  • ML-Leaks: Model and data independent membership inference attacks and defenses on machine learning models
  • Model inversion attacks that exploit confidence information and basic countermeasures
  • Deep models under the GAN: Information leakage from collaborative deep learning
  • Practical secure aggregation for privacy-preserving machine learning
  • Securing secure aggregation: Mitigating multi-round privacy leakage in federated learning
  • Client-specific property inference against secure aggregation in federated learning
  • Sisyphus: A cautionary tale of using low-degree polynomial activations in privacy-preserving deep learning
  • A methodology for training homomorphic encryption friendly neural networks
  • Polynomial approximations of relu for secure cnn inference in homomorphic encryption environments
  • A training framework for optimal and stable training of polynomial neural networks (opens arXiv in a new tab)
  • FHE-compatible batch normalization for privacy-preserving deep learning
  • Batchcrypt: Efficient homomorphic encryption for cross-silo federated learning
  • Fedml-he: An efficient homomorphic-encryption-based privacy-preserving federated learning system
  • FedSHE-CQ: A communication-efficient homomorphic encryption framework for federated learning
  • One-shot secure aggregation: A hybrid cryptographic protocol for private federated learning in IoT
  • HETAL: Efficient privacy-preserving transfer learning with homomorphic encryption

Couldn't load all references. Reload the page to try again.