potentialpaper

Felid: A Flexible and Efficient Design for Transformer Fine-Tuning over Encrypted Data

Linru Zhang, Jun Jie Sim, Xiangning Wang, Jiahao Zhong, Kaiyu Zhou, Huanyi Ye, Yongsen Zheng, Lushan Song, Xiaojian Liang, Yingting Liu, Yujing Sun, HUAXIONG WANG, Pu Duan, Kwok-Yan Lam

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Fully Homomorphic Encryption (FHE) enables non-interactive, privacy-preserving transformer fine-tuning, protecting highly sensitive data as inputs to large language models. Prior work has predominantly pursued efficiency gains through architectural refinements, yet overall performance remains bounded by the substantial cost inherent in encrypted computation. To address these issues, we target the bottleneck at the ciphertext operation level. Concretely, we propose a novel packing strategy that supports batching over a flexible number of inputs, making it well-suited for fine-tuning workloads. In addition, we design operation-specific matrix evaluation algorithms that significantly reduce (i) the number of ciphertext rotations and relinearizations, and (ii) the number of bootstrapping invocations. Additionally, we exploit functional bootstrapping to fold the evaluation of element-wise activation functions directly into the bootstrapping step, thereby reducing overall computational complexity. As a result, our framework achieves a 30×30\times reduction in ciphertext rotations and relinearizations across all matrix operations, as well as a 2.5×2.5\times reduction in FHE bootstrapping invocations over the entire computation flow, compared to the latest state-of-the-art work. It is worth noting that our system completes fine-tuning of a 2-layer BERT-style model with a batch size of 16 in 650 seconds, achieving a 8×8\times speedup over the state-of-the-art work.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
23 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (oral)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (oral) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:50 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (oral)
Read decision
Meta-review

The work focuses on secure fine-tuning with CKKS HE scheme. Although a reviewer is concerned about the scale of the model size considered being small, the paper addresses genuine challenges in secure computation and provides a solid protocol. The scaling has always been an issue in general for homomorphic encryption (FHE).

Final justification

Thanks to the authors and reviewers, for the reviews and the rebuttal. I have gone through all of the comments. I would like to emphasize and make these following points as part of my final meta review:

The baseline work that this submission improves upon, itself is an ICLR 2025 accept: Encryption-Friendly LLM Architecture Donghwan Rho, Taeseong Kim, Minje Park, Jung Woo Kim, Hyunsik Chae, Ernest K. Ryu, Jung Hee Cheon, https://proceedings.iclr.cc/paper_files/paper/2025/hash/6715b4e97be055687c1ecaf33913d358-Abstract-Conference.html

This ICLR 2025 baseline takes 5238 seconds or nearly 90 minutes to run when replicated on a formidable H200, and the code is built on a CUDA accelerated FHE library, PhantonFHE. The current submission impressively reduces it to about 11 minutes, and that is quite a significant feat.

The ICLR 2025 baseline has also showcased results on a 2-layer BERT model. A reviewer has raised concern about this being a small model, and that the novelty is not on the architectural side. I would like to bring to light that, the original LoRA method itself is based on 1950's linear algebraic ideas, and moreover on the simplest versions of those, as opposed to the contributions like SVD that happened around then. The idea of LoRA is as simple as multiplying two rectangular matrices. Similarly, previous ML blockbusters such as batch-norm are based on similar ideas of normalization introduced in the era of Fisher himself. In that light, I would comment that although the ML architectural novelty does not exist, a considerable novelty exists from a cryptographic and specifically FHE, standpoint.

To the reviewer that commented on side-channel attacks not being considered on the honest but curious threat model in this submission, I would like to point that for instance in differential privacy, The Godel prize, Turing award winning Laplace mechanism and similar Gaussian Mechanism papers were in the beginning introduced in 2010. A side-channel attack preventing version of that Gaussian mechanism for floating point attacks was introduced 10 years later by Clement Canonne, Gautam Kamath, Thomas Steinke's work on discrete Gaussian mechanism in NeurIPS 2020: https://papers.nips.cc/paper/2020/file/b53b3a3d6ab90ce0268229151c9bde11-Paper.pdf , and by coincidence Gautam Kamath won the recent Godel. So when it takes 10 years to come up with a specific side channel preventing version of a popular mechanism, we must give the authors a commendable benefit of releasing the current protocol and letting the world wait on such follow up works and improvements, even if that may take another 10 years as above.

In light of these, and the speed-up achieved from over 90 minutes to 11 minutes for an FHE protocol for secure fine-tuning, over a ICLR 2025 baseline, on the same sized network, used in that paper, with the novelty being on the systematization and speed-up methods on the cryptographic side, I strongly recommend this paper for an Accept (and hopefully an Oral, as it encourages follow-up efforts, around this broader line of work on FHE based secure fine-tuning).

Area Chair xTPM · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The work focuses on secure fine-tuning with CKKS HE scheme. Although a reviewer is concerned about the scale of the model size considered being small, the paper addresses genuine challenges in secure computation and provides a solid protocol. The scaling has always been an issue in general for homomorphic encryption (FHE).

Final justification

Thanks to the authors and reviewers, for the reviews and the rebuttal. I have gone through all of the comments. I would like to emphasize and make these following points as part of my final meta review:

The baseline work that this submission improves upon, itself is an ICLR 2025 accept: Encryption-Friendly LLM Architecture Donghwan Rho, Taeseong Kim, Minje Park, Jung Woo Kim, Hyunsik Chae, Ernest K. Ryu, Jung Hee Cheon, https://proceedings.iclr.cc/paper_files/paper/2025/hash/6715b4e97be055687c1ecaf33913d358-Abstract-Conference.html

This ICLR 2025 baseline takes 5238 seconds or nearly 90 minutes to run when replicated on a formidable H200, and the code is built on a CUDA accelerated FHE library, PhantonFHE. The current submission impressively reduces it to about 11 minutes, and that is quite a significant feat.

