acceptodds
Published as a conference paper at NeurIPS 2026

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

Linru Zhang, Jun J 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

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 reduction in ciphertext rotations and relinearizations across all matrix operations, as well as a 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 speedup over the state-of-the-art work.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 4%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.67 over 3 reviews, above 4% of the others.
Reviewer_CVqcOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
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.

Paper formatting concerns

NA

Final justification

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

1 comment

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 Layers24812
MRPCMean: 2.54e-08, Max: 1.9e-06Mean: 3.14e-08, Max: 2.9e-06Mean: 5.47e-08, Max: 9.8e-06Mean: 3.03e-07, Max: 8.6e-05
RTEMean: 1.96e-08, Max: 1.6e-06Mean: 2.63e-08, Max: 1.4e-06Mean: 6.97e-08, Max: 5.0e-05Mean: 2.63e-07, Max: 9.3e-05
STS-BMean: 5.51e-07, Max: 5.1e-05Mean: 7.18e-07, Max: 7.4e-05Mean: 7.48e-07, Max: 7.5e-05Mean: 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.

OperationSub-operationRho et al. [28]Felid (Ours)ReductionMain Cause
Forward passMatrix142967.7921.1×Packing + matrix algorithms
Non-linear2919.5630.4×Functional bootstrapping
(Func) Boot708295.052.4×Reduced depth + fewer bootstrappings
Backward passMatrix2377164.0414.5×Packing + matrix algorithms
Non-linear471.9124.6×Functional bootstrapping
(Func) Boot35592.453.8×Reduced depth + fewer bootstrappings
Optimizer3119.901.6×Compact packing (Appendix C.3)
Total5238650.608×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_SQN7OpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
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.

Paper formatting concerns

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

1 comment

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)256512768
CPMM0.0070.0270.061
CCMM0.0670.391.13
Factor9.57x14.4x18.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)128256512
GK (Functional bootstrapping)0.30.62.39
Softmax+bootstrapping0.7351.7268.95
Factor2.45x2.88x3.74x
Reviewer_PJudOpenReview ↗
Rating
3
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
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.

Paper formatting concerns

None.

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.

1 comment

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.

OperationBatch Size = 4Batch Size = 16Batch Size = 64
Total TimeAmortized TimeTotal TimeAmortized TimeTotal TimeAmortized Time
CPMM0.260.0650.970.0613.110.049
CCMM-LoRA0.0180.00450.0670.00420.1690.0026
CCMM-kernel0.880.223.420.2110.20.16
CCMM-V0.860.223.240.2010.320.16
LayerNorm1.020.261.900.126.020.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.

FlowSub-operationBatch Size = 4Batch Size = 16Batch Size = 64
Forward passMatrix17.1067.79216.90
Non-linear4.889.5628.80
(Func) Boot73.80295.051180.20
Backward passMatrix41.50164.04524.87
Non-linear1.021.916.02
(Func) Boot23.2092.45369.60
Optimizer19.7619.9020.24
Total181.26650.602346.63
Amortized45.3240.6636.67

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

FlowBatch Size = 4Batch Size = 16Batch 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.

OperationSub-operationRho et al. [28]Felid (Ours)ReductionMain Cause
Forward passMatrix142967.7921.1×Packing + matrix algorithms
Non-linear2919.5630.4×Functional bootstrapping
(Func) Boot708295.052.4×Reduced depth + fewer bootstrappings
Backward passMatrix2377164.0414.5×Packing + matrix algorithms
Non-linear471.9124.6×Functional bootstrapping
(Func) Boot35592.453.8×Reduced depth + fewer bootstrappings
Optimizer3119.901.6×Compact packing (Appendix C.3)
Total5238650.608×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.

Comments on the paper

1 comment
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).

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.