Felid
An optimization framework for Transformer fine-tuning under fully homomorphic encryption (FHE). Through flexible packing strategies, operation-specific matrix evaluation algorithms, and function bootstrapping that fuses activation functions, it reduces the number of rotations, relinearizations, and bootstrappings at the ciphertext-operation level, achieving substantial acceleration.
Timeline (last 90 days)
Felid is a framework for Transformer fine-tuning under fully homomorphic encryption.
Felid adopts a flexible packing strategy and supports variable numbers of batched inputs.
Felid uses operation-specific matrix evaluation algorithms to reduce the number of rotations, relinearizations and bootstrappings.
Felid uses functional bootstrapping to fold the computation of element-wise activation functions into the bootstrapping step.
Compared with the latest state-of-the-art work, Felid achieves a 30-fold reduction in ciphertext rotations and relinearizations across all matrix operations.
Felid achieves a 2.5-fold reduction in bootstrapping calls across the entire computation pipeline.
Felid completed fine-tuning of a 2-layer BERT-style model with a batch size of 16 within 650 seconds.
Compared with state-of-the-art work, Felid achieves an 8-fold speedup in end-to-end fine-tuning.
Felid compresses the fine-tuning time of a 2-layer BERT to 650 seconds, but there is still a gap to the practical deployment of large-scale models.
All Facts (9)
Felid is a framework for Transformer fine-tuning under fully homomorphic encryption.
50%UnverifiedFelid adopts a flexible packing strategy and supports variable numbers of batched inputs.
50%UnverifiedFelid uses operation-specific matrix evaluation algorithms to reduce the number of rotations, relinearizations and bootstrappings.
50%UnverifiedFelid uses functional bootstrapping to fold the computation of element-wise activation functions into the bootstrapping step.
50%UnverifiedCompared with the latest state-of-the-art work, Felid achieves a 30-fold reduction in ciphertext rotations and relinearizations across all matrix operations.
50%UnverifiedFelid achieves a 2.5-fold reduction in bootstrapping calls across the entire computation pipeline.
50%UnverifiedFelid completed fine-tuning of a 2-layer BERT-style model with a batch size of 16 within 650 seconds.
50%UnverifiedCompared with state-of-the-art work, Felid achieves an 8-fold speedup in end-to-end fine-tuning.
50%UnverifiedFelid compresses the fine-tuning time of a 2-layer BERT to 650 seconds, but there is still a gap to the practical deployment of large-scale models.
50%