The ICLR 2025 baseline has also showcased results on a 2-layer BERT model. A reviewer has raised concern about this being a small model, and that the novelty is not on the architectural side. I would like to bring to light that, the original LoRA method itself is based on 1950's linear algebraic ideas, and moreover on the simplest versions of those, as opposed to the contributions like SVD that happened around then. The idea of LoRA is as simple as multiplying two rectangular matrices. Similarly, previous ML blockbusters such as batch-norm are based on similar ideas of normalization introduced in the era of Fisher himself. In that light, I would comment that although the ML architectural novelty does not exist, a considerable novelty exists from a cryptographic and specifically FHE, standpoint.

To the reviewer that commented on side-channel attacks not being considered on the honest but curious threat model in this submission, I would like to point that for instance in differential privacy, The Godel prize, Turing award winning Laplace mechanism and similar Gaussian Mechanism papers were in the beginning introduced in 2010. A side-channel attack preventing version of that Gaussian mechanism for floating point attacks was introduced 10 years later by Clement Canonne, Gautam Kamath, Thomas Steinke's work on discrete Gaussian mechanism in NeurIPS 2020: https://papers.nips.cc/paper/2020/file/b53b3a3d6ab90ce0268229151c9bde11-Paper.pdf , and by coincidence Gautam Kamath won the recent Godel. So when it takes 10 years to come up with a specific side channel preventing version of a popular mechanism, we must give the authors a commendable benefit of releasing the current protocol and letting the world wait on such follow up works and improvements, even if that may take another 10 years as above.

In light of these, and the speed-up achieved from over 90 minutes to 11 minutes for an FHE protocol for secure fine-tuning, over a ICLR 2025 baseline, on the same sized network, used in that paper, with the novelty being on the systematization and speed-up methods on the cryptographic side, I strongly recommend this paper for an Accept (and hopefully an Oral, as it encourages follow-up efforts, around this broader line of work on FHE based secure fine-tuning).

1 comment
Authors · CommentOpenReview ↗

Dear AC and Reviewers,

As the Author–Reviewer–AC discussion deadline approaches, we would like to sincerely thank you for your constructive and insightful comments, which have helped us further improve our manuscript.

We are also grateful for your recognition of the importance of our topic, the genuine challenges we address, and the effectiveness of our proposed solution. In particular,

Meta Review “addresses genuine challenges in secure computation and provides a solid protocol”,

Reviewer PJud “identifies the execution-layer factors that truly determine end-to-end latency”,

Reviewer SQN7 “contribute to making deep learning models under CKKS more feasible in practice”

Reviewer CVqc “targets an important and relatively underexplored problem”

We sincerely thank you again for your time and consideration.

Reviewer CVqcOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes FELID, an FHE-based system for non-interactive transformer fine-tuning over encrypted data. The main contribution is not a new model architecture, but a set of ciphertext-level optimizations: flexible interleaved packing, operation-specific matrix evaluation algorithms, and functional bootstrapping. The reported results are strong: roughly 30× fewer rotations/relinearizations, 2.5× fewer bootstrapping calls, and 8× end-to-end speedup over the main prior baseline on a 2-layer BERT-style model.

Strengths and weaknesses

Strengths:

This paper targets an important and relatively underexplored problem: efficient privacy-preserving fine-tuning of transformers, rather than only encrypted inference. The proposed packing strategy and matrix-evaluation algorithms are technically meaningful and well aligned with the computational bottlenecks of CKKS-based FHE. The paper also provides detailed algorithmic descriptions and cost breakdowns across CPMM, LoRA CCMM, kernel attention, classification head computation, and bootstrapping. The experimental results are promising, and the authors make a reasonable effort to compare fairly with prior work by reproducing the baseline under the same FHE library and hardware setting.

Weaknesses:

  1. The security model is relatively narrow: it assumes an honest-but-curious server and does not address malicious behavior, verifiable computation, side channels, or integrity of encrypted model updates.
  2. The privacy leakage profile is underspecified; it is unclear what metadata is exposed through batch size, sequence length, model structure, training schedule, or optimizer behavior.
  3. The CKKS approximation error analysis is mostly empirical, with limited discussion of how numerical errors propagate through forward pass, backward pass, and optimization.
  4. The evaluation is limited to a 2-layer BERT-style model and three GLUE tasks, which makes it difficult to assess scalability to larger transformer models.
Questions
  1. Could the authors clarify the exact leakage profile of the protocol? What information is visible to the server beyond ciphertexts?
  2. How robust is the method to CKKS approximation error during full training?
  3. How does FELID scale to larger models, such as BERT-base or deeper transformer architectures? I understand the author may have limited computational resources, but if possible, I want to know the scalability of FELID.
  4. Can the authors provide a more detailed ablation study separating the contribution of each component?
Limitations

The paper should more clearly discuss its limitations, especially the narrow honest-but-curious threat model, the lack of protection against malicious or faulty servers. Furthermore, the authors shall better address scalability, since experiments are limited to a small 2-layer BERT-style model. A brief discussion of practical deployment costs and societal implications would also strengthen the paper.

Final justification

I'm happy to raise my confidence to 4 and keep my already positive score assessment. I'm positive about the paper.

Formatting concerns

NA

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank Reviewer CVqc for the helpful suggestions. We address your concerns as follows:

W1: The security model is relatively narrow: it assumes an honest-but-curious server and does not address malicious behavior, verifiable computation, side channels, or integrity of encrypted model updates.

Yes, we follow the same security model as prior works on non-interactive FHE-based privacy-preserving fine-tuning [25, 27, 28, 32, 36, 37]. We understand that stronger threat models could be considered. However, supporting such settings would require additional mechanisms, including verifiable FHE or zero-knowledge proofs for computation correctness and side-channel-resilient implementations. Since our focus is on improving the efficiency of FHE-based fine-tuning, these extensions are left as future work and are beyond the scope of this paper.

W2 & Q1: Clarify the exact leakage profile of the protocol Thank you for the suggestion. In our protocol, the server receives only public FHE parameters, public/evaluation keys, and ciphertexts. Under the semantic security of CKKS, ciphertexts do not reveal the underlying plaintext values. Therefore, the server does not learn the client’s input or any intermediate results.

The server could learn some fine-tuning-related parameters that is inherent to the algorithms: model architecture, hidden dimension, LoRA rank, batch size, maximum sequence length, and number of epochs. These parameters are determined by the public computation setup.

The base model weights are also visible to the server, which follows the common privacy-preserving AI-as-a-Service/ML-as-a-Service setting used in prior FHE Transformer works [25, 27, 28, 32, 36, 37]. The client’s input data and encrypted trainable weights remain protected by FHE.

We will revise the paper to explicitly state that the leakage consists of public CKKS parameters and fine-tuning-related parameters, while plaintext data values, labels, gradients, updates, and outputs remain hidden from the server. We will also clarify that implementation-level side channels are outside the scope of this work.

W3 & Q2: How robust is the method to CKKS approximation error during full training

We performed an additional noise-propagation experiment to evaluate how CKKS approximation error accumulates through a full training step. we use the trained 2-layer Gaussian-kernel checkpoint and cyclically replicate its layers to construct deeper models.  we run forward pass, backward pass, and AdamW-HE update on the first batch of MRPC, RTE, and STS-B with batch size 16, and report the mean and maximum value of the absolute error.

Number of Layers 2 4 8 12
MRPC Mean: 2.54e-08, Max: 1.9e-06 Mean: 3.14e-08, Max: 2.9e-06 Mean: 5.47e-08, Max: 9.8e-06 Mean: 3.03e-07, Max: 8.6e-05
RTE Mean: 1.96e-08, Max: 1.6e-06 Mean: 2.63e-08, Max: 1.4e-06 Mean: 6.97e-08, Max: 5.0e-05 Mean: 2.63e-07, Max: 9.3e-05
STS-B Mean: 5.51e-07, Max: 5.1e-05 Mean: 7.18e-07, Max: 7.4e-05 Mean: 7.48e-07, Max: 7.5e-05 Mean: 1.14e-06, Max: 1.6e-04

These results show that Felid is robust to CKKS approximation error in the evaluated full-step training flow. The error does not blow up through forward propagation, backward propagation, or encrypted optimizer updates, and remains small compared with the scale of model activations and updates.

W4 & Q3 : How does FELID scale to larger models, such as BERT-base or deeper transformer architectures?

In theory, FELID is extensible to larger models since Transformer layers have the same structure and thus our framework can support deeper models without changing the evaluation algorithms.

In experiments:

  • The estimated runtime for fine-tuning a 12-layer BERT-style model with batch size 16 on a single GPU is about 1 hour per batch, still around 8× speedup over SoTA baseline[28].

  • For the same hidden size, sequence length, and batch size, the dominant layer-wise runtime scales approximately linearly with the number of Transformer layers.

  • Our noise-propagation experiment (in W3&Q2) also shows that CKKS approximation error does not grow significantly with depth.

  • Peak memory is independent of the number of Transformer layers. For better scalability, model weights and intermediate outputs needed for backward propagation are stored in files and loaded into memory only when required. Therefore, the peak memory consists of evaluation keys, peak ciphertext memory, and is independent of the number of Transformer layers. The peak memory with a batch size of 16 is 58.4GB.

    1.     The evaluation keys, including relinearization keys, rotation keys, and bootstrapping keys, take 53.8GB. Their size is determined by the encryption parameters and the FHE library implementation and does not increase with model depth or batch size.

    2.     The peak ciphertext memory is 4.6GB, including 48 ciphertexts for X and 288 ciphertexts for encrypted weights, with each ciphertext taking about 14MB. The peak number of ciphertexts is linearly with the batch size: for batch size 4, the peak is 12 + 72 = 84 ciphertexts; for batch size 64, the peak is 192 + 1152 = 1344 ciphertexts. Since ciphertext size is determined by encryption parameters and implementation, this part also does not depend on model depth.  So the peak ciphertext memory across different batch size is 1.15GB to 18.4GB no matter how deep the model is. Overall, the peak memory ranges from about 55GB to 72.2GB for batch sizes 4 to 64, which is compatible with modern high-memory GPUs.

  • Similar Preprocessing cost for different numbers of Transformer layers. Finally, we measured preprocessing overhead. The preprocessing stage consists of: (1) setup and key generation, which takes 8.96 seconds to generate the context, public keys, and evaluation keys, and is independent of model depth and batch size; and (2) packing and encryption of inputs, which takes 0.18 seconds for a batch size of 16, scales approximately linearly with batch size, and is independent of model depth. Therefore, the total preprocessing cost ranges from about 9.0 seconds to 9.68 seconds for batch sizes 4 to 64, regardless of the number of Transformer layers.

  • Although our method already achieves an 8× speedup over SoTA baseline[28], fine-tuning a large model, e.g., a 12-layer BERT-style model, is still computationally expensive, and we cannot conduct full-task fine-tuning for such a large model within the rebuttal period. As highlighted in the meta-review, scalability has long been a fundamental bottleneck for homomorphic encryption. While this challenge remains open, our work represents a meaningful step forward by substantially improving efficiency, achieving an 8× speedup over the state of the art.

Q4: Ablations study on contribution of each component

There are 4 components contribute to the performance speedups:  (i) flexible interleaved packing, (ii) operation-specific encrypted matrix-evaluation algorithms, (iii) reduced multiplicative depth and the resulting reduction in bootstrapping frequency, and (iv) functional bootstrapping.

First, we emphasize that the four components are not fully orthogonal and exhibit strong interdependencies, making it infeasible to provide a completely independent attribution breakdown.

Clarification on Component Interdependencies. In general,  (i),  (ii), and (iii) are interdependent, while (iii) and (iv) are also interdependent.  Specifically, (ii)  is designed around (i), while the reduced multiplicative depth reported in Table 2 directly changes the bootstrapping schedule. Moreover, in the full end-to-end flow shown in Figure 4, ciphertext levels must be carefully scheduled according to the multiplicative depth consumed by each operation. Therefore, a purely independent attribution is difficult.

Additional Cumulative component-level breakdown. Although Section 4.1 reports separate improvements for matrix operations, functional bootstrapping, and bootstrapping counts, to makes the attribution clearer, we provide the following cumulative component-level breakdown.

Operation Sub-operation Rho et al. [28] Felid (Ours) Reduction Main Cause
Forward pass Matrix 1429 67.79 21.1× Packing + matrix algorithms
Non-linear 291 9.56 30.4× Functional bootstrapping
(Func) Boot 708 295.05 2.4× Reduced depth + fewer bootstrappings
Backward pass Matrix 2377 164.04 14.5× Packing + matrix algorithms
Non-linear 47 1.91 24.6× Functional bootstrapping
(Func) Boot 355 92.45 3.8× Reduced depth + fewer bootstrappings
Optimizer 31 19.90 1.6× Compact packing (Appendix C.3)
Total 5238 650.60 8× Combined effect

In summary:

  1. Encrypted matrix evaluation contributes to largest absolute runtime reduction.
  2. Flexible interleaved packing and operation-specific algorithms substantially reduce expensive rotations and relinearizations (Table 2 in paper).
  3. Lower multiplicative depth and fewer required bootstrapping invocations reduce bootstrapping time.
  4. Functional bootstrapping further reduces the non-linear evaluation cost by folding element-wise function evaluation into the bootstrapping step.

We will include this attribution table and discussion in the revised paper.

Reviewer CVqc · CommentOpenReview ↗

I think the response is satisfactory. I agree with the AC that the scaling has always been an issue in general for homomorphic encryption. Since the time reduction is kinda extrordinary on the matrix computation and bootstrapping counts, I'm happy to raise my confidence to 4 and keep my already positive score assessment. I'm positive about the paper

Authors · CommentOpenReview ↗

We sincerely thank the reviewer for the positive assessment of our work. We also appreciate the reviewer’s valuable comments, which helped us improve the presentation and overall shape of the paper.

Reviewer SQN7OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper targets the previous work Rho et al. [28] and deals with fine-tuning of a BERT-style model under the CKKS HE scheme. The paper is generally well written, and it improves each component of Rho et al. with more efficient algorithms. The results contribute to making deep learning models under CKKS more feasible in practice.

Strengths and weaknesses

Strengths:

  • The authors worked diligently to improve the computation speed of each component in Rho et al. For matrix multiplication, they give speed-up methods for each form of matrix multiplication, and for non-polynomial functions, they also introduce functional BTS to increase the computation speed as much as possible. This effort is clearly visible.
  • The flexible column-wise batch packing is interesting. Unlike the existing methods, this method makes it possible to train even at a small batch size without wasting slots.
  • The paper is well written overall.
  • It clearly shows how much each component is accelerated, and the experimental results support the proposed methods well.

Weaknesses:

The abstract says that the computation cost is reduced by using functional bootstrapping, but the description is insufficient in the following points.

  • They use RBOOT [33], but this in itself cannot be seen as a contribution. -The explanation of the concept of functional BTS is not enough. Since this is an AI venue and not an HE venue, more background explanation should be given.
    • In Appendix E.2 the authors mention RBOOT, but they describe only ReLU, and this is the same as what is written in the RBOOT paper.
    • In Section 3.3 they state that exp, ReLU, GELU, and Tanh are evaluated using RBOOT, but this needs explanation. It should be clearly described how the non-linear functions other than ReLU are evaluated by functional BTS.
  • Overall, the authors improved the computational efficiency of the components of the target baseline Rho et al. [28], but the whole scheme (2-layer BERT, kernel-based attention, LoRA fine-tuning) is the same as Rho et al. This can be understood as a setup for a fair baseline comparison, but in terms of the model structure the paper feels incremental. For the kernel attention, an Epanechnikov kernel is proposed, but this is also not a new concept, and its computation form is not much different from GK attention. The number of datasets used is small.
Questions
  • There are some grammatically incorrect sentences that need to be revised.

    • Given the practical limitations of interactive MPC-based methods, particularly the need for clients to remain continuously online and sustain stable, low-latency communication with the AI Cloud Service Provider (AI CSP) during a highly time-intensive process, non-interactive FHE-based approaches "are draw" growing interest.
    • Specifically, with the widespread adoption of Transformer architectures, particularly in Large Language Models (LLMs) that are commonly deployed as cloud services, "make efforts are made" in enabling privacy-preserving machine learning (PPML) for Transformers using non-interactive FHE.
    • Most recently, Rho et al. [28] pioneered addressing FHE-friendly Model Design (Q1) via transforming standard Transformer models into "a" FHE "computational friendly" variant ...
    • So that a "practically and effective" packing solution to input data should support flexible batch packing ...
    • "Thought" works on privacy-preserving transformer inference ...
    • "Compute" (XA)B instead of X(AB) can reduce the FHE operation ...
    • ... with specialized minimax polynomials that approximate the composition of "f(cdot)" and arcsin(·).
  • On page 3, there is a part "Let ct1 := Enc(m1), ct2 := Enc(m2), the CKKS scheme ...". It would be clearer if the authors mention that m1 and m2 are messages (even if they do not give details such as the dimension).

  • It is not clear how many random seeds were used in the experiments of Table 6.

  • In Table 3, the gap between FELID's worst precision and average precision is too small. The worst is 13.54 bits and the average is 13.97 bits, and this difference looks too small to me. I would like to hear further explanation on whether these numbers are correct.

Limitations

Rho et al. showed in Table 15 that the speed-up from GK attention and LoRA in matrix multiplication becomes larger as the hidden dimension grows. However, this point is not shown in this paper. I would like the authors to check whether their proposed algorithms also show such amplification of the speed-up as the dimension increases.

Formatting concerns

I did not see any concerns about paper formatting for NeurIPS 2026.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank Reviewer SQN7 for helpful suggestions and pointing out typos. We will revise the draft accordingly. We address your concerns as follows:

W1. Clarification of Functional bootstrapping.

1). Thank you for this valuable suggestion. We will include additional details on Functional BTS in the revised manuscript to make it more accessible to a broader AI audience.

2). We apologize for any confusion caused by our presentation: We would like to clarify that we do not claim Functional BTS as one of our main contributions in either the Abstract or the contribution section of the Introduction. Rather, it is an auxiliary enhancement incorporated to further improve the performance of the proposed framework as a whole. We apologize if we confuse you here.

Concept of functional BTS. We will add concept of functional BTS in the revision. In the FHE scheme we used (CKKS), every non-polynomial operation (activation function) is evaluated by its own polynomial approximation, and evaluating polynomials in CKKS consumes several “multiplicative levels” of the ciphertext. Once the levels of the ciphertext is exhausted, a “bootstrapping” (BTS) operation is required to refresh the ciphertext and restore its levels. BTS is the most computationally expensive operation in FHE. Functional bootstrapping is a method where the evaluation of the polynomial function is folded directly into the original “level-refreshing step”. Conceptually:

  • Traditional BTS pipeline: encrypted xx in high level -> (activation evaluation) -> encrypted ReLU(x)ReLU(x) in low level -> (BTS) -> refreshed encrypted ReLU(x)ReLU(x) in high level

  • Functional BTS pipeline in RBOOT [33]: encrypted xx in low level -> (Fused BTS and activation evaluation) -> refreshed encrypted ReLU(x)ReLU(x) in high level

This "two-in-one" approach has a significant contribution to privacy-preserving AI deployment. [33]

Evaluations of other functions

  • RBOOT general methodology: Any function f can be composed with the arcsin function (which is a necessary step operated in BTS). Instead of approximating the standard arcsin function, RBOOT [33] uses a polynomial to approximate f∘arcsinf \circ arcsin. Therefore RBOOT [33] can successfully evaluate expexp, ReLUReLU, GELUGELU, and TanhTanh.

  • To further improve precision and reducing overhead, function f are split into odd and even components: f(x)=fodd(x)+feven(x)f(x)=f_{odd}(x)+f_{even}(x). RBOOT [33] explains the following:

  • ReLU(x)=0.5(x+abs(x))ReLU(x) = 0.5(x + abs(x)) .

  • Tanh(x)Tanh(x) is an odd function. A polynomial is constructed to approximate tanh∘arcsintanh \circ arcsin .

  • GELU(x)GELU(x) is usually approximated as 0.5x+0.5x⋅tanh(2/π(x+0.044715x3))0.5x+ 0.5x \cdot tanh(\sqrt{2/ \pi} (x+0.044715x^3)), therefore GELU(x)GELU(x) can be evaluated by xx and tanh(x)tanh(x).

W2. Model Scheme V.S. FHE. Evaluation. Why Same model as [28]?

We would like to clear the confusion here. Indeed, the decision to use the same model as [28] is intentional . Our goal is not to propose a new model architecture, but to advance the FHE evaluation protocol , which can be directly plugged into existing models , e.g. SoTA model in [28], without requiring any architectural modifications. This compatibility is essential for practical deployment, enabling existing models to benefit from Felid with minimal integration effort.

Similarly, for the Epanechnikov kernel, we use it to show that Felid is compatible with multiple FHE-friendly kernel-attention variants. The core contribution remains the FHE packing and evaluation framework.

Q1 & Q2. Minor Typo and clarifications.

We will revise in the updated manuscript.

Q3. Number of Random seeds

For plaintext experiments, we follow the method in baseline work [28] for fair comparison: for each task, we repeat fine-tuning with 10 random seeds and report the best score. For ciphertext experiments, due to the very high computational cost of encrypted fine-tuning, we run each task using the same seed that achieves the best plaintext result for the corresponding setting.

Q4. Discussion on the gap between worst precision and average precision in Table 3

Regarding the precision values in Table 3, we clarify that the listed worst and average precision numbers are taken from the original source papers (RBOOT [33] and Table 13 in Rho et al. [28]) to ensure a fair and objective comparison. For this evaluation, both settings take ReLU as the activation function to ensure fairness. We utilize that ReLU(x)=0.5(x+abs(x))ReLU(x) = 0.5(x+abs(x)).

The small gap between the worst and average precision is from the minimax polynomial approximation. By using the Remez algorithm, the error is forced to distribute uniformly across the entire input range, repeatedly hitting the same maximum error limit (Theorem 2 Chebyshev’s Equioscillation Theorem, RBOOT [33]) rather than having a single large spike. Because the error is leveled so consistently, the average precision naturally can stay close to the worst precision.

Limitation: Evaluation of Amplification of speed-ups

In general, The resultsthe experiments below show that the amplification trend observed in [28] also appears in our setting.

LoRA fine-tuning Across multiple hidden dimensions . Following the experimental setup of [28], we additionally evaluate the amortized runtime with batch size 4 across multiple hidden dimensions. For CPMM and CCMM, we test them with (128×d)×(d×d)(128 \times d)\times (d \times d). The results show that as the dimension dd increases, the performance gains from LoRA fine-tuning become larger.

Dim(d) 256 512 768
CPMM 0.007 0.027 0.061
CCMM 0.067 0.39 1.13
Factor 9.57x 14.4x 18.5x

Gaussian-kernel attention and softmax attention . We also follow the setting in Table 15 of [28] and evaluate the scaling behavior of Gaussian-kernel attention and softmax attention on a (n×n)(n \times n) matrix. In Felid, the exponential function in Gaussian-kernel attention is evaluated by functional bootstrapping, which refreshes the ciphertext and evaluates the element-wise function in a single step. In contrast, softmax is a vector-wise function and cannot be directly evaluated by functional bootstrapping. Therefore, for a fair comparison, we compare Gaussian-kernel functional bootstrapping with the full “softmax evaluation + bootstrapping” flow, where both settings produce refreshed ciphertexts after function evaluation. The results also show that as the dimension nn increases, the performance gains from GK become larger.

Dim(n) 128 256 512
GK (Functional bootstrapping) 0.3 0.6 2.39
Softmax+bootstrapping 0.735 1.726 8.95
Factor 2.45x 2.88x 3.74x
Reviewer SQN7 · CommentOpenReview ↗

Thank you for your carefully written answer for my questions.

I read all of your answer and understand your intension.

For the functional BTS, I want you to report what approximation method you used (mayby Remez) and the exact polynomial coefficients of the f and arcsin in "f \circ arcsin" for reproduce. In my experience, it was not always easy to obtain such coefficients.

I will keep my score same as before.

Authors · CommentOpenReview ↗

Thank you for maintaining the positive score.

To clarify, we follow the approximation strategy proposed in RBOOT and construct the polynomial approximation of f∘arcsinf\circ arcsin using the Remez. We agree that obtaining the minimax coefficients of f∘arcsinf\circ arcsin is challenging, which is stated in RBOOT (Section 4.1). Following RBOOT,

  • The target function f∘arcsinf\circ arcsin is first represented in the Chebyshev basis, and the Remez iterations are initialized using a Fourier approximation instead of a random initialization to achieve faster convergence. (Section 3.2.2, RBOOT)
  • During the iterations, Adaptive Root-Finding with multi-stage partition refinement is employed to locate the extremal points of the approximation error efficiently and robustly. (Algorithm 4, RBOOT).

Regarding the polynomial coefficients, for space limit, we will not paste all functions here. We will release all after the paper is accepted. Below are Chebyshev coefficients of tanh∘12πarcsin(⋅)tanh\circ \frac{1}{2\pi}arcsin(\cdot) used for GELU(⋅)GELU(\cdot), in degree 127:

0.00000000

0.20224049

0.00000000

0.02214993

0.00000000

0.00772632

0.00000000

0.00373114

0.00000000

0.00205797

0.00000000

0.00117270

0.00000000

0.00061255

0.00000000

0.00019111

0.00000000

0.00020583

0.00000000

0.00017329

0.00000000

0.00014308

0.00000000

0.00011472

0.00000000

0.00008781

0.00000000

0.00006197

0.00000000

0.00003689

0.00000000

0.00001225

0.00000000

-0.00001272

0.00000000

0.00005649

0.00000000

0.00004714

0.00000000

0.00003813

0.00000000

0.00002939

0.00000000

0.00002085

0.00000000

0.00001245

0.00000000

0.00000414

0.00000000

0.00005505

0.00000000

0.00004709

0.00000000

0.00003941

0.00000000

0.00003194

0.00000000

0.00002466

0.00000000

0.00001752

0.00000000

0.00001047

0.00000000

0.00000348

0.00000000

-0.00012517

0.00000000

0.00002814

0.00000000

0.00002361

0.00000000

0.00001918

0.00000000

0.00001483

0.00000000

0.00001055

0.00000000

0.00000631

0.00000000

0.00000210

0.00000000

0.00124594

0.00000000

0.00094565

0.00000000

0.00071917

0.00000000

0.00054072

0.00000000

0.00039410

0.00000000

0.00026850

0.00000000

0.00015620

0.00000000

0.00005128

0.00000000

0.00063839

0.00000000

0.00052745

0.00000000

0.00042885

0.00000000

0.00033965

0.00000000

0.00025750

0.00000000

0.00018048

0.00000000

0.00010694

0.00000000

0.00003543

0.00000000

-0.00029256

0.00000000

0.00001662

0.00000000

0.00000995

0.00000000

0.00000331

0.00000000

-0.00061415

0.00000000

0.00000589

0.00000000

-0.00125258

0.00000000

0.00286852

We hope the above clarification addresses your concerns.

Reviewer PJudOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

FELID is a system-level optimization framework for FHE-based non-interactive Transformer fine-tuning. Specifically, it employs flexible interleaved column packing to reduce rotation and key-switching costs, introduces task-specific encrypted matrix-evaluation algorithms to reduce multiplicative depth, and integrates element-wise activations into functional bootstrapping. FELID therefore advances the central bottleneck of privacy-preserving Transformer fine-tuning beyond whether a model is merely FHE-friendly, toward whether its concrete ciphertext layout, matrix-evaluation algorithm, and depth schedule are optimized for FHE execution.

Strengths and weaknesses

The system-level optimization is carefully designed, with a detailed analysis of the joint bottlenecks arising from rotations, relinearization, multiplicative depth, and bootstrapping. The paper appropriately identifies the execution-layer factors that truly determine end-to-end latency.

The co-design of ciphertext packing and homomorphic operations is relatively comprehensive, and the motivation for supporting variable batch sizes is reasonable.

However, the evaluated models are relatively small, and the paper does not yet establish the broad effectiveness of the approach for Transformer fine-tuning. I understand that small models enable faster experimentation and that the proposed design should, in principle, be extensible to larger models. Nevertheless, the method appears to depend heavily on fixed matrix shapes. It remains unclear whether its efficiency would degrade when extended to more general Transformer architectures, and this issue warrants further investigation.

In addition, several experimental details should be strengthened. Although the paper emphasizes support for batch sizes from 4 to 64, the claim of “flexible batch size” is not fully demonstrated in the experiments. The ablation study should also provide a more detailed analysis by separately quantifying the contributions of packing, the matrix-evaluation algorithm, and functional bootstrapping to the overall speedup.

Questions

Q1: The proposed framework emphasizes support for flexible batch sizes ranging from 4 to 64, whereas the end-to-end fine-tuning experiments appear to use only a batch size of 16. Could the authors provide end-to-end runtime, amortized latency, slot utilization, and task accuracy across multiple batch sizes and sequence lengths? Such results would more convincingly demonstrate the practical benefits of flexible batching.

Q2: How should the reported 8× end-to-end speedup be attributed across the main design components: (i) flexible interleaved packing, (ii) operation-specific encrypted matrix-evaluation algorithms, (iii) reduced multiplicative depth and the resulting reduction in bootstrapping frequency, and (iv) functional bootstrapping? A cumulative ablation study would clarify the marginal contribution of each component to the overall acceleration.

Q3: Could the authors evaluate scalability beyond the two-layer BERT-style model, for example using a deeper BERT configuration? It would also be helpful to report peak memory consumption and preprocessing overhead, as these factors may become increasingly important when scaling the proposed framework to larger Transformer models.

Q4: On STS-B, the reported score decreases from 0.8155 to 0.7824, which appears to be a substantial degradation. Could the authors explain the source of this performance loss?

Limitations

The evaluation is limited to a compact two-layer BERT-style encoder, three GLUE tasks, and primarily a batch size of 16. Broader experiments would be needed to establish the scalability and generality of the proposed approach.

More comprehensive ablation studies and operator-level comparisons would also strengthen the causal evidence supporting the reported speedups.

Final justification

Thank you for the detailed rebuttal and the additional experimental results. The response addresses several of my questions and improves my understanding of the system.

However, I believe several of my main concerns are only partially resolved.

For Q1, the authors provide end-to-end runtime and amortized latency for batch sizes 4, 16, and 64, which is helpful. However, the requested task accuracy across batch sizes is not reported, and the sequence-length discussion remains theoretical rather than experimentally validated across multiple sequence lengths.

For Q2, the new runtime breakdown helps identify where the speedup occurs, but it is not the cumulative ablation I originally requested. In particular, packing and the matrix-evaluation algorithms are still grouped together, while reduced multiplicative depth and bootstrapping reduction are also grouped together. Therefore, the marginal contribution of each major design component remains unclear.

For Q3, the peak-memory and preprocessing analyses are useful additions. However, scalability beyond the two-layer BERT-style model is still supported primarily by an estimated runtime for a 12-layer model rather than an actual deeper-model experiment. Thus, my main concern regarding empirical scalability and generalization beyond the evaluated compact architecture remains.

For Q4, the clarification that the STS-B degradation is associated with the choice of attention kernel rather than the FHE evaluation protocol addresses my immediate question, although the reason for the relatively large degradation with the Epanechnikov kernel could still be better understood.

Overall, the rebuttal meaningfully strengthens the paper, but the central concern underlying my original rating—limited empirical evidence for scalability/general applicability and incomplete component-level ablation—has not been fully resolved. Therefore, I plan to maintain my current rating.

Formatting concerns

None.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank reviewer PJud for appreciating our system-level optimization and recognizing the importance of this topic. We hope our response addresses your concerns.

Q1: End-to-end results across multiple batch sizes

Thank you for this helpful suggestion. To experimentally demonstrate this benefit, we conducted additional experiments across batch sizes 4, 16, and 64 to showcase that the proposed flexible packing method is well-suited for transformer fine-tuning.

1). Matrix operations and vector-wise function LayerNorm across multiple batch sizes. As shown below, the amortized time decreases when batch size increases, which is consistent to our complexity overhead analysis in Appendix B and Section 3.3. Note that for element-wise functions such as exp and GELU, we evaluate them by functional encryption, and the amortized time is independent of the batch size.

Operation Batch Size = 4 Batch Size = 16 Batch Size = 64
Total Time Amortized Time Total Time Amortized Time Total Time Amortized Time
CPMM 0.26 0.065 0.97 0.061 3.11 0.049
CCMM-LoRA 0.018 0.0045 0.067 0.0042 0.169 0.0026
CCMM-kernel 0.88 0.22 3.42 0.21 10.2 0.16
CCMM-V 0.86 0.22 3.24 0.20 10.32 0.16
LayerNorm 1.02 0.26 1.90 0.12 6.02 0.094

2). 2-layer BERT-style model across multiple batch sizes. Across all tested batch sizes, our packing uses all available plaintext slots in the ciphertexts. The results show that the amortized latency decreases from 45.32s at batch size 4 to 36.67s at batch size 64.

Flow Sub-operation Batch Size = 4 Batch Size = 16 Batch Size = 64
Forward pass Matrix 17.10 67.79 216.90
Non-linear 4.88 9.56 28.80
(Func) Boot 73.80 295.05 1180.20
Backward pass Matrix 41.50 164.04 524.87
Non-linear 1.02 1.91 6.02
(Func) Boot 23.20 92.45 369.60
Optimizer 19.76 19.90 20.24
Total 181.26 650.60 2346.63
Amortized 45.32 40.66 36.67

3). Noise analysis across multiple batch sizes. As shown, noise remains very close across all settings.

Flow Batch Size = 4 Batch Size = 16 Batch Size = 64
Mean of Absolute Noise $(2.32 \times 10^{-8})$ �0��0� �1��1�
Max of Absolute Noise �2��2� �3��3� �4��4�

Sequence length. We use 128 tokens in the BERT-style model because this setting is consistent with prior FHE transformer inference and fine-tuning works, including [25, 27, 28, 32, 36, 37]. Our flexible batching method and evaluation algorithms are not restricted to sequence length 128 and can support other sequence lengths. The computational cost is determined by the maximum sequence length and follows the complexity analysis in Appendix B and Section 3.3. We will clarify this point and include the new batch-size results in the revision.

Q2: How should the reported 8× end-to-end speedup be attributed across (i) flexible interleaved packing, (ii) operation-specific encrypted matrix-evaluation algorithms, (iii) reduced multiplicative depth and the resulting reduction in bootstrapping frequency, and (iv) functional bootstrapping.

First, we emphasize that the four components are not fully orthogonal and exhibit strong interdependencies, making it infeasible to provide a completely independent attribution breakdown.

Clarification on Component Interdependencies. In general, (i), (ii), and (iii) are interdependent, while (iii) and (iv) are also interdependent. Specifically, (ii) is designed around (i), while the reduced multiplicative depth reported in Table 2 directly changes the bootstrapping schedule. Moreover, in the full end-to-end flow shown in Figure 4, ciphertext levels must be carefully scheduled according to the multiplicative depth consumed by each operation. Therefore, a purely independent attribution is difficult.

Additional Cumulative component-level breakdown. Although Section 4.1 reports separate improvements for matrix operations, functional bootstrapping, and bootstrapping counts, to makes the attribution clearer, we provide the following cumulative component-level breakdown.

Operation Sub-operation Rho et al. [28] Felid (Ours) Reduction Main Cause
Forward pass Matrix 1429 67.79 21.1× Packing + matrix algorithms
Non-linear 291 9.56 30.4× Functional bootstrapping
(Func) Boot 708 295.05 2.4× Reduced depth + fewer bootstrappings
Backward pass Matrix 2377 164.04 14.5× Packing + matrix algorithms
Non-linear 47 1.91 24.6× Functional bootstrapping
(Func) Boot 355 92.45 3.8× Reduced depth + fewer bootstrappings
Optimizer 31 19.90 1.6× Compact packing (Appendix C.3)
Total 5238 650.60 8× Combined effect

In summary,

  1. Encrypted matrix evaluation contributes to largest absolute runtime reduction.
  2. Flexible interleaved packing and operation-specific algorithms substantially reduce expensive rotations and relinearizations (Table 2 in paper).
  3. Lower multiplicative depth and fewer required bootstrapping invocations reduce bootstrapping time.
  4. Functional bootstrapping further reduces the non-linear evaluation cost by folding element-wise function evaluation into the bootstrapping step.

We will include this attribution table and discussion in the revised paper.

Q3: Could the authors evaluate scalability beyond the two-layer BERT-style model

In theory, as you pointed out already, our method is extensible to larger models since Transformer layers have the same structure and thus our framework can support deeper models without changing the evaluation algorithms.

From experimental perspective,

  • The estimated runtime for fine-tuning a 12-layer BERT-style model with batch size 16 on a single GPU is about 1 hour per batch, still around 8× speedup over SoTA baseline[28].
  • Peak memory is independent of the number of Transformer layers. For better scalability, model weights and intermediate outputs needed for backward propagation are stored in files and loaded into memory only when required. Therefore, the peak memory consists of evaluation keys, peak ciphertext memory, and is independent of the number of Transformer layers. The peak memory with a batch size of 16 is 58.4GB.
    1. The evaluation keys, including relinearization keys, rotation keys, and bootstrapping keys, take 53.8GB. Their size is determined by the encryption parameters and the FHE library implementation and does not increase with model depth or batch size.
    2. The peak ciphertext memory is 4.6GB, including 48 ciphertexts for X and 288 ciphertexts for encrypted weights, with each ciphertext taking about 14MB. The peak number of ciphertexts is linearly with the batch size: for batch size 4, the peak is 12 + 72 = 84 ciphertexts; for batch size 64, the peak is 192 + 1152 = 1344 ciphertexts. Since ciphertext size is determined by encryption parameters and implementation, this part also does not depend on model depth. So the peak ciphertext memory across different batch size is 1.15GB to 18.4GB no matter how deep the model is. Overall, the peak memory ranges from about 55GB to 72.2GB for batch sizes 4 to 64, which is compatible with modern high-memory GPUs.
  • Similar Preprocessing cost for different numbers of Transformer layers. Finally, we measured preprocessing overhead. The preprocessing stage consists of: (1) setup and key generation, which takes 8.96 seconds to generate the context, public keys, and evaluation keys, and is independent of model depth and batch size; and (2) packing and encryption of inputs, which takes 0.18 seconds for a batch size of 16, scales approximately linearly with batch size, and is independent of model depth. Therefore, the total preprocessing cost ranges from about 9.0 seconds to 9.68 seconds for batch sizes 4 to 64, regardless of the number of Transformer layers.
  • Although our method already achieves an 8× speedup over SoTA baseline[28], fine-tuning a large model, e.g., a 12-layer BERT-style model, is still computationally expensive, and we cannot conduct full-task fine-tuning for such a large model within the rebuttal period. As highlighted in the meta-review, scalability has long been a fundamental bottleneck for homomorphic encryption. While this challenge remains open, our work represents a meaningful step forward by substantially improving efficiency, achieving an 8× speedup over the state of the art.

Q4: On STS-B, the reported score decreases from 0.8155 to 0.7824, which appears to be a substantial degradation. Could the authors explain the source of this performance loss?

We clarify that the observed performance difference is not attributable to the proposed FHE evaluation protocol, but rather to the choice of attention kernel. Specifically, the model using the Gaussian kernel achieves an accuracy of 0.8155, while the model using the Epanechnikov kernel achieves 0.7824. As demonstrated in Table 6, both kernels serve as effective alternatives to softmax attention, although their relative performance depends on the dataset and task.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…